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 4bbac062
authored
Jul 01, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
对账单下载,商户多选
1 parent
b08de625
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
5 deletions
src/views/financeManage/accountTmplManage/components/AccountTmpl.vue
src/views/financeManage/accountTmplManage/editTmpl.vue
src/views/financeManage/downloadAccountDialog.vue
src/views/financeManage/accountTmplManage/components/AccountTmpl.vue
View file @
4bbac06
...
@@ -127,6 +127,7 @@ export default {
...
@@ -127,6 +127,7 @@ export default {
},
},
selectableFn
(
row
)
{
selectableFn
(
row
)
{
this
.
$emit
(
'changeSelect'
)
return
!
row
.
required
return
!
row
.
required
},
},
...
...
src/views/financeManage/accountTmplManage/editTmpl.vue
View file @
4bbac06
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<d2-container
class=
"edit-page edit-tmpl"
>
<d2-container
class=
"edit-page edit-tmpl"
>
<div
style=
"padding: 20px"
>
<div
style=
"padding: 20px"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"250px"
default-width=
"314px"
:isBlock=
"isBlock"
:form-ref=
"editChildRef"
:form-obj=
"editData"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"250px"
default-width=
"314px"
:isBlock=
"isBlock"
:form-ref=
"editChildRef"
:form-obj=
"editData"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
<AccountTmpl
v-if=
"showTmpl"
ref=
"accountTmpl"
slot=
"accountTmpl"
:type=
"editData.type"
:tmplSelectList=
"tmplSelectList"
></AccountTmpl>
<AccountTmpl
v-if=
"showTmpl"
ref=
"accountTmpl"
slot=
"accountTmpl"
:type=
"editData.type"
:tmplSelectList=
"tmplSelectList"
@
changeSelect=
"changeSelect"
></AccountTmpl>
</glsx-combi-form>
</glsx-combi-form>
<div
class=
"footer"
>
<div
class=
"footer"
>
<el-button
@
click=
"handleConfirm"
type=
"primary"
:loading=
"$store.state.d2admin.loading.value"
>
提交
</el-button>
<el-button
@
click=
"handleConfirm"
type=
"primary"
:loading=
"$store.state.d2admin.loading.value"
>
提交
</el-button>
...
@@ -138,6 +138,10 @@ export default {
...
@@ -138,6 +138,10 @@ export default {
})
})
},
},
changeSelect
()
{
this
.
editData
.
fieldIds
=
deepClone
(
this
.
$refs
.
accountTmpl
.
getSelected
())
},
handleConfirm
()
{
handleConfirm
()
{
this
.
editData
.
fieldIds
=
deepClone
(
this
.
$refs
.
accountTmpl
.
getSelected
())
this
.
editData
.
fieldIds
=
deepClone
(
this
.
$refs
.
accountTmpl
.
getSelected
())
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
)
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
)
=>
{
...
...
src/views/financeManage/downloadAccountDialog.vue
View file @
4bbac06
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
</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"
@
change=
"handleChangeMerchant"
>
<el-select
v-model=
"infoForm.merchant"
multiple
:multiple-limit=
"
multipleLimit
"
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>
...
@@ -103,6 +103,7 @@ export default {
...
@@ -103,6 +103,7 @@ export default {
}
}
return
{
return
{
loading
:
false
,
loading
:
false
,
multipleLimit
:
10
,
// 判断是否是模版模式
// 判断是否是模版模式
isTmpl
:
false
,
isTmpl
:
false
,
localTmplList
:
deepClone
(
localTmplList
),
localTmplList
:
deepClone
(
localTmplList
),
...
@@ -314,6 +315,8 @@ export default {
...
@@ -314,6 +315,8 @@ export default {
judgeTmpl
()
{
judgeTmpl
()
{
this
.
isTmpl
=
this
.
infoForm
.
merchantType
==
'2'
||
(
this
.
infoForm
.
merchantType
==
'7'
&&
this
.
infoForm
.
reportType
==
'4'
);
this
.
isTmpl
=
this
.
infoForm
.
merchantType
==
'2'
||
(
this
.
infoForm
.
merchantType
==
'7'
&&
this
.
infoForm
.
reportType
==
'4'
);
this
.
merchantTypeStr
=
this
.
typeObj
[
this
.
infoForm
.
merchantType
]
this
.
merchantTypeStr
=
this
.
typeObj
[
this
.
infoForm
.
merchantType
]
this
.
multipleLimit
=
(
this
.
infoForm
.
merchantType
==
'7'
&&
this
.
infoForm
.
reportType
==
'4'
)
?
1
:
10
this
.
infoForm
.
merchant
=
[]
this
.
resetTmplData
()
this
.
resetTmplData
()
},
},
...
@@ -489,10 +492,11 @@ export default {
...
@@ -489,10 +492,11 @@ export default {
return
params
return
params
},
},
// 系统对账
// 系统对账
- 单个商户
handleSystemBill
()
{
handleSystemBill
()
{
this
.
$refs
.
accountForm
.
validate
(
valid
=>
{
this
.
$refs
.
accountForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
infoForm
.
merchant
.
length
==
1
)
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
params
.
orderCurrentPage
=
1
params
.
orderCurrentPage
=
1
params
.
orderPageSize
=
10
params
.
orderPageSize
=
10
...
@@ -501,6 +505,9 @@ export default {
...
@@ -501,6 +505,9 @@ export default {
console
.
log
(
res
,
'res'
)
console
.
log
(
res
,
'res'
)
this
.
$emit
(
'handleBill'
,
{
billTmplInfo
:
res
})
this
.
$emit
(
'handleBill'
,
{
billTmplInfo
:
res
})
})
})
}
else
{
this
.
$message
.
warning
(
"仅支持单商户进行系统对账"
)
}
}
}
})
})
},
},
...
@@ -508,6 +515,20 @@ export default {
...
@@ -508,6 +515,20 @@ export default {
handleAddConfirm
()
{
handleAddConfirm
()
{
this
.
$refs
.
accountForm
.
validate
(
valid
=>
{
this
.
$refs
.
accountForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
infoForm
.
merchantType
==
'7'
&&
this
.
infoForm
.
reportType
==
'4'
)
{
if
(
this
.
infoForm
.
merchant
.
length
==
1
)
{
this
.
dowloadApi
()
}
else
{
this
.
$message
.
warning
(
"仅支持单商户进行系统对账"
)
}
}
else
{
this
.
dowloadApi
()
}
}
})
},
dowloadApi
()
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
params
.
method
=
'dj.api.smartcarlife.goodsOrderProfitAllocation.exportAccountStatementForAudit.async'
params
.
method
=
'dj.api.smartcarlife.goodsOrderProfitAllocation.exportAccountStatementForAudit.async'
console
.
log
(
'params'
,
params
)
console
.
log
(
'params'
,
params
)
...
@@ -524,8 +545,6 @@ export default {
...
@@ -524,8 +545,6 @@ export default {
]
]
this
.
actionSetDownloadList
({
list
,
type
:
'dowloadList'
})
this
.
actionSetDownloadList
({
list
,
type
:
'dowloadList'
})
this
.
handleClose
()
this
.
handleClose
()
}
})
},
},
handleClose
()
{
handleClose
()
{
...
...
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