#
whycq
2022-08-18 ad7e1146d1cd5a900ea592d7c1f63bf7863f00e4
pages/basics/outPakin.vue
@@ -120,6 +120,8 @@
         this.baseIP = UIP;
         const UPORT = uni.getStorageSync('UPORT');
         this.basePORT = UPORT
         const PROJ = uni.getStorageSync('UPROJ');
         this.baseUrl = PROJ
         this.getUrl()
      },
      onLoad() {
@@ -132,7 +134,7 @@
      methods: {
         // 获取url
         getUrl() {
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + this.baseUrl
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
         },
         radioChange(evt) {
            for (let i = 0; i < this.origins.length; i++) {
@@ -279,6 +281,7 @@
         },
         // 添加扫描日志
         addLog(matCode,userName) {
            let that = this;
            uni.request({
               url: that.commonUrl + "/mobile/addLog/auth",
@@ -291,6 +294,11 @@
               },
               // method:"POST",
               success(result) {
                  var res = result.data
                  if(res.code === 200) {
                     // uni.showToast({title: "添加成功", icon: "none",position: 'center'})
                  }
               }
            })
            
@@ -332,9 +340,9 @@
            // 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')