#
whycq
2022-09-22 e9c313237ea537005aa4a12b42ba3fd0c23b910b
pages/basics/pickOffLines.vue
@@ -171,23 +171,30 @@
         },
         confirm() {
            let that = this
            if(!that.matList[that.index].locNo == this) {
            if(!that.matList[that.index].locNo == that.locNo) {
               uni.showToast({title: '请确认库位号是否正确', icon: "none", position: 'top'});
               return
            }
            this.matList[this.index].status= 1
            console.log(this.matList[this.index]);
            uni.request({
               url: that.commonUrl + '/manPakOut/finish',
               data:JSON.stringify(that.matList[that.index]),
               method:'POST',
               success(result) {
                  console.log(result);
                  var res = result.data
                  if(res.code === 200) {
                     that.popShow = false
                     that.matList[that.index].btnText= '已出库'
                     that.matList[that.index].btnType = 'primary'
                  } else if (res.code === 403) {
                     uni.showToast({title: res.msg, icon: "none", position: 'top'})
                        setTimeout(() => {
                           uni.reLaunch({
                              url: '../login/login'
                           });
                     }, 1000);
                  } else {
                     uni.showToast({title: res.msg, icon: "none",position: 'top'})
                  }
               }
            })