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
d0975713
Commit
d0975713
authored
Jul 12, 2021
by
高铭波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(order): 修复安装方式默认值问题
parent
129ea8b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
complete.vue
src/pages/order/complete.vue
+13
-2
No files found.
src/pages/order/complete.vue
View file @
d0975713
...
...
@@ -575,8 +575,7 @@ export default {
},
initData
(
res
)
{
this
.
form
=
res
.
data
.
value
||
{};
this
.
loadOrderDetail
();
this
.
initFormData
();
const
list
=
res
.
data
.
config
.
sort
((
a
,
b
)
=>
a
.
order
-
b
.
order
);
list
.
forEach
((
item
,
index
)
=>
{
if
(
this
.
maintainStep
===
item
.
panelFieldsName
)
this
.
tabIndex
=
index
;
...
...
@@ -612,6 +611,12 @@ export default {
if
(
this
.
auditResultsId
)
this
.
checkCompleteError
();
uni
.
hideLoading
();
},
initFormData
()
{
this
.
loadOrderDetail
();
if
(
!
this
.
form
.
hasOwnProperty
(
"installationMethodType"
)
||
this
.
$u
.
test
.
isEmpty
(
this
.
form
[
'installationMethodType'
]))
{
this
.
$set
(
this
.
form
,
"installationMethodType"
,
this
.
form
.
installType
);
}
},
loadOrderDetail
()
{
if
(
!
this
.
$u
.
test
.
isEmpty
(
this
.
form
)
&&
this
.
form
.
hasOwnProperty
(
"installComfirmTime"
)
&&
this
.
$u
.
test
.
isEmpty
(
this
.
form
.
installComfirmTime
))
{
...
...
@@ -653,10 +658,16 @@ export default {
handleSaveData
()
{
let
param
=
{};
const
name
=
this
.
list
[
this
.
tabIndex
].
panelFieldsName
;
this
.
list
.
forEach
((
panel
)
=>
{
param
[
panel
.
panelFieldsName
]
=
[];
panel
.
items
.
forEach
((
group
)
=>
{
group
.
items
.
forEach
((
ele
)
=>
{
if
(
name
===
"partnerInspectItem"
)
{
if
(
!
this
.
form
?.
installationMethodType
)
{
this
.
$set
(
this
.
form
,
"installationMethodType"
,
this
.
form
.
installType
);
}
}
if
(
this
.
form
[
ele
.
fieldsName
])
{
param
[
panel
.
panelFieldsName
].
push
({
fieldsName
:
ele
.
fieldsName
,
...
...
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