2024-1-18-1 设备模块-维修选择项改为可选可填-临时任务

master
A0010407 10 months ago
parent f50e3220c8
commit 3297b42385

@ -970,6 +970,7 @@
<el-select <el-select
v-model="form.orderDesc" v-model="form.orderDesc"
@change="$forceUpdate()" @change="$forceUpdate()"
@blur="selectBlur"
clearable clearable
filterable filterable
style="width: 200px" style="width: 200px"
@ -1700,7 +1701,11 @@ export default {
`faultReport_${new Date().getTime()}.xlsx` `faultReport_${new Date().getTime()}.xlsx`
); );
}, },
selectBlur(even) {
if (even.target.value) {
this.form.orderDesc = even.target.value;
}
},
objectSpanMethod({ row, column, rowIndex, columnIndex }) { objectSpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) { if (columnIndex === 0) {
// //

@ -270,7 +270,7 @@
prop="orderCode" prop="orderCode"
width="200" width="200"
/> />
<el-table-column label="设备编码" align="center" prop="equipmentCode" /> <el-table-column label="设备编码" align="center" prop="equipmentCode" width="150"/>
<el-table-column <el-table-column
label="故障描述" label="故障描述"
align="center" align="center"
@ -1105,6 +1105,7 @@
v-model="form.workReason" v-model="form.workReason"
placeholder="请选择故障原因" placeholder="请选择故障原因"
@change="$forceUpdate()" @change="$forceUpdate()"
@blur="selectBlurWorkReason"
clearable clearable
filterable filterable
style="width: 250px" style="width: 250px"
@ -1125,6 +1126,7 @@
v-model="form.repairMeasures" v-model="form.repairMeasures"
placeholder="请选择处理措施" placeholder="请选择处理措施"
@change="$forceUpdate()" @change="$forceUpdate()"
@blur="selectRepairMeasures"
clearable clearable
filterable filterable
style="width: 250px" style="width: 250px"
@ -1803,6 +1805,16 @@ export default {
this.workFaultDescOption = response.rows; this.workFaultDescOption = response.rows;
}); });
}, },
selectBlurWorkReason(even) {
if (even.target.value) {
this.form.workReason = even.target.value;
}
},
selectRepairMeasures(even) {
if (even.target.value) {
this.form.repairMeasures = even.target.value;
}
},
/** 查询维修原因列表 */ /** 查询维修原因列表 */
getWorkReason() { getWorkReason() {
this.loading = true; this.loading = true;

Loading…
Cancel
Save