From e4dc67055ea0c21e72815054c044b56a76ec625e Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期三, 17 四月 2024 13:08:36 +0800 Subject: [PATCH] # --- pages/stock/stockCheck.vue | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/pages/stock/stockCheck.vue b/pages/stock/stockCheck.vue index c774534..58dbaa5 100644 --- a/pages/stock/stockCheck.vue +++ b/pages/stock/stockCheck.vue @@ -2,8 +2,8 @@ <view> <view class="code"> <view class="item"> - <view class="code-decs">鎵樼洏鐮�:</view> - <input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="barcode" :focus="barcodeFocus" + <view class="code-decs">鐩樼偣鍗�:</view> + <input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="orderNo" :focus="barcodeFocus" @input="search()"> </view> <view class="item"> @@ -37,8 +37,8 @@ <view class="left-item">{{item.maktx}}</view> </view> <view class="list-left-item"> - <view class="desc">瑙勬牸锛�</view> - <view class="left-item">{{item.specs}}</view> + <view class="desc">搴撲綅锛�</view> + <view class="left-item">{{item.locNo}}</view> </view> <view class="list-left-item"> <view class="desc">鎵瑰彿锛�</view> @@ -53,7 +53,7 @@ </view> <view class="list-right"> <uni-icons type="compose" color="#9add8b" size="24" @click="revise(item,i)"></uni-icons> - <uni-icons type="trash" color="#f58a8a" size="24" @click="remove(item,i,'warn')"></uni-icons> + <!-- <uni-icons type="trash" color="#f58a8a" size="24" @click="remove(item,i,'warn')"></uni-icons> --> </view> </view> </scroll-view> @@ -77,7 +77,11 @@ </view> </view> <view class="popup-item"> - <view class="popup-item-left">鍚堝悓鍙�:</view> + <view class="popup-item-left">搴撲綅:</view> + <view class="popup-item-right"><input type="text" v-model="locNo"></view> + </view> + <view class="popup-item"> + <view class="popup-item-left">鎵瑰彿:</view> <view class="popup-item-right"><input type="text" v-model="batch"></view> </view> <view class="popup-item"> @@ -131,7 +135,7 @@ baseUrl: '', token: '', barcode: '', - dataList: [{},{}], + dataList: [], count: 0, rowNum: '', matnr: '', @@ -143,7 +147,9 @@ content: '', barcodeFocus: true, matFocus: false, - matData: '' + matData: '', + orderNo:'', + locNo:'' } }, @@ -163,11 +169,11 @@ search() { let that = this uni.request({ - url: that.baseUrl + '/mobile/checkDetl/auth2', + url: that.baseUrl + '/manlocDetl/orderNo', header: { 'token':uni.getStorageSync('token') }, - data: {barcode: that.barcode}, + data: {orderNo: that.orderNo}, method:'GET', success(res) { console.log(res); @@ -325,6 +331,7 @@ this.matnr = this.dataList[i].matnr this.count = this.dataList[i].anfme this.batch = this.dataList[i].batch + this.locNo = this.dataList[i].locNo this.rowNum = i this.eject() }, @@ -352,6 +359,7 @@ reviseConfirm() { this.dataList[this.rowNum].anfme = this.count this.dataList[this.rowNum].batch = this.batch + this.dataList[this.rowNum].locNo = this.locNo this.messageText = "淇敼鎴愬姛" this.messageToggle('success') this.$refs.revise.close() @@ -398,7 +406,7 @@ let that = this var combMats = [] var combParam = {} - combParam['barcode'] = that.barcode + combParam['orderNo'] = that.orderNo combParam['wrkDetls'] = that.dataList uni.request({ url: that.baseUrl + '/mobile/adjustNew/auth', -- Gitblit v1.9.1