Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety
Commits
da9a986e
Commit
da9a986e
authored
Aug 25, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单反馈接口调整、工单修改和反馈页面添加校验
parent
b47b0a6a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
TOrderFeedbackServiceImpl.java
...zehong/system/service/impl/TOrderFeedbackServiceImpl.java
+3
-1
index.vue
gassafety-web/src/views/workOrder/basicsInfo/index.vue
+7
-1
index.vue
gassafety-web/src/views/workOrder/feedback/index.vue
+5
-2
No files found.
gassafety-system/src/main/java/com/zehong/system/service/impl/TOrderFeedbackServiceImpl.java
View file @
da9a986e
...
...
@@ -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
);
...
...
gassafety-web/src/views/workOrder/basicsInfo/index.vue
View file @
da9a986e
...
...
@@ -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=
"1
0
0px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"1
2
0px"
>
<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"
}
],
}
};
},
...
...
gassafety-web/src/views/workOrder/feedback/index.vue
View file @
da9a986e
...
...
@@ -142,7 +142,7 @@
<el-form-item
label=
"工单编号"
prop=
"orderId"
>
<font>
{{form.orderId}}
</font>
</el-form-item>
<el-form-item
label=
"设备列表"
prop=
"device
Code
"
v-if=
"form.orderType == '1'"
>
<el-form-item
label=
"设备列表"
prop=
"device
Id
"
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
=
{
device
Code
:
null
,
device
Id
:
null
,
pictureUrl1
:
null
,
pictureUrl2
:
null
,
pictureUrl3
:
null
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment