#
whycq
2024-04-23 f2637cb037aa709c8a42b24a760e3223378bcc1d
pages/phyz/stationManage/pickAgain.vue
@@ -85,10 +85,12 @@
                  res = res.data
                  console.log(res);
                  if (res.code === 200) {
                     let enbleList = []
                     let enbleList = [], isfl;
                     for (let k of res.data.records) {
                        isfl = false;
                        for (let j of _this.pickList) {
                           if (j.matnr == k.matnr && j.threeCode == k.threeCode) {
                              isfl = true;
                              break
                           } else {
                              if (k.stock == -1) {
@@ -99,8 +101,10 @@
                              }
                              k['count'] = 0
                              
                              enbleList.push(k)
                           }
                        }
                        if (!isfl) {
                           enbleList.push(k)
                        }
                        
                     }
@@ -153,6 +157,17 @@
               success(res) {
                  res = res.data
                  console.log(res);
                  if  (res.code === 200) {
                     _this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: 1});
                     setTimeout(()=>{
                        uni.navigateBack()
                     },700)
                  } else if (res.code == 403) {
                     uni.showToast({ title: res.msg, icon: "error", position: 'top' })
                     setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
                  } else {
                     uni.showToast({ title: res.msg, icon: "error", position: 'top' })
                  }
               }
            })
         }