From 9166395640600a5ec596bfbeefa00906597f095d Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期三, 26 六月 2024 17:33:35 +0800 Subject: [PATCH] feat:库管测试问题& 客户 产品名称展示 & 库管日计划更换图标 --- 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