From 2b49f7643d15b74889d190f216630559006ed93a Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期一, 01 十二月 2025 09:48:43 +0800
Subject: [PATCH] pad和后端的优化

---
 新建文件夹/PDA/pages/stash/raworderboxing.vue |  192 +++++++++++++++++++++++++++++++++--------------
 1 files changed, 133 insertions(+), 59 deletions(-)

diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/raworderboxing.vue" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/raworderboxing.vue"
index 939a73e..5f5d5e2 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/raworderboxing.vue"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/PDA/pages/stash/raworderboxing.vue"
@@ -441,66 +441,140 @@
 					}
 				})
 			},
-			submit() {
-				if (this.barcode == "") {
-					this.$refs.uToast.show({
-						title: "璇锋壂鎻忚揣浣嶇紪鍙�",
-						type: 'error'
-					})
-					return;
-				}
-				if (this.materSn.length == 0) {
-					this.$refs.uToast.show({
-						title: "璇疯緭鍏ュ叆搴撴暟閲�",
-						type: 'error'
-					})
-					return;
-				}
-				uni.showLoading({
-					title: '鎻愪氦涓�...'
-				});
-				this.$u.post('/api/CabinOrder/FeedbackIn', {
-					MainData: {
-						"LocationCode": this.barcode,
-						"id":this.id,
-						"warehouseCode": this.warehouseId,
-						"orderNo": this.orderNo,
-						"materielCode": this.materielCode,
-						"Inqty": this.materSn,
-						"batchNo": this.batchNo,
-					},
-					DelKeys: this.sns
-				}).then(res => {
-					uni.hideLoading();
-					this.Testcheck = false;
-					if (res.status) {
-						this.$refs.uToast.show({
-							title: "鍏ュ簱鎴愬姛",
-							type: "success"
-						})
-						this.Inqty = parseInt(res.message);
-						this.order_Inqty = "宸插叆搴撴暟閲忥細" + this.Inqty;
-						this.barcode = "";
-						this.materSn = "";
-						if (this.Inqty == this.orderqty) {
-							uni.setStorageSync('isIn', true);
-							this.handleInboundComplete();
-						}
-					} else {
-						this.$refs.uToast.show({
-							title: res.message,
-							type: "error"
-						})
-					}
-				}).catch(err => {
-					uni.hideLoading();
-					this.$refs.uToast.show({
-						title: "缃戠粶閿欒锛岃閲嶈瘯",
-						type: "error"
-					})
-				})
-			},
+			// submit() {
+			// 	if (this.barcode == "") {
+			// 		this.$refs.uToast.show({
+			// 			title: "璇锋壂鎻忚揣浣嶇紪鍙�",
+			// 			type: 'error'
+			// 		})
+			// 		return;
+			// 	}
+			// 	if (this.materSn.length == 0) {
+			// 		this.$refs.uToast.show({
+			// 			title: "璇疯緭鍏ュ叆搴撴暟閲�",
+			// 			type: 'error'
+			// 		})
+			// 		return;
+			// 	}
+			// 	uni.showLoading({
+			// 		title: '鎻愪氦涓�...'
+			// 	});
+			// 	this.$u.post('/api/CabinOrder/FeedbackIn', {
+			// 		MainData: {
+			// 			"LocationCode": this.barcode,
+			// 			"id":this.id,
+			// 			"warehouseCode": this.warehouseId,
+			// 			"orderNo": this.orderNo,
+			// 			"materielCode": this.materielCode,
+			// 			"Inqty": this.materSn,
+			// 			"batchNo": this.batchNo,
+			// 		},
+			// 		DelKeys: this.sns
+			// 	}).then(res => {
+			// 		uni.hideLoading();
+			// 		this.Testcheck = false;
+			// 		if (res.status) {
+			// 			this.$refs.uToast.show({
+			// 				title: "鍏ュ簱鎴愬姛",
+			// 				type: "success"
+			// 			})
+			// 			this.Inqty = parseInt(res.message);
+			// 			this.order_Inqty = "宸插叆搴撴暟閲忥細" + this.Inqty;
+			// 			this.barcode = "";
+			// 			this.materSn = "";
+			// 			if (this.Inqty == this.orderqty) {
+			// 				uni.setStorageSync('isIn', true);
+			// 				this.handleInboundComplete();
+			// 			}
+			// 		} else {
+			// 			this.$refs.uToast.show({
+			// 				title: res.message,
+			// 				type: "error"
+			// 			})
+			// 		}
+			// 	}).catch(err => {
+			// 		uni.hideLoading();
+			// 		this.$refs.uToast.show({
+			// 			title: "缃戠粶閿欒锛岃閲嶈瘯",
+			// 			type: "error"
+			// 		})
+			// 	})
+			// },
 			// 鏂板鏂规硶澶勭悊鍏ュ簱瀹屾垚閫昏緫
+			
+			submit() {
+    if (this.barcode == "") {
+        this.$refs.uToast.show({
+            title: "璇锋壂鎻忚揣浣嶇紪鍙�",
+            type: 'error'
+        })
+        return;
+    }
+    if (this.materSn.length == 0) {
+        this.$refs.uToast.show({
+            title: "璇疯緭鍏ュ叆搴撴暟閲�",
+            type: 'error'
+        })
+        return;
+    }
+
+    // 鏂板浜屾纭閫昏緫
+    uni.showModal({
+        title: '纭鍏ュ簱',
+        content: '鎮ㄧ‘瀹氳鎻愪氦鍏ュ簱淇℃伅鍚楋紵',
+        success: (res) => {
+            if (res.confirm) {
+                // 鐢ㄦ埛鐐瑰嚮纭畾锛屾墽琛屽師鏈夌殑鎻愪氦閫昏緫
+                uni.showLoading({
+                    title: '鎻愪氦涓�...'
+                });
+                this.$u.post('/api/CabinOrder/FeedbackIn', {
+                    MainData: {
+                        "LocationCode": this.barcode,
+                        "id": this.id,
+                        "warehouseCode": this.warehouseId,
+                        "orderNo": this.orderNo,
+                        "materielCode": this.materielCode,
+                        "Inqty": this.materSn,
+                        "batchNo": this.batchNo,
+                    },
+                    DelKeys: this.sns
+                }).then(res => {
+                    uni.hideLoading();
+                    this.Testcheck = false;
+                    if (res.status) {
+                        this.$refs.uToast.show({
+                            title: "鍏ュ簱鎴愬姛",
+                            type: "success"
+                        })
+                        this.Inqty = parseInt(res.message);
+                        this.order_Inqty = "宸插叆搴撴暟閲忥細" + this.Inqty;
+                        this.barcode = "";
+                        this.materSn = "";
+                        if (this.Inqty == this.orderqty) {
+                            uni.setStorageSync('isIn', true);
+                            this.handleInboundComplete();
+                        }
+                    } else {
+                        this.$refs.uToast.show({
+                            title: res.message,
+                            type: "error"
+                        })
+                    }
+                }).catch(err => {
+                    uni.hideLoading();
+                    this.$refs.uToast.show({
+                        title: "缃戠粶閿欒锛岃閲嶈瘯",
+                        type: "error"
+                    })
+                })
+            } else {
+                // 鐢ㄦ埛鐐瑰嚮鍙栨秷锛屼笉鍋氫换浣曟搷浣�
+            }
+        }
+    });
+},
+
 			handleInboundComplete() {
 				// 鏄剧ず瀹屾垚鎻愮ず
 				// uni.showModal({

--
Gitblit v1.9.3