基础信息设备bug修改

yangwl
A0010407 12 months ago
parent f4ce92f40a
commit 5816985501

@ -60,7 +60,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="设备类别" prop="equipmentStatus"> <el-form-item label="设备类别" prop="equipmentCategory">
<el-select <el-select
v-model="queryParams.equipmentCategory" v-model="queryParams.equipmentCategory"
placeholder="设备类别(组线/设备)" placeholder="设备类别(组线/设备)"
@ -698,11 +698,20 @@
<el-button v-if="this.repairRecordSteps > 0" @click="stepLast" <el-button v-if="this.repairRecordSteps > 0" @click="stepLast"
>上一步</el-button >上一步</el-button
> >
<el-button v-if="this.repairRecordSteps < 4" @click="stepNext" <el-button v-if="this.repairRecordSteps < 4 && this.form.equipmentCategory == '1' " @click="stepNext"
>下一步</el-button
>
<el-button v-if="this.repairRecordSteps < 3 && this.form.equipmentCategory == '0' " @click="stepNext"
>下一步</el-button >下一步</el-button
> >
<el-button <el-button
v-if="this.repairRecordSteps == 4" v-if=" this.repairRecordSteps == 4 && this.form.equipmentCategory == '1' "
type="primary"
@click="submitForm"
> </el-button
>
<el-button
v-if=" this.repairRecordSteps == 3 && this.form.equipmentCategory == '0' "
type="primary" type="primary"
@click="submitForm" @click="submitForm"
> </el-button > </el-button
@ -1097,6 +1106,7 @@ export default {
workshopSection: null, workshopSection: null,
equipmentLocation: null, equipmentLocation: null,
hourlyUnitPrice: null, hourlyUnitPrice: null,
equipmentCategory : null,
}, },
queryEquipmentHeadParams: { queryEquipmentHeadParams: {
pageNum: 1, pageNum: 1,
@ -1158,6 +1168,9 @@ export default {
status: [ status: [
{ required: true, message: "设备状态不能为空", trigger: "blur" }, { required: true, message: "设备状态不能为空", trigger: "blur" },
], ],
equipmentCategory: [
{ required: true, message: "设备类别不能为空", trigger: "blur" },
],
}, },
}; };
}, },
@ -1282,6 +1295,7 @@ export default {
equipmentLocation: null, equipmentLocation: null,
hourlyUnitPrice: null, hourlyUnitPrice: null,
equipmentHead: null, equipmentHead: null,
equipmentCategory : null,
}; };
this.resetForm("form"); this.resetForm("form");
}, },
@ -1478,6 +1492,10 @@ export default {
this.$message.error( this.$message.error(
"【设备基础信息】设备类型为空,请选择设备类型!" "【设备基础信息】设备类型为空,请选择设备类型!"
); );
} else if (this.form.equipmentCategory == null) {
this.$message.error(
"【设备基础信息】设备类别为空,请选择设备类别!"
);
} else { } else {
this.form.auxiliaryEquipmentRightData = this.form.auxiliaryEquipmentRightData =
this.auxiliaryEquipmentRightList; this.auxiliaryEquipmentRightList;

Loading…
Cancel
Save