载具出入库优化、大屏添加配方、批次字段
This commit is contained in:
@@ -127,9 +127,16 @@ export function forceFinish(data) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
export function queryIvtByPscn(data) {
|
||||
return request({
|
||||
url: 'api/produceTask/queryIvtByPscn',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export default {
|
||||
add, edit, del, getDevice, getMaterial,
|
||||
getProduceStatus, importExcel, queryTask, querAllTask,
|
||||
callMaterial, finish, queryIdDevice, popSeek, queryOne, saveOrder, forceFinish, materialBack
|
||||
callMaterial, finish, queryIdDevice, popSeek, queryOne, saveOrder, forceFinish, materialBack, queryIvtByPscn
|
||||
}
|
||||
|
||||
@@ -146,6 +146,9 @@
|
||||
@change="handleChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="库存数" prop="ivt_qty">
|
||||
<el-input v-model="form.ivt_qty" style="width: 370px;" readonly />
|
||||
</el-form-item>
|
||||
<el-form-item label="加工托数" prop="produce_qty">
|
||||
<el-input-number
|
||||
v-model="form.produce_qty"
|
||||
@@ -337,6 +340,7 @@ const defaultForm = {
|
||||
produce_code: null,
|
||||
pcsn: null,
|
||||
formula: null,
|
||||
ivt_qty: null,
|
||||
produce_status: null,
|
||||
device_code: null,
|
||||
produce_qty: null,
|
||||
@@ -450,6 +454,13 @@ export default {
|
||||
handleChange(value) {
|
||||
this.form.formula = value[0]
|
||||
this.form.pcsn = value[1]
|
||||
const data = {
|
||||
formula: value[0],
|
||||
pcsn: value[1]
|
||||
}
|
||||
crudProduceTask.queryIvtByPscn(data).then(res => {
|
||||
this.form.ivt_qty = res
|
||||
})
|
||||
},
|
||||
forceFinish(row) {
|
||||
crudProduceTask.forceFinish(row).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user