From ede602b83818ff999cb68c440bb642c3c166fbd1 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 08 五月 2025 12:30:46 +0800 Subject: [PATCH] no message --- pages/listing/unPakin.vue | 25 ++++++------------------- pages/rece/other.vue | 6 ++++-- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/pages/listing/unPakin.vue b/pages/listing/unPakin.vue index fed1283..e215395 100644 --- a/pages/listing/unPakin.vue +++ b/pages/listing/unPakin.vue @@ -6,25 +6,13 @@ <view class="title">瀹瑰櫒鍙�</view> <input placeholder="璇锋壂鎻忓鍣ㄥ彿" v-model="container" focus></input> <text class='cuIcon-search text-blue' @click="getList"></text> - </view> -<!-- <view class="cu-form-group"> - <view class="title">ASN鍗曞彿</view> - <input placeholder="璇疯緭鍏SN鍗曞彿" v-model="asnCode"></input> </view> - <view class="cu-form-group"> - <view class="title">鐗╂枡缂栫爜</view> - <input placeholder="璇锋壂鎻忕墿鏂欑紪鐮�" v-model="matnrCode"></input> - <text class='cuIcon-search text-blue' @click="search"></text> - </view> --> </form> - <view class="flex solid-bottom padding-sm justify-between"> <view class="text-blue">鐗╂枡鎬荤被:{{list.length}}</view> <view class="text-blue">缁勭洏鎬绘暟:{{allCount}}</view> </view> - </view> - <view class="padding-lr margin-top-sm"> <block v-for="(item, index) in list" :key="index"> <view class="cu-list det menu sm-border margin-bottom-sm " :class="[item.trackCode===barcode&&'act']" @@ -96,19 +84,17 @@ <view class="cu-item"> <view class="content"> - <text class="text-black">鏀惰揣鏁伴噺: <text class="text-grey ">{{item.anfme}}</text></text> + <text class="text-black">宸茬粍鎵樻暟: <text class="text-grey ">{{item.anfme}}</text></text> </view> <view class="content"> - <text class="text-black">宸蹭笂鏋舵暟閲�: <text - class="text-grey ">{{item.workQty + item.qty}}</text></text> + <text class="text-black">宸叉墽琛屾暟閲�: <text class="text-grey ">{{item.workQty}}</text></text> </view> </view> <view class="cu-item"> <view class="content"> - <text class="text-black">鍙粍鐩樻暟閲�: <text + <text class="text-black">鍙В缁戞暟閲�: <text class="text-grey ">{{item.anfme - item.workQty}}</text></text> </view> - </view> <view class="cu-item"> <view class="content"> @@ -219,7 +205,7 @@ data, msg } = await request('/asnOrderItem/container', { - barcode: this.container, + barcode: this.container, type: 'unbind' }) if (code === 200) { @@ -264,7 +250,8 @@ const newArr = this.list.map(item => { return { - ...item, + ...item, + extendFields: {}, anfme: item.anfme === null ? 0 : +item.anfme, }; }); diff --git a/pages/rece/other.vue b/pages/rece/other.vue index 4310fed..53bec21 100644 --- a/pages/rece/other.vue +++ b/pages/rece/other.vue @@ -202,14 +202,16 @@ } }, computed: { - ...mapState('user', ['dynamicFields']), + ...mapState('user', ['dynamicFields']), + allCount() { return this.list.reduce((acc, row) => +row.receiptQty + acc, 0) } }, mounted() { - this.getRece() + this.getRece() + console.log(dynamicFields) this.whAreaId = uni.getStorageSync('whAreaId') }, methods: { -- Gitblit v1.9.1