备件申领页面优化

master
A0010407 12 months ago
parent 5278367594
commit 05b288b81c

@ -6,7 +6,7 @@
:modal="false"
width="1100px"
center
:before-close="cancel"
:before-close = "cancel"
>
<el-form
:model="queryParams"
@ -247,6 +247,8 @@ export default {
},
/** 查询备品备件台账管理列表 */
getList() {
this.sparePartsLedgerList = null;
this.total = 0;
this.loading = true;
listSparePartsLedger(this.queryParams).then((response) => {
this.sparePartsLedgerList = response.rows;

@ -306,15 +306,15 @@
<el-form-item label="备品备件名称" prop="spareName">
<el-input
v-model="form.spareName"
placeholder="请选择备品备件名称"
style="width: 280px"
disabled
/>
</el-form-item>
<el-form-item label="规格型号" prop="spareModel">
<el-input
v-model="form.spareModel"
placeholder="请选择规格型号"
style="width: 280px"
disabled
/>
</el-form-item>
<el-form-item label="库存总数量" prop="amount">
@ -486,9 +486,6 @@ export default {
spareName: [
{ required: true, message: "备品备件名称不能为空", trigger: "blur" },
],
spareModel: [
{ required: true, message: "规格型号不能为空", trigger: "blur" },
],
spareQuantity: [
{ required: true, message: "数量不能为空", trigger: "blur" },
],
@ -517,6 +514,7 @@ export default {
this.form.amount = obj[0].amount;
this.form.storageAmount = obj[0].storageAmount;
this.form.availableQuantity = obj[0].amount - obj[0].storageAmount;
this.form.spareQuantity = obj[0].spareQuantity;
},
//
handleSelectEquipment() {

@ -84,18 +84,6 @@
v-if="columns[1].visible"
:show-overflow-tooltip="true"
/>
<el-table-column
label="部门编码"
align="center"
prop="postCode"
v-if="columns[2].visible"
></el-table-column>
<el-table-column
label="部门名称"
align="center"
prop="postName"
v-if="columns[3].visible"
></el-table-column>
</el-table>
<pagination
@ -149,8 +137,6 @@ export default {
columns: [
{ key: 0, label: `人员编码`, visible: true },
{ key: 1, label: `人员名称`, visible: true },
{ key: 2, label: `部门编码`, visible: true },
{ key: 3, label: `部门名称`, visible: true },
],
};
},

@ -55,13 +55,6 @@
>
</el-form-item>
<el-row :gutter="10" class="mb8">
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="sparePartsLedgerList"
@ -252,6 +245,8 @@ export default {
},
/** 查询备品备件台账管理列表 */
getList() {
this.sparePartsLedgerList = null;
this.total = 0;
this.loading = true;
listSparePartsLedger(this.queryParams).then((response) => {
this.sparePartsLedgerList = response.rows;
@ -340,22 +335,12 @@ export default {
message: "请勿选择多种备件!",
type: "warning",
});
// const number =
// this.$refs.multipleTable.selection.amount -
// this.$refs.multipleTable.selection.storageAmount;
// console.log("number", number);
// if (this.$refs.multipleTable.selection.spareQuantity > number) {
// this.$message({
// message: "",
// type: "warning",
// });
// }
} else {
this.$emit("onSelected", this.$refs.multipleTable.selection);
this.showFlag = false;
this.getList();
}
},
},
};
</script>
Loading…
Cancel
Save