Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
d8ac4e2d
Commit
d8ac4e2d
authored
Aug 13, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: 保存配件后完工
parent
2d3de128
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
complete.vue
src/pages/order/complete.vue
+12
-10
No files found.
src/pages/order/complete.vue
View file @
d8ac4e2d
...
...
@@ -250,7 +250,7 @@
:itemIndex=
"itemIndex"
:item=
"item"
:value=
"form[item.fieldsName] || ''"
:disabled=
"
exception || readOnly
"
:disabled=
"
exception || readOnly
"
@
value-change=
"fieldValueChange"
>
</xh-parts>
...
...
@@ -545,11 +545,13 @@ export default {
//console.log(this.form.name, 'form.name')
},
computed
:
{
exception
()
{
return
this
.
orderStatus
==
'86'
},
exception
()
{
return
this
.
orderStatus
==
'86'
},
readOnly
()
{
return
[
80
,
81
,
85
,
87
,
89
,
88
,
110
].
indexOf
(
Number
(
this
.
orderStatus
))
!=
-
1
return
(
[
80
,
81
,
85
,
87
,
89
,
88
,
110
].
indexOf
(
Number
(
this
.
orderStatus
))
!=
-
1
)
},
tabList
()
{
// 没有数据的时候tab要有占位数据,不然有页面有晃动
...
...
@@ -648,12 +650,12 @@ export default {
// this.showTab = this.list.length > 1
// 异常单处理
if
(
this
.
exception
){
if
(
this
.
exception
)
{
if
(
this
.
auditResults
.
length
===
0
)
{
this
.
$refs
.
uToast
.
show
({
title
:
'未找到不通过项'
,
type
:
'error'
,
back
:
true
back
:
true
,
})
}
this
.
checkCompleteError
(
list
)
...
...
@@ -973,12 +975,12 @@ export default {
this
.
$u
.
api
.
saveCompleteData
(
param
,
this
.
orderId
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
//完工项信息保存成功再次完工工单
if
(
!
this
.
exception
)
this
.
submitParts
()
if
(
this
.
inGuaranteePeriod
===
'Y'
)
{
this
.
$u
.
api
.
inOrderFinish
(
this
.
orderId
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
!
this
.
exception
)
{
this
.
submitParts
()
}
this
.
$refs
.
uToast
.
show
({
title
:
'提交成功'
,
type
:
'success'
,
...
...
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