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 bade8428
authored
Jan 27, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
预录客户-车型;二次添加服务4s店bug
1 parent
40476915
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
src/views/customer/editCustomer.vue
src/views/systemConfig/serviceStore.vue
src/views/customer/editCustomer.vue
View file @
bade842
...
@@ -195,6 +195,7 @@
...
@@ -195,6 +195,7 @@
v-if=
"form.carChildsBrandId"
v-if=
"form.carChildsBrandId"
v-model=
"form.carSeriesId"
v-model=
"form.carSeriesId"
placeholder=
"请选择车系"
placeholder=
"请选择车系"
@
change=
"getCarType(form.carSeriesId)"
style=
"width:150px; margin-right: 20px;"
style=
"width:150px; margin-right: 20px;"
>
>
<el-option
<el-option
...
@@ -604,20 +605,20 @@ export default {
...
@@ -604,20 +605,20 @@ export default {
},
},
// 根据车系id获取车辆类型
// 根据车系id获取车辆类型
//
getCarType(id, fn = () => { }) {
getCarType
(
id
,
fn
=
()
=>
{
})
{
//
this.$set(this.form, 'carTypeId', '')
//
this.$set(this.form, 'carTypeId', '')
//
this.carTypeOptions = []
//
this.carTypeOptions = []
//
if (id) {
if
(
id
)
{
//
const params = { 'seriesId': id }
//
const params = { 'seriesId': id }
//
getCarType(params).then(res => {
//
getCarType(params).then(res => {
//
this.carTypeOptions = res || []
//
this.carTypeOptions = res || []
//
const o = this.carSeriesOptions.find(k => k.carSeriesId == id)
const
o
=
this
.
carSeriesOptions
.
find
(
k
=>
k
.
carSeriesId
==
id
)
//
this.form.carSeriesName = o.carSeriesName
this
.
form
.
carSeriesName
=
o
.
carSeriesName
//
})
//
})
//
fn()
fn
()
//
}
}
//
},
},
// changeCarType(id) {
// changeCarType(id) {
// const o = this.carTypeOptions.find(k => k.id == id)
// const o = this.carTypeOptions.find(k => k.id == id)
...
...
src/views/systemConfig/serviceStore.vue
View file @
bade842
...
@@ -211,12 +211,9 @@ export default {
...
@@ -211,12 +211,9 @@ export default {
},
},
mounted
()
{
mounted
()
{
// if (this.userInfo.beSuper) {
!
this
.
userInfo
.
beSuper
&&
(
this
.
storeSearchForm
.
yqMerchantId
=
this
.
userInfo
.
detail
.
merchantId
)
this
.
userInfo
.
beSuper
&&
getParkStore
({}).
then
(
res
=>
{
this
.
userInfo
.
beSuper
&&
getParkStore
({}).
then
(
res
=>
{
this
.
parkServiceList
=
res
this
.
parkServiceList
=
res
})
})
// }
},
},
methods
:
{
methods
:
{
...
@@ -247,10 +244,10 @@ export default {
...
@@ -247,10 +244,10 @@ export default {
this
.
storeSelected
=
[]
this
.
storeSelected
=
[]
},
},
handleRelateStoreConfirm
(
selectedData
)
{
handleRelateStoreConfirm
(
selectedData
)
{
this
.
storeSearchForm
.
yqMerchantId
=
this
.
userInfo
.
beSuper
?
this
.
storeSearchForm
.
yqMerchantId
:
this
.
userInfo
.
detail
.
merchantId
this
.
$refs
.
relate
.
validate
(
valid
=>
{
this
.
$refs
.
relate
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
!
selectedData
.
length
)
{
if
(
!
selectedData
.
length
)
{
// this.notice.warningTips('请选择关联门店')
this
.
$message
({
this
.
$message
({
message
:
'请选择关联门店'
,
message
:
'请选择关联门店'
,
type
:
'warning'
,
type
:
'warning'
,
...
...
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