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 @@
</el-form-item>
<el-form-item
label=
"新车首购"
prop=
"contacts"
>
<el-radio
v-model=
"form.newCarFlag"
...
...
@@ -181,19 +180,19 @@
<p
class=
"title"
>
装饰内容
</p>
<el-form-item
label=
"基础商品"
required
>
<el-select
<
!--
<
el-select
v-model=
"searchForm.goodsType"
placeholder=
"请选择产品分类"
>
<el-option
value=
""
label=
"全部"
>
全部
</el-option>
<el-option
v-for=
"item in productTypeList"
:key=
"item.goodsType"
:value=
"item.goodsType"
:label=
"item.goodsTypeName"
/>
</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>
</el-form-item>
<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-column
type=
"selection"
:reserve-selection=
"true"
width=
"50"
fixed=
"left"
align=
"center"
/>
<el-table
v-loading=
"tableLoading"
:data=
"goodList"
@
selection-change=
"selectChange"
stripe
style=
"width: 50%
"
border
>
<el-table-column
type=
"selection"
width=
"50"
fixed=
"left"
align=
"center"
/>
<el-table-column
align=
"center"
label=
"商品缩略图"
>
<template
slot-scope=
"scope"
>
<img
class=
"pro-img"
:src=
"scope.row.goodsInfo.thumbUrl"
/>
...
...
@@ -239,9 +238,8 @@ export default {
callback
();
}
return
{
form
:
{
newCarFlag
:
'Y'
},
key
:
new
Date
(),
form
:
{},
searchForm
:
{
goodsType
:
''
,
},
...
...
@@ -304,6 +302,11 @@ export default {
trigger
:
'blur'
}
],
contacts
:
[{
required
:
true
,
message
:
'请输入车架号'
,
trigger
:
'blur'
}],
// cusType: [{
// required: true,
// message: '请选择客户类型',
...
...
@@ -381,11 +384,11 @@ export default {
let
paramsForGood
=
{
'merchantId'
:
merchantId
}
getGoods
(
paramsForGood
).
then
(
res
=>
{
this
.
goodList
=
res
||
[]
if
(
this
.
goodList
.
length
>
0
){
this
.
TB_height
=
300
}
else
{
this
.
TB_height
=
90
}
//
if(this.goodList.length > 0){
//
this.TB_height = 300
//
}else{
//
this.TB_height = 90
//
}
});
},
...
...
@@ -428,6 +431,12 @@ export default {
//获取车辆子品牌
changeCarBrand
(
id
)
{
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
++
)
{
if
(
this
.
carInfoList
[
i
].
carBrandId
==
id
)
{
this
.
carSmallBrandOptions
.
push
(
this
.
carInfoList
[
i
]);
...
...
@@ -445,6 +454,8 @@ export default {
//获取车系
changeCarSmallBrand
(
id
)
{
this
.
$set
(
this
.
form
,
'carSeries'
,
''
)
this
.
$set
(
this
.
form
,
'carType'
,
''
)
this
.
carSeriesOptions
=
[]
for
(
var
i
=
0
;
i
<
this
.
carInfoList
.
length
;
i
++
)
{
if
(
this
.
carInfoList
[
i
].
carChildsBrandId
==
id
)
{
...
...
@@ -457,29 +468,37 @@ export default {
return
item
;
},
[]);
let
o
=
this
.
carSmallBrandOptions
.
find
(
k
=>
k
.
carChildsBrandId
==
id
);
this
.
form
.
carChildsBrandName
=
o
.
carChildsBrandName
;
if
(
id
){
let
o
=
this
.
carSmallBrandOptions
.
find
(
k
=>
k
.
carChildsBrandId
==
id
);
this
.
form
.
carChildsBrandName
=
o
.
carChildsBrandName
;
}
},
//根据车系id获取车辆类型
getCarType
(
id
)
{
let
params
=
{
'seriesId'
:
id
}
getCarType
(
params
).
then
(
res
=>
{
this
.
carTypeOptions
=
res
||
[];
let
o
=
this
.
carSeriesOptions
.
find
(
k
=>
k
.
carSeriesId
==
id
);
this
.
form
.
carSeriesName
=
o
.
carSeriesName
;
});
this
.
$set
(
this
.
form
,
'carType'
,
''
)
this
.
carTypeOptions
=
[]
if
(
id
){
let
params
=
{
'seriesId'
:
id
}
getCarType
(
params
).
then
(
res
=>
{
this
.
carTypeOptions
=
res
||
[];
let
o
=
this
.
carSeriesOptions
.
find
(
k
=>
k
.
carSeriesId
==
id
);
this
.
form
.
carSeriesName
=
o
.
carSeriesName
;
});
}
},
changeCarType
(
id
)
{
// this.key = new Date()
let
o
=
this
.
carTypeOptions
.
find
(
k
=>
k
.
id
==
id
);
this
.
form
.
carTypeName
=
o
.
name
;
},
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
=>
{
this
.
goodList
=
res
||
[]
if
(
this
.
goodList
.
length
>
0
){
...
...
@@ -498,9 +517,9 @@ export default {
this
.
selectList
=
selection
},
getRowKey
(
row
){
return
row
.
id
},
//
getRowKey(row){
//
return row.id
//
},
/**
* 保存信息
...
...
@@ -538,23 +557,52 @@ export default {
params
.
remark
=
this
.
form
.
remark
customer
.
customerName
=
this
.
form
.
cusName
customer
.
customerPhone
=
this
.
form
.
mobile
customer
.
customerSex
=
this
.
form
.
cusSex
customer
.
customerType
=
this
.
form
.
cusType
customer
.
customerProfession
=
this
.
form
.
cusOccupation
customer
.
carBrandId
=
this
.
form
.
carBrand
customer
.
carBrand
=
this
.
form
.
carBrandName
customer
.
carChildsBrandId
=
this
.
form
.
carSmallBrand
customer
.
carChildsBrandName
=
this
.
form
.
carChildsBrandName
customer
.
carSeriesId
=
this
.
form
.
carSeries
customer
.
carSeriesName
=
this
.
form
.
carSeriesName
customer
.
carTypeId
=
this
.
form
.
carType
customer
.
carTypeName
=
this
.
form
.
carTypeName
if
(
this
.
form
.
cusSex
){
customer
.
customerSex
=
this
.
form
.
cusSex
}
if
(
this
.
form
.
cusType
){
customer
.
customerType
=
this
.
form
.
cusType
}
if
(
this
.
form
.
cusOccupation
){
customer
.
customerProfession
=
this
.
form
.
cusOccupation
}
if
(
this
.
form
.
carBrand
){
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
.
newCarFlag
=
this
.
form
.
newCarFlag
params
.
customer
=
customer
addOrder
(
params
).
then
(
res
=>
{
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 @@
</
template
>
<
script
>
import
{
Util
}
from
'@/common/util'
import
{
getList
,
deleteMerchant
,
serviceGetMerchantList
,
addServiceMerchant
}
from
'@api/serviceStore'
import
{
mapActions
}
from
'vuex'
import
{
BaseData
,
userType
,
ghUserType
}
from
'@/common/constants.js'
...
...
@@ -126,7 +127,10 @@ export default {
width
:
'200'
},
{
label
:
'更新时间'
,
prop
:
'updatedDate'
prop
:
'updatedDate'
,
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}
},
{
label
:
'渠道'
,
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