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