#
whycq
2022-08-18 ad7e1146d1cd5a900ea592d7c1f63bf7863f00e4
pages/basics/outPakin.vue
@@ -120,9 +120,8 @@
         this.baseIP = UIP;
         const UPORT = uni.getStorageSync('UPORT');
         this.basePORT = UPORT
         const PJO = uni.getStorageSync('PJO');
         this.baseUrl = PJO
         console.log(this.baseUrl)
         const PROJ = uni.getStorageSync('UPROJ');
         this.baseUrl = PROJ
         this.getUrl()
      },
      onLoad() {
@@ -282,6 +281,7 @@
         },
         // 添加扫描日志
         addLog(matCode,userName) {
            let that = this;
            uni.request({
               url: that.commonUrl + "/mobile/addLog/auth",
@@ -294,6 +294,11 @@
               },
               // method:"POST",
               success(result) {
                  var res = result.data
                  if(res.code === 200) {
                     // uni.showToast({title: "添加成功", icon: "none",position: 'center'})
                  }
               }
            })
            
@@ -335,15 +340,14 @@
            // return;
            // uni.showLoading();
            uni.request({
                url: that.commonUrl + '/mat/auth',
                url: that.commonUrl + '/barcode/check/auth',
                data: {
                  matnr:matnr
                  barcode:that.matnrId
                },
                header: {
                  'token':uni.getStorageSync('token')
                },
               success(result) {
                  console.log(result)
                  uni.hideLoading();
                  // uni.vibrateShort();
                  let res = result.data