This commit is contained in:
蔡玲
2024-09-23 14:03:33 +08:00
parent 67f5a69dc7
commit 5ddfe64d93
3 changed files with 13 additions and 10 deletions

View File

@@ -275,7 +275,15 @@ export default {
this.show = true
this.emptyObj.device_code = e.name
} else if (type === 'SCANER') {
crudProduceScreen.fabOrders({ device_code: this.screenData.in_code }).then(res => {
const arr = []
if (JSON.stringify(this.screenData) !== '{}') {
this.screenData.region_points.map(el => {
if (el.type === '0') {
arr.push(el.device_code)
}
})
}
crudProduceScreen.fabOrders({ device_code: arr }).then(res => {
this.options2 = [...res]
})
crudProduceScreen.getPointVehicle({ device_code: this.popData.device_code }).then(res => {
@@ -284,7 +292,9 @@ export default {
this.popList.push({ order_code: '', material_qty: '' })
this.show = true
} else if (type === 'BACK') {
crudProduceScreen.fabOrders({ device_code: this.popData.device_code }).then(res => {
const arr = []
arr.push(this.popData.device_code)
crudProduceScreen.fabOrders({ device_code: arr }).then(res => {
this.popList = [...res]
this.popList.map(el => {
this.$set(el, 'material_qty', 0)