From e376c99d80df50257b80a0da99865e80cf6b55c5 Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期六, 13 十二月 2025 11:09:54 +0800
Subject: [PATCH] no message
---
pages/listing/matnrPalletising.vue | 67 +++++++++++++++++++++------------
1 files changed, 43 insertions(+), 24 deletions(-)
diff --git a/pages/listing/matnrPalletising.vue b/pages/listing/matnrPalletising.vue
index 24551eb..10ecc4e 100644
--- a/pages/listing/matnrPalletising.vue
+++ b/pages/listing/matnrPalletising.vue
@@ -14,8 +14,10 @@
</view>
<view class="cu-form-group">
<view class="title">绁ㄥ彿</view>
- <input placeholder="璇锋壂鎻忕幇鍝佺エ鍙�" v-model="fieldsIndex"></input>
- <text class='cuIcon-search text-blue' @click="search"></text>
+ <input placeholder="璇锋壂鎻忕幇鍝佺エ鍙�" v-model="fieldsIndex" @input="search()" focus></input>
+ <text class='cuIcon-close text-gray margin-right-xs' v-show="fieldsIndex!==''"
+ @click="clearCode"></text>
+ <!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
</view>
<view class="cu-form-group">
<view class="title">ASN鍗曞彿</view>
@@ -24,6 +26,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,15 +77,6 @@
<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>
@@ -88,15 +84,15 @@
<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">
<view class="content">
<text class="text-black">鍙粍鐩樻暟閲忥細<text
class="text-grey ">{{item.anfme - item.workQty - item.qty}}</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">
@@ -136,6 +132,11 @@
barcode: '',
container: '',
megreQty: '',
+ isHalf: 0,
+ boxs: [{
+ text: '鍗婄',
+ value: 1
+ }],
list: [],
range: [],
asnCode: '',
@@ -149,12 +150,15 @@
computed: {
...mapState('user', ['dynamicFields']),
allCount() {
- return this.list.reduce((acc, row) => + (row.anfme + acc).toFixed(2), 0) || 0
+ return this.list.reduce((acc, row) => +(row.anfme + acc).toFixed(2), 0) || 0
}
},
mounted() {},
methods: {
async search() {
+ // if (this.fieldsIndex.length < 25) {
+ // return;
+ // }
const find = this.list.find(el => el.trackCode === this.barcode);
find ? this.scrollTo() : this.getDet();
},
@@ -167,13 +171,20 @@
}
that.getDetl(param);
},
-
+ clearCode() {
+ this.fieldsIndex = ''
+ },
async getDetl(req) {
let that = this;
- // uni.showLoading({
- // title: '鍔犺浇涓�...'
- // })
- const { code, data, msg } = await request('/asnOrderItem/trackCode', {
+ uni.showLoading({
+ title: "鍔犺浇涓�...",
+ mask: true
+ })
+ const {
+ code,
+ data,
+ msg
+ } = await request('/asnOrderItem/trackCode', {
matnrCode: that.matnrCode,
asnCode: that.asnCode,
code: that.asnCode,
@@ -195,10 +206,11 @@
position: 'top'
})
}
- // uni.hideLoading();
+ uni.hideLoading();
},
async getList() {
+ let that = this
if (this.container === '' || this.container === null) {
uni.showToast({
title: "瀹瑰櫒鐮佷负绌�",
@@ -207,7 +219,11 @@
})
return;
}
- const { code, data, msg } = await request('/asnOrderItem/container', {
+ const {
+ code,
+ data,
+ msg
+ } = await request('/asnOrderItem/container', {
barcode: this.container
})
if (code === 200) {
@@ -216,6 +232,9 @@
icon: "success",
position: 'top'
})
+ that.list.push(...data)
+
+
} else {
uni.showToast({
title: msg,
@@ -298,7 +317,6 @@
}
this.repeatClick = true
const newArr = this.list.map(item => {
-
return {
...item,
anfme: item.anfme === null ? 0 : +item.anfme,
@@ -311,6 +329,7 @@
msg
} = await request('/waitPakin/merge', {
items: newArr,
+ isHalf: this.isHalf,
barcode: this.container,
})
if (code === 200) {
--
Gitblit v1.9.1