skyouc
2025-05-05 14fb952f65fba369cb7f52a802c0b21fa8e6e3e8
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 {