需求
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user