Commit da9a986e authored by 王晓倩's avatar 王晓倩

工单反馈接口调整、工单修改和反馈页面添加校验

parent b47b0a6a
......@@ -71,7 +71,6 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
}
tOrderFeedback.setFeedbackTime(DateUtils.getNowDate());
Integer deviceId = tOrderFeedback.getDeviceId();
String dealStatus = tOrderFeedback.getDealStatus();
String isHiddenDanger = tOrderFeedback.getIsHiddenDanger();
......@@ -80,6 +79,7 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
String orderType = order.getOrderType();
if("1".equals(orderType)){
Integer deviceId = tOrderFeedback.getDeviceId();
TInspectionData data = tInspectionDataMapper.selectTInspectionDataByDeviceId(deviceId);
data.setDealStatus(dealStatus);
data.setIsHiddenDanger(isHiddenDanger);
......@@ -103,6 +103,7 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
trouble.setDealStatus(dealStatus);
trouble.setUpdateTime(DateUtils.getNowDate());
tOrderFeedback.setDeviceId(trouble.getDeviceId());
tOrderFeedback.setDeviceType(trouble.getDeviceType());
tHiddenTroubleMapper.updateTHiddenTrouble(trouble);
......@@ -112,6 +113,7 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
alarm.setDealStatus(dealStatus);
alarm.setUpdateTime(DateUtils.getNowDate());
tOrderFeedback.setDeviceId(alarm.getDeviceId());
tOrderFeedback.setDeviceType(alarm.getDeviceType());
tDeviceAlarmMapper.updateTDeviceAlarm(alarm);
......
......@@ -133,7 +133,7 @@
<!-- 归档或修改工单基础信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<div v-if="this.title == '工单信息修改'">
<el-form-item label="工单名称" prop="orderName">
<el-input v-model="form.orderName" placeholder="请输入工单名称" />
......@@ -232,6 +232,12 @@ export default {
form: {},
// 表单校验
rules: {
orderName: [
{ required: true, message: "请输入工单名称", trigger: "blur" }
],
appointInspector: [
{ required: true, message: "请选择执行人员", trigger: "blur" }
],
}
};
},
......
......@@ -142,7 +142,7 @@
<el-form-item label="工单编号" prop="orderId">
<font>{{form.orderId}}</font>
</el-form-item>
<el-form-item label="设备列表" prop="deviceCode" v-if="form.orderType == '1'">
<el-form-item label="设备列表" prop="deviceId" v-if="form.orderType == '1'">
<el-select v-model="form.deviceId" placeholder="请选择设备" clearable size="small" filterable >
<el-option
v-for="device in form.deviceInfoList"
......@@ -248,6 +248,9 @@
form: {},
// 表单校验
rules: {
deviceId: [
{ required: true, message: "请选择设备", trigger: "blur" }
],
}
};
},
......@@ -300,7 +303,7 @@
// 表单重置
reset() {
this.form = {
deviceCode: null,
deviceId: null,
pictureUrl1: null,
pictureUrl2: null,
pictureUrl3: null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment