yangan
2024-10-15 09f598294949f96d91cdf0f583ce10862131b6f5
subPages/addDailyPlan/addDailyPlan.vue
@@ -158,9 +158,14 @@
         uni.$on('updateData',(data)=>{
            console.log('监听到事件来自 updateData ,携带参数为:' + JSON.parse( JSON.stringify(data)) , JSON.parse(data) .id );
            const params = JSON.parse(data);
            // this.checkList2 = params.map(item=>{
            //    item.text = item.orderCode + '/' + item.customerName;
            //    return item;
            // });
            // let temp = this.checkList2;
            // this.closeOrderIds = temp.map(item=>item.id).join(',')
            this.activeName = params.orderCode  +'/' + params.customerName;
            this.closeOrderId = params.id;
            this.activeName = params.orderCode + '/' + params.customerName;
         })
@@ -172,6 +177,9 @@
            checkList:[],
            deptName: '',
            activeName:'',
            isNumOk:false,
            isNumData:[],
            checkList2:[],
            deptList: [],
            uncoidCard:'',
            productName: '',
@@ -184,7 +192,7 @@
            sendDateStart: '',
            sendDateEnd: '',
            customerId: '',
            closeOrderId:'',
            closeOrderIds:'',
            value:'',
            customerName: '',
            customerNameList: [],
@@ -250,7 +258,9 @@
            
                     if(this.deptId){
                  this.subDataList = this.customerNameList.filter(item=>item.id === e).length ? 
                     this.customerNameList.filter(item=>item.id === e)[0].tmOrderList  : []; 
                  console.log(this.subDataList,'subDataList')
                  const tempArr = this.customerNameList.filter(item=>item.id === e);
                  if(tempArr.length){
                     this.unionParams = {
@@ -315,12 +325,13 @@
         todoUncoid(){
            console.log('todoUncoid');
            uni.navigateTo({
            url: `/subPages/unionCard/unionCard?unionParams=${JSON.stringify(this.unionParams) }`
            url: `/subPages/unionCard/unionCard?unionParams=${JSON.stringify(this.unionParams)}&checkArray=${JSON.stringify(this.checkList2) }`
            });
         },
         clearInp(){
            this.closeOrderId = '';
            this.activeName = '';
         }
      },
   }