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
65d8b0e4
Commit
65d8b0e4
authored
Jun 24, 2021
by
高铭波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(parts):地址逻辑优化
parent
b069e46a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
application.vue
src/pages/parts/application.vue
+7
-8
No files found.
src/pages/parts/application.vue
View file @
65d8b0e4
...
@@ -51,7 +51,6 @@
...
@@ -51,7 +51,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Utils
from
'@/utils/callUtils.js'
import
SelectParts
from
'@/components/select-parts/adjust.vue'
import
SelectParts
from
'@/components/select-parts/adjust.vue'
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -96,11 +95,6 @@ export default {
...
@@ -96,11 +95,6 @@ export default {
this
.
orderId
=
e
&&
Number
(
e
.
orderId
)
||
0
this
.
orderId
=
e
&&
Number
(
e
.
orderId
)
||
0
this
.
initData
()
this
.
initData
()
},
},
mounted
()
{
Utils
.
$on
(
'update-site'
,(
site
)
=>
{
this
.
updateSite
(
site
);
})
},
methods
:
{
methods
:
{
initData
()
{
initData
()
{
this
.
loadMineAddress
()
this
.
loadMineAddress
()
...
@@ -144,10 +138,11 @@ export default {
...
@@ -144,10 +138,11 @@ export default {
this
.
order
.
contactCityText
,
this
.
order
.
contactCityText
,
this
.
order
.
contactCommunityText
,
this
.
order
.
contactCommunityText
,
]
]
let
address
=
region
.
join
(
""
)
+
(
this
.
order
.
contactStreetText
||
''
)
+
this
.
order
.
contactAddress
this
.
customer
=
{
this
.
customer
=
{
name
:
this
.
order
.
contactName
,
name
:
this
.
order
.
contactName
,
mobile
:
this
.
order
.
contactPhone
,
mobile
:
this
.
order
.
contactPhone
,
address
:
region
.
join
(
""
)
+
this
.
order
.
contactStreetText
+
this
.
order
.
contactA
ddress
,
address
:
a
ddress
,
region
:
region
,
region
:
region
,
code
:
[
code
:
[
this
.
order
.
contactProvince
,
this
.
order
.
contactProvince
,
...
@@ -192,7 +187,11 @@ export default {
...
@@ -192,7 +187,11 @@ export default {
})
})
},
},
updateSite
(
site
)
{
updateSite
(
site
)
{
console
.
log
(
"updateSite"
,
site
)
if
(
this
.
curType
)
{
this
.
customer
=
site
}
else
{
this
.
mine
=
site
}
},
},
addParts
()
{
addParts
()
{
this
.
$u
.
route
({
this
.
$u
.
route
({
...
...
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