#
whycq
2022-07-26 3e7daebe18087c0511302081583f6af85c1deb95
pages/basics/checkout.vue
@@ -73,6 +73,7 @@
   export default {
      data() {
         return {
            commonUrl:null,
            barcode: '',
            barcodeFocus:true,
            focus:false,
@@ -112,9 +113,15 @@
         this.baseIP = UIP;
         const UPORT = uni.getStorageSync('UPORT');
         this.basePORT = UPORT
         const PROJ = uni.getStorageSync('UPROJ');
         this.baseUrl = PROJ
         this.getUrl()
      },
      methods: {
         // 获取url
         getUrl() {
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
         },
         // 出库分为两种 一:全板出库 扫描托盘码显示全板商品 可以直接确认 二是减料出库 扫描托盘码提示需要出库数量  扫描货品条码达到最大出库数量即可
         messageToggle(type) {
            this.msgType = type
@@ -193,7 +200,7 @@
         findBarcode() {
            let that = this
            uni.request({
                url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/barcode/auth',
                url: that.commonUrl + '/mobile/pakout/confirm/barcode/auth',
                data: {
                  barcode:that.barcode
                },
@@ -233,7 +240,7 @@
         findMat() {
            let that = this
            uni.request({
                url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/pick/auth',
                url: that.commonUrl + '/mobile/pakout/confirm/pick/auth',
                data: {
                  wrkNo:that.wrkNo,
                  matnr:that.matnr
@@ -313,7 +320,7 @@
            }
            uni.showLoading();
            uni.request({
                url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/auth',
                url: that.commonUrl + '/mobile/pakout/confirm/auth',
                data: that.matList,
               method: 'POST',
                header: {