From ed2f130164f4145560b4176da6629890c0806ded Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期四, 10 八月 2023 18:11:27 +0800 Subject: [PATCH] 服务管理模块联调 --- src/views/service/serviceContract/DetailServiceContract.vue | 59 +++++++++++++++++++++++++++-------------------------------- 1 files changed, 27 insertions(+), 32 deletions(-) diff --git a/src/views/service/serviceContract/DetailServiceContract.vue b/src/views/service/serviceContract/DetailServiceContract.vue index 6bac9a8..f7b3d0d 100644 --- a/src/views/service/serviceContract/DetailServiceContract.vue +++ b/src/views/service/serviceContract/DetailServiceContract.vue @@ -25,7 +25,6 @@ <el-tab-pane label="鏀舵鍗�" name="receipt"></el-tab-pane> <el-tab-pane label="瀹㈡埛鏈嶅姟鍗�" name="clientService"> </el-tab-pane> <el-tab-pane label="閿�鍞彂绁�" name="invoice"></el-tab-pane> - <el-tab-pane label="閿�鍞瓙鍗�" name="sub"></el-tab-pane> </el-tabs> </div> <div v-if="activeName === 'first'" class="detail"> @@ -41,11 +40,11 @@ <li v-for="(item, i) in basicInfoList" :key="i"> <div class="left"> <div class="content-title">{{ item.leftStr + "锛�" }}</div> - <div class="content-data">{{ item.leftValue }}</div> + <div class="content-data">{{ item.leftValue ? item.leftValue : "--" }}</div> </div> - <div class="right"> + <div v-if="item.rightStr" class="right"> <div class="content-title">{{ item.rightStr }}</div> - <div class="content-data">{{ item.rightValue }}</div> + <div class="content-data">{{ item.rightValue ? item.rightValue : "--" }}</div> </div> </li> </ul> @@ -63,11 +62,11 @@ <li v-for="(item, i) in dynamicInfoList" :key="i"> <div class="left"> <div class="content-title">{{ item.leftStr + "锛�" }}</div> - <div class="content-data">{{ item.leftValue }}</div> + <div class="content-data">{{ item.leftValue ? item.leftValue : "--" }}</div> </div> - <div class="right"> + <div v-if="item.rightStr" class="right"> <div class="content-title">{{ item.rightStr }}</div> - <div class="content-data">{{ item.rightValue }}</div> + <div class="content-data">{{ item.rightValue ? item.rightValue : "--" }}</div> </div> </li> </ul> @@ -103,7 +102,7 @@ <li> <div class="left remark"> <div class="content-title">{{ "澶囨敞锛�" }}</div> - <div class="content-data">{{ "" }}</div> + <div class="content-data">{{ detailConfig.infomation.remark }}</div> </div> </li> </ul> @@ -156,9 +155,6 @@ <div v-if="activeName === 'invoice'" class="second"> <!-- <FollowupRecords :isDetail="true" /> --> </div> - <div v-if="activeName === 'sub'" class="second"> - <SubOrder :isDetail="true" /> - </div> </div> </el-drawer> </div> @@ -166,7 +162,6 @@ <script> import ClientServiceOrder from "@/views/service/clientServiceOrder" -import SubOrder from "@/views/sales/subOrder" import Status from "@/common/const/salesFixedStatus" import CommonFormTableView from "@/components/makepager/CommonFormTableView" export default { @@ -182,7 +177,7 @@ } } }, - components: { ClientServiceOrder, SubOrder, CommonFormTableView }, + components: { ClientServiceOrder, CommonFormTableView }, computed: {}, data() { return { @@ -208,36 +203,36 @@ } }, created() { - this.setData() + this.setData(this.detailConfig.infomation) this.setTableForm() }, mounted() {}, methods: { - setData() { + setData(item) { this.basicInfoList = [ { leftStr: "瀹㈡埛鍚嶇О", - leftValue: "", + leftValue: item.client_name, rightStr: "鏈嶅姟鍚堝悓缂栧彿", - rightValue: "" + rightValue: item.number }, { leftStr: "璐熻矗浜�", - leftValue: "", + leftValue: item.memberId, rightStr: "鑱旂郴浜哄鍚�", - rightValue: "" + rightValue: item.contactId }, { leftStr: "閿�鍞満浼�", - leftValue: "", + leftValue: item.SaleChance.name, rightStr: "鍚堝悓璁㈠崟", - rightValue: "" + rightValue: item.salesDetails.number }, { leftStr: "鎶ヤ环鍗�", - leftValue: "", + leftValue: item.quotation.number, rightStr: "鍚堝悓绫诲瀷", - rightValue: "" + rightValue: item.serviceContractType }, { leftStr: "鍚堝悓鍙戣捣浜�", @@ -247,15 +242,15 @@ }, { leftStr: "绛剧害鏃ユ湡", - leftValue: "", + leftValue: item.signTime, rightStr: "鏈嶅姟寮�濮嬫棩鏈�", - rightValue: "" + rightValue: item.startTime }, { leftStr: "鍒涘缓浜�", leftValue: "", rightStr: "鏈嶅姟鍒版湡鏃�", - rightValue: "" + rightValue: item.endTime }, { leftStr: "鍒涘缓鏃堕棿", @@ -269,25 +264,25 @@ leftStr: "瀹℃壒鐘舵��", leftValue: "", rightStr: "鍚堝悓鐘舵��", - rightValue: "" + rightValue: item.serviceContractStatus }, { leftStr: "宸叉湇鍔℃鏁�", - leftValue: "", + leftValue: item.serviceTimes, rightStr: "搴旀湇鍔℃鏁�", rightValue: "" }, { leftStr: "宸叉敹鎬婚", - leftValue: "", + leftValue: item.amountReceived, rightStr: "搴旀敹浣欓", - rightValue: "" + rightValue: item.amountReceivable }, { leftStr: "宸插紑绁ㄩ噾棰�", - leftValue: "", + leftValue: item.amountInvoiced, rightStr: "鏈紑绁ㄩ噾棰�", - rightValue: "" + rightValue: item.amountUnInvoiced } ] }, -- Gitblit v1.8.0