From 7e92ffb424c20b0726e7bec2b6ce06780e9127dd Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期五, 13 六月 2025 17:04:51 +0800
Subject: [PATCH] #

---
 pages/inspect/bad.vue |   48 ++++++++++++++++++++++++------------------------
 1 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/pages/inspect/bad.vue b/pages/inspect/bad.vue
index e060cf0..5e3b9ea 100644
--- a/pages/inspect/bad.vue
+++ b/pages/inspect/bad.vue
@@ -135,30 +135,30 @@
 		mounted() {},
 		methods: {
 			async search() {
-				// const {
-				// 	code,
-				// 	data,
-				// 	msg
-				// } = await request('/asnOrderItem/trackCode/' + this.barcode, {}, "get")
-				// if (code === 200) {
-				// 	const find = this.list.find(el => el.id === data.id);
-				// 	!find && this.list.push(data)
-				// } else {
-				// 	uni.showToast({
-				// 		title: msg,
-				// 		icon: "none",
-				// 		position: 'top'
-				// 	})
-				// }
-				this.list = [{
-					id: 1,
-					maktx: '鎷夋潌绠�',
-					maktxCode: '312312312',
-					asnCode: 'asn123412',
-					splrBatch: '3123123',
-					stockUnit: '涓�',
-					receiptQty: null
-				}]
+				const {
+					code,
+					data,
+					msg
+				} = await request('/defect/' + this.barcode, {}, "post")
+				if (code === 200) {
+					const find = this.list.find(el => el.id === data.id);
+					!find && this.list.push(data)
+				} else {
+					uni.showToast({
+						title: msg,
+						icon: "none",
+						position: 'top'
+					})
+				}
+				// this.list = [{
+				// 	id: 1,
+				// 	maktx: '鎷夋潌绠�',
+				// 	maktxCode: '312312312',
+				// 	asnCode: 'asn123412',
+				// 	splrBatch: '3123123',
+				// 	stockUnit: '涓�',
+				// 	receiptQty: null
+				// }]
 			},
 			async confirm() {
 				// const {

--
Gitblit v1.9.1