From 1f931d7f701ff09cd3a11b3804fce0fca8eb8622 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期四, 08 五月 2025 14:22:09 +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