From 41bcf2da6857306be1b03eda978975b618a95c27 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期五, 05 七月 2024 14:44:05 +0800
Subject: [PATCH] fix:显示净重条件更改

---
 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