From 37e436a97c6753b38f0c462068122b32a8612a6a Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期二, 08 八月 2023 16:40:46 +0800 Subject: [PATCH] 客户服务单联调 --- src/views/service/clientServiceOrder/DetailClientServiceOrder.vue | 109 ++++++++++++++++-------------------------------------- 1 files changed, 32 insertions(+), 77 deletions(-) diff --git a/src/views/service/clientServiceOrder/DetailClientServiceOrder.vue b/src/views/service/clientServiceOrder/DetailClientServiceOrder.vue index 926a42b..d7446de 100644 --- a/src/views/service/clientServiceOrder/DetailClientServiceOrder.vue +++ b/src/views/service/clientServiceOrder/DetailClientServiceOrder.vue @@ -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 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 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 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> @@ -335,48 +335,49 @@ } }, setData() { + const data = this.detailConfig.infomation this.basicInfoList = [ { leftStr: "瀹㈡埛鍚嶇О", - leftValue: "", + leftValue: data.Client.name, rightStr: "鏈嶅姟鍗曠紪鍙�", - rightValue: "" + rightValue: data.serviceNumber }, { leftStr: "鏈嶅姟鍚堝悓", - leftValue: "", + leftValue: data.Contract.number, rightStr: "鏁呴殰绫诲埆", - rightValue: "" + rightValue: data.FaultType.name }, { leftStr: "涓婚", - leftValue: "", + leftValue: data.subject, rightStr: "鍚堝悓璁㈠崟", - rightValue: "" + rightValue: data.OrderManage.number }, { leftStr: "浜у搧绫诲埆", leftValue: "", rightStr: "浜у搧鍚嶇О", - rightValue: "" + rightValue: data.Product.name }, { 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: "绛惧埌", @@ -394,7 +395,7 @@ this.dynamicInfoList = [ { leftStr: "澶勭悊鐘舵��", - leftValue: "", + leftValue: data.status, rightStr: "鏈�鏂板垎閰嶆椂闂�", rightValue: "" }, @@ -408,19 +409,19 @@ 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 +429,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