From 12966b4ef9d35b25760fcd4fcdd569bef9aa8547 Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期三, 30 七月 2025 14:10:30 +0800 Subject: [PATCH] # --- pages/basics/backOrderPakin.vue | 26 +++++++++++++++++--------- 1 files changed, 17 insertions(+), 9 deletions(-) diff --git a/pages/basics/backOrderPakin.vue b/pages/basics/backOrderPakin.vue index ddb85ba..26ab52c 100644 --- a/pages/basics/backOrderPakin.vue +++ b/pages/basics/backOrderPakin.vue @@ -9,14 +9,14 @@ <view class="square-content"> <view class="content-input"> <input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" - :focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height: 85rpx;"> + :focus="barcodeFocus" @confirm="barcodeInput()" @input="findMat()" placeholder-style="line-height: 85rpx;"> <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> </view> </view> </view> - <view class="square-2"> +<!-- <view class="square-2"> <view class="square-title"> <view class="title-sign"><view class="sign"></view></view> <view class="title-text"><text>妫�绱㈠晢鍝�</text></view> @@ -27,11 +27,8 @@ :focus="focus" placeholder-style="line-height: 85rpx;"> <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> </view> - <!-- <view class="content-btn"> - <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+鎻愬彇</button> - </view> --> </view> - </view> + </view> --> <view class="square-1"> @@ -58,6 +55,8 @@ <view><text style="width: 400rpx;">瑙勬牸锛歿{item.specs}}</text></view> <!-- <view><text style="width: 400rpx;">鍨嬪彿锛歿{item.model}}</text></view> --> <view><text style="width: 400rpx;">鎵规锛歿{item.batch}}</text></view> + <view style="width: 500rpx;"><text>鍨嬪彿锛歿{item.model}}</text></view> + <view><text style="width: 400rpx;">搴撳瓨鐘舵�侊細{{item.cstateid$}}</text></view> <!-- <view><text style="width: 400rpx;">澶囨敞锛歿{item.memo}}</text></view> --> <view> <text style="width: 400rpx;">涓绘暟閲忥細{{item.anfme}}</text> @@ -86,6 +85,9 @@ <label class="label-btn" style="width: 150rpx;"> <button class="cu-btn" @click="resst()">閲嶇疆</button> + </label> + <label> + 鎬昏杈呮暟閲忥細{{ countWeight }} </label> <label class="label-btn"> <button class="cu-btn bg-blue " @click="comb()">缁勬墭</button> @@ -145,6 +147,7 @@ checkedData:[], batch:'', tkFlag: null, + countWeight: 0, } }, onShow() { @@ -304,7 +307,7 @@ uni.request({ url: that.commonUrl + '/mobile/mat/back', data: { - matnr:that.matnr + barcode:that.barcode }, header: { 'token':uni.getStorageSync('token') @@ -314,7 +317,6 @@ let res = result.data if (res.code === 200 && res.data) { that.matData = res.data - that.matnr = '' uni.navigateTo({ url: "matQuerySelect", events: { @@ -362,6 +364,12 @@ } if (add) { this.matList.unshift(mat) + + let count = 0; + this.matList.forEach((item) => { + count += item.weight; + }) + this.countWeight = count; } }, change(e) { @@ -586,7 +594,7 @@ } .data-list { border-bottom: 1px solid #d8d8d8; - height: 280rpx; + height: 480rpx; margin: 15rpx; border-radius: 20rpx; } -- Gitblit v1.9.1