|
|
@ -335,7 +335,21 @@ export default { |
|
|
|
this.disabled = false |
|
|
|
}) |
|
|
|
} else if (this.type === 'SCANER') { |
|
|
|
crudProduceScreen.sendMater({ device_code: this.popData.device_code, mater: this.popList, point_code: this.value1 }).then(res => { |
|
|
|
if (!this.vcode) { |
|
|
|
this.$message('请填写载具号') |
|
|
|
return |
|
|
|
} |
|
|
|
if (!this.value1) { |
|
|
|
this.$message('请选择目的地') |
|
|
|
return |
|
|
|
} |
|
|
|
const arr = [] |
|
|
|
this.popList.map(el => { |
|
|
|
if (el.order_code !== '' && el.material_qty !== '') { |
|
|
|
arr.push(el) |
|
|
|
} |
|
|
|
}) |
|
|
|
crudProduceScreen.sendMater({ device_code: this.popData.device_code, mater: arr, point_code: this.value1, vehicle_code: this.vcode }).then(res => { |
|
|
|
this.disabled = false |
|
|
|
this.$message(res.msg) |
|
|
|
}).catch(() => { |
|
|
|