wk
2024-06-29 65d1e61e0546a5a7b42381b1f11a5ad6ed2ce145
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() {