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 2867e5f7
authored
Jan 26, 2021
by
吴娟华
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.1.1' of
http://192.168.3.233:8090/glsx-business/dj-car-life-system
into v1.1.1
2 parents
4a158570
40476915
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
93 additions
and
78 deletions
src/components/d2-form/relateProDialog.vue
src/components/d2-table-header/index.vue
src/views/customer/editCustomer.vue
src/views/financeManage/financeList.vue
src/views/goods/editCommodity.vue
src/views/orderManage/orderList.vue
src/views/systemConfig/serviceStore.vue
src/components/d2-form/relateProDialog.vue
View file @
2867e5f
...
...
@@ -157,7 +157,7 @@
</el-form>
</div>
<div
class=
"relateProDialog flex"
>
<span
style=
"width: 180px;
"
>
分配给导流方 (4S门店)
</span>
<span
class=
"sub-title
"
>
分配给导流方 (4S门店)
</span>
<el-form
:model=
"proInfo"
:rules=
"rules"
...
...
@@ -202,7 +202,7 @@
</el-form>
</div>
<div
class=
"relateProDialog flex"
>
<span
style=
"width: 180px;
"
>
分配给合伙人 (合作商)
</span>
<span
class=
"sub-title
"
>
分配给合伙人 (合作商)
</span>
<el-form
:model=
"proInfo"
:rules=
"rules"
...
...
@@ -282,15 +282,15 @@ export default {
},
rules
:
{
goodsCode
:
[{
required
:
true
,
message
:
'请选择关联升级商品'
,
trigger
:
'change'
}],
upgradePrice
:
[
{
required
:
true
,
message
:
'请输入建议升级价'
,
trigger
:
'blur'
}],
shopPrice
:
[
{
required
:
true
,
message
:
'请输入到店价'
,
trigger
:
'blur'
},
{
trigger
:
'blur
'
,
upgradePrice
:
[
{
required
:
true
,
message
:
'请输入建议升级价'
,
trigger
:
'blur'
},
{
required
:
true
,
trigger
:
'change
'
,
validator
:
(
rule
,
value
,
callback
)
=>
{
(
+
value
>
+
this
.
proInfo
.
upgradePrice
)
?
callback
(
new
Error
(
'到店价需小于建议升级
价格'
))
:
callback
()
(
+
value
<
+
this
.
proInfo
.
shopPrice
)
?
callback
(
new
Error
(
'建议升级价需要大于或等于到店
价格'
))
:
callback
()
}
}
],
}
],
shopPrice
:
[{
required
:
true
,
message
:
'请输入到店价'
,
trigger
:
'blur'
}
],
profitType
:
[{
required
:
true
,
message
:
'请输入分润规则'
,
trigger
:
'change'
}],
profitValue
:
[{
required
:
true
,
message
:
'请输入分润比例'
,
trigger
:
'blur'
}],
partnerProfitPer
:
[{
required
:
true
,
message
:
'请输入分润比例'
,
trigger
:
'blur'
}]
...
...
@@ -358,6 +358,8 @@ export default {
handleShopPrice
(
newVal
)
{
this
.
proInfo
.
shopPrice
=
limitPrice
(
newVal
,
this
.
oldVal
.
shopPrice
,
6
,
2
)
this
.
oldVal
.
shopPrice
=
this
.
proInfo
.
shopPrice
var
validateObj
=
(
this
.
proInfo
.
shopPrice
<=
this
.
proInfo
.
upgradePrice
)
?
'clearValidate'
:
'validateField'
this
.
$refs
.
proRuleForm1
[
validateObj
](
'upgradePrice'
)
},
handleMaxUpgradeDiscount
(
newVal
)
{
this
.
proInfo
.
maxUpgradeDiscount
=
limitPrice
(
newVal
,
this
.
oldVal
.
maxUpgradeDiscount
,
1
,
1
,
1
)
...
...
@@ -391,6 +393,11 @@ export default {
.relateProDialog.flex
{
display
:
flex
;
}
.relateProDialog
.sub-title
{
display
:
inline-block
;
height
:
52px
;
line-height
:
36px
;
}
.relateProDialog
.w-50
{
display
:
inline-block
;
width
:
50%
;
...
...
src/components/d2-table-header/index.vue
View file @
2867e5f
<
template
>
<el-row
class=
"table-header"
>
<el-col
:span=
"12"
>
<d2-el-icon
name=
"s-grid"
class=
"grid"
/>
<span
v-text=
"title"
></span>
<slot
name=
"left"
></slot>
</el-col>
...
...
src/views/customer/editCustomer.vue
View file @
2867e5f
...
...
@@ -195,7 +195,6 @@
v-if=
"form.carChildsBrandId"
v-model=
"form.carSeriesId"
placeholder=
"请选择车系"
@
change=
"getCarType(form.carSeriesId)"
style=
"width:150px; margin-right: 20px;"
>
<el-option
...
...
@@ -205,7 +204,7 @@
:label=
"item.carSeriesName"
/>
</el-select>
<el-select
<
!--
<
el-select
v-if=
"form.carSeriesId"
v-model=
"form.carTypeId"
placeholder=
"请选择车型"
...
...
@@ -218,7 +217,7 @@
:value=
"item.id"
:label=
"item.name"
/>
</el-select>
</el-select>
-->
</el-form-item>
<el-form-item
label=
"车架号:"
...
...
@@ -232,6 +231,7 @@
placeholder=
"请输入车架号"
clearable
/>
<p
class=
"tips"
>
完整的车架号是17位的车辆识别代码(VIN码)
</p>
</el-form-item>
<el-form-item
label=
"钥匙号:"
...
...
@@ -346,7 +346,7 @@
import
_
from
'lodash'
import
{
Util
}
from
'@/common/util'
import
util
from
'@/libs/util'
import
{
getServiceStore
,
getParkStore
,
getStaff
,
getCarInfo
,
get
CarType
,
get
Goods
,
addOrder
,
editOrder
}
from
'@api/editCustomer'
import
{
getServiceStore
,
getParkStore
,
getStaff
,
getCarInfo
,
getGoods
,
addOrder
,
editOrder
}
from
'@api/editCustomer'
import
{
BaseData
}
from
'@/common/constants.js'
import
{
mapActions
}
from
'vuex'
export
default
{
...
...
@@ -361,15 +361,15 @@ export default {
}
function
checkContacts
(
rule
,
value
,
callback
)
{
if
(
value
)
{
if
(
value
.
length
!=
17
)
{
callback
(
new
Error
(
'车架号必须为17位数字或字符'
))
// if (value.length != 17) {
// callback(new Error('车架号必须为17位数字或字符'))
// return false
// } else {
if
(
Util
.
validationInput
(
value
))
{
callback
(
new
Error
(
'车架号必须为数字或字符'
))
return
false
}
else
{
if
(
Util
.
validationInput
(
value
))
{
callback
(
new
Error
(
'车架号必须为17位数字或字符'
))
return
false
}
}
// }
}
callback
()
}
...
...
@@ -398,7 +398,7 @@ export default {
carBrandOptions
:
[],
carSmallBrandOptions
:
[],
carSeriesOptions
:
[],
carTypeOptions
:
[],
//
carTypeOptions: [],
goodsType
:
''
,
productTypeList
:
[],
TB_height
:
90
,
...
...
@@ -471,9 +471,9 @@ export default {
this
.
form
.
carChildsBrandId
=
this
.
$route
.
params
.
form
.
carChildsBrandId
this
.
$route
.
params
.
form
.
carSeriesId
&&
this
.
changeCarSmallBrand
(
this
.
form
.
carChildsBrandId
,
()
=>
{
this
.
form
.
carSeriesId
=
this
.
$route
.
params
.
form
.
carSeriesId
this
.
$route
.
params
.
form
.
carTypeId
&&
this
.
getCarType
(
this
.
form
.
carSeriesId
,
()
=>
{
this
.
form
.
carTypeId
=
this
.
$route
.
params
.
form
.
carTypeId
})
//
this.$route.params.form.carTypeId && this.getCarType(this.form.carSeriesId, () => {
//
this.form.carTypeId = this.$route.params.form.carTypeId
//
})
})
})
})
...
...
@@ -563,7 +563,7 @@ export default {
this
.
carSmallBrandOptions
=
[]
this
.
$set
(
this
.
form
,
'carChildsBrandId'
,
''
)
this
.
$set
(
this
.
form
,
'carSeriesId'
,
''
)
this
.
$set
(
this
.
form
,
'carTypeId'
,
''
)
//
this.$set(this.form, 'carTypeId', '')
for
(
var
i
=
0
;
i
<
this
.
carInfoList
.
length
;
i
++
)
{
if
(
this
.
carInfoList
[
i
].
carBrandId
==
id
)
{
this
.
carSmallBrandOptions
.
push
(
this
.
carInfoList
[
i
])
...
...
@@ -583,7 +583,7 @@ export default {
// 获取车系
changeCarSmallBrand
(
id
,
fn
=
()
=>
{
})
{
this
.
$set
(
this
.
form
,
'carSeriesId'
,
''
)
this
.
$set
(
this
.
form
,
'carTypeId'
,
''
)
//
this.$set(this.form, 'carTypeId', '')
this
.
carSeriesOptions
=
[]
for
(
var
i
=
0
;
i
<
this
.
carInfoList
.
length
;
i
++
)
{
if
(
this
.
carInfoList
[
i
].
carChildsBrandId
==
id
)
{
...
...
@@ -604,25 +604,25 @@ export default {
},
// 根据车系id获取车辆类型
getCarType
(
id
,
fn
=
()
=>
{
})
{
this
.
$set
(
this
.
form
,
'carTypeId'
,
''
)
this
.
carTypeOptions
=
[]
if
(
id
)
{
const
params
=
{
'seriesId'
:
id
}
getCarType
(
params
).
then
(
res
=>
{
this
.
carTypeOptions
=
res
||
[]
const
o
=
this
.
carSeriesOptions
.
find
(
k
=>
k
.
carSeriesId
==
id
)
this
.
form
.
carSeriesName
=
o
.
carSeriesName
})
fn
()
}
},
changeCarType
(
id
)
{
const
o
=
this
.
carTypeOptions
.
find
(
k
=>
k
.
id
==
id
)
this
.
form
.
carTypeName
=
o
.
name
},
//
getCarType(id, fn = () => { }) {
//
this.$set(this.form, 'carTypeId', '')
//
this.carTypeOptions = []
//
if (id) {
//
const params = { 'seriesId': id }
//
getCarType(params).then(res => {
//
this.carTypeOptions = res || []
//
const o = this.carSeriesOptions.find(k => k.carSeriesId == id)
//
this.form.carSeriesName = o.carSeriesName
//
})
//
fn()
//
}
//
},
//
changeCarType(id) {
//
const o = this.carTypeOptions.find(k => k.id == id)
//
this.form.carTypeName = o.name
//
},
searchGoods
()
{
/** 根据门店商户号获取基础商品列表 */
...
...
@@ -720,10 +720,10 @@ export default {
customer
.
carSeriesId
=
this
.
form
.
carSeriesId
customer
.
carSeriesName
=
this
.
form
.
carSeriesName
}
if
(
this
.
form
.
carTypeId
)
{
customer
.
carTypeId
=
this
.
form
.
carTypeId
customer
.
carTypeName
=
this
.
form
.
carTypeName
}
//
if (this.form.carTypeId) {
//
customer.carTypeId = this.form.carTypeId
//
customer.carTypeName = this.form.carTypeName
//
}
if
(
this
.
form
.
carKeyNo
)
{
customer
.
carKeyNo
=
this
.
form
.
carKeyNo
}
...
...
src/views/financeManage/financeList.vue
View file @
2867e5f
...
...
@@ -389,7 +389,7 @@ export default {
this
.
getOptionsList
()
})
}
else
{
this
.
showFormData
=
this
.
showFormData
.
filter
(
item
=>
item
.
name
!==
'
seller
MerchantId'
)
this
.
showFormData
=
this
.
showFormData
.
filter
(
item
=>
item
.
name
!==
'
yq
MerchantId'
)
this
.
getServiceStore
(
this
.
userInfo
.
detail
.
merchantId
)
}
console
.
log
(
this
.
$store
.
state
.
d2admin
.
user
.
info
.
detail
.
merchantId
)
...
...
@@ -469,6 +469,12 @@ export default {
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
showFormData
[
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
.
showFormData
[
index
].
optionId
]
=
''
temp
[
this
.
showFormData
[
index
].
optionLabel
]
=
'全部'
this
.
baseData
[
item
.
optionsName
].
unshift
(
temp
)
}
this
.
$set
(
this
.
showFormData
[
index
],
'optionList'
,
this
.
baseData
[
item
.
optionsName
])
}
})
...
...
@@ -476,7 +482,7 @@ export default {
getSummary
()
{
getSummary
({
beginDateStr
:
moment
(
this
.
summaryDate
).
startOf
(
'month'
).
format
(
'YYYY-MM-DD'
),
endDateStr
:
moment
(
this
.
summaryDate
).
endOf
(
'month'
).
format
(
'YYYY-MM-DD'
),
endDateStr
:
moment
(
this
.
summaryDate
).
endOf
(
'month'
).
format
(
'YYYY-MM-DD'
)
}).
then
((
res
)
=>
{
this
.
summayData
=
res
})
...
...
@@ -488,22 +494,22 @@ export default {
...
params
}
// console.log(params)
const
moneyLabels
=
[
'totalPrice'
,
'serviceCharge'
,
'actualIncomeMoney'
,
'shopProfitMoney'
,
'yqProfitMoney'
,
'glProfitMoney'
,
'franchiseeProfitMoney'
,
const
moneyLabels
=
[
'totalPrice'
,
'serviceCharge'
,
'actualIncomeMoney'
,
'shopProfitMoney'
,
'yqProfitMoney'
,
'glProfitMoney'
,
'franchiseeProfitMoney'
,
'goodsExtraCost'
,
'yqIncentiveTotal'
,
'yqGrossProfit'
,
'paidMoney'
,
'sellPrice'
,
'shopCost'
,
'allocationMoney'
]
'paidMoney'
,
'sellPrice'
,
'shopCost'
,
'allocationMoney'
]
getList
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
tableData
=
res
.
list
.
map
((
item
)
=>
{
for
(
le
t
key
in
item
)
{
if
(
moneyLabels
.
indexOf
(
key
)
>
-
1
&&
typeof
item
[
key
]
===
'number'
)
{
for
(
cons
t
key
in
item
)
{
if
(
moneyLabels
.
indexOf
(
key
)
>
-
1
&&
typeof
item
[
key
]
===
'number'
)
{
item
[
key
]
=
`¥
${
item
[
key
]}
`
}
}
...
...
@@ -516,18 +522,18 @@ export default {
},
getParams
()
{
var
params
=
{}
if
(
this
.
searchForm
.
yqMerchantId
)
{
if
(
this
.
searchForm
.
yqMerchantId
)
{
params
.
yqMerchantId
=
this
.
searchForm
.
yqMerchantId
}
if
(
this
.
searchForm
.
merchantId
)
{
if
(
this
.
searchForm
.
merchantId
)
{
params
.
merchantId
=
this
.
searchForm
.
merchantId
}
if
(
this
.
searchForm
.
time
)
{
params
.
payStartDateStr
=
new
Date
(
this
.
searchForm
.
time
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
payEndDateStr
=
new
Date
(
this
.
searchForm
.
time
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
params
.
payStartDateStr
=
new
Date
(
this
.
searchForm
.
time
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
payEndDateStr
=
new
Date
(
this
.
searchForm
.
time
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
}
if
(
this
.
searchForm
.
subOrderCode
)
{
if
(
this
.
searchForm
.
subOrderCode
)
{
params
.
subOrderCode
=
this
.
searchForm
.
subOrderCode
}
return
params
...
...
@@ -550,7 +556,7 @@ export default {
handleCurrentChange
(
value
)
{
this
.
page
.
pageNum
=
value
this
.
getList
()
}
,
}
}
}
...
...
src/views/goods/editCommodity.vue
View file @
2867e5f
...
...
@@ -50,11 +50,13 @@ export default {
rules
:
{
yqMerchantId
:
[{
required
:
true
,
message
:
'请选择园区店'
,
trigger
:
'change'
}],
goodsCode
:
[{
required
:
true
,
message
:
'请选择产品名称'
,
trigger
:
'change'
}],
shopPrice
:
[
{
required
:
true
,
message
:
'请输入到店价'
,
trigger
:
'blur'
},
{
trigger
:
'blur'
,
shopPrice
:
[{
required
:
true
,
message
:
'请输入到店价'
,
trigger
:
'blur'
}],
retailPrice
:
[
{
required
:
true
,
message
:
'请输入零售价格'
,
trigger
:
'blur'
},
{
required
:
true
,
trigger
:
'change'
,
validator
:
(
rule
,
value
,
callback
)
=>
{
(
+
value
>
+
this
.
markOldVal
.
retailPrice
)
?
callback
(
new
Error
(
'到店价需小于建议升级价
'
))
:
callback
()
(
+
value
<
+
this
.
markOldVal
.
shopPrice
)
?
callback
(
new
Error
(
'配置零售价格需要大于或等于到店价格
'
))
:
callback
()
}
}
],
...
...
@@ -99,6 +101,8 @@ export default {
handleInput
:
(
newVal
)
=>
{
this
.
$refs
.
d2Form
.
formData
.
shopPrice
=
limitPrice
(
newVal
,
this
.
markOldVal
.
shopPrice
,
6
,
2
)
this
.
markOldVal
.
shopPrice
=
this
.
$refs
.
d2Form
.
formData
.
shopPrice
var
validateObj
=
(
this
.
markOldVal
.
shopPrice
<=
this
.
markOldVal
.
retailPrice
)
?
'clearValidate'
:
'validateField'
this
.
$refs
.
d2Form
.
$refs
[
this
.
comFormRef
+
'd2FormRuleForm'
][
validateObj
](
'retailPrice'
)
}
},
{
name
:
'retailPrice'
,
...
...
@@ -164,6 +168,7 @@ export default {
}),
linkMerchantIds
:
res
.
merchantRefList
?
res
.
merchantRefList
.
map
(
item
=>
Object
.
assign
(
item
,
item
.
merchantInfo
))
:
[]
}
this
.
markOldVal
.
shopPrice
=
res
.
shopPrice
this
.
markOldVal
.
retailPrice
=
res
.
retailPrice
this
.
$nextTick
(()
=>
{
this
.
show
=
true
...
...
src/views/orderManage/orderList.vue
View file @
2867e5f
...
...
@@ -25,10 +25,10 @@
</div>
<div
class=
"d2-container-content"
>
<d2-table-header>
<span
slot=
"left"
></span>
<span
slot=
"left"
>
订单列表
</span>
<auth-button
category=
"Button"
></auth-button>
</d2-table-header>
<el-table
<el-table
:data=
"tableData"
border
:highlight-current-row=
"true"
...
...
@@ -120,7 +120,7 @@ export default {
2
:
'未升级'
,
3
:
'待支付'
,
4
:
'已支付'
,
//5: '已退款',
//
5: '已退款',
6
:
'已完成'
}
,
showFormData
:
[{
...
...
src/views/systemConfig/serviceStore.vue
View file @
2867e5f
...
...
@@ -26,6 +26,7 @@
</div>
<div
class=
"d2-container-content"
>
<d2-table-header>
<span
slot=
"left"
>
服务门店列表
</span>
<auth-button
category=
"Button"
></auth-button>
</d2-table-header>
<d2-table
...
...
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