#
whycq
2024-04-16 7c453b0ccbf6d828b14a1303ec34f81283c875bb
pages/phyz/checkLocDetl/locDetl.vue
@@ -82,12 +82,14 @@
            locDetlShow: false,
            isOpen: false,
            locSts: '',
            locSts2: '',
            locStss: [
               {title: 'F.在库',val: 'F'},
               {title: 'D.空桶/空栈板',val: 'D'},
               {title: 'O.空库位',val: 'O'},
               {title: 'X.禁用',val: 'X'},
            ]
            ],
            sourceLoc: ''
         }
      },
      onShow() {
@@ -101,6 +103,8 @@
            console.log(data);
            _this.locNo = data.item.locNo
            _this.barcode = data.item.barcode
            _this.sourceLoc = data.item.item
            console.log(_this.sourceLoc);
            _this.getLocDetl(data.item.locNo,data.item.barcode)
         })
      },
@@ -169,6 +173,28 @@
         },
         selected(option) {
            this.locSts = option.title
            this.locSts2 = option.val
         },
         changeCount() {
            let _this = this
            _this.sourceLoc.locSts = this.locSts2
            Object.keys(_this.sourceLoc).forEach(function(key){
               if (_this.sourceLoc[key] == null) {
                  _this.sourceLoc[key] = ''
               }
            })
            uni.request({
               url: `${_this.baseUrl}/agv/locMast/update/auth`,
               header: {
                  'token': uni.getStorageSync('token'),
                  'content-type': 'application/x-www-form-urlencoded'
               },
               data: _this.sourceLoc,
               method: 'POST',
               success(res) {
                  res = res.data
               }
            })
         }
      }
   }