#
whycq
2022-08-31 59cb4011ecfdb36adca04ffef3e65644eb436f5f
pages/basics/offLines.vue
@@ -90,14 +90,29 @@
         comb() {
            let that = this
            var offSaleParam = {}
            offSaleParam['locNo'] = 'NA002'
            offSaleParam['locNo'] = 'NA003'
            offSaleParam['matnr'] = 'YJ2022081808312309'
            offSaleParam['anfme'] = 4
            uni.request({
               url:'http://localhost:8081/lywms/mobile/mat/offSale/auth',
               data:JSON.stringify(offSaleParam),
               method:'POST',
               success(result) {
                  console.log(result);
                  var res = result
                  console.log(res);
                  if (res.code === 200) {
                     uni.showToast({title: res.msg, icon: "none", position: 'top'});
                     that.resst()
                  } 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'})
                  }
               }
            })
         }