| | |
| | | container: '',
|
| | | megreQty: '',
|
| | | list: [],
|
| | | range: [], |
| | | range: [],
|
| | | batch: '',
|
| | | repeatClick: false,
|
| | | isconfirm: false
|
| | | isconfirm: false,
|
| | | batch:''
|
| | | }
|
| | | },
|
| | | computed: {
|
| | |
| | | mounted() {},
|
| | | methods: {
|
| | | async search() {
|
| | | const find = this.list.find(el => el.trackCode === this.barcode);
|
| | | if (this.barcode == undefined || this.barcode == '') { |
| | | uni.showToast({ |
| | | icon: "none", |
| | | title: '物料标签不能为空!!' |
| | | }) |
| | | return |
| | | } |
| | | const find = this.list.find(el => el.trackCode === this.barcode); |
| | | find ? this.scrollTo() : this.getDet();
|
| | |
|
| | | },
|
| | | async getDet() {
|
| | | const {
|
| | | code,
|
| | | data,
|
| | | msg
|
| | | } = await request('/asnOrderItem/trackCode', { |
| | | code: this.barcode, |
| | | batch: this.batch |
| | | } = await request('/asnOrderItem/trackCode', {
|
| | | code: this.barcode,
|
| | | batch: this.batch
|
| | | }, "post")
|
| | | if (code === 200) {
|
| | | data && this.list.push(data);
|
| | |
| | | })
|
| | | }
|
| | | },
|
| | | async getList() {
|
| | | async getList() { |
| | | if (this.container == undefined || this.container == '') { |
| | | uni.showToast({ |
| | | icon: "none", |
| | | title: '容器号不能为空!!' |
| | | }) |
| | | return |
| | | }
|
| | | const {
|
| | | code,
|
| | | data,
|
| | |
| | | msg
|
| | | } = await request('/waitPakin/merge', {
|
| | | items: newArr,
|
| | | barcode: this.container, |
| | | barcode: this.container,
|
| | | batch: this.batch,
|
| | | })
|
| | | if (code === 200) {
|