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
4cdbe66d
Commit
4cdbe66d
authored
Aug 30, 2021
by
Facius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
https://git.banshouhui.com/lijundan/self-support
into test
parents
76700905
0ddeff05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
12 deletions
+24
-12
XhParts.vue
src/components/createCom/XhParts.vue
+15
-11
index.vue
src/pages/mine/address/index.vue
+6
-1
parts.vue
src/pages/order/parts.vue
+3
-0
No files found.
src/components/createCom/XhParts.vue
View file @
4cdbe66d
...
...
@@ -91,8 +91,8 @@ export default {
methods
:
{
getWorkOrderParts
()
{
// this.lists = JSON.parse(this.dataValue) || []
cons
ole
.
log
(
"this.dataValue"
,
this
.
dataValue
)
this
.
lists
=
this
.
dataValue
?
JSON
.
parse
(
this
.
dataValue
)
:
[]
cons
t
lists
=
this
.
dataValue
?
JSON
.
parse
(
this
.
dataValue
)
:
[]
this
.
lists
=
lists
.
filter
(
v
=>
v
.
name
)
},
partsChange
(
val
,
index
)
{
this
.
$set
(
this
.
lists
[
index
],
'quantity'
,
val
)
...
...
@@ -114,15 +114,19 @@ export default {
}
},
valChange
(
val
)
{
val
.
forEach
((
v
)
=>
{
const
index
=
this
.
lists
.
findIndex
((
k
)
=>
k
.
part_id
===
v
.
part_id
)
if
(
index
<
0
)
{
this
.
lists
.
push
(
v
)
}
else
{
this
.
$set
(
this
.
lists
,
index
,
v
)
}
})
this
.
valueChange
(
this
.
lists
)
if
(
val
)
{
val
.
forEach
((
v
)
=>
{
const
index
=
this
.
lists
.
findIndex
((
k
)
=>
k
.
part_id
===
v
.
part_id
)
if
(
index
<
0
)
{
this
.
lists
.
push
(
v
)
}
else
{
this
.
$set
(
this
.
lists
,
index
,
v
)
}
})
}
else
{
this
.
lists
=
[]
}
this
.
valueChange
(
JSON
.
stringify
(
val
?
this
.
lists
:
[{}]))
},
toParts
()
{
uni
.
navigateTo
({
...
...
src/pages/mine/address/index.vue
View file @
4cdbe66d
...
...
@@ -82,6 +82,11 @@ export default {
this
.
lists
.
forEach
(
v
=>
{
this
.
$set
(
v
,
'enable'
,
v
.
id
===
val
.
id
?
1
:
0
)
})
if
(
this
.
type
===
'parts'
)
{
let
pages
=
getCurrentPages
()
let
prevPage
=
pages
[
pages
.
length
-
2
]
prevPage
.
$vm
.
loadAddress
()
}
}
})
},
...
...
@@ -101,7 +106,7 @@ export default {
}
else
{
uni
.
showToast
({
icon
:
"none"
,
title
:
res
.
data
.
message
,
title
:
res
.
message
,
})
}
})
...
...
src/pages/order/parts.vue
View file @
4cdbe66d
...
...
@@ -119,6 +119,9 @@
this
.
$u
.
route
({
type
:
'back'
})
},
cancel
()
{
let
pages
=
getCurrentPages
();
let
prevPage
=
pages
[
pages
.
length
-
2
];
//上一个页面
prevPage
.
$vm
.
$refs
[
'fileChildParts'
][
0
].
valChange
()
this
.
$u
.
route
({
type
:
'back'
})
},
qnFile
(
src
)
{
...
...
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