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 b989fa4d
authored
Dec 01, 2020
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
63e6a143
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
77 additions
and
262 deletions
src/api/sys.account.js
src/assets/style/public.scss
src/views/flow/editCustomer.vue
src/views/goods/aa.vue
src/views/system/login/index.vue
src/api/sys.account.js
View file @
b989fa4
...
...
@@ -2,7 +2,7 @@
* @Author: limin
* @Date: 2019-08-26 18:02:55
* @Last Modified by: chenwq
* @Last Modified time: 2020-1
1-13 15:32:17
* @Last Modified time: 2020-1
2-01 10:44:09
*/
import
request
from
'./request'
...
...
src/assets/style/public.scss
View file @
b989fa4
...
...
@@ -49,4 +49,4 @@ $prefix: d2;
}
.el-table
.cell
{
padding
:
0
0
;
}
\ No newline at end of file
}
src/views/flow/editCustomer.vue
View file @
b989fa4
<!-- 客户预录 -->
<
template
>
<d2-container>
<p><i
class=
"el-icon-edit-outline"
></i><span
class=
"cus-title"
>
预录客户
</span></p>
<el-form
ref=
"editCusFrom"
class=
"editCusFrom"
...
...
@@ -10,7 +11,7 @@
v-loading=
"$store.state.d2admin.loading.value"
>
<p
class=
"title"
>
关联信息来源
</p>
<el-form-item
id=
"storeId"
label=
"
门店名称
"
prop=
"storeId"
>
<el-form-item
id=
"storeId"
label=
"
流量来源
"
prop=
"storeId"
>
<el-select
v-model=
"form.storeId"
placeholder=
"请选择"
...
...
@@ -28,37 +29,34 @@
<span
class=
"warningFont"
v-if=
"nostoreError"
>
暂无服务的4S店
</span>
</el-form-item>
<el-form-item
id=
"adviser"
label=
"
销售顾问
"
required
>
<el-form-item
id=
"adviser"
label=
"
推荐人
"
required
>
<el-radio
v-for=
"item in adviserList"
:key=
"item.userId"
v-model=
"form.employee"
:label=
"item"
>
{{
item
.
name
}}
</el-radio>
<p
class=
"warningFont"
v-if=
"showChooseCusError"
>
未选择销售顾问
</p>
<p
class=
"warningFont"
v-if=
"!form.employee && !hasCusError"
>
请选择推荐人
</p>
<p
class=
"warningFont"
v-if=
"hasCusError"
>
请检查是否配置员工名片!
</p>
</el-form-item>
<p
class=
"title"
>
客户基本信息
</p>
<div
class=
"line_box"
>
<div
class=
"left"
>
<div
class=
"left"
>
<el-form-item
id=
"cusName"
label=
"客户姓名"
prop=
"cusName"
>
<el-input
v-model=
"form.cusName"
maxlength=
"10"
class=
"itd"
clearable
/>
</el-form-item>
</div>
</div>
<div
class=
"right"
>
<el-form-item
label=
"客户性别"
>
<el-select
v-model=
"form.cusSex"
placeholder=
"请选择"
class=
"el_select itd"
>
<el-option
value=
"1"
label=
"男"
/>
<el-option
value=
"2"
label=
"女"
/>
</el-select>
<el-form-item
id=
"cusName"
label=
"客户姓名"
prop=
"cusName"
>
<el-input
v-model=
"form.cusName"
maxlength=
"10"
class=
"itd"
clearable
/>
</el-form-item>
</div>
</div>
<div
class=
"line_box"
>
<el-form-item
label=
"性别"
>
<el-select
v-model=
"form.cusSex"
placeholder=
"请选择"
class=
"el_select itd"
>
<el-option
value=
"1"
label=
"男"
/>
<el-option
value=
"2"
label=
"女"
/>
</el-select>
</el-form-item>
</div>
<div
class=
"line_box"
>
<div
class=
"left"
>
...
...
@@ -109,7 +107,7 @@
placeholder=
"请选择品牌"
filterable
@
change=
"changeCarBrand(form.carBrand)"
style=
"width:150px;"
style=
"width:150px;
margin-right: 20px;
"
>
<el-option
v-for=
"item in carBrandOptions"
...
...
@@ -119,10 +117,11 @@
/>
</el-select>
<el-select
v-if=
"form.carBrand"
v-model=
"form.carSmallBrand"
placeholder=
"请选择子品牌"
@
change=
"changeCarSmallBrand(form.carSmallBrand)"
style=
"width:150px;"
style=
"width:150px;
margin-right: 20px;
"
>
<el-option
v-for=
"item in carSmallBrandOptions"
...
...
@@ -132,10 +131,11 @@
/>
</el-select>
<el-select
v-if=
"form.carSmallBrand"
v-model=
"form.carSeries"
placeholder=
"请选择车系"
@
change=
"getCarType(form.carSeries)"
style=
"width:150px;"
style=
"width:150px;
margin-right: 20px;
"
>
<el-option
v-for=
"item in carSeriesOptions"
...
...
@@ -145,6 +145,7 @@
/>
</el-select>
<el-select
v-if=
"form.carSeries"
v-model=
"form.carType"
placeholder=
"请选择车型"
@
change=
"changeCarType(form.carType)"
...
...
@@ -193,7 +194,8 @@
<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>
-->
<span
class=
"warningFont"
v-if=
"showChoosePrError"
>
未选择商品
</span>
<span
class=
"warningFont"
v-if=
"!selectList.length && !hasProError"
>
未选择商品
</span>
<span
class=
"warningFont"
v-if=
"hasProError"
>
该门店无分配商品
</span>
<div>
<el-checkbox-group
v-model=
"selectList"
>
<div
class=
"base-pro-block base-pro-block-wh"
v-for=
"(item, index) in goodList"
:key=
"index"
>
...
...
@@ -269,7 +271,9 @@ export default {
}
return
{
key
:
new
Date
(),
form
:
{},
form
:
{
newCarFlag
:
'Y'
},
searchForm
:
{
goodsType
:
''
},
...
...
@@ -306,7 +310,9 @@ export default {
selectList
:
[],
nostoreError
:
false
,
showChooseCusError
:
false
,
hasCusError
:
false
,
showChoosePrError
:
false
,
hasProError
:
false
,
formRules
:
{
storeId
:
[{
required
:
true
,
...
...
@@ -420,6 +426,7 @@ export default {
const
params
=
{
'merchantId'
:
merchantId
,
'channelType'
:
channelType
}
getStaff
(
params
).
then
(
res
=>
{
this
.
adviserList
=
res
||
[]
this
.
hasCusError
=
!
res
.
length
})
/** 根据门店商户号获取基础商品列表 */
...
...
@@ -427,6 +434,7 @@ export default {
getGoods
(
paramsForGood
).
then
(
res
=>
{
// console.log(res)
this
.
goodList
=
res
||
[]
this
.
hasProError
=
!
res
.
length
// if(this.goodList.length > 0){
// this.TB_height = 300
// }else{
...
...
@@ -597,7 +605,7 @@ export default {
const
customer
=
{}
// const goods = []
/** 判断是否选择销售顾问 */
console
.
log
(
this
.
form
.
employee
)
//
console.log(this.form.employee)
if
(
this
.
form
.
employee
)
{
this
.
showChooseCusError
=
false
}
else
{
...
...
@@ -722,11 +730,40 @@ export default {
height
:
80px
;
}
.cus-title
{
margin-left
:
10px
;
color
:
#333333
;
font-weight
:
bold
;
}
.editCusFrom
.title
{
height
:
30px
;
line-height
:
30px
;
padding-left
:
20px
;
background-color
:
#e1e0e0
;
font-size
:
12px
;
color
:
#cccccc
;
text-align
:
center
;
margin
:
30px
0
;
}
.editCusFrom
.title
::before
{
content
:
""
;
display
:
inline-block
;
width
:
40%
;
height
:
1px
;
padding-bottom
:
-10px
;
border-bottom
:
0.5px
dotted
#cccccc
;
margin
:
0
20px
3px
0
;
}
.editCusFrom
.title
::after
{
content
:
""
;
display
:
inline-block
;
width
:
42%
;
height
:
1px
;
border-bottom
:
0.5px
dotted
#cccccc
;
margin
:
0
0
3px
20px
;
}
.editCusFrom
.el-form-item
{
margin-bottom
:
36px
;
}
.base-pro-block-wh
{
width
:
120px
;
...
...
src/views/goods/aa.vue
deleted
100644 → 0
View file @
63e6a14
<!-- 产品管理 -->
<
template
>
<d2-container
class=
"product"
>
<el-form
:inline=
"true"
v-model=
"searchForm"
label-width=
"85px"
slot=
"header"
>
<el-form-item
label=
"产品名称"
>
<el-input
v-model=
"searchForm.goodsName"
placeholder=
"请输入产品名称"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"分类"
>
<el-select
v-model=
"searchForm.goodsType"
placeholder=
"请选择产品分类"
>
<el-option
v-for=
"item in baseData.productTypeList"
:key=
"item.goodsType"
:value=
"item.goodsType"
:label=
"item.goodsTypeName"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"品牌商"
>
<el-select
v-model=
"searchForm.brandMerchantCode"
placeholder=
"请选择品牌商"
>
<el-option
v-for=
"item in baseData.brandList"
:key=
"item.confId"
:label=
"item.confValue"
:value=
"item.confId"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button
:id=
"tableParams.btnId"
type=
"primary"
icon=
"el-icon-search"
>
查询
</el-button>
<el-button
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form>
<d2-table-header>
<auth-button
category=
"Button"
:data=
"editFormReset"
></auth-button>
</d2-table-header>
<d2-table
ref=
"productTable"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
>
<img
slot=
"img"
slot-scope=
"scope"
class=
"pro-img"
:src=
"scope.scope.thumbUrl"
/>
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
></auth-button>
</d2-table>
</d2-container>
</
template
>
<
script
>
import
_
from
'lodash'
import
{
getList
}
from
'@api/product'
import
{
BaseData
,
brandMerchantList
}
from
'@/common/constants.js'
import
{
mapActions
}
from
'vuex'
export
default
{
name
:
'product'
,
data
()
{
return
{
searchForm
:
{
goodsName
:
''
,
goodsType
:
''
,
brandMerchantCode
:
''
},
editFormReset
:
{
aa
:
''
},
getListApi
:
getList
,
// 表格参数
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
true
,
tableColumns
:
[{
label
:
'缩略图'
,
prop
:
'thumbUrl'
,
addHtml
:
'img'
},
{
label
:
'产品名称'
,
prop
:
'goodsName'
},
{
label
:
'产品ID'
,
prop
:
'id'
},
{
label
:
'分类'
,
prop
:
'goodsTypeName'
},
{
label
:
'品牌商'
,
prop
:
'brandMerchantName'
},
{
label
:
'创建时间'
,
prop
:
'createDateStr'
},
{
label
:
'产品状态'
,
prop
:
'state'
,
formatter
:
(
cellValue
)
=>
{
// return {
// 0: '上架',
// 1: '下架'
// }[cellValue.state]
return
'上架'
}
}]
},
// 查看门店
detailVisible
:
false
,
// 基本数据
baseData
:
{
productTypeList
:
[],
brandList
:
[]
}
}
},
mounted
()
{
// this.getProductType()
this
.
getBaseData
()
// console.log(storeDetail)
// var allOpt = { confId: '', confKey: '全部' }
// this.baseData.product.unshift(allOpt)
// this.baseData.brandList.unshift(allOpt)
this
.
baseData
.
brandList
=
_
.
cloneDeep
(
brandMerchantList
)
var
allOpt
=
{
confId
:
''
,
confValue
:
'全部'
}
this
.
baseData
.
brandList
.
unshift
(
allOpt
)
},
methods
:
{
// getProductType(){
// let prarms = {}
// getType(prarms).then(res => {
// this.baseData.productTypeList = res || []
// });
// },
...
mapActions
(
'd2admin/base'
,
[
'get'
]),
async
getBaseData
()
{
this
.
baseData
.
productTypeList
=
_
.
cloneDeep
(
await
this
.
get
(
BaseData
.
productType
))
this
.
baseData
.
productTypeList
.
unshift
({
goodsType
:
''
,
goodsTypeName
:
'全部'
})
},
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
console
.
log
(
'搜索前操作--'
)
resolve
()
})
},
handleReset
()
{
this
.
searchForm
=
{
goodsName
:
''
,
goodsType
:
''
,
brandMerchantCode
:
''
}
},
handleAdd
(
form
)
{
// console.log(form)
this
.
$router
.
push
({
name
:
'editProduct'
,
params
:
{
addOrEdit
:
'add'
,
form
:
form
}
})
},
// handleExport() { },
handleEdit
(
row
)
{
// console.log(row)
this
.
$router
.
push
({
name
:
'editProduct'
,
params
:
{
addOrEdit
:
'edit'
,
form
:
row
}
})
},
handleDetail
(
row
)
{
this
.
detailData
=
row
this
.
detailVisible
=
true
},
handleDetailClose
()
{
this
.
detailVisible
=
false
}
}
}
</
script
>
<
style
scoped
>
.product
.pro-img
{
width
:
80px
;
height
:
80px
;
}
</
style
>
src/views/system/login/index.vue
View file @
b989fa4
...
...
@@ -123,10 +123,10 @@ export default {
// 表单
formLogin
:
{
// userName: 'dongdao',
//
userName: 'houlai',
//
password: '123456'
userName
:
''
,
password
:
''
userName
:
'houlai'
,
password
:
'123456'
//
userName: '',
//
password: ''
},
// 表单校验
rules
:
Object
.
freeze
({
...
...
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