修改需求

This commit is contained in:
蔡玲
2024-09-10 10:07:19 +08:00
parent 67af42d57e
commit e61447458f
2 changed files with 11 additions and 11 deletions

View File

@@ -110,7 +110,7 @@
<el-row class="filter-wraper" type="flex" justify="space-between">
<el-col :span="2" class="p-label">目的地</el-col>
<el-col :span="8" class="select-wraper">
<el-select v-model="value1" placeholder="请选择" @change="selectChange">
<el-select v-model="value1" placeholder="请选择">
<el-option
v-for="item in options1"
:key="item.value"
@@ -281,6 +281,7 @@ export default {
crudProduceScreen.getPointVehicle({ device_code: this.popData.device_code }).then(res => {
this.vcode = res
})
this.popList.push({ order_code: '', material_qty: '' })
this.show = true
} else if (type === 'BACK') {
crudProduceScreen.fabOrders({ device_code: this.popData.device_code }).then(res => {
@@ -321,7 +322,7 @@ 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 => {
crudProduceScreen.sendMater({ device_code: this.screenData.in_code, mater: this.popList, point_code: this.value1 }).then(res => {
this.disabled = false
this.$message(res.msg)
}).catch(() => {
@@ -337,15 +338,7 @@ export default {
this.show = false
},
addRow() {
if (this.value1 === '1') {
this.popList.push({ order_code: '', material_qty: '' })
}
},
selectChange(e) {
this.popList = []
if (e === '1') {
this.popList.push({ order_code: '', material_qty: '' })
}
this.popList.push({ order_code: '', material_qty: '' })
}
}
}

View File

@@ -92,6 +92,13 @@ export default {
}
crudProduceScreen.deviceInLogin({ device_code: this.value }).then(res => {
res.username = this.username
let in_code = ''
res.region_points.map(el => {
if (el.type === '0') {
in_code = el.device_code
}
})
res.in_code = in_code
this.$store.dispatch('addScreenData', JSON.stringify(res))
this.show = false
this.disabled = false