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 2e8884b0
authored
Jun 18, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
店铺设置,对账单
1 parent
d139b455
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
348 additions
and
110 deletions
src/api/accountManage.js
src/router/modules/905_financialManagement.js
src/views/financeManage/accountStateManage/index.vue
src/views/financeManage/components/ChangeDetailDialog.vue
src/views/financeManage/components/DynamicAddTable.vue
src/views/financeManage/components/SystemBillDetailDialog.vue
src/views/financeManage/components/SystemBillDialog.vue
src/views/financeManage/constant/baseData.js
src/views/financeManage/downloadAccountDialog.vue
src/views/systemConfig/ShopConfig/index.vue
src/views/systemConfig/ShopConfig/shopSet.vue
src/api/accountManage.js
View file @
2e8884b
...
@@ -49,3 +49,50 @@ export function getBillTmplAdapter(data) {
...
@@ -49,3 +49,50 @@ export function getBillTmplAdapter(data) {
data
.
method
=
'dj.api.smartcarlife.reconciliationBill.generateUseRequestAdapter'
data
.
method
=
'dj.api.smartcarlife.reconciliationBill.generateUseRequestAdapter'
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 对账单测算
export
function
billCompute
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.reconciliationBill.computeByJson'
return
request
(
data
,
"post"
)
}
// 对账单编辑
export
function
editBill
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.reconciliationBill.updateByJson'
return
request
(
data
,
"post"
)
}
export
function
billDetail
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.reconciliationBill.detail'
return
request
(
data
,
"post"
)
}
//根据服务商商户号分页获取4S店列表
export
function
getShopList
(
data
)
{
data
.
method
=
'dj.api.scenemerchantref.queryShopRefByPartnerShopPage'
return
request
(
data
)
}
// 对账单确认
export
function
billConfirm
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.reconciliationBill.confirm'
return
request
(
data
,
"post"
)
}
// 对账单取消
export
function
billCancel
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.reconciliationBill.cancel'
return
request
(
data
,
"post"
)
}
// 对账单待确认内容确认
export
function
billConfirmChange
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.reconciliationBill.confirmChange'
return
request
(
data
,
"post"
)
}
// 对账单待取消内容确认
export
function
billCancelChange
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.reconciliationBill.cancelChange'
return
request
(
data
,
"post"
)
}
src/router/modules/905_financialManagement.js
View file @
2e8884b
...
@@ -454,7 +454,7 @@ export const routerName = {
...
@@ -454,7 +454,7 @@ export const routerName = {
authId
:
"9051102"
,
authId
:
"9051102"
,
parentId
:
"90511"
,
parentId
:
"90511"
,
label
:
"确认对账"
,
label
:
"确认对账"
,
handle
:
"handle
Download"
handle
:
"handle
BillConfirm"
},
},
{
{
authId
:
"9051103"
,
authId
:
"9051103"
,
...
@@ -484,7 +484,7 @@ export const routerName = {
...
@@ -484,7 +484,7 @@ export const routerName = {
authId
:
"9051107"
,
authId
:
"9051107"
,
parentId
:
"90511"
,
parentId
:
"90511"
,
label
:
"下载"
,
label
:
"下载"
,
handle
:
"handle
Download"
handle
:
"handle
Export"
}
}
],
],
component
:
_import
(
"financeManage/accountStateManage/index"
)
component
:
_import
(
"financeManage/accountStateManage/index"
)
...
...
src/views/financeManage/accountStateManage/index.vue
View file @
2e8884b
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"hasConfirmContent"
slot-scope=
"scope"
>
<div
slot=
"hasConfirmContent"
slot-scope=
"scope"
>
<el-button
v-if=
"scope.scope.hasConfirmContent"
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看说明
</el-button>
<el-button
v-if=
"scope.scope.hasConfirmContent"
type=
"text"
@
click=
"handle
Change
Detail(scope.scope)"
>
查看说明
</el-button>
<span
v-else
>
——
</span>
<span
v-else
>
——
</span>
</div>
</div>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
...
@@ -54,28 +54,36 @@
...
@@ -54,28 +54,36 @@
</div>
</div>
</d2-container>
</d2-container>
<ChangeDetailDialog
v-if=
"detailVisible"
:detailVisible=
"detailVisible"
:info=
"info"
@
dialogClose=
"handleChangeDetail"
></ChangeDetailDialog>
<ChangeDetailDialog
v-if=
"detailVisible"
:detailVisible=
"detailVisible"
:info=
"info"
@
dialogClose=
"handleChangeDetail"
></ChangeDetailDialog>
<system-bill-dialog
v-if=
"billVisible"
:billVisible=
"billVisible"
:billTmplInfo=
"billTmplInfo"
@
handleClose=
"handleBillVisible"
></system-bill-dialog>
<system-bill-detail-dialog
v-if=
"billDetailVisible"
:billVisible=
"billDetailVisible"
:billTmplInfo=
"billTmplInfo"
@
handleClose=
"handleChangeDetailVisible"
></system-bill-detail-dialog>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
//
import { mapActions, mapState } from 'vuex'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
getBillList
}
from
'@api/accountManage'
import
{
getBillList
,
editBill
,
billDetail
,
billConfirm
,
billCancel
,
billConfirmChange
,
billCancelChange
}
from
'@api/accountManage'
import
{
tmplTypeList
,
billStatusList
}
from
"../constant/baseData"
import
{
tmplTypeList
,
billStatusList
,
sceneTypeList
}
from
"../constant/baseData"
import
ChangeDetailDialog
from
'../components/ChangeDetailDialog'
import
ChangeDetailDialog
from
'../components/ChangeDetailDialog'
import
SystemBillDialog
from
"../components/SystemBillDialog"
import
SystemBillDetailDialog
from
"../components/SystemBillDetailDialog"
export
default
{
export
default
{
name
:
'accountStateManage'
,
name
:
'accountStateManage'
,
components
:
{
components
:
{
ChangeDetailDialog
ChangeDetailDialog
,
SystemBillDialog
,
SystemBillDetailDialog
},
},
data
()
{
data
()
{
return
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
labelWidth
:
'110px'
,
labelWidth
:
'110px'
,
detailVisible
:
false
,
detailVisible
:
false
,
billDetailVisible
:
false
,
info
:
''
,
info
:
''
,
searchForm
:
{
searchForm
:
{
shopMerchantName
:
''
,
shopMerchantName
:
''
,
sceneType
:
''
,
billMerchantName
:
''
,
billMerchantName
:
''
,
accountDate
:
[],
accountDate
:
[],
createdDate
:
[],
createdDate
:
[],
...
@@ -121,6 +129,14 @@ export default {
...
@@ -121,6 +129,14 @@ export default {
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionLabel
:
'confLabel'
,
optionsName
:
'tmplTypeList'
optionsName
:
'tmplTypeList'
},
{
label
:
'业务场景'
,
name
:
'sceneType'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confLabel'
,
optionsName
:
'sceneTypeList'
}],
}],
getListApi
:
getBillList
,
getListApi
:
getBillList
,
tableParams
:
{
tableParams
:
{
...
@@ -131,6 +147,12 @@ export default {
...
@@ -131,6 +147,12 @@ export default {
label
:
'流量方'
,
label
:
'流量方'
,
prop
:
'shopMerchantName'
prop
:
'shopMerchantName'
},
{
},
{
label
:
'业务场景'
,
prop
:
'sceneType'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
baseData
.
sceneTypeList
.
find
(
item
=>
item
.
confId
==
cellValue
.
sceneType
)?.
confLabel
||
'——'
}
},
{
label
:
'对账周期'
,
label
:
'对账周期'
,
prop
:
''
,
prop
:
''
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
...
@@ -176,15 +198,24 @@ export default {
...
@@ -176,15 +198,24 @@ export default {
},
},
baseData
:
{
baseData
:
{
billStatusList
:
billStatusList
,
billStatusList
:
billStatusList
,
tmplTypeList
:
tmplTypeList
tmplTypeList
:
tmplTypeList
,
sceneTypeList
:
sceneTypeList
},
},
billVisible
:
false
,
billTmplInfo
:
[]
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'showFormData'
)
this
.
getOptionsList
(
'showFormData'
)
},
},
computed
:
{
...
mapState
({
dowloadList
:
(
state
)
=>
state
.
d2admin
.
user
.
dowloadList
}),
},
methods
:
{
methods
:
{
...
mapActions
(
'd2admin/user'
,
[
'actionSetDownloadList'
]),
getParams
()
{
getParams
()
{
var
params
=
deepClone
(
this
.
searchForm
)
var
params
=
deepClone
(
this
.
searchForm
)
const
dateFormatList
=
[{
const
dateFormatList
=
[{
...
@@ -244,6 +275,7 @@ export default {
...
@@ -244,6 +275,7 @@ export default {
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
shopMerchantName
:
''
,
shopMerchantName
:
''
,
sceneType
:
''
,
billMerchantName
:
''
,
billMerchantName
:
''
,
accountDate
:
[],
accountDate
:
[],
createdDate
:
[],
createdDate
:
[],
...
@@ -253,14 +285,107 @@ export default {
...
@@ -253,14 +285,107 @@ export default {
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
this
.
$refs
.
recordTable
.
refreshTable
(
false
,
true
)
},
},
handleChangeDetail
()
{
handleBillVisible
()
{
this
.
billVisible
=
!
this
.
billVisible
},
handleEdit
(
row
)
{
billDetail
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
billTmplInfo
=
deepClone
(
res
)
this
.
handleBillVisible
()
})
},
handleBillConfirm
(
row
)
{
this
.
$confirm
(
'是否确认对账?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
id
:
row
.
id
}
billConfirm
(
params
).
then
(
res
=>
{
this
.
$message
.
success
(
"操作成功"
)
this
.
handleReset
()
})
}).
catch
(()
=>
{
})
},
handleCancel
(
row
)
{
this
.
$confirm
(
'是否取消对账?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
id
:
row
.
id
}
billCancel
(
params
).
then
(
res
=>
{
this
.
$message
.
success
(
"操作成功"
)
this
.
handleReset
()
})
}).
catch
(()
=>
{
})
},
handleChangeConfirm
(
row
)
{
this
.
$confirm
(
'是否确认内容变更?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
id
:
row
.
id
}
billConfirmChange
(
params
).
then
(
res
=>
{
this
.
$message
.
success
(
"操作成功"
)
this
.
handleReset
()
})
}).
catch
(()
=>
{
})
},
handleChangeCacel
(
row
)
{
this
.
$confirm
(
'是否取消内容变更?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
id
:
row
.
id
}
billCancelChange
(
params
).
then
(
res
=>
{
this
.
$message
.
success
(
"操作成功"
)
this
.
handleReset
()
})
}).
catch
(()
=>
{
})
},
handleExport
(
row
)
{
var
params
=
{
id
:
row
.
id
}
params
.
method
=
'dj.api.smartcarlife.reconciliationBill.export.async'
const
list
=
[
...
this
.
dowloadList
,
{
name
:
'对账单'
,
exportParam
:
JSON
.
stringify
(
params
),
status
:
'waiting'
,
timeid
:
new
Date
().
getTime
()
}
]
this
.
actionSetDownloadList
({
list
,
type
:
'dowloadList'
})
},
handleChangeVisible
()
{
this
.
detailVisible
=
!
this
.
detailVisible
this
.
detailVisible
=
!
this
.
detailVisible
},
},
handleDetail
(
row
)
{
handle
Change
Detail
(
row
)
{
console
.
log
(
row
,
'row---'
)
console
.
log
(
row
,
'row---'
)
this
.
info
=
row
this
.
info
=
row
this
.
handleChangeDetail
()
this
.
handleChangeVisible
()
},
handleChangeDetailVisible
()
{
this
.
billDetailVisible
=
!
this
.
billDetailVisible
},
},
handleDetail
(
row
)
{
console
.
log
(
row
,
'row---'
)
this
.
info
=
row
this
.
handleChangeDetailVisible
()
}
}
}
}
}
...
...
src/views/financeManage/components/ChangeDetailDialog.vue
View file @
2e8884b
<!-- 对账单管理 - 变更说明弹窗 -->
<!-- 对账单管理 - 变更说明弹窗 -->
<
template
>
<
template
>
<d2-dialog
title=
"变更说明"
:is-visible=
"detailVisible"
class=
"privacyDailog"
width=
"
30%
"
btnOkLabel=
"关闭"
:noCancel=
"true"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<d2-dialog
title=
"变更说明"
:is-visible=
"detailVisible"
class=
"privacyDailog"
width=
"
1080px
"
btnOkLabel=
"关闭"
:noCancel=
"true"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<d2-table
ref=
"tmplTable"
:get-list-api=
"getListApi"
:search-form=
"searchForm"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<d2-table
ref=
"tmplTable"
:get-list-api=
"getListApi"
:search-form=
"searchForm"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
</d2-table>
</d2-table>
</d2-dialog>
</d2-dialog>
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<
script
>
<
script
>
import
{
getBillDetailList
}
from
'@api/accountManage'
import
{
getBillDetailList
}
from
'@api/accountManage'
import
{
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
export
default
{
export
default
{
name
:
'ChangeDetailDialog'
,
name
:
'ChangeDetailDialog'
,
data
()
{
data
()
{
...
@@ -21,16 +21,23 @@ export default {
...
@@ -21,16 +21,23 @@ export default {
tableOption
:
false
,
tableOption
:
false
,
tableColumns
:
[{
tableColumns
:
[{
label
:
'变更类型'
,
label
:
'变更类型'
,
prop
:
''
,
prop
:
'changeType'
,
formatter
:
(
cellValue
)
=>
{
return
{
1
:
'删除'
,
2
:
'新增'
}[
cellValue
.
changeType
]
}
},
{
},
{
label
:
'订单编码'
,
label
:
'订单编码'
,
prop
:
''
,
prop
:
'
orderCode
'
,
},
{
},
{
label
:
'变更人'
,
label
:
'变更人'
,
prop
:
''
,
prop
:
'
operator
'
,
},
{
},
{
label
:
'变更时间'
,
label
:
'变更时间'
,
prop
:
''
,
width
:
'150px'
,
prop
:
'createdDate'
,
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
createdDate
,
'YYYY-MM-DD HH:mm:ss'
)
}
}]
}]
}
}
}
}
...
...
src/views/financeManage/components/DynamicAddTable.vue
View file @
2e8884b
<
template
>
<
template
>
<div
class=
"dynamic-table-container"
>
<div
class=
"dynamic-table-container"
>
员工标签:
<el-button
员工标签:
<el-button
type=
"default"
v-if=
"isEdit"
@
click=
"addRow"
>
type=
"default"
@
click=
"addRow"
>
添加事由
添加事由
</el-button>
</el-button>
<el-form
:model=
"dynamicForm"
ref=
"dynamicForm"
>
<el-form
:model=
"dynamicForm"
ref=
"dynamicForm"
>
<el-table
<el-table
:data=
"tableData"
border
style=
"width: 100%; margin-top: 20px"
>
:data=
"tableData"
<el-table-column
prop=
"index"
label=
"序号"
width=
"80"
align=
"center"
>
border
style=
"width: 100%; margin-top: 20px"
>
<el-table-column
prop=
"index"
label=
"序号"
width=
"80"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
{{
scope
.
$index
+
1
}}
{{
scope
.
$index
+
1
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"adjustAmount"
label=
"调整金额"
width=
"180"
>
prop=
"adjustAmount"
label=
"调整金额"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-form-item
<el-form-item
:prop=
"'tableData.' + scope.$index + '.adjustAmount'"
:rules=
"adjustAmountRules"
>
:prop=
"'tableData.' + scope.$index + '.adjustAmount'"
<el-input
v-model=
"scope.row.adjustAmount"
:disabled=
"!isEdit"
placeholder=
"请输入金额"
type=
"number"
@
blur=
"handleInputBlur"
></el-input>
:rules=
"adjustAmountRules"
>
<el-input
v-model=
"scope.row.adjustAmount"
placeholder=
"请输入金额"
type=
"number"
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"adjustReason"
label=
"调整事由"
>
prop=
"adjustReason"
label=
"调整事由"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-form-item
<el-form-item
:prop=
"'tableData.' + scope.$index + '.adjustReason'"
:rules=
"adjustReasonRules"
>
:prop=
"'tableData.' + scope.$index + '.adjustReason'"
<el-input
v-model=
"scope.row.adjustReason"
placeholder=
"请输入调整事由"
:disabled=
"!isEdit"
></el-input>
:rules=
"adjustReasonRules"
>
<el-input
v-model=
"scope.row.adjustReason"
placeholder=
"请输入调整事由"
></el-input>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"操作"
width=
"120"
align=
"center"
v-if=
"isEdit"
>
label=
"操作"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
size=
"mini"
type=
"danger"
@
click=
"deleteRow(scope.$index)"
icon=
"el-icon-delete"
></el-button>
size=
"mini"
type=
"danger"
@
click=
"deleteRow(scope.$index)"
icon=
"el-icon-delete"
></el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -87,6 +46,16 @@
...
@@ -87,6 +46,16 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'DynamicAdjustmentTable'
,
name
:
'DynamicAdjustmentTable'
,
props
:
{
adjustments
:
{
type
:
Array
,
default
:
()
=>
[]
},
isEdit
:
{
type
:
Boolean
,
default
:
true
}
},
data
()
{
data
()
{
return
{
return
{
dynamicForm
:
{
dynamicForm
:
{
...
@@ -107,7 +76,7 @@ export default {
...
@@ -107,7 +76,7 @@ export default {
],
],
adjustReasonRules
:
[
adjustReasonRules
:
[
{
required
:
true
,
message
:
'请输入调整事由'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入调整事由'
,
trigger
:
'blur'
},
{
min
:
2
,
max
:
100
,
message
:
'长度在 2 到 10
0 个字符'
,
trigger
:
'blur'
}
{
min
:
1
,
max
:
50
,
message
:
'长度在 1 到 5
0 个字符'
,
trigger
:
'blur'
}
]
]
}
}
},
},
...
@@ -125,6 +94,9 @@ export default {
...
@@ -125,6 +94,9 @@ export default {
// 初始化一行数据
// 初始化一行数据
this
.
addRow
();
this
.
addRow
();
},
},
mounted
()
{
this
.
dynamicForm
.
tableData
=
this
.
adjustments
},
methods
:
{
methods
:
{
addRow
()
{
addRow
()
{
this
.
tableData
.
push
({
this
.
tableData
.
push
({
...
@@ -133,20 +105,22 @@ export default {
...
@@ -133,20 +105,22 @@ export default {
});
});
},
},
deleteRow
(
index
)
{
deleteRow
(
index
)
{
if
(
this
.
tableData
.
length
<=
1
)
{
//
if (this.tableData.length <= 1) {
this
.
$message
.
warning
(
'至少保留一行数据'
);
//
this.$message.warning('至少保留一行数据');
return
;
//
return;
}
//
}
this
.
tableData
.
splice
(
index
,
1
);
this
.
tableData
.
splice
(
index
,
1
);
},
},
handleInputBlur
()
{
this
.
$emit
(
'handleInputBlur'
)
},
showTableData
()
{
showTableData
()
{
const
formattedData
=
this
.
tableData
.
map
((
row
,
index
)
=>
({
const
formattedData
=
this
.
tableData
.
map
((
row
,
index
)
=>
({
序号
:
index
+
1
,
'序号'
:
index
+
1
,
调整金额
:
row
.
adjustAmount
,
'调整金额'
:
row
.
adjustAmount
,
调整事由
:
row
.
adjustReason
'调整事由'
:
row
.
adjustReason
}));
}));
console
.
log
(
'当前表格数据:'
,
formattedData
);
console
.
log
(
'当前表格数据:'
,
formattedData
);
this
.
$message
.
success
(
'表格数据已打印到控制台'
);
},
},
validateForm
()
{
validateForm
()
{
this
.
$refs
.
dynamicForm
.
validate
(
valid
=>
{
this
.
$refs
.
dynamicForm
.
validate
(
valid
=>
{
...
...
src/views/financeManage/components/SystemBillDetailDialog.vue
0 → 100644
View file @
2e8884b
This diff is collapsed.
Click to expand it.
src/views/financeManage/components/SystemBillDialog.vue
View file @
2e8884b
This diff is collapsed.
Click to expand it.
src/views/financeManage/constant/baseData.js
View file @
2e8884b
...
@@ -24,6 +24,28 @@ export const billStatusList = [
...
@@ -24,6 +24,28 @@ export const billStatusList = [
}
}
]
]
export
const
sceneTypeList
=
[
{
confId
:
"0"
,
confLabel
:
"会员权益/升级"
},
{
confId
:
"1"
,
confLabel
:
"精品升级"
},
{
confId
:
"2"
,
confLabel
:
"次新车转化"
},
{
confId
:
"3"
,
confLabel
:
"售后众筹"
},
{
confId
:
"4"
,
confLabel
:
"积分商城"
}
]
// 存储到内存里面的模版数据,减少频繁请求(进入和退出页面会清空)
// 存储到内存里面的模版数据,减少频繁请求(进入和退出页面会清空)
export
const
localTmplList
=
[
export
const
localTmplList
=
[
{
{
...
...
src/views/financeManage/downloadAccountDialog.vue
View file @
2e8884b
...
@@ -33,13 +33,13 @@
...
@@ -33,13 +33,13 @@
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"对账商户:"
prop=
"merchant"
>
<el-form-item
label=
"对账商户:"
prop=
"merchant"
>
<el-select
v-model=
"infoForm.merchant"
multiple
:multiple-limit=
"1"
filterable
style=
"width:400px"
>
<el-select
v-model=
"infoForm.merchant"
multiple
:multiple-limit=
"1"
filterable
style=
"width:400px"
@
change=
"handleChangeMerchant"
>
<el-option
v-for=
"item in baseData.merchantList"
:key=
"item.merchantId"
:label=
"item.merchantName"
:value=
"item.merchantId"
/>
<el-option
v-for=
"item in baseData.merchantList"
:key=
"item.merchantId"
:label=
"item.merchantName"
:value=
"item.merchantId"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"isTmpl && infoForm.merchantType == '7'"
label=
"流量方:"
prop=
"shopMerchantId"
>
<el-form-item
v-if=
"isTmpl && infoForm.merchantType == '7'"
label=
"流量方:"
prop=
"shopMerchantId"
>
<el-select
v-model=
"infoForm.shopMerchantId"
style=
"width:400px"
>
<el-select
v-model=
"infoForm.shopMerchantId"
style=
"width:400px"
>
<el-option
v-for=
"item in baseData.shopMerchantList"
:key=
"item.
confId"
:label=
"item.confLabel"
:value=
"item.conf
Id"
/>
<el-option
v-for=
"item in baseData.shopMerchantList"
:key=
"item.
merchantId"
:label=
"item.merchantName"
:value=
"item.merchant
Id"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"对账周期:"
class=
"dateItem"
prop=
"payStartDate"
>
<el-form-item
label=
"对账周期:"
class=
"dateItem"
prop=
"payStartDate"
>
...
@@ -65,8 +65,13 @@
...
@@ -65,8 +65,13 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"isTmpl"
label=
"对账字段:"
prop=
"fieldsJson"
>
<el-form-item
v-if=
"isTmpl"
label=
"对账字段:"
prop=
"fieldsJson"
>
<span>
{{
infoForm
.
fieldsTxt
}}
</span>
<div
class=
"tmpl-box"
>
<el-button
v-if=
"infoForm.fieldsJson"
type=
"text"
@
click=
"handleCustTmpl"
>
自定义
</el-button>
<el-tooltip
v-show=
"infoForm.fieldsTxt"
effect=
"dark"
placement=
"top"
:content=
"infoForm.fieldsTxt"
>
<span
class=
"fields-txt"
>
{{
infoForm
.
fieldsTxt
}}
</span>
</el-tooltip>
<div
v-show=
"tmplSelectList.length"
>
共
{{
tmplSelectList
.
length
}}
个字段
</div>
<el-button
v-if=
"infoForm.templateId"
type=
"text"
@
click=
"handleCustTmpl"
style=
"margin-left: 8px;"
>
自定义
</el-button>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</d2-dialog>
</d2-dialog>
...
@@ -79,7 +84,7 @@ import {
...
@@ -79,7 +84,7 @@ import {
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
{
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
import
{
getMerchantPageSearch
}
from
'@api/publicAccount'
import
{
getMerchantPageSearch
}
from
'@api/publicAccount'
import
{
getTmplList
,
getMetaTmpl
,
getBillTmplAdapter
}
from
'@api/accountManage'
import
{
getTmplList
,
getMetaTmpl
,
getBillTmplAdapter
,
getShopList
}
from
'@api/accountManage'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
localTmplList
}
from
"./constant/baseData"
import
{
localTmplList
}
from
"./constant/baseData"
import
{
resData
}
from
"./resData"
import
{
resData
}
from
"./resData"
...
@@ -148,7 +153,8 @@ export default {
...
@@ -148,7 +153,8 @@ export default {
reconciliationStatus
:
'all'
,
reconciliationStatus
:
'all'
,
payeeType
:
'all'
,
payeeType
:
'all'
,
templateId
:
''
,
templateId
:
''
,
fieldsJson
:
''
fieldsJson
:
''
,
fieldsTxt
:
''
},
},
// 1 - traffic; 2 - service
// 1 - traffic; 2 - service
...
@@ -235,6 +241,7 @@ export default {
...
@@ -235,6 +241,7 @@ export default {
mounted
()
{
mounted
()
{
// console.log(this.scene)
// console.log(this.scene)
this
.
$EventBus
.
$on
(
'changeFieldIds'
,
obj
=>
{
this
.
$EventBus
.
$on
(
'changeFieldIds'
,
obj
=>
{
console
.
log
(
obj
,
'obj---'
)
this
.
tmplSelectList
=
obj
?.
fieldIds
||
[]
this
.
tmplSelectList
=
obj
?.
fieldIds
||
[]
this
.
infoForm
.
fieldsTxt
=
this
.
getFieldsTxt
()
this
.
infoForm
.
fieldsTxt
=
this
.
getFieldsTxt
()
this
.
getMetaTmpl
()
this
.
getMetaTmpl
()
...
@@ -267,6 +274,20 @@ export default {
...
@@ -267,6 +274,20 @@ export default {
})
})
},
},
handleChangeMerchant
(
e
)
{
console
.
log
(
e
)
this
.
infoForm
.
shopMerchantId
=
''
const
params
=
{
currentPage
:
1
,
pageSize
:
9999
,
partnerMerchantId
:
e
[
0
],
scene
:
this
.
scene
}
getShopList
(
params
).
then
(
res
=>
{
this
.
baseData
.
shopMerchantList
=
res
.
list
})
},
clickMerchantType
(
e
)
{
clickMerchantType
(
e
)
{
e
===
this
.
infoForm
.
merchantType
e
===
this
.
infoForm
.
merchantType
?
(
this
.
infoForm
.
merchantType
=
''
)
?
(
this
.
infoForm
.
merchantType
=
''
)
...
@@ -298,7 +319,7 @@ export default {
...
@@ -298,7 +319,7 @@ export default {
this
.
infoForm
.
templateId
=
''
this
.
infoForm
.
templateId
=
''
this
.
infoForm
.
fieldsJson
=
''
this
.
infoForm
.
fieldsJson
=
''
this
.
infoForm
.
fieldsTxt
=
''
this
.
infoForm
.
fieldsTxt
=
''
this
.
infoForm
.
tmplType
this
.
infoForm
.
tmplType
=
''
this
.
tmplSelectList
=
[]
this
.
tmplSelectList
=
[]
const
ruleAttrList
=
[
'templateId'
,
'fieldsJson'
]
const
ruleAttrList
=
[
'templateId'
,
'fieldsJson'
]
ruleAttrList
.
forEach
(
item
=>
{
ruleAttrList
.
forEach
(
item
=>
{
...
@@ -310,7 +331,9 @@ export default {
...
@@ -310,7 +331,9 @@ export default {
getFieldsTxt
()
{
getFieldsTxt
()
{
var
fieldNames
=
''
var
fieldNames
=
''
const
tmplName
=
this
.
localTmplList
.
find
(
item
=>
item
.
type
==
this
.
infoForm
.
tmplType
)?.
name
||
'trafficTmpl'
const
tmplName
=
this
.
localTmplList
.
find
(
item
=>
item
.
type
==
this
.
infoForm
.
tmplType
)?.
name
||
'trafficTmpl'
console
.
log
(
tmplName
,
'tmplName---'
)
var
list
=
JSON
.
parse
(
localStorage
.
getItem
(
tmplName
))
var
list
=
JSON
.
parse
(
localStorage
.
getItem
(
tmplName
))
console
.
log
(
list
,
'list---'
)
this
.
dealFieldsJson
(
list
,
true
)
this
.
dealFieldsJson
(
list
,
true
)
},
},
...
@@ -341,17 +364,31 @@ export default {
...
@@ -341,17 +364,31 @@ export default {
currentPage
:
1
currentPage
:
1
}
}
// 流量方
// 流量方
getTmplList
({
...
params
,
type
:
1
}).
then
(
res
=>
{
getTmplList
({
...
params
,
type
:
1
}).
then
(
res
=>
{
this
.
baseData
.
trafficTemplateList
=
res
.
list
||
[]
this
.
baseData
.
trafficTemplateList
=
res
.
list
||
[]
this
.
baseData
.
trafficTemplateList
.
unshift
({
id
:
'all'
,
type
:
1
,
templateName
:
'无'
,
fieldNames
:
''
,
fieldIds
:
[]
})
})
})
// 服务商
// 服务商
getTmplList
({
...
params
,
type
:
2
}).
then
(
res
=>
{
getTmplList
({
...
params
,
type
:
2
}).
then
(
res
=>
{
this
.
baseData
.
serviceTemplateList
=
res
.
list
||
[]
this
.
baseData
.
serviceTemplateList
=
res
.
list
||
[]
this
.
baseData
.
serviceTemplateList
.
unshift
({
id
:
'all'
,
type
:
2
,
templateName
:
'无'
,
fieldNames
:
''
,
fieldIds
:
[]
})
})
})
},
},
handleTmplChange
(
e
)
{
handleTmplChange
(
e
)
{
if
(
!
(
Object
.
keys
(
this
.
typeObj
)).
includes
(
this
.
infoForm
.
merchantType
))
{
if
(
!
(
Object
.
keys
(
this
.
typeObj
)).
includes
(
this
.
infoForm
.
merchantType
))
{
return
true
return
true
}
}
const
item
=
this
.
baseData
[
this
.
merchantTypeStr
+
'TemplateList'
].
find
(
item
=>
item
.
id
==
e
)
const
item
=
this
.
baseData
[
this
.
merchantTypeStr
+
'TemplateList'
].
find
(
item
=>
item
.
id
==
e
)
...
@@ -401,9 +438,10 @@ export default {
...
@@ -401,9 +438,10 @@ export default {
},
},
handleCustTmpl
()
{
handleCustTmpl
()
{
this
.
infoForm
.
tmplType
=
this
.
infoForm
.
merchantType
==
'2'
?
'1'
:
'2'
this
.
$emit
(
'custTmpl'
,
{
this
.
$emit
(
'custTmpl'
,
{
tmplType
:
this
.
infoForm
.
tmplType
+
''
,
tmplType
:
this
.
infoForm
.
tmplType
+
''
,
tmplSelectList
:
this
.
tmplSelectList
tmplSelectList
:
this
.
tmplSelectList
||
[]
})
})
},
},
...
@@ -435,10 +473,14 @@ export default {
...
@@ -435,10 +473,14 @@ export default {
}
}
params
.
sceneType
=
this
.
scene
params
.
sceneType
=
this
.
scene
// 对账状态
// 对账状态
params
.
reconciliationStatus
=
infoForm
.
reconciliationStatus
==
'all'
?
''
:
infoForm
.
reconciliationStatus
infoForm
.
reconciliationStatus
==
'all'
?
''
:
(
params
.
reconciliationStatus
=
infoForm
.
reconciliationStatus
)
params
.
payeeType
=
infoForm
.
payeeType
==
'all'
?
''
:
infoForm
.
payeeType
infoForm
.
payeeType
==
'all'
?
''
:
(
params
.
payeeType
=
infoForm
.
payeeType
)
if
(
infoForm
.
shopMerchantId
)
{
params
.
shopMerchantId
=
infoForm
.
shopMerchantId
params
.
shopMerchantName
=
this
.
baseData
.
shopMerchantList
.
find
(
item
=>
item
.
merchantId
==
infoForm
.
shopMerchantId
)?.
merchantName
}
if
(
this
.
isTmpl
)
{
if
(
this
.
isTmpl
)
{
params
.
templateId
=
infoForm
.
templateId
params
.
templateId
=
infoForm
.
templateId
==
'all'
?
''
:
infoForm
.
templateId
params
.
fieldsJson
=
infoForm
.
fieldsJson
params
.
fieldsJson
=
infoForm
.
fieldsJson
}
}
return
params
return
params
...
@@ -446,17 +488,17 @@ export default {
...
@@ -446,17 +488,17 @@ export default {
// 系统对账
// 系统对账
handleSystemBill
()
{
handleSystemBill
()
{
this
.
$emit
(
'handleBill'
,
{
billTmplInfo
:
resData
.
data
})
//
this.$emit('handleBill', { billTmplInfo: resData.data })
//
this.$refs.accountForm.validate(valid => {
this
.
$refs
.
accountForm
.
validate
(
valid
=>
{
//
if (valid) {
if
(
valid
)
{
//
var params = this.getParams()
var
params
=
this
.
getParams
()
//
console.log('params', params)
console
.
log
(
'params'
,
params
)
//
getBillTmplAdapter(params).then(res => {
getBillTmplAdapter
(
params
).
then
(
res
=>
{
//
console.log(res, 'res')
console
.
log
(
res
,
'res'
)
//
this.$emit('handleBill', { billTmplInfo: res })
this
.
$emit
(
'handleBill'
,
{
billTmplInfo
:
res
})
//
})
})
//
}
}
//
})
})
},
},
handleAddConfirm
()
{
handleAddConfirm
()
{
...
@@ -525,4 +567,15 @@ export default {
...
@@ -525,4 +567,15 @@ export default {
width
:
395px
!important
;
width
:
395px
!important
;
}
}
}
}
.tmpl-box
{
display
:
flex
;
}
.fields-txt
{
width
:
305px
;
display
:
inline-block
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
margin-right
:
8px
;
}
</
style
>
</
style
>
src/views/systemConfig/ShopConfig/index.vue
View file @
2e8884b
...
@@ -199,7 +199,10 @@ export default {
...
@@ -199,7 +199,10 @@ export default {
optionList
:
[],
optionList
:
[],
optionId
:
"adcode"
,
optionId
:
"adcode"
,
optionLabel
:
"name"
,
optionLabel
:
"name"
,
optionsName
:
"provinceInfoList"
optionsName
:
"provinceInfoList"
,
changeAttr
:
(
value
,
targetItem
)
=>
{
this
.
searchForm
.
cityId
=
''
}
},
},
{
{
label
:
"所属城市"
,
label
:
"所属城市"
,
...
@@ -328,7 +331,7 @@ export default {
...
@@ -328,7 +331,7 @@ export default {
mutiSelectName
:
"merchantId"
,
mutiSelectName
:
"merchantId"
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
"
区域
"
,
label
:
"
所属省份
"
,
prop
:
"provinceName"
prop
:
"provinceName"
},
},
{
{
...
@@ -344,7 +347,7 @@ export default {
...
@@ -344,7 +347,7 @@ export default {
prop
:
"merchantName"
,
prop
:
"merchantName"
,
width
:
"200px"
,
width
:
"200px"
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
merchantName
+
cellValue
.
merchantId
return
cellValue
.
merchantName
}
}
},
},
{
{
...
@@ -466,8 +469,13 @@ export default {
...
@@ -466,8 +469,13 @@ export default {
addHtml
:
'businessDevelopmentScene'
,
addHtml
:
'businessDevelopmentScene'
,
formatter
:
(
cellValue
,
idx
)
=>
{
formatter
:
(
cellValue
,
idx
)
=>
{
const
list
=
this
.
removeListAll
(
'busiDelpList'
)
const
list
=
this
.
removeListAll
(
'busiDelpList'
)
const
target
=
list
.
find
(
item
=>
item
.
confId
==
cellValue
.
businessTypeList
[
idx
].
businessDevelopmentScene
)
let
str
=
[]
return
target
?
target
.
confValue
:
'——'
if
(
cellValue
?.
businessTypeList
&&
cellValue
?.
businessTypeList
.
length
&&
cellValue
?.
businessTypeList
[
idx
]?.
businessDevelopmentSceneList
)
{
cellValue
?.
businessTypeList
[
idx
]?.
businessDevelopmentSceneList
.
forEach
(
item
=>
{
str
.
push
(
list
.
find
(
k
=>
k
.
confId
==
item
)?.
confValue
)
})
}
return
str
.
length
?
str
.
join
(
'/'
)
:
'——'
}
}
},
},
{
{
...
...
src/views/systemConfig/ShopConfig/shopSet.vue
View file @
2e8884b
...
@@ -892,7 +892,8 @@ export default {
...
@@ -892,7 +892,8 @@ export default {
directorList
.
push
({
directorList
.
push
({
directorUserId
:
target
?.
userId
,
directorUserId
:
target
?.
userId
,
directorType
:
key
,
directorType
:
key
,
directorName
:
target
?.
userName
directorName
:
target
?.
userName
,
directorPhone
:
target
?.
userNum
})
})
})
})
}
}
...
@@ -1022,7 +1023,8 @@ export default {
...
@@ -1022,7 +1023,8 @@ export default {
this
.
sellerMerchantStaffList
=
result
.
map
((
item
)
=>
{
this
.
sellerMerchantStaffList
=
result
.
map
((
item
)
=>
{
return
{
return
{
userId
:
item
.
uuid
,
userId
:
item
.
uuid
,
userName
:
item
.
staffName
userName
:
item
.
staffName
,
userNum
:
item
.
staffPhone
}
}
})
})
resolve
()
resolve
()
...
...
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