From 928e30463fc7e6e88fa3f3c1bdd3f4f94c518011 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 18 十一月 2025 16:15:17 +0800
Subject: [PATCH] 1
---
pages/listing/matnrPalletising.vue | 35 ++++++++++++++++++++++++++++++-----
1 files changed, 30 insertions(+), 5 deletions(-)
diff --git a/pages/listing/matnrPalletising.vue b/pages/listing/matnrPalletising.vue
index 24551eb..5d81077 100644
--- a/pages/listing/matnrPalletising.vue
+++ b/pages/listing/matnrPalletising.vue
@@ -14,8 +14,8 @@
</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-search text-blue' @click="search"></text> -->
</view>
<view class="cu-form-group">
<view class="title">ASN鍗曞彿</view>
@@ -98,6 +98,10 @@
<text class="text-black">鍙粍鐩樻暟閲忥細<text
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>
+ </view>
</view>
<view class="cu-item">
<view class="content">
@@ -136,6 +140,11 @@
barcode: '',
container: '',
megreQty: '',
+ isHalf: 0,
+ boxs: [{
+ text: '鍗婄',
+ value: 1
+ }],
list: [],
range: [],
asnCode: '',
@@ -149,12 +158,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 < 30) {
+ return;
+ }
const find = this.list.find(el => el.trackCode === this.barcode);
find ? this.scrollTo() : this.getDet();
},
@@ -173,7 +185,11 @@
// 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,
@@ -199,6 +215,7 @@
},
async getList() {
+ let that = this
if (this.container === '' || this.container === null) {
uni.showToast({
title: "瀹瑰櫒鐮佷负绌�",
@@ -207,7 +224,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 +237,9 @@
icon: "success",
position: 'top'
})
+ that.list.push(...data)
+
+
} else {
uni.showToast({
title: msg,
@@ -227,6 +251,7 @@
showBackData(data) {
let status;
data.map(item => {
+ item.isHalf = 0;
this.list.push(item)
})
let oldLength = this.list.length
--
Gitblit v1.9.1