Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6e22f3c2
authored
Apr 14, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
嘀加上架-新建商户,code值
1 parent
0080e474
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
src/components/province-city/index.vue
src/views/goods/shelfManage/components/editCon/AddMerchant.vue
src/components/province-city/index.vue
View file @
6e22f3c
...
@@ -116,7 +116,6 @@ export default {
...
@@ -116,7 +116,6 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
baseConfig
,
'baseConfig---'
)
if
(
this
.
provinceView
)
{
if
(
this
.
provinceView
)
{
this
.
provinceList
()
this
.
provinceList
()
}
}
...
@@ -148,7 +147,6 @@ export default {
...
@@ -148,7 +147,6 @@ export default {
**/
**/
// 获取省市信息
// 获取省市信息
provinceList
()
{
provinceList
()
{
console
.
log
(
'??????????????000000000000000'
)
var
params
=
{
var
params
=
{
keyword
:
'中国'
,
keyword
:
'中国'
,
extensions_code
:
1
extensions_code
:
1
...
@@ -300,13 +298,13 @@ export default {
...
@@ -300,13 +298,13 @@ export default {
const
municipalities
=
[
'北京市'
,
'天津市'
,
'上海市'
,
'重庆市'
]
const
municipalities
=
[
'北京市'
,
'天津市'
,
'上海市'
,
'重庆市'
]
var
municipality
=
municipalities
.
find
(
item
=>
item
==
provincename
)
var
municipality
=
municipalities
.
find
(
item
=>
item
==
provincename
)
if
(
municipality
)
{
if
(
municipality
)
{
cityname
=
cityname
.
slice
(
0
,
2
)
+
'
城区
'
cityname
=
cityname
.
slice
(
0
,
2
)
+
'
市
'
if
(
municipality
===
'重庆市'
)
{
//
if (municipality === '重庆市') {
provincecode
=
provincecode
.
slice
(
0
,
4
)
//
provincecode = provincecode.slice(0, 4)
provincecode
==
5001
?
(
cityname
=
cityname
.
slice
(
0
,
2
)
+
'城区'
)
:
(
cityname
=
cityname
.
slice
(
0
,
2
)
+
'郊县'
)
//
provincecode == 5001 ? (cityname = cityname.slice(0, 2) + '城区') : (cityname = cityname.slice(0, 2) + '郊县')
// 重新赋值城市名
//
// 重新赋值城市名
this
.
provinceForm
.
cityName
=
cityname
//
this.provinceForm.cityName = cityname
}
//
}
}
}
// 判断省市是否匹配
// 判断省市是否匹配
// 如果只展示省市
// 如果只展示省市
...
...
src/views/goods/shelfManage/components/editCon/AddMerchant.vue
View file @
6e22f3c
...
@@ -454,7 +454,7 @@ export default {
...
@@ -454,7 +454,7 @@ export default {
// 强制更新 merchantAddress
// 强制更新 merchantAddress
this
.
editData
.
cityName
=
''
this
.
editData
.
cityName
=
''
this
.
editData
.
provinceName
=
val
.
name
this
.
editData
.
provinceName
=
val
.
name
this
.
editData
.
provinceCode
=
val
.
ad
code
this
.
editData
.
provinceCode
=
val
.
code
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'merchantAddress'
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'merchantAddress'
)
},
},
// 获取市
// 获取市
...
@@ -462,7 +462,7 @@ export default {
...
@@ -462,7 +462,7 @@ export default {
console
.
log
(
val
)
console
.
log
(
val
)
if
(
val
.
name
)
{
if
(
val
.
name
)
{
this
.
editData
.
cityName
=
val
.
name
this
.
editData
.
cityName
=
val
.
name
this
.
editData
.
cityCode
=
val
.
ad
code
this
.
editData
.
cityCode
=
val
.
code
}
else
{
}
else
{
this
.
editData
.
cityName
=
''
this
.
editData
.
cityName
=
''
this
.
editData
.
cityCode
=
''
this
.
editData
.
cityCode
=
''
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment