From 61883fcf237024ceb7622daf5b23434e3eb1be74 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期一, 16 十月 2023 10:38:50 +0800 Subject: [PATCH] 产品获取值修改 --- src/views/service/clientServiceOrder/DetailClientServiceOrder.vue | 151 +++++++++++++++++++------------------------------ 1 files changed, 59 insertions(+), 92 deletions(-) diff --git a/src/views/service/clientServiceOrder/DetailClientServiceOrder.vue b/src/views/service/clientServiceOrder/DetailClientServiceOrder.vue index 926a42b..10bb4c1 100644 --- a/src/views/service/clientServiceOrder/DetailClientServiceOrder.vue +++ b/src/views/service/clientServiceOrder/DetailClientServiceOrder.vue @@ -9,15 +9,15 @@ > <template slot="title"> <div class="header"> - <span class="header-label">鏈嶅姟鍗曠紪鍙�</span> - <span class="header-title">{{ detailConfig.infomation.number }}</span> + <span class="header-label">瀹㈡埛鏈嶅姟鍗�</span> + <span class="header-title">{{ detailConfig.infomation.serviceNumber }}</span> </div> </template> <div class="content"> <div class="tab-view"> <el-tabs v-model="activeName" @tab-click="tabsClick"> <el-tab-pane label="璇︽儏" name="first"></el-tab-pane> - <el-tab-pane label="闄勪欢绠$悊" name="annex"></el-tab-pane> + <!-- <el-tab-pane label="闄勪欢绠$悊" name="annex"></el-tab-pane> --> <el-tab-pane label="鏈嶅姟鍥炶鍗�" name="followup"> <!-- <template slot="label"> <div>璺熻繘璁板綍<el-badge type="primary" :value="2"> </el-badge></div> @@ -38,11 +38,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 class="content-title">{{ item.rightStr }}</div> - <div class="content-data">{{ item.rightValue }}</div> + <div v-if="item.rightStr" class="right"> + <div class="content-title">{{ item.rightStr + "锛�" }}</div> + <div class="content-data">{{ item.rightValue ? item.rightValue : "--" }}</div> </div> </li> </ul> @@ -60,11 +60,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 class="content-title">{{ item.rightStr }}</div> - <div class="content-data">{{ item.rightValue }}</div> + <div v-if="item.rightStr" class="right"> + <div class="content-title">{{ item.rightStr + "锛�" }}</div> + <div class="content-data">{{ item.rightValue ? item.rightValue : "--" }}</div> </div> </li> </ul> @@ -82,11 +82,11 @@ <li v-for="(item, i) in timeAmountList" :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 class="content-title">{{ item.rightStr }}</div> - <div class="content-data">{{ item.rightValue }}</div> + <div v-if="item.rightStr" class="right"> + <div class="content-title">{{ item.rightStr + "锛�" }}</div> + <div class="content-data">{{ item.rightValue ? item.rightValue : "--" }}</div> </div> </li> </ul> @@ -122,7 +122,7 @@ <li v-for="(item, i) in issueList" :key="i"> <div class="all"> <div class="content-title">{{ item.leftStr + "锛�" }}</div> - <div class="content-data">{{ item.leftValue }}</div> + <div class="content-data">{{ item.leftValue ? item.leftValue : "--" }}</div> </div> </li> </ul> @@ -140,7 +140,7 @@ <li v-for="(item, i) in solutionList" :key="i"> <div class="all"> <div class="content-title">{{ item.leftStr + "锛�" }}</div> - <div class="content-data">{{ item.leftValue }}</div> + <div class="content-data">{{ item.leftValue ? item.leftValue : "--" }}</div> </div> </li> </ul> @@ -183,7 +183,7 @@ </div> </div> <!-- 闄勪欢淇℃伅 --> - <div class="basic-info"> + <!-- <div class="basic-info"> <div class="basic-info-label" @click="expandClick('annex')"> <i v-if="isAnnexExpand" class="el-icon-arrow-down"></i> <i v-else class="el-icon-arrow-up"></i> @@ -199,7 +199,7 @@ </li> </ul> </div> - </div> + </div> --> <!-- 绛惧瓧纭 --> <div class="basic-info"> <div class="basic-info-label" @click="expandClick('signConfim')"> @@ -261,7 +261,7 @@ <!-- <Contacts :isDetail="true" /> --> </div> <div v-if="activeName === 'followup'" class="second"> - <ServiceFollowup :isDetail="true" /> + <ServiceFollowup :isDetail="true" :add-config="addConfig" /> </div> </div> </el-drawer> @@ -311,12 +311,24 @@ isServiceContractExpand: true, // 鏈嶅姟鍚堝悓淇℃伅 serviceContractList: [], isHistoryExpand: true, // 瀹㈡埛鏈嶅姟鍗曞巻鍙茶褰� - historyList: [] + historyList: [], + addConfig: {} } }, created() { this.setData() this.setTable() + console.log(this.detailConfig.infomation.contact_name) + this.addConfig = { + keyword: this.detailConfig.infomation.serviceNumber, + keywordType: "瀹㈡埛鏈嶅姟鍗�", + client_name: this.detailConfig.infomation.client_name, + clientId: this.detailConfig.infomation.clientId, + contactId: this.detailConfig.infomation.contactId, + contact_name: this.detailConfig.infomation.contact_name, + service_number: this.detailConfig.infomation.serviceNumber, + serviceOrderId: this.detailConfig.infomation.id + } }, mounted() {}, methods: { @@ -335,48 +347,49 @@ } }, setData() { + const data = this.detailConfig.infomation this.basicInfoList = [ { leftStr: "瀹㈡埛鍚嶇О", - leftValue: "", + leftValue: data.Client.name, rightStr: "鏈嶅姟鍗曠紪鍙�", - rightValue: "" + rightValue: data.serviceNumber }, { leftStr: "鏈嶅姟鍚堝悓", - leftValue: "", + leftValue: data.ServiceContract.number, rightStr: "鏁呴殰绫诲埆", - rightValue: "" + rightValue: data.FaultType.name }, { leftStr: "涓婚", - leftValue: "", + leftValue: data.subject, rightStr: "鍚堝悓璁㈠崟", - rightValue: "" + rightValue: data.SalesDetails.number }, { leftStr: "浜у搧绫诲埆", leftValue: "", rightStr: "浜у搧鍚嶇О", - rightValue: "" + rightValue: data.productName }, { leftStr: "鏈嶅姟鏂瑰紡", - leftValue: "", + leftValue: data.ServiceType.name, rightStr: "鏈嶅姟浜哄憳", - rightValue: "" + rightValue: data.serviceManId }, { leftStr: "涓婇棬鍦板潃", - leftValue: "", + leftValue: data.address, rightStr: "浼樺厛绾у埆", - rightValue: "" + rightValue: data.PriorityLevel.name }, { leftStr: "棰勭害涓婇棬鏃堕棿", - leftValue: "", + leftValue: data.appointmentTime, rightStr: "閿�鍞満浼�", - rightValue: "" + rightValue: data.SaleChance.name }, { leftStr: "绛惧埌", @@ -386,7 +399,7 @@ }, { leftStr: "鍒涘缓鏃堕棿", - leftValue: "", + leftValue: data.createTime, rightStr: "鍒涘缓浜�", rightValue: "" } @@ -394,7 +407,7 @@ this.dynamicInfoList = [ { leftStr: "澶勭悊鐘舵��", - leftValue: "", + leftValue: data.serviceOrderStatusId, rightStr: "鏈�鏂板垎閰嶆椂闂�", rightValue: "" }, @@ -402,25 +415,25 @@ leftStr: "鏈�鏂版洿鏂颁汉", leftValue: "", rightStr: "淇敼鏃堕棿", - rightValue: "" + rightValue: data.updateTime } ] this.timeAmountList = [ { leftStr: "甯屾湜澶勭悊鏃堕棿", - leftValue: "", + leftValue: data.expectTime, rightStr: "瀹為檯澶勭悊鏃堕棿", - rightValue: "" + rightValue: data.realTime }, { leftStr: "浜ら�氳垂", - leftValue: "", + leftValue: data.carFare, rightStr: "鏀惰垂閲戦", - rightValue: "" + rightValue: data.chargeAmount }, { leftStr: "鑺辫垂鏃堕棿", - leftValue: "", + leftValue: data.TimeSpent.name, rightStr: "", rightValue: "" } @@ -428,67 +441,21 @@ this.issueList = [ { leftStr: "甯歌闂", - leftValue: "" + leftValue: data.Faq.name }, { leftStr: "闂鎻忚堪", - leftValue: "" + leftValue: data.problemDesc } ] this.solutionList = [ { leftStr: "瑙e喅鍔炴硶", - leftValue: "" + leftValue: data.solution }, { leftStr: "鍐呭澶囨敞", - leftValue: "" - } - ] - this.businessInfoList = [ - { - leftStr: "鎵�灞炶涓�", - leftValue: "", - rightStr: "娉曞畾浠h〃浜�", - rightValue: "" - }, - { - leftStr: "娉ㄥ唽鏃堕棿", - leftValue: "", - rightStr: "娉ㄥ唽璧勯噾", - rightValue: "" - }, - { - leftStr: "鍏徃鎬ц川", - leftValue: "", - rightStr: "瀹㈡埛瑙勬ā", - rightValue: "" - }, - { - leftStr: "缁忚惀鑼冨洿", - leftValue: "", - rightStr: "", - rightValue: "" - } - ] - this.addressInfoList = [ - { - leftStr: "鍥藉", - leftValue: "", - rightStr: "鐪佷唤", - rightValue: "" - }, - { - leftStr: "鍩庡競", - leftValue: "", - rightStr: "鍖哄煙", - rightValue: "" - }, - { - leftStr: "璇︾粏鍦板潃", - leftValue: "", - rightStr: "", - rightValue: "" + leftValue: data.solutionRemark } ] }, -- Gitblit v1.8.0