From 65d1e61e0546a5a7b42381b1f11a5ad6ed2ce145 Mon Sep 17 00:00:00 2001 From: wk Date: 星期六, 29 六月 2024 13:50:15 +0800 Subject: [PATCH] feta:道路指引 --- pages/customer-page/addDailyPlan/addDailyPlan.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/customer-page/addDailyPlan/addDailyPlan.vue b/pages/customer-page/addDailyPlan/addDailyPlan.vue index 4bd99cb..d1f7b32 100644 --- a/pages/customer-page/addDailyPlan/addDailyPlan.vue +++ b/pages/customer-page/addDailyPlan/addDailyPlan.vue @@ -53,7 +53,7 @@ </uni-tr> <uni-tr v-for="(item, index) in subDataList" :key="index"> <uni-td align="center"> - <view>{{ item.productName }}</view></uni-td> + <view>{{ item.productName}}</view></uni-td> <uni-td> <view class="name">{{ item.orderType }}</view> </uni-td> @@ -163,7 +163,7 @@ uni.hideLoading() if (res.code == 0) { this.customerNameList = res.data.map(item=>{ - item.text = item.productName + '-' + item.orderCode; + item.text = (item.productNames ? item.productNames : item.productName) + '-' + item.orderCode; item.value = item.id; return item; }) @@ -173,7 +173,9 @@ }, deptChange(e) { console.log(e,'eee'); - this.subDataList = this.customerNameList.filter(item=>item.id === e); + this.subDataList = this.customerNameList.filter(item=>item.id === e).length ? + this.customerNameList.filter(item=>item.id === e)[0].tmOrderList : []; + ; }, confirmBuild() { -- Gitblit v1.9.1