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 ++++++++++++++++++++++++++++++-----
 pages/outbound/PickItemDetl.vue    |    9 ++++-----
 2 files changed, 34 insertions(+), 10 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
diff --git a/pages/outbound/PickItemDetl.vue b/pages/outbound/PickItemDetl.vue
index 0bc23ee..3aa7266 100644
--- a/pages/outbound/PickItemDetl.vue
+++ b/pages/outbound/PickItemDetl.vue
@@ -14,9 +14,8 @@
 			<form>
 				<view class="cu-form-group" v-show="!isconfirm">
 					<view class="title">绁ㄥ彿锛�</view>
-					<input placeholder="璇锋壂鎻忕エ鍙�" v-model="fieldsIndex" focus></input>
+					<input placeholder="璇锋壂鎻忕エ鍙�" v-model="fieldsIndex" focus @input="search()"></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>
 			</form>
 		</view>
@@ -116,9 +115,9 @@
 			},
 			async search() {
 				let that = this;
-				// if(this.barcode === '' || this.barcode ===null){
-				// 	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