| | |
| | | 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 {
|