备件盘点显示优化

This commit is contained in:
zhanghan11 2024-06-27 15:09:00 +08:00
parent 3acf727538
commit a9884f06b1
2 changed files with 7 additions and 5 deletions

View File

@ -344,8 +344,8 @@
</el-form-item>
</el-col>
</el-row>
<el-divider v-if="form.status == 1 || form.reason">待核实备件信息</el-divider>
<el-row v-if="isView && form.reason">
<el-divider v-if="inconformityInventoryList.length > 0">待核实备件信息</el-divider>
<el-row v-if="inconformityInventoryList.length > 0">
<el-col :span="24">
<el-table :data="inconformityInventoryList">
<el-table-column
@ -614,6 +614,7 @@ export default {
createTime: null,
verifyTime: null,
};
this.inconformityInventoryList = [];
this.resetForm("form");
},
/** 搜索按钮操作 */
@ -663,7 +664,7 @@ export default {
this.open = true;
this.title = "查看备件盘点单";
this.isView = true;
if (this.form.reason && this.form.status == 2) {
if (this.form.status > 0) {
//
getInconformityInventory(id).then((response) => {
this.inconformityInventoryList = response.data;

View File

@ -357,8 +357,8 @@
</el-form-item>
</el-col>
</el-row>
<el-divider v-if="form.status == 1 || form.reason">待核实备件信息</el-divider>
<el-row v-if="form.status == 1 || form.reason">
<el-divider v-if="inconformityInventoryList.length > 0">待核实备件信息</el-divider>
<el-row v-if="inconformityInventoryList.length > 0">
<el-col :span="24">
<el-table
:data="inconformityInventoryList"
@ -621,6 +621,7 @@ export default {
createTime: null,
verifyTime: null,
};
this.inconformityInventoryList = [];
this.resetForm("form");
},
/** 搜索按钮操作 */