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 6bedddb0
authored
Dec 22, 2025
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 门店毛利额模块CRUD接口联调
1 parent
47fba1ca
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
111 additions
and
133 deletions
src/api/shopConfig.js
src/views/earlyWarningManager/biEventManager/components/editDialog.vue
src/views/earlyWarningManager/biEventManager/index.vue
src/views/systemConfig/ShopConfig/storeGrossProfit/components/editDialog.vue
src/views/systemConfig/ShopConfig/storeGrossProfit/index.vue
src/api/shopConfig.js
View file @
6bedddb
...
@@ -323,45 +323,45 @@ export function updateOrderFieldSetting(data) {
...
@@ -323,45 +323,45 @@ export function updateOrderFieldSetting(data) {
data
.
method
=
"dj.api.smartcarlife.order.field.setting.update"
data
.
method
=
"dj.api.smartcarlife.order.field.setting.update"
return
request
(
data
)
return
request
(
data
)
}
}
/** 门店毛利额 start */
// 门店毛利额-列表
// 门店毛利额-列表
export
function
listProfitPage
(
data
)
{
export
function
listProfitPage
(
data
)
{
data
.
method
=
`
/
dj.api.script.merchant.profit.record.page`
data
.
method
=
`dj.api.script.merchant.profit.record.page`
return
request
(
data
)
return
request
(
data
)
}
}
// 门店毛利额-详情
// 门店毛利额-详情
export
function
getProfitDetail
(
data
)
{
export
function
getProfitDetail
(
data
)
{
data
.
method
=
`
/
dj.api.script.merchant.profit.record.detail`
data
.
method
=
`dj.api.script.merchant.profit.record.detail`
return
request
(
data
)
return
request
(
data
)
}
}
// 门店毛利额-删除
// 门店毛利额-删除
export
function
deleteProfit
(
data
)
{
export
function
deleteProfit
(
data
)
{
data
.
method
=
`
/
dj.api.script.merchant.profit.record.delete`
data
.
method
=
`dj.api.script.merchant.profit.record.delete`
return
request
(
data
)
return
request
(
data
)
}
}
// 门店毛利额-修改
// 门店毛利额-修改
export
function
updateProfit
(
data
)
{
export
function
updateProfit
(
data
)
{
data
.
method
=
`
/
dj.api.script.merchant.profit.record.upd`
data
.
method
=
`dj.api.script.merchant.profit.record.upd`
return
request
(
data
)
return
request
(
data
)
}
}
// 门店毛利额-新增
// 门店毛利额-新增
export
function
insertProfit
(
data
)
{
export
function
insertProfit
(
data
)
{
data
.
method
=
`
/
dj.api.script.merchant.profit.record.add`
data
.
method
=
`dj.api.script.merchant.profit.record.add`
return
request
(
data
)
return
request
(
data
)
}
}
// 门店毛利额-导出
// 门店毛利额-导出
export
function
exportProfit
(
data
)
{
export
function
exportProfit
(
data
)
{
data
.
method
=
`
/
dj.api.script.merchant.profit.record.async.export`
data
.
method
=
`dj.api.script.merchant.profit.record.async.export`
return
request
(
data
)
return
request
(
data
)
}
}
// 门店毛利额-导入
// 门店毛利额-导入
export
function
importProfit
(
data
)
{
export
function
importProfit
(
data
)
{
data
.
method
=
`
/
dj.api.script.merchant.profit.record.async.import`
data
.
method
=
`dj.api.script.merchant.profit.record.async.import`
return
request
(
data
)
return
request
(
data
)
}
}
\ No newline at end of file
\ No newline at end of file
src/views/earlyWarningManager/biEventManager/components/editDialog.vue
View file @
6bedddb
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</div>
</div>
<div
class=
"dialog-title1"
>
<div
class=
"dialog-title1"
>
<div
class=
"flex-1 flex"
>
<div
class=
"flex-1 flex"
>
<span
class=
"title-text"
>
事项
时间:
</span>
<span
class=
"title-text"
>
创建
时间:
</span>
<!--
<span
class=
"title-text1 flex-1"
>
{{
info
.
reason
}}
</span>
-->
<!--
<span
class=
"title-text1 flex-1"
>
{{
info
.
reason
}}
</span>
-->
<span
class=
"title-text1 flex-1"
>
2025-10-11
</span>
<span
class=
"title-text1 flex-1"
>
2025-10-11
</span>
</div>
</div>
...
...
src/views/earlyWarningManager/biEventManager/index.vue
View file @
6bedddb
...
@@ -77,7 +77,8 @@
...
@@ -77,7 +77,8 @@
}}
}}
</div>
</div>
</div>
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
>
<!-- 已处理状态不展示操作 -->
<template
v-if=
"scope.scope.auditStatus !== 1"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"handleAudits(scope.scope)"
@
click=
"handleAudits(scope.scope)"
...
...
src/views/systemConfig/ShopConfig/storeGrossProfit/components/editDialog.vue
View file @
6bedddb
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"4S门店:"
<el-form-item
label=
"4S门店:"
:prop=
"operationType =='add'?'
merchant
Id':''"
>
:prop=
"operationType =='add'?'
store
Id':''"
>
<div
v-if=
"operationType =='add'"
>
<div
v-if=
"operationType =='add'"
>
<el-select
v-model=
"formData.
merchant
Id"
<el-select
v-model=
"formData.
store
Id"
placeholder=
"请选择4S门店"
placeholder=
"请选择4S门店"
remote
remote
reserve-keyword
reserve-keyword
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</el-select>
</el-select>
</div>
</div>
<div
v-else
>
<div
v-else
>
{{
formData
.
merchantName
+
'('
+
formData
.
merchantId
+
')'
}}
{{
formData
.
storeName
}}
</div>
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -61,33 +61,33 @@
...
@@ -61,33 +61,33 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"所属月份:"
<el-form-item
label=
"所属月份:"
:prop=
"operationType =='add'?'
dealMonth
':''"
>
:prop=
"operationType =='add'?'
monthYear
':''"
>
<div
v-if=
"operationType =='add'"
>
<div
v-if=
"operationType =='add'"
>
<el-date-picker
v-model=
"formData.
dealMonth
"
<el-date-picker
v-model=
"formData.
monthYear
"
type=
"month"
type=
"month"
value-format=
"yyyy
-
MM"
value-format=
"yyyyMM"
format=
"yyyy
-
MM"
format=
"yyyyMM"
placeholder=
"选择月份"
placeholder=
"选择月份"
:picker-options=
"pickerOption"
:picker-options=
"pickerOption"
class=
"sortInput"
>
class=
"sortInput"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
<div
v-else
>
<div
v-else
>
{{
formData
.
dealMonth
}}
{{
formData
.
monthYear
}}
</div>
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"毛利额:"
<el-form-item
label=
"毛利额:"
:prop=
"operationType !='detail'?'
dealRate
':''"
>
:prop=
"operationType !='detail'?'
profitAmount
':''"
>
<div
v-if=
"operationType !='detail'"
>
<div
v-if=
"operationType !='detail'"
>
<el-input
v-model=
"formData.
dealRate
"
<el-input
v-model=
"formData.
profitAmount
"
@
input=
"dealRate_handleInput"
@
input=
"dealRate_handleInput"
placeholder=
"请输入毛利额"
placeholder=
"请输入毛利额"
class=
"sortInput"
/>
class=
"sortInput"
/>
</div>
</div>
<div
v-else
>
<div
v-else
>
{{
formData
.
dealRate
}}
{{
formData
.
profitAmount
}}
</div>
</div>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"录入时间:"
<el-form-item
label=
"录入时间:"
v-if=
"operationType!='add'"
>
v-if=
"operationType!='add'"
>
{{
formData
.
created
DateShow
}}
{{
formData
.
created
At
}}
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -122,7 +122,7 @@ import { Util, deepClone } from '@/common/util'
...
@@ -122,7 +122,7 @@ import { Util, deepClone } from '@/common/util'
import
{
limitPrice
}
from
'@/common/format'
import
{
limitPrice
}
from
'@/common/format'
import
{
getList
}
from
"@api/merchant"
import
{
getList
}
from
"@api/merchant"
import
{
outputValue_operTypeOpt
}
from
"@/common/constants.js"
import
{
outputValue_operTypeOpt
}
from
"@/common/constants.js"
import
{
insertP
ersonalConfig
,
getById_personal
,
getCarBrand
,
getStaffDataApi
}
from
'@api/shopConfig'
import
{
insertP
rofit
,
getProfitDetail
,
getStaffDataApi
,
updateProfit
}
from
'@api/shopConfig'
import
reportTrackFunMixin
from
'@/mixins/reportTrackFunMixin'
import
reportTrackFunMixin
from
'@/mixins/reportTrackFunMixin'
export
default
{
export
default
{
...
@@ -169,18 +169,11 @@ export default {
...
@@ -169,18 +169,11 @@ export default {
},
},
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
formData
:
{
formData
:
{
merchantId
:
''
,
storeId
:
''
,
merchantName
:
''
,
storeName
:
''
,
brand
:
[],
profitAmount
:
''
,
brandId
:
''
,
monthYear
:
''
,
brandName
:
''
,
brandChildId
:
''
,
brandChildName
:
''
,
dealRate
:
''
,
dealMonth
:
''
,
businessType
:
''
,
businessType
:
''
,
staffUuid
:
''
,
staffName
:
''
},
},
oldVal
:
{
oldVal
:
{
dealRate
:
''
dealRate
:
''
...
@@ -190,11 +183,9 @@ export default {
...
@@ -190,11 +183,9 @@ export default {
width
:
'1080px'
width
:
'1080px'
},
},
formRules
:
{
formRules
:
{
merchantId
:
[{
required
:
true
,
message
:
'请选择4S门店'
,
trigger
:
'change'
}],
storeId
:
[{
required
:
true
,
message
:
'请选择4S门店'
,
trigger
:
'change'
}],
brand
:
[{
required
:
true
,
message
:
'请选择品牌'
,
trigger
:
'change'
}],
monthYear
:
[{
required
:
true
,
message
:
'请选择所属月份'
,
trigger
:
'change'
}],
dealMonth
:
[{
required
:
true
,
message
:
'请选择成交月份'
,
trigger
:
'change'
}],
profitAmount
:
[{
required
:
true
,
message
:
'请输入毛利额'
,
trigger
:
'blur'
}],
dealRate
:
[{
required
:
true
,
message
:
'请输入成交率'
,
trigger
:
'blur'
}],
staffUuid
:
[{
required
:
true
,
message
:
'请输入驻店员工'
,
trigger
:
'blur'
}],
businessType
:
[{
required
:
true
,
message
:
'请选择业务类型'
,
trigger
:
'change'
}]
businessType
:
[{
required
:
true
,
message
:
'请选择业务类型'
,
trigger
:
'change'
}]
},
},
searchForm
:
{
searchForm
:
{
...
@@ -220,7 +211,7 @@ export default {
...
@@ -220,7 +211,7 @@ export default {
}
}
},
{
},
{
label
:
'操作人'
,
label
:
'操作人'
,
prop
:
'operator
Name
'
prop
:
'operator'
}]
}]
},
},
baseData
:
{
baseData
:
{
...
@@ -228,21 +219,20 @@ export default {
...
@@ -228,21 +219,20 @@ export default {
businessTypeList
:
[],
businessTypeList
:
[],
staffList
:
[]
staffList
:
[]
},
},
carBrands
:
[],
operTypeOpt
:
deepClone
(
outputValue_operTypeOpt
),
operTypeOpt
:
deepClone
(
outputValue_operTypeOpt
),
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
20
,
pageSize
:
20
,
defaultBusinessList
:
[{
defaultBusinessList
:
[{
confId
:
0
,
confValue
:
'轻改'
},
{
confId
:
1
,
confId
:
1
,
confValue
:
'
权益
'
confValue
:
'
延保
'
},
{
},
{
confId
:
2
,
confId
:
2
,
confValue
:
'
延保
'
confValue
:
'
轻改
'
},
{
},
{
confId
:
3
,
confId
:
3
,
confValue
:
'权益'
},
{
confId
:
4
,
confValue
:
'二手车'
confValue
:
'二手车'
}]
}]
}
}
...
@@ -277,7 +267,7 @@ export default {
...
@@ -277,7 +267,7 @@ export default {
mounted
()
{
mounted
()
{
if
(
this
.
paramsObj
)
{
if
(
this
.
paramsObj
)
{
this
.
getInfo
(
this
.
paramsObj
.
i
d
)
this
.
getInfo
(
this
.
paramsObj
.
recordI
d
)
if
(
this
.
operationType
==
'edit'
)
{
if
(
this
.
operationType
==
'edit'
)
{
this
.
dialogConfig
.
title
=
'修改毛利'
this
.
dialogConfig
.
title
=
'修改毛利'
}
else
{
}
else
{
...
@@ -292,9 +282,7 @@ export default {
...
@@ -292,9 +282,7 @@ export default {
methods
:
{
methods
:
{
handleChangeBusiness
(
e
)
{
handleChangeBusiness
(
e
)
{
let
sceneType
=
e
==
0
?
1
:
0
// 轻改对应精品升级场景值(1)权益延保对应会员权益升级场景值(0)
let
sceneType
=
e
==
0
?
1
:
0
this
.
formData
.
staffUuid
=
''
this
.
formData
.
staffName
=
''
if
(
!
this
.
formData
.
merchantId
)
return
if
(
!
this
.
formData
.
merchantId
)
return
this
.
getStaffList
(
sceneType
,
this
.
formData
.
merchantId
)
this
.
getStaffList
(
sceneType
,
this
.
formData
.
merchantId
)
},
},
...
@@ -349,12 +337,12 @@ export default {
...
@@ -349,12 +337,12 @@ export default {
},
},
getInfo
(
id
)
{
getInfo
(
id
)
{
get
ById_persona
l
({
get
ProfitDetai
l
({
i
d
:
id
recordI
d
:
id
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
)
res
.
businessTypeDesc
=
this
.
defaultBusinessList
?.
find
(
v
=>
v
.
confId
==
res
?.
businessType
)?.
confValue
if
(
res
)
res
.
businessTypeDesc
=
this
.
defaultBusinessList
?.
find
(
v
=>
v
.
confId
==
res
?.
businessType
)?.
confValue
this
.
formData
=
deepClone
(
res
)
this
.
formData
=
deepClone
(
res
)
this
.
tableData
=
deepClone
(
res
.
operat
eLogs
)
this
.
tableData
=
deepClone
(
res
.
operat
ionRecord
)
this
.
formData
.
createdDateShow
=
this
.
formData
.
createdDate
this
.
formData
.
createdDateShow
=
this
.
formData
.
createdDate
?
Util
.
dateFormate
(
this
.
formData
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
?
Util
.
dateFormate
(
this
.
formData
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
""
:
""
...
@@ -363,18 +351,7 @@ export default {
...
@@ -363,18 +351,7 @@ export default {
},
},
choose4S
(
merchantId
)
{
choose4S
(
merchantId
)
{
this
.
formData
.
brand
=
[]
this
.
formData
.
brandId
=
''
this
.
formData
.
brandName
=
''
this
.
formData
.
brandChildId
=
''
this
.
formData
.
brandChildName
=
''
this
.
formData
.
staffUuid
=
''
// 清空员工
this
.
formData
.
staffName
=
''
this
.
formData
.
businessType
=
''
// 清空业务类型
this
.
formData
.
businessType
=
''
// 清空业务类型
if
(
merchantId
)
{
this
.
getCarBrand
(
merchantId
)
}
let
selectObj
=
this
.
baseData
.
merchantList
?.
find
(
v
=>
v
.
merchantId
==
merchantId
)
let
selectObj
=
this
.
baseData
.
merchantList
?.
find
(
v
=>
v
.
merchantId
==
merchantId
)
this
.
baseData
.
businessTypeList
=
this
.
filterArray
(
this
.
defaultBusinessList
,
selectObj
.
sceneList
)
this
.
baseData
.
businessTypeList
=
this
.
filterArray
(
this
.
defaultBusinessList
,
selectObj
.
sceneList
)
},
},
...
@@ -405,35 +382,17 @@ export default {
...
@@ -405,35 +382,17 @@ export default {
return
result
return
result
},
},
getCarBrand
(
merchantId
)
{
getCarBrand
({
merchantId
:
merchantId
}).
then
(
res
=>
{
this
.
carBrands
=
deepClone
(
res
)
}).
catch
(()
=>
{
})
},
chooseBrand
(
value
)
{
const
checkedNode
=
this
.
$refs
.
cascader
.
getCheckedNodes
()[
0
]
const
brandNode
=
checkedNode
.
pathNodes
[
0
]
const
childNode
=
checkedNode
.
pathNodes
[
1
]
this
.
formData
.
brandId
=
brandNode
.
value
this
.
formData
.
brandName
=
brandNode
.
label
this
.
formData
.
brandChildId
=
childNode
.
value
this
.
formData
.
brandChildName
=
childNode
.
label
},
dealRate_handleInput
(
newVal
)
{
dealRate_handleInput
(
newVal
)
{
this
.
formData
.
dealRate
=
limitPrice
(
this
.
formData
.
profitAmount
=
limitPrice
(
newVal
,
newVal
,
this
.
oldVal
.
dealRate
,
this
.
oldVal
.
profitAmount
,
3
,
3
,
2
,
2
,
0
,
0
,
100
100
)
)
this
.
oldVal
.
dealRate
=
this
.
formData
.
dealRate
this
.
oldVal
.
profitAmount
=
this
.
formData
.
profitAmount
},
},
handleAddConfirm
()
{
handleAddConfirm
()
{
...
@@ -443,16 +402,26 @@ export default {
...
@@ -443,16 +402,26 @@ export default {
}
}
this
.
$refs
.
infoForm
.
validate
(
valid
=>
{
this
.
$refs
.
infoForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
var
params
=
deepClone
(
this
.
formData
)
let
params
params
.
merchantName
=
this
.
baseData
.
merchantList
.
find
(
item
=>
item
.
merchantId
==
params
.
merchantId
)?.
merchantName
||
params
?.
merchantName
// 根据操作类型区分请求参数
params
.
staffName
=
this
.
baseData
.
staffList
?.
find
(
item
=>
item
.
staffUuid
==
params
.
staffUuid
)?.
staffName
||
params
?.
staffName
if
(
this
.
operationType
==
'edit'
)
{
params
.
brandChildId
=
params
.
brandChildId
||
params
?.
carChildsBrandId
// 编辑时使用详情接口返回的carChildsBrandId
// 编辑模式:只传递 profitAmount 和 recordId
params
.
brandChildName
=
params
.
brandChildName
||
params
?.
carChildsBrandName
params
=
{
recordId
:
this
.
formData
.
recordId
,
profitAmount
:
this
.
formData
.
profitAmount
}
}
else
{
// 新增模式:传递完整参数
params
=
deepClone
(
this
.
formData
)
// params.merchantName = this.baseData.merchantList.find(item => item.merchantId == params.merchantId)?.merchantName || params?.merchantName
delete
params
.
createdDate
delete
params
.
createdDate
delete
params
.
updatedDate
delete
params
.
updatedDate
delete
params
.
operateLogs
delete
params
.
operateLogs
delete
params
.
createdDateShow
delete
params
.
createdDateShow
insertPersonalConfig
(
params
).
then
(
res
=>
{
}
// 根据操作类型判断调用新增还是修改接口
const
apiMethod
=
this
.
operationType
==
'edit'
?
updateProfit
:
insertProfit
apiMethod
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
(
'操作成功'
)
this
.
notice
.
okTips
(
'操作成功'
)
this
.
dialogShow
=
true
this
.
dialogShow
=
true
})
})
...
...
src/views/systemConfig/ShopConfig/storeGrossProfit/index.vue
View file @
6bedddb
...
@@ -10,9 +10,7 @@
...
@@ -10,9 +10,7 @@
:form-data=
"showFormData"
:form-data=
"showFormData"
label-width=
"120px"
>
label-width=
"120px"
>
<div
slot=
"4sHtml"
>
<div
slot=
"4sHtml"
>
<el-select
v-model=
"searchForm.merchantIds"
<el-select
v-model=
"searchForm.storeId"
multiple
collapse-tags
remote
remote
reserve-keyword
reserve-keyword
placeholder=
"请选择4S店"
placeholder=
"请选择4S店"
...
@@ -34,14 +32,10 @@
...
@@ -34,14 +32,10 @@
value-format=
"yyyy-MM"
value-format=
"yyyy-MM"
format=
"yyyy-MM"
format=
"yyyy-MM"
placeholder=
"选择月"
placeholder=
"选择月"
:picker-options=
"monthPickerOptions"
style=
"width: 100%;"
>
style=
"width: 100%;"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
<!--
<div
slot=
"dealRateHtml"
>
<input-range
start-placeholder=
"最小成交率"
end-placeholder=
"最大成交率"
:display-value=
"searchForm.dealRate"
></input-range>
</div>
-->
</d2-search>
</d2-search>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
<el-button
:id=
"tableParams.btnId"
...
@@ -142,7 +136,7 @@
...
@@ -142,7 +136,7 @@
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
Util
,
deepClone
}
from
"@/common/util"
import
inputRange
from
'./components/inputRange'
import
inputRange
from
'./components/inputRange'
import
editDialog
from
"./components/editDialog"
import
editDialog
from
"./components/editDialog"
import
{
list
WithPage_personal
,
personalConfigImport
,
deleteById_personal
}
from
'@api/shopConfig'
import
{
list
ProfitPage
,
personalConfigImport
,
deleteProfit
}
from
'@api/shopConfig'
import
{
getList
}
from
"@api/merchant"
import
{
getList
}
from
"@api/merchant"
import
reportTrackFunMixin
from
'@/mixins/reportTrackFunMixin'
import
reportTrackFunMixin
from
'@/mixins/reportTrackFunMixin'
export
default
{
export
default
{
...
@@ -169,7 +163,7 @@
...
@@ -169,7 +163,7 @@
data
()
{
data
()
{
return
{
return
{
searchForm
:
{
searchForm
:
{
merchantIds
:
[],
storeId
:
[],
brandChildIds
:
[],
brandChildIds
:
[],
brandId
:
""
,
brandId
:
""
,
dealMonth
:
""
,
dealMonth
:
""
,
...
@@ -180,7 +174,7 @@
...
@@ -180,7 +174,7 @@
searchFormSearch
:
{},
searchFormSearch
:
{},
showFormData
:
[
showFormData
:
[
{
{
label
:
"4
s
门店"
,
label
:
"4
S
门店"
,
name
:
"merchantIds"
,
name
:
"merchantIds"
,
addHtml
:
"4sHtml"
addHtml
:
"4sHtml"
},
},
...
@@ -207,7 +201,7 @@
...
@@ -207,7 +201,7 @@
pickerOptions
:
'rangePickerOptions'
pickerOptions
:
'rangePickerOptions'
}
}
],
],
getListApi
:
list
WithPage_personal
,
getListApi
:
list
ProfitPage
,
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
...
@@ -216,10 +210,7 @@
...
@@ -216,10 +210,7 @@
tableColumns
:
[
tableColumns
:
[
{
{
label
:
"4S门店"
,
label
:
"4S门店"
,
prop
:
"merchantId"
,
prop
:
"storeName"
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
merchantName
+
"("
+
cellValue
.
merchantId
+
")"
}
},
},
{
{
label
:
"业务类型"
,
label
:
"业务类型"
,
...
@@ -228,23 +219,23 @@
...
@@ -228,23 +219,23 @@
},
},
{
{
label
:
"所属月份"
,
label
:
"所属月份"
,
prop
:
"
dealMonth
"
,
prop
:
"
monthYear
"
,
width
:
"150"
width
:
"150"
},
},
{
{
label
:
"毛利额"
,
label
:
"毛利额"
,
prop
:
"
dealRate
"
,
prop
:
"
profitAmount
"
,
width
:
"200"
,
width
:
"200"
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
(
cellValue
.
dealRate
||
cellValue
.
dealRate
==
0
)
?
cellValue
.
dealRate
:
"-"
return
(
cellValue
.
profitAmount
||
cellValue
.
profitAmount
==
0
)
?
cellValue
.
profitAmount
:
"-"
}
}
},
},
{
{
label
:
"导入时间"
,
label
:
"导入时间"
,
prop
:
"created
Date
"
,
prop
:
"created
At
"
,
width
:
"180"
,
width
:
"180"
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
created
Date
,
"YYYY-MM-DD HH:mm:ss"
)
return
Util
.
dateFormate
(
cellValue
.
created
At
,
"YYYY-MM-DD HH:mm:ss"
)
}
}
}
}
]
]
...
@@ -266,16 +257,16 @@
...
@@ -266,16 +257,16 @@
confValue
:
'二手车'
confValue
:
'二手车'
}],
}],
businessOptShowClass
:
{
businessOptShowClass
:
{
0
:
"type-yellow
"
,
1
:
"type-green
"
,
1
:
"type-blue
"
,
2
:
"type-yellow
"
,
2
:
"type-green
"
,
3
:
"type-purple
"
,
3
:
"type-purpl
e"
4
:
"type-blu
e"
},
},
businessNameShow
:
{
businessNameShow
:
{
0
:
"轻改
"
,
1
:
"延保
"
,
1
:
"权益
"
,
2
:
"轻改
"
,
2
:
"延保
"
,
3
:
"权益
"
,
3
:
"二手车"
4
:
"二手车"
},
},
},
},
fileRules
:
{
fileRules
:
{
...
@@ -289,7 +280,19 @@
...
@@ -289,7 +280,19 @@
fileForm
:
{},
fileForm
:
{},
editVisible
:
false
,
editVisible
:
false
,
track_event_code
:
'shopConfig_personalConversion_list'
,
track_event_code
:
'shopConfig_personalConversion_list'
,
track_businessParam_key
:
'searchForm'
track_businessParam_key
:
'searchForm'
,
// 月份选择器配置:仅允许选择当前月份及之前的月份
monthPickerOptions
:
{
disabledDate
(
time
)
{
const
now
=
new
Date
()
const
currentYear
=
now
.
getFullYear
()
const
currentMonth
=
now
.
getMonth
()
const
timeYear
=
time
.
getFullYear
()
const
timeMonth
=
time
.
getMonth
()
// 禁用未来的月份
return
timeYear
>
currentYear
||
(
timeYear
===
currentYear
&&
timeMonth
>
currentMonth
)
}
}
}
}
},
},
...
@@ -332,11 +335,11 @@
...
@@ -332,11 +335,11 @@
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
if
(
this
.
searchFormSearch
.
createTime
)
{
if
(
this
.
searchFormSearch
.
createTime
)
{
this
.
searchFormSearch
.
createdS
tartDate
=
Util
.
dateFormate
(
this
.
searchFormSearch
.
createTime
[
0
],
'YYYY-MM-DD HH:mm:ss'
)
this
.
searchFormSearch
.
s
tartDate
=
Util
.
dateFormate
(
this
.
searchFormSearch
.
createTime
[
0
],
'YYYY-MM-DD HH:mm:ss'
)
this
.
searchFormSearch
.
createdE
ndDate
=
Util
.
dateFormate
(
this
.
searchFormSearch
.
createTime
[
1
],
'YYYY-MM-DD'
)
+
' 23:59:59'
this
.
searchFormSearch
.
e
ndDate
=
Util
.
dateFormate
(
this
.
searchFormSearch
.
createTime
[
1
],
'YYYY-MM-DD'
)
+
' 23:59:59'
}
else
{
}
else
{
delete
this
.
searchFormSearch
.
createdS
tartDate
delete
this
.
searchFormSearch
.
s
tartDate
delete
this
.
searchFormSearch
.
createdE
ndDate
delete
this
.
searchFormSearch
.
e
ndDate
}
}
if
(
this
.
searchFormSearch
.
dealRate
&&
this
.
searchFormSearch
.
dealRate
.
length
>
0
)
{
if
(
this
.
searchFormSearch
.
dealRate
&&
this
.
searchFormSearch
.
dealRate
.
length
>
0
)
{
this
.
searchFormSearch
.
dealRateStart
=
this
.
searchFormSearch
.
dealRate
[
0
]
this
.
searchFormSearch
.
dealRateStart
=
this
.
searchFormSearch
.
dealRate
[
0
]
...
@@ -401,7 +404,7 @@
...
@@ -401,7 +404,7 @@
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
merchantIds
:
[],
storeId
:
[],
brandChildIds
:
[],
brandChildIds
:
[],
brandId
:
""
,
brandId
:
""
,
dealMonth
:
""
,
dealMonth
:
""
,
...
@@ -561,7 +564,7 @@
...
@@ -561,7 +564,7 @@
type
:
'warning'
,
type
:
'warning'
,
closeOnClickModal
:
false
closeOnClickModal
:
false
}).
then
(()
=>
{
}).
then
(()
=>
{
delete
ById_personal
({
id
:
row
.
id
}).
then
(
res
=>
{
delete
Profit
({
recordId
:
row
.
recordId
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
$refs
.
personalTable
.
refreshTable
()
this
.
$refs
.
personalTable
.
refreshTable
()
})
})
...
@@ -608,18 +611,23 @@
...
@@ -608,18 +611,23 @@
}
}
.type-yellow
{
.type-yellow
{
@include
typeBase();
@include
typeBase();
background
:
#
ff8d1a1
a
;
background
:
#
FF8D1A1
A
;
color
:
#
ff8d1a
;
color
:
#
FF8D1A
FF
;
}
}
.type-blue
{
.type-blue
{
@include
typeBase();
@include
typeBase();
background
:
#
5850ff1
a
;
background
:
#
2A58AD1
A
;
color
:
#
5850ff
;
color
:
#
2A58AD
FF
;
}
}
.type-green
{
.type-green
{
@include
typeBase();
@include
typeBase();
background
:
#43cf7c1
a
;
background
:
#43CF7C1
A
;
color
:
#43cf7c
;
color
:
#43CF7C
FF
;
}
.type-purple
{
@include
typeBase();
background
:
#5850FF1
A
;
color
:
#5850FF
FF
;
}
}
.import-template
{
.import-template
{
...
...
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