From 537a3a9b499135fe28ef8895fa78a213f3582169 Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期四, 20 十一月 2025 16:20:39 +0800
Subject: [PATCH] 1
---
pages/listing/matnrPalletising.vue | 45 ++++++++++++---------------------------------
pages/outbound/PickItemDetl.vue | 6 +++---
2 files changed, 15 insertions(+), 36 deletions(-)
diff --git a/pages/listing/matnrPalletising.vue b/pages/listing/matnrPalletising.vue
index 5d81077..cc3b8c3 100644
--- a/pages/listing/matnrPalletising.vue
+++ b/pages/listing/matnrPalletising.vue
@@ -24,6 +24,9 @@
</form>
<view class="flex solid-bottom padding-sm justify-between">
<view class="text-blue">鐗╂枡鎬荤被锛歿{list.length}}</view>
+ <view class="content">
+ <uni-data-checkbox mode="button" multiple v-model="isHalf" :localdata="boxs"></uni-data-checkbox>
+ </view>
<view class="text-blue">缁勭洏鎬绘暟锛歿{allCount}}</view>
</view>
</view>
@@ -72,25 +75,12 @@
<text class="text-black">绁ㄥ彿锛�<text class="text-grey ">{{item.crushNo}}</text></text>
</view>
</view>
- <!-- <view class="cu-item">
- <view class="content">
- <text class="text-black">骞冲彴琛屽彿: <text class="text-grey ">{{item.platformId}}</text></text>
- </view>
- <view class="content">
- <text class="text-black">璐ㄦ缁撴灉: <text class="text-grey ">{{item.inspect}}</text></text>
- </view>
- </view> -->
-
<view class="cu-item">
<view class="content">
<text class="text-black">搴撳瓨鍗曚綅锛� <text class="text-grey ">{{item.stockUnit}}</text></text>
</view>
<view class="content">
<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>
</view>
</view>
<view class="cu-item">
@@ -99,8 +89,8 @@
class="text-grey ">{{item.anfme - item.workQty - item.qty}}</text></text>
</view>
<view class="content">
- <uni-data-checkbox mode="button" multiple v-model="isHalf"
- :localdata="boxs"></uni-data-checkbox>
+ <text class="text-black">宸蹭笂鏋舵暟閲忥細 <text
+ class="text-grey ">{{item.workQty + item.qty}}</text></text>
</view>
</view>
<view class="cu-item">
@@ -164,9 +154,9 @@
mounted() {},
methods: {
async search() {
- if (this.fieldsIndex.length < 30) {
- return;
- }
+ // if (this.fieldsIndex.length < 25) {
+ // return;
+ // }
const find = this.list.find(el => el.trackCode === this.barcode);
find ? this.scrollTo() : this.getDet();
},
@@ -182,14 +172,8 @@
async getDetl(req) {
let that = this;
- // uni.showLoading({
- // title: '鍔犺浇涓�...'
- // })
- const {
- code,
- data,
- msg
- } = await request('/asnOrderItem/trackCode', {
+
+ const { code, data, msg } = await request('/asnOrderItem/trackCode', {
matnrCode: that.matnrCode,
asnCode: that.asnCode,
code: that.asnCode,
@@ -251,7 +235,6 @@
showBackData(data) {
let status;
data.map(item => {
- item.isHalf = 0;
this.list.push(item)
})
let oldLength = this.list.length
@@ -323,19 +306,15 @@
}
this.repeatClick = true
const newArr = this.list.map(item => {
-
return {
...item,
anfme: item.anfme === null ? 0 : +item.anfme,
};
});
- const {
- code,
- data,
- msg
- } = await request('/waitPakin/merge', {
+ const { code, data, msg } = await request('/waitPakin/merge', {
items: newArr,
+ isHalf: this.isHalf.join(),
barcode: this.container,
})
if (code === 200) {
diff --git a/pages/outbound/PickItemDetl.vue b/pages/outbound/PickItemDetl.vue
index 803621e..462bdc5 100644
--- a/pages/outbound/PickItemDetl.vue
+++ b/pages/outbound/PickItemDetl.vue
@@ -115,9 +115,9 @@
},
async search() {
let that = this;
- if(this.fieldsIndex === '' || this.fieldsIndex.length < 30){
- return ;
- }
+ // if(this.fieldsIndex === '' || this.fieldsIndex.length < 30){
+ // return ;
+ // }
const { code, data, msg } = await request('/wave/order/items', {
barcode: this.orderDetl.barcode,
orderId: that.orderDetl.orderId,
--
Gitblit v1.9.1