Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
oms-tiger-shield
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3fc431e1
authored
Oct 15, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
根据状态置灰可编辑区
1 parent
6e83405c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
src/views/business/htDetailModal.vue
src/views/business/htDetailModal.vue
View file @
3fc431e
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
size=
"small"
>
size=
"small"
>
<el-form-item
label=
"请选择海通工单检修状态:"
<el-form-item
label=
"请选择海通工单检修状态:"
prop=
"status"
>
prop=
"status"
>
<el-radio-group
v-model=
"paForm.status"
>
<el-radio-group
v-model=
"paForm.status"
:disabled=
"isDisabled"
>
<el-radio
label=
"1"
>
检修中
</el-radio>
<el-radio
label=
"1"
>
检修中
</el-radio>
<el-radio
label=
"3"
>
检修失败
</el-radio>
<el-radio
label=
"3"
>
检修失败
</el-radio>
</el-radio-group>
</el-radio-group>
...
@@ -33,7 +34,8 @@
...
@@ -33,7 +34,8 @@
<el-select
v-model=
"paForm.cause"
<el-select
v-model=
"paForm.cause"
placeholder=
"请选择"
placeholder=
"请选择"
size=
"small"
size=
"small"
style=
"width: 140px"
>
style=
"width: 140px"
:disabled=
"isDisabled"
>
<el-option
v-for=
"item in reasonType"
<el-option
v-for=
"item in reasonType"
:key=
"item.confId"
:key=
"item.confId"
:label=
"item.confName"
:label=
"item.confName"
...
@@ -48,9 +50,11 @@
...
@@ -48,9 +50,11 @@
resize=
"none"
resize=
"none"
maxlength=
"200"
maxlength=
"200"
show-word-limit
show-word-limit
placeholder=
"请输入检修备注"
/>
placeholder=
"请输入检修备注"
:disabled=
"isDisabled"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
>
<el-form-item
v-if=
"!isDisabled"
label=
""
>
<el-button
type=
"primary"
<el-button
type=
"primary"
:loading=
"ploading"
:loading=
"ploading"
@
click=
"saveFeed()"
>
保存
</el-button>
@
click=
"saveFeed()"
>
保存
</el-button>
...
@@ -162,7 +166,8 @@ export default {
...
@@ -162,7 +166,8 @@ export default {
freshLoading
:
false
,
freshLoading
:
false
,
htLogList
:
[],
htLogList
:
[],
orderType
:
''
,
orderType
:
''
,
devicesMsg
:
[]
devicesMsg
:
[],
isDisabled
:
false
}
}
},
},
computed
:
{
computed
:
{
...
@@ -184,6 +189,12 @@ export default {
...
@@ -184,6 +189,12 @@ export default {
const
form
=
this
.
paForm
const
form
=
this
.
paForm
const
data
=
res
.
data
const
data
=
res
.
data
form
.
id
=
data
.
id
form
.
id
=
data
.
id
if
(
data
.
status
==
2
||
data
.
status
==
4
)
{
// 检修成功或已取消状态的工单不允许编辑
this
.
isDisabled
=
true
}
else
{
this
.
isDisabled
=
false
}
console
.
log
(
'this.isDisabled'
,
this
.
isDisabled
)
form
.
status
=
data
.
status
+
''
form
.
status
=
data
.
status
+
''
form
.
cause
=
data
.
cause
form
.
cause
=
data
.
cause
form
.
inspectionRemark
=
data
.
inspectionRemark
form
.
inspectionRemark
=
data
.
inspectionRemark
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment