rev:兼容vehicle_id;载具物料表支持载具历史记录:is_delete

This commit is contained in:
zhangzq
2024-07-19 09:49:19 +08:00
parent b508821c34
commit 7a5f0dfdc3
14 changed files with 67 additions and 39 deletions

View File

@@ -28,6 +28,23 @@
<el-form-item label="单据状态" prop="status">
<el-input v-model="form.status" disabled placeholder="生成" clearable style="width: 150px" />
</el-form-item>
<el-form-item show-overflow-tooltip prop="stor_code" label="仓库" width="160" align="center">
<template scope="scope">
<el-select
v-model="form.stor_code"
clearable
class="filter-item"
placeholder="所属仓库"
>
<el-option
v-for="item in tableEnum.st_ivt_bsrealstorattr"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</template>
</el-form-item>
<el-form-item label="源单类型" prop="source_form_type">
<el-input v-model="form.source_form_type" clearable style="width: 150px" />
</el-form-item>
@@ -86,7 +103,7 @@
<el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column show-overflow-tooltip prop="stor_code" label="仓库" width="160" align="center">
<template scope="scope">
<el-select
<el-select disabled
v-model="tableData[scope.$index].stor_code"
clearable
class="filter-item"
@@ -273,6 +290,14 @@ export default {
this.crud.notify('请至少选择一条明细', CRUD.NOTIFICATION_TYPE.INFO)
return false
}
for (let i = 0; i < this.tableData.length; i++) {
let item = this.tableData[i];
if (!item.stor_code || !item.vehicle_code || !item.pcsn || !item.qty) {
this.crud.notify('明细参数:仓库,载具,批次,数量不能为空', CRUD.NOTIFICATION_TYPE.INFO)
return false
}
}
this.form.item = this.tableData
},
deleteRow(index, rows) {
@@ -286,6 +311,7 @@ export default {
data.material_id = row.material_id
data.material_spec = row.material_spec
data.single_weight = row.single_weight
data.stor_code = this.form.stor_code
data.form_data = {}
this.dtlCols.forEach(a=>{
let item = ''
@@ -323,7 +349,7 @@ export default {
data.material_code = row.material_code
data.material_id = row.material_id
data.material_spec = row.material_spec
data.stor_code = row.stor_code
data.stor_code = this.form.stor_code
data.source_form_type = row.form_type
data.source_form_id = row.id
data.unit_id = row.unit_id
@@ -342,9 +368,17 @@ export default {
})
},
insertEvent(row) {
if (!this.form.stor_code){
this.crud.notify('请先选择仓库!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
this.materShow = true
},
insertForm(row) {
if (!this.form.stor_code){
this.crud.notify('请先选择仓库!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
this.formShow = true
},
queryMater(index, row) {