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
52cf72f8
Commit
52cf72f8
authored
May 10, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常单定位
parent
9bdc0864
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
6 deletions
+25
-6
order.vue
src/pages/index/order.vue
+3
-2
complete.vue
src/pages/order/complete.vue
+22
-4
No files found.
src/pages/index/order.vue
View file @
52cf72f8
...
@@ -335,6 +335,7 @@
...
@@ -335,6 +335,7 @@
+
"&categoryId="
+
item
.
categoryId
+
"&categoryId="
+
item
.
categoryId
+
"&orderServiceType="
+
item
.
orderServiceType
+
"&orderServiceType="
+
item
.
orderServiceType
+
"&inGuaranteePeriod="
+
item
.
inGuaranteePeriod
+
"&inGuaranteePeriod="
+
item
.
inGuaranteePeriod
+
"&auditResultsId="
+
Object
.
keys
(
item
.
auditResults
)[
0
]
})
})
},
},
handleAction
(
item
)
{
handleAction
(
item
)
{
...
...
src/pages/order/complete.vue
View file @
52cf72f8
...
@@ -122,6 +122,7 @@
...
@@ -122,6 +122,7 @@
categoryId
:
0
,
categoryId
:
0
,
orderServiceType
:
''
,
orderServiceType
:
''
,
inGuaranteePeriod
:
''
,
inGuaranteePeriod
:
''
,
auditResultsId
:
''
,
list
:
[],
list
:
[],
tabIndex
:
0
,
tabIndex
:
0
,
scrollTop
:
0
,
//tab标题的滚动条位置
scrollTop
:
0
,
//tab标题的滚动条位置
...
@@ -195,6 +196,7 @@
...
@@ -195,6 +196,7 @@
this
.
categoryId
=
option
.
categoryId
this
.
categoryId
=
option
.
categoryId
this
.
orderServiceType
=
decodeURIComponent
(
option
.
orderServiceType
)
this
.
orderServiceType
=
decodeURIComponent
(
option
.
orderServiceType
)
this
.
inGuaranteePeriod
=
option
.
inGuaranteePeriod
this
.
inGuaranteePeriod
=
option
.
inGuaranteePeriod
this
.
auditResultsId
=
option
.
auditResultsId
}
else
{
}
else
{
this
.
orderId
=
11880091
this
.
orderId
=
11880091
this
.
categoryId
=
1100000214
this
.
categoryId
=
1100000214
...
@@ -250,12 +252,29 @@
...
@@ -250,12 +252,29 @@
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
self
.
list
=
res
.
data
.
config
self
.
list
=
res
.
data
.
config
self
.
form
=
res
.
data
.
value
||
{}
self
.
form
=
res
.
data
.
value
||
{}
// 异常单处理
if
(
self
.
auditResultsId
)
self
.
checkCompleteError
()
}
else
{
}
else
{
console
.
log
(
res
.
message
,
"获取订单完工项目失败!"
);
console
.
log
(
res
.
message
,
"获取订单完工项目失败!"
);
}
}
});
});
}
}
},
},
checkCompleteError
()
{
// 异常单定位错误项
let
self
=
this
self
.
list
.
forEach
((
panel
,
panelIndex
)
=>
{
panel
.
items
.
forEach
((
group
,
groupIndex
)
=>
{
group
.
items
.
forEach
((
ele
,
eleIndex
)
=>
{
if
(
ele
.
fieldsName
===
self
.
auditResultsId
)
{
self
.
waitHandlerPanelIndex
=
panelIndex
self
.
waitHandlerGroupIndex
=
groupIndex
self
.
waitHandlerEleIndex
=
eleIndex
}
})
})
})
this
.
locationCompleteItem
(
self
.
waitHandlerPanelIndex
,
self
.
waitHandlerGroupIndex
,
self
.
waitHandlerEleIndex
)
},
saveComplete
(){
// 保存完工信息
saveComplete
(){
// 保存完工信息
let
self
=
this
let
self
=
this
let
param
=
{}
let
param
=
{}
...
@@ -307,7 +326,6 @@
...
@@ -307,7 +326,6 @@
}
else
if
(
value
&&
Array
.
isArray
(
value
)
&&
value
.
length
>
0
){
}
else
if
(
value
&&
Array
.
isArray
(
value
)
&&
value
.
length
>
0
){
panelResult
.
submitted
++
panelResult
.
submitted
++
}
else
if
(
first
){
// 记录第一个 为空 并且需要必填的项 用于定位
}
else
if
(
first
){
// 记录第一个 为空 并且需要必填的项 用于定位
console
.
log
(
ele
)
first
=
false
first
=
false
self
.
waitHandlerPanelIndex
=
panelIndex
self
.
waitHandlerPanelIndex
=
panelIndex
self
.
waitHandlerGroupIndex
=
groupIndex
self
.
waitHandlerGroupIndex
=
groupIndex
...
...
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