Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
develop-platform
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 a48d6900
authored
Nov 18, 2020
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改BUG
1 parent
1d68de74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
38 deletions
src/views/flow/editCustomer.vue
src/views/systemConfig/serviceStore.vue
src/views/flow/editCustomer.vue
View file @
a48d690
...
@@ -167,7 +167,6 @@
...
@@ -167,7 +167,6 @@
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"新车首购"
label=
"新车首购"
prop=
"contacts"
>
>
<el-radio
<el-radio
v-model=
"form.newCarFlag"
v-model=
"form.newCarFlag"
...
@@ -181,19 +180,19 @@
...
@@ -181,19 +180,19 @@
<p
class=
"title"
>
装饰内容
</p>
<p
class=
"title"
>
装饰内容
</p>
<el-form-item
label=
"基础商品"
required
>
<el-form-item
label=
"基础商品"
required
>
<el-select
<
!--
<
el-select
v-model=
"searchForm.goodsType"
v-model=
"searchForm.goodsType"
placeholder=
"请选择产品分类"
placeholder=
"请选择产品分类"
>
>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
v-for=
"item in productTypeList"
:key=
"item.goodsType"
:value=
"item.goodsType"
:label=
"item.goodsTypeName"
/>
<el-option
v-for=
"item in productTypeList"
:key=
"item.goodsType"
:value=
"item.goodsType"
:label=
"item.goodsTypeName"
/>
</el-select>
</el-select>
<el-button
type=
"primary"
@
click=
"searchGoods"
>
搜索
</el-button>
<el-button
type=
"primary"
@
click=
"searchGoods"
>
搜索
</el-button>
-->
<span
class=
"warningFont"
v-if=
"showChoosePrError"
>
未选择商品
</span>
<span
class=
"warningFont"
v-if=
"showChoosePrError"
>
未选择商品
</span>
</el-form-item>
</el-form-item>
<div
class=
"table_box"
>
<div
class=
"table_box"
>
<el-table
v-loading=
"tableLoading"
:data=
"goodList"
@
selection-change=
"selectChange"
:row-key=
"getRowKey"
stripe
style=
"width: 100%"
:height=
"TB_height
"
border
>
<el-table
v-loading=
"tableLoading"
:data=
"goodList"
@
selection-change=
"selectChange"
stripe
style=
"width: 50%
"
border
>
<el-table-column
type=
"selection"
:reserve-selection=
"true"
width=
"50"
fixed=
"left"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"50"
fixed=
"left"
align=
"center"
/>
<el-table-column
align=
"center"
label=
"商品缩略图"
>
<el-table-column
align=
"center"
label=
"商品缩略图"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<img
class=
"pro-img"
:src=
"scope.row.goodsInfo.thumbUrl"
/>
<img
class=
"pro-img"
:src=
"scope.row.goodsInfo.thumbUrl"
/>
...
@@ -239,9 +238,8 @@ export default {
...
@@ -239,9 +238,8 @@ export default {
callback
();
callback
();
}
}
return
{
return
{
form
:
{
key
:
new
Date
(),
newCarFlag
:
'Y'
form
:
{},
},
searchForm
:
{
searchForm
:
{
goodsType
:
''
,
goodsType
:
''
,
},
},
...
@@ -304,6 +302,11 @@ export default {
...
@@ -304,6 +302,11 @@ export default {
trigger
:
'blur'
trigger
:
'blur'
}
}
],
],
contacts
:
[{
required
:
true
,
message
:
'请输入车架号'
,
trigger
:
'blur'
}],
// cusType: [{
// cusType: [{
// required: true,
// required: true,
// message: '请选择客户类型',
// message: '请选择客户类型',
...
@@ -381,11 +384,11 @@ export default {
...
@@ -381,11 +384,11 @@ export default {
let
paramsForGood
=
{
'merchantId'
:
merchantId
}
let
paramsForGood
=
{
'merchantId'
:
merchantId
}
getGoods
(
paramsForGood
).
then
(
res
=>
{
getGoods
(
paramsForGood
).
then
(
res
=>
{
this
.
goodList
=
res
||
[]
this
.
goodList
=
res
||
[]
if
(
this
.
goodList
.
length
>
0
){
//
if(this.goodList.length > 0){
this
.
TB_height
=
300
//
this.TB_height = 300
}
else
{
//
}else{
this
.
TB_height
=
90
//
this.TB_height = 90
}
//
}
});
});
},
},
...
@@ -428,6 +431,12 @@ export default {
...
@@ -428,6 +431,12 @@ export default {
//获取车辆子品牌
//获取车辆子品牌
changeCarBrand
(
id
)
{
changeCarBrand
(
id
)
{
this
.
carSmallBrandOptions
=
[]
this
.
carSmallBrandOptions
=
[]
// this.form.carSmallBrand = ''
// this.form.carSeries = ''
// this.form.carType = ''
this
.
$set
(
this
.
form
,
'carSmallBrand'
,
''
)
this
.
$set
(
this
.
form
,
'carSeries'
,
''
)
this
.
$set
(
this
.
form
,
'carType'
,
''
)
for
(
var
i
=
0
;
i
<
this
.
carInfoList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
carInfoList
.
length
;
i
++
)
{
if
(
this
.
carInfoList
[
i
].
carBrandId
==
id
)
{
if
(
this
.
carInfoList
[
i
].
carBrandId
==
id
)
{
this
.
carSmallBrandOptions
.
push
(
this
.
carInfoList
[
i
]);
this
.
carSmallBrandOptions
.
push
(
this
.
carInfoList
[
i
]);
...
@@ -445,6 +454,8 @@ export default {
...
@@ -445,6 +454,8 @@ export default {
//获取车系
//获取车系
changeCarSmallBrand
(
id
)
{
changeCarSmallBrand
(
id
)
{
this
.
$set
(
this
.
form
,
'carSeries'
,
''
)
this
.
$set
(
this
.
form
,
'carType'
,
''
)
this
.
carSeriesOptions
=
[]
this
.
carSeriesOptions
=
[]
for
(
var
i
=
0
;
i
<
this
.
carInfoList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
carInfoList
.
length
;
i
++
)
{
if
(
this
.
carInfoList
[
i
].
carChildsBrandId
==
id
)
{
if
(
this
.
carInfoList
[
i
].
carChildsBrandId
==
id
)
{
...
@@ -457,29 +468,37 @@ export default {
...
@@ -457,29 +468,37 @@ export default {
return
item
;
return
item
;
},
[]);
},
[]);
let
o
=
this
.
carSmallBrandOptions
.
find
(
k
=>
k
.
carChildsBrandId
==
id
);
if
(
id
){
this
.
form
.
carChildsBrandName
=
o
.
carChildsBrandName
;
let
o
=
this
.
carSmallBrandOptions
.
find
(
k
=>
k
.
carChildsBrandId
==
id
);
this
.
form
.
carChildsBrandName
=
o
.
carChildsBrandName
;
}
},
},
//根据车系id获取车辆类型
//根据车系id获取车辆类型
getCarType
(
id
)
{
getCarType
(
id
)
{
let
params
=
{
'seriesId'
:
id
}
this
.
$set
(
this
.
form
,
'carType'
,
''
)
getCarType
(
params
).
then
(
res
=>
{
this
.
carTypeOptions
=
[]
this
.
carTypeOptions
=
res
||
[];
if
(
id
){
let
params
=
{
'seriesId'
:
id
}
let
o
=
this
.
carSeriesOptions
.
find
(
k
=>
k
.
carSeriesId
==
id
);
getCarType
(
params
).
then
(
res
=>
{
this
.
form
.
carSeriesName
=
o
.
carSeriesName
;
this
.
carTypeOptions
=
res
||
[];
});
let
o
=
this
.
carSeriesOptions
.
find
(
k
=>
k
.
carSeriesId
==
id
);
this
.
form
.
carSeriesName
=
o
.
carSeriesName
;
});
}
},
},
changeCarType
(
id
)
{
changeCarType
(
id
)
{
// this.key = new Date()
let
o
=
this
.
carTypeOptions
.
find
(
k
=>
k
.
id
==
id
);
let
o
=
this
.
carTypeOptions
.
find
(
k
=>
k
.
id
==
id
);
this
.
form
.
carTypeName
=
o
.
name
;
this
.
form
.
carTypeName
=
o
.
name
;
},
},
searchGoods
(){
searchGoods
(){
/**根据门店商户号获取基础商品列表 */
/**根据门店商户号获取基础商品列表 */
let
paramsForGood
=
{
'merchantId'
:
this
.
form
.
storeId
,
'goodsType'
:
this
.
searchForm
.
goodsType
}
// let paramsForGood = {'merchantId': this.form.storeId,'goodsType':this.searchForm.goodsType}
let
paramsForGood
=
{
'merchantId'
:
this
.
form
.
storeId
}
getGoods
(
paramsForGood
).
then
(
res
=>
{
getGoods
(
paramsForGood
).
then
(
res
=>
{
this
.
goodList
=
res
||
[]
this
.
goodList
=
res
||
[]
if
(
this
.
goodList
.
length
>
0
){
if
(
this
.
goodList
.
length
>
0
){
...
@@ -498,9 +517,9 @@ export default {
...
@@ -498,9 +517,9 @@ export default {
this
.
selectList
=
selection
this
.
selectList
=
selection
},
},
getRowKey
(
row
){
//
getRowKey(row){
return
row
.
id
//
return row.id
},
//
},
/**
/**
* 保存信息
* 保存信息
...
@@ -538,23 +557,52 @@ export default {
...
@@ -538,23 +557,52 @@ export default {
params
.
remark
=
this
.
form
.
remark
params
.
remark
=
this
.
form
.
remark
customer
.
customerName
=
this
.
form
.
cusName
customer
.
customerName
=
this
.
form
.
cusName
customer
.
customerPhone
=
this
.
form
.
mobile
customer
.
customerPhone
=
this
.
form
.
mobile
customer
.
customerSex
=
this
.
form
.
cusSex
if
(
this
.
form
.
cusSex
){
customer
.
customerType
=
this
.
form
.
cusType
customer
.
customerSex
=
this
.
form
.
cusSex
customer
.
customerProfession
=
this
.
form
.
cusOccupation
}
customer
.
carBrandId
=
this
.
form
.
carBrand
if
(
this
.
form
.
cusType
){
customer
.
carBrand
=
this
.
form
.
carBrandName
customer
.
customerType
=
this
.
form
.
cusType
customer
.
carChildsBrandId
=
this
.
form
.
carSmallBrand
}
customer
.
carChildsBrandName
=
this
.
form
.
carChildsBrandName
if
(
this
.
form
.
cusOccupation
){
customer
.
carSeriesId
=
this
.
form
.
carSeries
customer
.
customerProfession
=
this
.
form
.
cusOccupation
customer
.
carSeriesName
=
this
.
form
.
carSeriesName
}
customer
.
carTypeId
=
this
.
form
.
carType
if
(
this
.
form
.
carBrand
){
customer
.
carTypeName
=
this
.
form
.
carTypeName
customer
.
carBrandId
=
this
.
form
.
carBrand
customer
.
carBrand
=
this
.
form
.
carBrandName
}
if
(
this
.
form
.
carSmallBrand
){
customer
.
carChildsBrandId
=
this
.
form
.
carSmallBrand
customer
.
carChildsBrandName
=
this
.
form
.
carChildsBrandName
}
if
(
this
.
form
.
carSeries
){
customer
.
carSeriesId
=
this
.
form
.
carSeries
customer
.
carSeriesName
=
this
.
form
.
carSeriesName
}
if
(
this
.
form
.
carType
){
customer
.
carTypeId
=
this
.
form
.
carType
customer
.
carTypeName
=
this
.
form
.
carTypeName
}
customer
.
standNo
=
this
.
form
.
contacts
customer
.
standNo
=
this
.
form
.
contacts
customer
.
newCarFlag
=
this
.
form
.
newCarFlag
customer
.
newCarFlag
=
this
.
form
.
newCarFlag
params
.
customer
=
customer
params
.
customer
=
customer
addOrder
(
params
).
then
(
res
=>
{
addOrder
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
/**重置所有项 */
this
.
$refs
.
editCusFrom
.
resetFields
()
this
.
adviserList
=
[]
this
.
$set
(
this
.
form
,
'cusSex'
,
''
)
this
.
$set
(
this
.
form
,
'cusType'
,
''
)
this
.
$set
(
this
.
form
,
'carBrand'
,
''
)
this
.
$set
(
this
.
form
,
'carSmallBrand'
,
''
)
this
.
$set
(
this
.
form
,
'carSeries'
,
''
)
this
.
$set
(
this
.
form
,
'carType'
,
''
)
this
.
from
.
cusOccupation
=
''
this
.
$set
(
this
.
form
,
'newCarFlag'
,
''
)
this
.
goodList
=
[]
this
.
selectList
=
[]
this
.
form
.
remark
=
''
});
});
})
})
}
}
...
...
src/views/systemConfig/serviceStore.vue
View file @
a48d690
...
@@ -79,6 +79,7 @@
...
@@ -79,6 +79,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Util
}
from
'@/common/util'
import
{
getList
,
deleteMerchant
,
serviceGetMerchantList
,
addServiceMerchant
}
from
'@api/serviceStore'
import
{
getList
,
deleteMerchant
,
serviceGetMerchantList
,
addServiceMerchant
}
from
'@api/serviceStore'
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
{
BaseData
,
userType
,
ghUserType
}
from
'@/common/constants.js'
import
{
BaseData
,
userType
,
ghUserType
}
from
'@/common/constants.js'
...
@@ -126,7 +127,10 @@ export default {
...
@@ -126,7 +127,10 @@ export default {
width
:
'200'
width
:
'200'
},
{
},
{
label
:
'更新时间'
,
label
:
'更新时间'
,
prop
:
'updatedDate'
prop
:
'updatedDate'
,
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}
},
{
},
{
label
:
'渠道'
,
label
:
'渠道'
,
prop
:
'channelType'
,
prop
:
'channelType'
,
...
...
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