#
whycq
2022-11-10 fc65b1d8dc534675fd43b7f63ed39f6c9108ddf6
pages/basics/stockCheck.vue
@@ -182,6 +182,7 @@
                   acceptDataFromOpenedPage: function(data) {
                     that.matnr = data.data
                     that.findMat(that.matnr)
                     that.matnr = ''
                   },
               },
               success: function(res) {
@@ -190,7 +191,7 @@
               },
               
            });
            that.matnr = ''
         }, // selectMat
         findMat() {
            let that = this
@@ -291,20 +292,23 @@
         },
         adjust() {
            let that = this
            var combMats = []
            var combParam = {}
            combParam['barcode'] = that.barcode
            combParam['wrkDetls'] = that.matList
            uni.request({
               url: that.commonUrl + '/adjust/auth',
               url: that.commonUrl + '/mobile/adjustNew/auth',
               method: 'POST',
               data: {
                  combParam: that.matList
               },
               data: JSON.stringify(combParam),
               header: {
                  'token':uni.getStorageSync('token')
               },
               success(result) {
                  var res = result.data
                     console.log(result)
                  if (res.code === 200) {
                     that.matList = []
                     that.barcode = ''
                     uni.showToast({title: res.msg, icon: "none", position: 'top'})
                  } else if (res.code == 403) {
                     uni.showToast({title: res.msg, icon: "none", position: 'top'})
                     setTimeout(() => {