| | |
| | | }, |
| | | snInput() { |
| | | this.$nextTick(() => { |
| | | if (this.warehouseId == 6 || this.warehouseId == 2) { |
| | | if (this.warehouseId == 6 || this.warehouseId == 2 || this.warehouseId == 3) { |
| | | if (this.sns.length > 0) { |
| | | this.sns = []; |
| | | } |
| | | } |
| | | if (this.materSn != "") { |
| | | this.focus = false; |
| | | var matSn = this.materSn; |
| | | setTimeout(() => { |
| | | if(this.materSn.split(',').length != 6){ |
| | | this.materSn = ""; |
| | | }, 10); |
| | | return; |
| | | } |
| | | var matSn = this.materSn; |
| | | //setTimeout(() => { |
| | | this.materSn = ""; |
| | | //}, 10); |
| | | this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + matSn, {}).then((res) => { |
| | | this.Testcheck = false; |
| | | if (res.status) { |
| | | this.sns.push(res.data.serialNumber); |
| | | if (this.warehouseId == 6 || this.warehouseId == 2) { |
| | | if (this.warehouseId == 6 || this.warehouseId == 2 || this.warehouseId == 3) { |
| | | if (this.matInfos.length > 0) { |
| | | this.matInfos = []; |
| | | } |