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 c1dbf112
authored
Dec 28, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增转账选择服务商时流量方默认选中全部
1 parent
3fe2958f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
104 additions
and
41 deletions
src/views/financeManage/transferAccountsManage/components/addDialog.vue
src/views/financeManage/transferAccountsManage/components/addDialog.vue
View file @
c1dbf11
<!-- 新增转账 -->
<!-- 新增转账 -->
<
template
>
<
template
>
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
<div
class=
"add-dialog"
>
<div
class=
"add-dialog"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"150px"
default-width=
"400px"
<glsx-combi-form
class=
"edit-form-container"
:form-ref=
"editChildRef"
:form-obj=
"infoForm"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
ref=
"editFormRef"
<div
slot=
"expenseTypeHtml"
slot-scope=
"scope"
>
label-width=
"150px"
<el-checkbox-group
v-model=
"infoForm.expenseType"
@
change=
"handleCheckChange"
>
default-width=
"400px"
<el-checkbox
v-for=
"(item, index) in baseData.expenseTypes"
:key=
"index"
:label=
"item.confId"
>
{{
:form-ref=
"editChildRef"
:form-obj=
"infoForm"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
<div
slot=
"expenseTypeHtml"
slot-scope=
"scope"
>
<el-checkbox-group
v-model=
"infoForm.expenseType"
@
change=
"handleCheckChange"
>
<el-checkbox
v-for=
"(item, index) in baseData.expenseTypes"
:key=
"index"
:label=
"item.confId"
>
{{
item
.
confValue
}}
</el-checkbox>
item
.
confValue
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
<div
slot=
"expenseTypeHtml2"
slot-scope=
"scope"
style=
"width:400px"
>
<div
slot=
"expenseTypeHtml2"
<el-checkbox-group
v-model=
"infoForm.expenseType"
@
change=
"handleCheckChange2"
>
slot-scope=
"scope"
<el-checkbox
v-for=
"(item, index) in baseData.expenseTypes2"
:key=
"index"
:label=
"item.confId"
>
style=
"width:400px"
>
<el-checkbox-group
v-model=
"infoForm.expenseType"
@
change=
"handleCheckChange2"
>
<el-checkbox
v-for=
"(item, index) in baseData.expenseTypes2"
:key=
"index"
:label=
"item.confId"
>
{{
item
.
confValue
}}
{{
item
.
confValue
}}
</el-checkbox>
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
<div
slot=
"installCostHtml"
slot-scope=
"scope"
>
<div
slot=
"installCostHtml"
<el-input
v-model=
"infoForm.installCost"
style=
"width:400px"
disabled
placeholder=
"选择场景、对账方、对账周期、费用类型后自动获取"
/>
slot-scope=
"scope"
>
<el-button
type=
"text"
class=
"down-cla"
@
click=
"downloadDetail('7', '2')"
>
下载明细
</el-button>
<el-input
v-model=
"infoForm.installCost"
style=
"width:400px"
disabled
placeholder=
"选择场景、对账方、对账周期、费用类型后自动获取"
/>
<el-button
type=
"text"
class=
"down-cla"
@
click=
"downloadDetail('7', '2')"
>
下载明细
</el-button>
</div>
</div>
<div
slot=
"marketingCostHtml"
slot-scope=
"scope"
>
<div
slot=
"marketingCostHtml"
<el-input
v-model=
"infoForm.marketingCost"
style=
"width:400px"
disabled
placeholder=
"选择场景、对账方、对账周期、费用类型后自动获取"
/>
slot-scope=
"scope"
>
<el-button
type=
"text"
class=
"down-cla"
@
click=
"downloadDetail('7', '3')"
>
下载明细
</el-button>
<el-input
v-model=
"infoForm.marketingCost"
style=
"width:400px"
disabled
placeholder=
"选择场景、对账方、对账周期、费用类型后自动获取"
/>
<el-button
type=
"text"
class=
"down-cla"
@
click=
"downloadDetail('7', '3')"
>
下载明细
</el-button>
</div>
</div>
<div
slot=
"rewardAndPenaltyCostHtml"
slot-scope=
"scope"
>
<div
slot=
"rewardAndPenaltyCostHtml"
<el-input
v-model=
"infoForm.rewardAndPenaltyCost"
style=
"width:400px"
disabled
slot-scope=
"scope"
>
placeholder=
"选择场景、对账方、对账周期、费用类型后自动获取"
/>
<el-input
v-model=
"infoForm.rewardAndPenaltyCost"
<el-button
type=
"text"
class=
"down-cla"
@
click=
"downloadDetail('7', '3')"
>
下载明细
</el-button>
style=
"width:400px"
disabled
placeholder=
"选择场景、对账方、对账周期、费用类型后自动获取"
/>
<el-button
type=
"text"
class=
"down-cla"
@
click=
"downloadDetail('7', '3')"
>
下载明细
</el-button>
</div>
</div>
<div
slot=
"shopTrafficMoneyHtml"
slot-scope=
"scope"
>
<div
slot=
"shopTrafficMoneyHtml"
<el-input
v-model=
"infoForm.shopTrafficMoney"
style=
"width:400px"
disabled
slot-scope=
"scope"
>
placeholder=
"选择场景、对账方、对账周期、费用类型后自动获取"
/>
<el-input
v-model=
"infoForm.shopTrafficMoney"
<el-button
type=
"text"
class=
"down-cla"
@
click=
"downloadDetail('2')"
>
下载明细
</el-button>
style=
"width:400px"
disabled
placeholder=
"选择场景、对账方、对账周期、费用类型后自动获取"
/>
<el-button
type=
"text"
class=
"down-cla"
@
click=
"downloadDetail('2')"
>
下载明细
</el-button>
</div>
</div>
<div
slot=
"transferTotalAmountHtml"
slot-scope=
"scope"
>
<div
slot=
"transferTotalAmountHtml"
<el-input
placeholder=
"请输入转账金额"
v-model=
"infoForm.transferTotalAmount"
style=
"width:400px"
clearable
slot-scope=
"scope"
>
@
input=
"handleUpgradeNum"
>
<el-input
placeholder=
"请输入转账金额"
v-model=
"infoForm.transferTotalAmount"
style=
"width:400px"
clearable
@
input=
"handleUpgradeNum"
>
</el-input>
</el-input>
</div>
</div>
<!--
<div
slot=
"voucherListHtml"
<!--
<div
slot=
"voucherListHtml"
slot-scope=
"scope"
>
slot-scope=
"scope"
>
</div>
-->
</div>
-->
<template
slot=
"voucherListHtml"
slot-scope=
"scope"
>
<template
slot=
"voucherListHtml"
<el-upload
action=
""
accept=
".xlsx,.xls"
class=
"upload-file"
drag
:show-file-list=
"false"
slot-scope=
"scope"
>
:file-list=
"uploadFileList"
:limit=
"5"
:auto-upload=
"false"
:on-remove=
"importFileChange"
<el-upload
action=
""
:on-change=
"(file, fileList) => handleFileChange(file, fileList, scope.scope)"
:on-exceed=
"hanldeOnExceed"
accept=
".xlsx,.xls"
multiple
>
class=
"upload-file"
drag
:show-file-list=
"false"
:file-list=
"uploadFileList"
:limit=
"5"
:auto-upload=
"false"
:on-remove=
"importFileChange"
:on-change=
"(file, fileList) => handleFileChange(file, fileList, scope.scope)"
:on-exceed=
"hanldeOnExceed"
multiple
>
<i
class=
"el-icon-upload"
></i>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
点击或将文件拖拽到此区域上传
</div>
<div
class=
"el-upload__text"
>
点击或将文件拖拽到此区域上传
</div>
<div
class=
"item-tips text-tips"
>
支持格式:.xlsx .xls,单个文件不能超过10M
</div>
<div
class=
"item-tips text-tips"
>
支持格式:.xlsx .xls,单个文件不能超过10M
</div>
...
@@ -56,17 +109,27 @@
...
@@ -56,17 +109,27 @@
</el-upload>
</el-upload>
<!-- 文件列表区域 -->
<!-- 文件列表区域 -->
<div
class=
"file-box"
>
<div
class=
"file-box"
>
<div
v-for=
"(subItem, subIndex) in infoForm.voucherList"
:key=
"subIndex"
>
<div
v-for=
"(subItem, subIndex) in infoForm.voucherList"
<div
class=
"file-item"
v-if=
"!filterEmpty(subItem.uploadProgress) || subItem.voucherFileUrl"
>
:key=
"subIndex"
>
<div
class=
"file-content"
@
click=
"handleFileView(subItem)"
>
<div
class=
"file-item"
<el-progress
define-back-color=
"#F5F7FA"
:text-inside=
"true"
text-color=
"#333333"
:show-text=
"false"
v-if=
"!filterEmpty(subItem.uploadProgress) || subItem.voucherFileUrl"
>
:stroke-width=
"26"
stroke-linecap=
"butt"
:percentage=
"subItem.uploadProgress"
></el-progress>
<div
class=
"file-content"
@
click=
"handleFileView(subItem)"
>
<el-progress
define-back-color=
"#F5F7FA"
:text-inside=
"true"
text-color=
"#333333"
:show-text=
"false"
:stroke-width=
"26"
stroke-linecap=
"butt"
:percentage=
"subItem.uploadProgress"
></el-progress>
<div
class=
"file-name"
>
{{
subItem
.
fileName
}}
</div>
<div
class=
"file-name"
>
{{
subItem
.
fileName
}}
</div>
</div>
</div>
<i
v-if=
"!subItem.voucherFileUrl"
class=
"el-icon-close del-icon"
<i
v-if=
"!subItem.voucherFileUrl"
@
click=
"doCancel(scope.scope, subIndex)"
></i>
class=
"el-icon-close del-icon"
<i
v-if=
"subItem.voucherFileUrl"
class=
"el-icon-delete"
@
click=
"doCancel(scope.scope, subIndex)"
></i>
@
click=
"handleFileDelete(scope.scope, subIndex)"
></i>
<i
v-if=
"subItem.voucherFileUrl"
class=
"el-icon-delete"
@
click=
"handleFileDelete(scope.scope, subIndex)"
></i>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -198,7 +261,7 @@ export default {
...
@@ -198,7 +261,7 @@ export default {
optionsName
:
'merchantList'
,
optionsName
:
'merchantList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
changeAttr
:
(
value
,
targetItem
)
=>
{
this
.
infoForm
.
yqMerchantId
=
''
this
.
infoForm
.
yqMerchantId
=
''
this
.
baseData
.
shopMerchantList
=
[]
this
.
baseData
.
shopMerchantList
=
[
{
merchantId
:
''
,
merchantName
:
'全部'
}
]
this
.
infoForm
.
shopMerchantId
=
''
this
.
infoForm
.
shopMerchantId
=
''
this
.
getOptionsList
(
'editFormData'
,
true
,
'shopMerchantId'
)
this
.
getOptionsList
(
'editFormData'
,
true
,
'shopMerchantId'
)
this
.
baseData
.
yqMerchantList
=
targetItem
.
optionList
.
find
(
item
=>
item
.
partnerMerchantId
==
value
).
subMerchantsInfo
this
.
baseData
.
yqMerchantList
=
targetItem
.
optionList
.
find
(
item
=>
item
.
partnerMerchantId
==
value
).
subMerchantsInfo
...
...
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