From f3fd6931f2f1c68b9f51a51de2eeb32f07135a53 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期五, 21 三月 2025 16:50:54 +0800 Subject: [PATCH] #出入库修改 --- pages/basics/pakin.vue | 34 +++++++++++++++++++++++++++++----- 1 files changed, 29 insertions(+), 5 deletions(-) diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue index e1a916a..efb9c67 100644 --- a/pages/basics/pakin.vue +++ b/pages/basics/pakin.vue @@ -32,6 +32,19 @@ </view> </view> </view> + <view class="square-2"> + <view class="square-title"> + <view class="title-sign"><view class="sign"></view></view> + <view class="title-text"><text>搴撲綅鐮�</text></view> + </view> + <view class="square-content"> + <view class="content-input"> + <input v-model="locNo" type="text" placeholder="鎵爜 / 杈撳叆" + placeholder-style="line-height: 85rpx;"> + <uni-icons type="closeempty" size="20" color="#dadada" @click="removeLocNo()"></uni-icons> + </view> + </view> + </view> <view class="square-1"> @@ -54,7 +67,7 @@ </view> --> <view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view> <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view> - <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view> + <view><text style="width: 400rpx;">鍚堝悓鍙凤細{{item.batch}}</text></view> <view> <text style="width: 400rpx;">鏁伴噺锛歿{item.anfme}}</text> </view> @@ -94,13 +107,13 @@ <text class="title">淇敼鎵瑰彿/鏁伴噺</text> </view> <view class="" style="position: relative;left: 50px;margin-bottom: 20px;"> - <text style="display: inline-block;float: left;width: 50px;">鎵瑰彿锛�</text> + <text style="display: inline-block;float: left;width: 60px;">鍚堝悓鍙凤細</text> <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="batch"> </view> <view class="changeBox"> <view class="num-box"> - <text style="display: inline-block;float: left;width: 50px;">鎵瑰彿锛�</text> - <uni-number-box :value="count" :max="9999" color="#747474" @change="changeValue"/> + <text style="display: inline-block;float: left;width: 60px;">鏁伴噺锛�</text> + <uni-number-box :value="count" :max="99999999" color="#747474" @change="changeValue"/> </view> </view> <view class="revise-box-buttom"> @@ -136,7 +149,8 @@ check:false, checkText:'鍏ㄩ��', checkedData:[], - batch:'' + batch:'', + locNo:'' } }, onShow() { @@ -195,6 +209,7 @@ resst() { this.matList = [] this.barcode = '' + this.locNo = '' this.barcodeFocuss() uni.vibrateShort(); }, @@ -205,6 +220,10 @@ this.$nextTick(function() { this.barcodeFocus = true; }); + }, + removeLocNo() { + this.locNo = '' + uni.vibrateShort(); }, removeMatnr() { this.matnr = '' @@ -226,6 +245,10 @@ uni.showToast({title: '璇锋壂鎻忔墭鐩樻潯鐮�', icon: "none", position: 'top'}); return; } + if (that.locNo === '') { + uni.showToast({title: '璇疯緭鍏ュ簱浣嶇爜', icon: "none", position: 'top'}); + return; + } if (that.matList.length === 0) { uni.showToast({title: '璇锋坊鍔犲晢鍝佸垪琛�', icon: "none", position: 'top'}); return; @@ -241,6 +264,7 @@ url: that.commonUrl + '/mobile/comb/auth', data: JSON.stringify({ barcode: that.barcode, + locno: that.locNo, combMats: that.matList }), method: 'POST', -- Gitblit v1.9.1