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 802bd451
authored
Aug 06, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 功能开发
1 parent
2868d746
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
276 additions
and
156 deletions
src/api/merchant.js
src/views/systemConfig/ShopConfig/index.vue
src/views/systemConfig/merchant/financialRules/components/channelSelectDialog.vue
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
src/views/systemConfig/merchant/financialRules/components/financialCalculationDialog.vue
src/views/systemConfig/merchant/financialRules/components/tipsDialog.vue
src/views/systemConfig/merchant/financialRules/index.vue
src/views/systemConfig/yqStoreManage/qRcodeDialog.vue
src/views/systemConfig/yqStoreManage/yqStoreManage.vue
src/api/merchant.js
View file @
802bd45
...
@@ -382,10 +382,16 @@ export function get4sAndServiceMerchantListApi(data) {
...
@@ -382,10 +382,16 @@ export function get4sAndServiceMerchantListApi(data) {
}
}
/**
/**
*
* 获取车品牌列表
* 获取车品牌列表
*/
*/
export
function
getCarBrandList
(
data
=
{})
{
export
function
getCarBrandList
(
data
=
{})
{
data
.
method
=
'dj.api.smartcarlife.common.car.brand.list'
data
.
method
=
"dj.api.smartcarlife.common.car.brand.list"
return
request
(
data
,
RequestMethods
.
POST
)
}
/**
* 获取支付渠道列表
*/
export
function
paymentChannelList
(
data
=
{})
{
data
.
method
=
"dj.api.smartcarlife.paymentChannel.list"
return
request
(
data
,
RequestMethods
.
POST
)
return
request
(
data
,
RequestMethods
.
POST
)
}
}
src/views/systemConfig/ShopConfig/index.vue
View file @
802bd45
<!-- 店面配置 -->
<!-- 店面配置 -->
<
template
>
<
template
>
<!--
<div>
-->
<!--
<div>
-->
<d2-container
class=
"m-t-40"
>
<d2-container
class=
"m-t-40"
>
<div
class=
"header"
slot=
"header"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
label-width=
"120px"
:search-form=
"searchForm"
:form-data=
"showFormData"
/>
<d2-search
ref=
"showSearch"
class=
"show-search"
label-width=
"120px"
:search-form=
"searchForm"
:form-data=
"showFormData"
/>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
查询
查询
...
@@ -16,26 +16,28 @@
...
@@ -16,26 +16,28 @@
<div
style=
"text-align: right;"
>
<div
style=
"text-align: right;"
>
<auth-button
category=
"Button"
:show-btn-ids=
"['9061901', '9061902', '9061911']"
/>
<auth-button
category=
"Button"
:show-btn-ids=
"['9061901', '9061902', '9061911']"
/>
<span
style=
"margin-right: 10px;"
></span>
<span
style=
"margin-right: 10px;"
></span>
<auth-button
category=
"Button"
:show-btn-ids=
"['9061934']"
:data=
"
{ 'batchActive': 'area'}" />
<auth-button
category=
"Button"
:show-btn-ids=
"['9061934']"
:data=
"
{ 'batchActive': 'area'
}" />
<span
style=
"margin-right: 10px;"
></span>
<span
style=
"margin-right: 10px;"
></span>
<auth-button
category=
"Button"
:show-btn-ids=
"['9061935']"
:data=
"
{ 'batchActive': 'busiScene'}" />
<auth-button
category=
"Button"
:show-btn-ids=
"['9061935']"
:data=
"
{ 'batchActive': 'busiScene'
}" />
<span
style=
"margin-right: 10px;"
></span>
<span
style=
"margin-right: 10px;"
></span>
<auth-button
category=
"Button"
:show-btn-ids=
"['9061936']"
:data=
"
{ 'batchActive': 'online'}" />
<auth-button
category=
"Button"
:show-btn-ids=
"['9061936']"
:data=
"
{ 'batchActive': 'online'
}" />
</div>
</div>
<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"
>
<!-- 以下的自定义表格展示,以“业务类型”为基准展示 -->
<!-- 以下的自定义表格展示,以“业务类型”为基准展示 -->
<template
slot=
"businessType"
slot-scope=
"scope"
slot-columnsItem=
"columnsItem"
>
<template
slot=
"businessType"
slot-scope=
"scope"
slot-columnsItem=
"columnsItem"
>
<template
v-if=
"scope.scope.businessTypeList && scope.scope.businessTypeList.length"
>
<template
v-if=
"scope.scope.businessTypeList && scope.scope.businessTypeList.length"
>
<template
v-for=
"(k, kIdx) in scope.scope.businessTypeList"
>
<template
v-for=
"(k, kIdx) in scope.scope.businessTypeList"
>
<div
class=
"tb-row"
v-if=
"k.businessSceneType != null"
:key=
"kIdx"
>
<div
class=
"tb-row"
v-if=
"k.businessSceneType != null"
:key=
"kIdx"
>
<div
v-if=
"['areaSupervisionList', 'onlineSupervisionList'].includes(scope.columnsObj.prop)"
>
<div
v-if=
"['areaSupervisionList', 'onlineSupervisionList'].includes(scope.columnsObj.prop)"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"scope.columnsObj.formatter(scope.scope, kIdx)"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"scope.columnsObj.formatter(scope.scope, kIdx)"
placement=
"top"
>
<span
class=
"ellipsis-txt"
>
<span
class=
"ellipsis-txt"
>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
,
kIdx
)
}}
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
,
kIdx
)
}}
</span>
</span>
</el-tooltip>
</el-tooltip>
</div>
</div>
<span
v-else
>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
,
kIdx
)
}}
</span>
<span
v-else
>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
,
kIdx
)
}}
</span>
</div>
</div>
</
template
>
</
template
>
<div
v-if=
"scope.scope.businessTypeList.every(k => k.businessSceneType === null)"
>
-
</div>
<div
v-if=
"scope.scope.businessTypeList.every(k => k.businessSceneType === null)"
>
-
</div>
...
@@ -47,13 +49,14 @@
...
@@ -47,13 +49,14 @@
<template
v-for=
"(k, kIdx) in scope.scope.businessTypeList"
>
<template
v-for=
"(k, kIdx) in scope.scope.businessTypeList"
>
<div
class=
"tb-row"
v-if=
"k.businessSceneType != null"
:key=
"kIdx"
>
<div
class=
"tb-row"
v-if=
"k.businessSceneType != null"
:key=
"kIdx"
>
<div
v-if=
"['areaSupervisionList', 'onlineSupervisionList'].includes(scope.columnsObj.prop)"
>
<div
v-if=
"['areaSupervisionList', 'onlineSupervisionList'].includes(scope.columnsObj.prop)"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"scope.columnsObj.formatter(scope.scope, kIdx)"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"scope.columnsObj.formatter(scope.scope, kIdx)"
placement=
"top"
>
<span
class=
"ellipsis-txt"
>
<span
class=
"ellipsis-txt"
>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
,
kIdx
)
}}
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
,
kIdx
)
}}
</span>
</span>
</el-tooltip>
</el-tooltip>
</div>
</div>
<span
v-else
>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
,
kIdx
)
}}
</span>
<span
v-else
>
{{
scope
.
columnsObj
.
formatter
(
scope
.
scope
,
kIdx
)
}}
</span>
</div>
</div>
</
template
>
</
template
>
<div
v-if=
"scope.scope.businessTypeList.every(k => k.businessSceneType === null)"
>
-
</div>
<div
v-if=
"scope.scope.businessTypeList.every(k => k.businessSceneType === null)"
>
-
</div>
...
@@ -72,7 +75,8 @@
...
@@ -72,7 +75,8 @@
</d2-table>
</d2-table>
</div>
</div>
<!-- 导入门店设置 -->
<!-- 导入门店设置 -->
<d2-dialog
:title=
"'上传文件'"
:is-visible=
"fileVisible"
@
closeDialog=
"handleImport"
@
confirmDialog=
"handleConfirmImport"
width=
"600px"
>
<d2-dialog
:title=
"'上传文件'"
:is-visible=
"fileVisible"
@
closeDialog=
"handleImport"
@
confirmDialog=
"handleConfirmImport"
width=
"600px"
>
<slot>
<slot>
<div>
<div>
<el-form
:model=
"fileForm"
:rules=
"fileRules"
ref=
"fileRuleForm"
label-width=
"120px"
>
<el-form
:model=
"fileForm"
:rules=
"fileRules"
ref=
"fileRuleForm"
label-width=
"120px"
>
...
@@ -83,7 +87,9 @@
...
@@ -83,7 +87,9 @@
<el-col
:span=
"4"
class=
"m-l-md"
>
<el-col
:span=
"4"
class=
"m-l-md"
>
<el-button
class=
"import-btn"
>
<el-button
class=
"import-btn"
>
导入文件
导入文件
<input
type=
"file"
id=
"fileUpload"
class=
"import-input"
accept=
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
@
change=
"importFile($event)"
/>
<input
type=
"file"
id=
"fileUpload"
class=
"import-input"
accept=
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
@
change=
"importFile($event)"
/>
<el-link
type=
"primary"
class=
"import-template"
@
click=
"downLoadTemplate"
icon=
"el-icon-link"
>
<el-link
type=
"primary"
class=
"import-template"
@
click=
"downLoadTemplate"
icon=
"el-icon-link"
>
文件下载
文件下载
</el-link>
</el-link>
...
@@ -113,22 +119,30 @@
...
@@ -113,22 +119,30 @@
</d2-dialog>
</d2-dialog>
<!-- 收款码 -->
<!-- 收款码 -->
<qrcode-dialog
:q-rcode-visible=
"qRcodeVisible"
:info=
"recordInfo"
v-if=
"qRcodeVisible"
@
dialogClose=
"dialogClose"
/>
<qrcode-dialog
:q-rcode-visible=
"qRcodeVisible"
:info=
"recordInfo"
v-if=
"qRcodeVisible"
<employee-dialog
:employee-visible=
"employeeVisible"
:info=
"recordInfo"
v-if=
"employeeVisible"
@
dialogClose=
"employeeDialogClose"
/>
@
dialogClose=
"dialogClose"
/>
<employee-dialog
:employee-visible=
"employeeVisible"
:info=
"recordInfo"
v-if=
"employeeVisible"
@
dialogClose=
"employeeDialogClose"
/>
<!-- 门店标签 -->
<!-- 门店标签 -->
<flag-dialog
:flag-visible=
"flagVisible"
:info=
"recordInfo"
v-if=
"flagVisible"
@
dialogClose=
"flagDialogClose"
/>
<flag-dialog
:flag-visible=
"flagVisible"
:info=
"recordInfo"
v-if=
"flagVisible"
@
dialogClose=
"flagDialogClose"
/>
<d2-dialog
title=
"阳光激励配置"
mode=
"mid"
v-if=
"signVisible"
:is-visible=
"signVisible"
@
closeDialog=
"handleSignClose"
@
confirmDialog=
"handleConfirmSign"
>
<d2-dialog
title=
"阳光激励配置"
mode=
"mid"
v-if=
"signVisible"
:is-visible=
"signVisible"
@
closeDialog=
"handleSignClose"
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"220px"
:form-obj=
"integralForm"
:form-data=
"integralFormData"
>
@
confirmDialog=
"handleConfirmSign"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"220px"
:form-obj=
"integralForm"
:form-data=
"integralFormData"
>
</glsx-combi-form>
</glsx-combi-form>
</d2-dialog>
</d2-dialog>
<!-- 预警设置 -->
<!-- 预警设置 -->
<warning-set
:warning-visible=
"warningVisible"
:info=
"recordInfo"
@
closeWarnDialog=
"closeWarnDialog"
@
confirmWarnDialog=
"confirmWarnDialog"
></warning-set>
<warning-set
:warning-visible=
"warningVisible"
:info=
"recordInfo"
@
closeWarnDialog=
"closeWarnDialog"
@
confirmWarnDialog=
"confirmWarnDialog"
></warning-set>
<!-- 批量设置 -->
<!-- 批量设置 -->
<d2-dialog
:title=
"batchSetObj[batchSetActive].title"
mode=
"mid"
v-if=
"batchVisible"
:is-visible=
"batchVisible"
@
closeDialog=
"handleBatchClose"
@
confirmDialog=
"handleConfirmBatch"
>
<d2-dialog
:title=
"batchSetObj[batchSetActive].title"
mode=
"mid"
v-if=
"batchVisible"
:is-visible=
"batchVisible"
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormSetRef"
label-width=
"220px"
:form-ref=
"editChildRef"
:form-obj=
"batchForm"
:form-data=
"batchFormData"
:form-rules=
"batchRules"
>
@
closeDialog=
"handleBatchClose"
@
confirmDialog=
"handleConfirmBatch"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormSetRef"
label-width=
"220px"
:form-ref=
"editChildRef"
:form-obj=
"batchForm"
:form-data=
"batchFormData"
:form-rules=
"batchRules"
>
<
template
slot=
"businessDevelopmentScene"
>
<
template
slot=
"businessDevelopmentScene"
>
<el-checkbox-group
v-model=
"batchForm.businessDevelopmentScene"
@
change=
"changeBusiScene"
>
<el-checkbox-group
v-model=
"batchForm.businessDevelopmentScene"
@
change=
"changeBusiScene"
>
<el-checkbox
v-for=
"item in baseData.busiSceneList"
:key=
"item.confId"
:label=
"item.confId"
>
{{
item
.
confValue
}}
</el-checkbox>
<el-checkbox
v-for=
"item in baseData.busiSceneList"
:key=
"item.confId"
:label=
"item.confId"
>
{{
item
.
confValue
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</
template
>
</
template
>
</glsx-combi-form>
</glsx-combi-form>
...
@@ -1386,29 +1400,35 @@ export default {
...
@@ -1386,29 +1400,35 @@ export default {
.el-form-item
{
.el-form-item
{
display
:
flex
;
display
:
flex
;
}
}
.tips-icon
{
.tips-icon
{
border
:
none
;
border
:
none
;
}
}
}
}
::v-deep
.yqdTableContainer
{
::v-deep
.yqdTableContainer
{
.el-table
.cell
{
.el-table
.cell
{
padding
:
0
10px
;
padding
:
0
10px
;
}
}
//
padding-right
:
3px
;
//
padding-right
:
3px
;
.el-table__body-wrapper
{
.el-table__body-wrapper
{
.el-table__row
td
:
nth-child
(
1
)
{
.el-table__row
td
:
nth-child
(
1
)
{
border-left
:
1px
solid
#ebeef5
;
border-left
:
1px
solid
#ebeef5
;
}
}
.el-table__row
td
:nth-last-child
(
1
)
{
.el-table__row
td
:nth-last-child
(
1
)
{
border-right
:
1px
solid
#ebeef5
;
border-right
:
1px
solid
#ebeef5
;
}
}
}
}
.select
{
.select
{
.el-tag
{
.el-tag
{
width
:
auto
;
width
:
auto
;
}
}
}
}
}
}
.tb-row
{
.tb-row
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
40px
;
height
:
40px
;
...
@@ -1420,15 +1440,19 @@ export default {
...
@@ -1420,15 +1440,19 @@ export default {
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.tb-row
:last-child
{
.tb-row
:last-child
{
border
:
0
;
border
:
0
;
}
}
.upload-wrap
{
.upload-wrap
{
display
:
flex
;
display
:
flex
;
}
}
.import-btn
{
.import-btn
{
position
:
relative
;
position
:
relative
;
}
}
.import-input
{
.import-input
{
opacity
:
0
;
opacity
:
0
;
position
:
absolute
;
position
:
absolute
;
...
@@ -1439,30 +1463,36 @@ export default {
...
@@ -1439,30 +1463,36 @@ export default {
cursor
:
pointer
;
cursor
:
pointer
;
font-size
:
0
;
font-size
:
0
;
}
}
.import-template
{
.import-template
{
position
:
absolute
;
position
:
absolute
;
height
:
20px
;
height
:
20px
;
top
:
50px
;
top
:
50px
;
left
:
0
;
left
:
0
;
}
}
.m-l-md
{
.m-l-md
{
margin-left
:
20px
;
margin-left
:
20px
;
}
}
.upload-statistics
{
.upload-statistics
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin
:
30px
70px
;
margin
:
30px
70px
;
.quantity
{
.quantity
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#333333
;
color
:
#333333
;
text-align
:
center
;
text-align
:
center
;
.success
{
.success
{
font-size
:
26px
;
font-size
:
26px
;
color
:
#2cca74
;
color
:
#2cca74
;
text-align
:
center
;
text-align
:
center
;
margin-bottom
:
4px
;
margin-bottom
:
4px
;
}
}
.err
{
.err
{
font-size
:
26px
;
font-size
:
26px
;
color
:
#eb4e4e
;
color
:
#eb4e4e
;
...
@@ -1470,17 +1500,20 @@ export default {
...
@@ -1470,17 +1500,20 @@ export default {
margin-bottom
:
4px
;
margin-bottom
:
4px
;
}
}
}
}
.line
{
.line
{
width
:
1px
;
width
:
1px
;
height
:
56px
;
height
:
56px
;
background
:
#e8e8ea
;
background
:
#e8e8ea
;
}
}
}
}
.points-set-form
{
.points-set-form
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.m-t-40
{
.m-t-40
{
margin-top
:
40px
;
margin-top
:
40px
;
}
}
...
...
src/views/systemConfig/merchant/financialRules/components/channelSelectDialog.vue
0 → 100644
View file @
802bd45
<!-- 分账测试渠道 -->
<
template
>
<d2-dialog
title=
"选择分账测试渠道"
:is-visible=
"verificationCodeVisible"
class=
"verificationCode"
width=
"750px"
btn-ok-label=
"申请虚拟对公账户"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<!--
<div
class=
"box"
v-for=
"(item, index) in accountValidMerchants"
:key=
"index"
>
-->
<el-radio-group
v-model=
"paymentChannelId"
class=
"radio-group"
>
<el-radio
:label=
"item.paymentChannelId"
v-for=
"(item, index) in divisionRuleTests"
:key=
"index"
>
{{
item
.
paymentChannelName
}}
</el-radio>
</el-radio-group>
<!--
</div>
-->
</d2-dialog>
</
template
>
<
script
>
// import { sendSms, getAdminInfo } from '@api/merchant'
import
{
mapActions
}
from
'vuex'
export
default
{
name
:
'ChannelSelectDialog'
,
props
:
{
visible
:
{
// 弹窗是否展示
type
:
Boolean
,
default
:
false
},
accountValidMerchants
:
{
type
:
Array
,
default
:
()
=>
[]
},
divisionRuleTests
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
computed
:
{
verificationCodeVisible
:
{
// return this.
get
()
{
return
this
.
visible
},
set
(
val
)
{
this
.
$emit
(
'update:visible'
,
false
)
}
},
paymentChannelObj
()
{
return
this
.
divisionRuleTests
.
find
(
item
=>
item
.
paymentChannelId
===
this
.
paymentChannelId
)
}
},
data
()
{
return
{
paymentChannelId
:
''
}
},
mounted
()
{
},
methods
:
{
...
mapActions
({
close
:
'd2admin/page/close'
}),
handleClose
()
{
// this.$emit('dialogClose')
// this.$update
this
.
verificationCodeVisible
=
false
},
// handleApply() {
// },
// 选择并确认
handleConfirm
()
{
if
(
!
this
.
paymentChannelId
)
{
return
this
.
$message
.
error
(
'请选择渠道'
);
}
this
.
$emit
(
'handleConfirm'
,
this
.
paymentChannelObj
)
this
.
handleClose
()
// this.$router.push({ name: 'accountList_new' })
// this.close({ tagName: '/merchantDetail' })
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.container
{
padding
:
16px
44px
;
color
:
#333333
;
background
:
#f6f8fa
;
}
.channel
{
color
:
#333333
;
font-size
:
16px
;
}
.info
{
color
:
#666666
;
font-size
:
14px
;
}
</
style
>
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
View file @
802bd45
...
@@ -777,6 +777,8 @@
...
@@ -777,6 +777,8 @@
:visible
.
sync=
"tipsDialogVisible"
/>
:visible
.
sync=
"tipsDialogVisible"
/>
<financialCalculationDialog
v-if=
"financialCalculationVisible"
v-on=
"$listeners"
<financialCalculationDialog
v-if=
"financialCalculationVisible"
v-on=
"$listeners"
:financial-calculation-obj=
"financialCalculationObj"
:visible
.
sync=
"financialCalculationVisible"
/>
:financial-calculation-obj=
"financialCalculationObj"
:visible
.
sync=
"financialCalculationVisible"
/>
<channelSelectDialog
v-if=
"channelSelectDialogVisible"
v-on=
"$listeners"
:divisionRuleTests=
"divisionRuleTests"
@
handleConfirm=
"channelConfirm"
:visible
.
sync=
"channelSelectDialogVisible"
/>
</div>
</div>
</template>
</template>
...
@@ -799,13 +801,15 @@ import {
...
@@ -799,13 +801,15 @@ import {
goodsSourceList
goodsSourceList
}
from
"@/common/constant/merchant"
}
from
"@/common/constant/merchant"
import
tipsDialog
from
"./tipsDialog"
import
tipsDialog
from
"./tipsDialog"
import
financialCalculationDialog
from
"./financialCalculationDialog.vue"
import
financialCalculationDialog
from
"./financialCalculationDialog"
import
channelSelectDialog
from
"./channelSelectDialog"
export
default
{
export
default
{
name
:
"ClassificationCpt"
,
name
:
"ClassificationCpt"
,
components
:
{
components
:
{
tableAccount
,
tableAccount
,
tipsDialog
,
tipsDialog
,
financialCalculationDialog
financialCalculationDialog
,
channelSelectDialog
},
},
props
:
{
props
:
{
goodsTypeGroupRules
:
{
goodsTypeGroupRules
:
{
...
@@ -960,6 +964,7 @@ export default {
...
@@ -960,6 +964,7 @@ export default {
}
}
}
}
return
{
return
{
divisionRuleTests
:
[],
financialCalculationVisible
:
false
,
financialCalculationVisible
:
false
,
tipsDialogVisible
:
false
,
tipsDialogVisible
:
false
,
accountValidMerchants
:
[],
accountValidMerchants
:
[],
...
@@ -1562,20 +1567,36 @@ export default {
...
@@ -1562,20 +1567,36 @@ export default {
divisionRuleTestGet
({
divisionRuleTestGet
({
goodsTypeGroupDivisionId
:
this
.
goodsTypeGroupDivisionId
goodsTypeGroupDivisionId
:
this
.
goodsTypeGroupDivisionId
}).
then
((
result
)
=>
{
}).
then
((
result
)
=>
{
const
{
subProgress
,
accountValidMerchants
}
=
result
// const { notInForceAccountMerchantMap, divisionRuleTestMap } = result
// 没有虚拟对公账户
const
{
notInForceAccountMerchants
,
divisionRuleTests
}
=
result
if
(
subProgress
==
32
)
{
// 如果有没有管理的虚拟对公账户
if
(
notInForceAccountMerchants
)
{
this
.
tipsDialogVisible
=
true
this
.
tipsDialogVisible
=
true
this
.
accountValidMerchants
=
accountValid
Merchants
this
.
accountValidMerchants
=
notInForceAccount
Merchants
}
}
console
.
log
([
34
,
35
,
36
,
31
].
includes
(
subProgress
))
// const { subProgress, accountValidMerchants } = result
if
([
34
,
35
,
36
,
31
].
includes
(
subProgress
))
{
// 没有虚拟对公账户
// if (subProgress == 32) {
// this.tipsDialogVisible = true
// this.accountValidMerchants = accountValidMerchants
// }
// console.log([34, 35, 36, 31].includes(subProgress))
// [34, 35, 36, 31].includes(subProgress)
// 需要做分账测算
if
(
divisionRuleTests
)
{
this
.
financialCalculationVisible
=
true
this
.
financialCalculationVisible
=
true
this
.
financialCalculationObj
=
result
this
.
financialCalculationObj
=
result
}
}
console
.
log
(
"result"
,
result
)
console
.
log
(
"result"
,
result
)
})
})
},
},
channelConfirm
(
result
)
{
// if (divisionRuleTests) {
this
.
financialCalculationVisible
=
true
this
.
financialCalculationObj
=
result
// }
},
ruleTest
()
{
ruleTest
()
{
this
.
$emit
(
"rulesTest"
)
this
.
$emit
(
"rulesTest"
)
},
},
...
...
src/views/systemConfig/merchant/financialRules/components/financialCalculationDialog.vue
View file @
802bd45
...
@@ -69,11 +69,6 @@
...
@@ -69,11 +69,6 @@
<!-- v-if="financialCalculationObj.orderCode" -->
<!-- v-if="financialCalculationObj.orderCode" -->
<div
class=
"txt-box"
>
<div
class=
"txt-box"
>
<div
id=
"qrcodeDiv"
class=
"qrImg"
/>
<div
id=
"qrcodeDiv"
class=
"qrImg"
/>
<!--
<vue-qr
class=
"middle"
:margin=
"0"
width=
"134"
height=
"134"
:text=
"financialCalculationObj.orderCode"
/>
-->
</div>
</div>
</div>
</div>
<div
class=
"step-desc-box"
>
<div
class=
"step-desc-box"
>
...
@@ -112,88 +107,6 @@
...
@@ -112,88 +107,6 @@
</el-button>
-->
</el-button>
-->
</p>
</p>
</el-form-item>
</el-form-item>
<!--
</
template
>
-->
<!-- <el-form-item v-if="Object.values(needJudgeMerchantList).includes(3)">
<p class="one-line-ellipsis"
:title="merchantInfo.realityDivisionMerchant ? merchantInfo.realityDivisionMerchant.merchantName : ''">
<img class="point"
src="./images/point.png">{{ merchantInfo.realityDivisionMerchant ? merchantInfo.realityDivisionMerchant.merchantName : '' }}
</p>
<p class="flex">
<el-input :disabled="merchantInfo.divisionStatus !== 3"
:size="size"
v-model="moneyForm.realityShopDivisionMoney"
placeholder="导流方收款金额"
@input="handlePartnerDivisionMoney($event,'realityShopDivisionMoney')" />
<el-button :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
type="primary"
@click="handleSave">
确认
</el-button>
</p>
</el-form-item>
<el-form-item v-if="Object.values(needJudgeMerchantList).includes(2)">
<p class="one-line-ellipsis"
:title="merchantInfo.singlePartnerMerchant ? merchantInfo.singlePartnerMerchant.merchantName : ''">
<img class="point"
src="./images/point.png">{{ merchantInfo.singlePartnerMerchant ? merchantInfo.singlePartnerMerchant.merchantName : '' }}
</p>
<p class="flex">
<el-input :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
v-model="moneyForm.singlePartnerDivisionMoney"
placeholder="服务商收款金额"
@input="handlePartnerDivisionMoney($event,'singlePartnerDivisionMoney')" />
<el-button :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
type="primary"
@click="handleSave">
确认
</el-button>
</p>
</el-form-item>
<el-form-item v-if="Object.values(needJudgeMerchantList).includes(4)">
<p class="one-line-ellipsis"
:title="merchantInfo.installCostPartnerMerchant ? merchantInfo.installCostPartnerMerchant.merchantName : ''">
<img class="point"
src="./images/point.png">{{ merchantInfo.installCostPartnerMerchant ? merchantInfo.installCostPartnerMerchant.merchantName : '' }}
</p>
<p class="flex">
<el-input :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
v-model="moneyForm.installCostMerchantDivisionMoney"
placeholder="安装费服务商收款金额"
@input="handlePartnerDivisionMoney($event,'installCostMerchantDivisionMoney')" />
<el-button :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
type="primary"
@click="handleSave">
确认
</el-button>
</p>
</el-form-item>
<el-form-item v-if="Object.values(needJudgeMerchantList).includes(5)">
<p class="one-line-ellipsis"
:title="merchantInfo.marketingCostPartnerMerchant ? merchantInfo.marketingCostPartnerMerchant.merchantName : ''">
<img class="point"
src="./images/point.png">{{ merchantInfo.marketingCostPartnerMerchant ? merchantInfo.marketingCostPartnerMerchant.merchantName : '' }}
</p>
<p class="flex">
<el-input :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
v-model="moneyForm.marketingCostMerchantDivisionMoney"
placeholder="营销费服务商收款金额"
@input="handlePartnerDivisionMoney($event,'marketingCostMerchantDivisionMoney')" />
<el-button :size="size"
:disabled="merchantInfo.divisionStatus !== 3"
type="primary"
@click="handleSave">
确认
</el-button>
</p>
</el-form-item> -->
</el-form>
</el-form>
</div>
</div>
</div>
</div>
...
...
src/views/systemConfig/merchant/financialRules/components/tipsDialog.vue
View file @
802bd45
<!-- 财务分账测试 -->
<!-- 财务分账测试 -->
<
template
>
<
template
>
<!-- btn-ok-label="全部下载" -->
<!-- btn-ok-label="全部下载" -->
<d2-dialog
title=
"提示"
<d2-dialog
title=
"提示"
:is-visible=
"verificationCodeVisible"
class=
"verificationCode"
width=
"750px"
:is-visible=
"verificationCodeVisible"
btn-ok-label=
"申请虚拟对公账户"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
class=
"verificationCode"
width=
"750px"
btn-ok-label=
"申请虚拟对公账户"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<!--
<div>
55
</div>
-->
<!--
<div>
55
</div>
-->
<p>
分账对象未开通虚拟对公账户,请继续前往申请开通:
</p>
<div
class=
"box"
v-for=
"(item, index) in accountValidMerchants"
:key=
"index"
>
<div
class=
"container"
>
<p
class=
"channel"
>
渠道:
{{
item
.
paymentChannelName
}}
分账对象未开通虚拟对公账户,请继续前往申请开通:
</p>
<p
v-for=
"(item,index) in accountValidMerchants"
<div
class=
"info"
v-if=
"item.shopMerchants.length"
>
:key=
"index"
>
流量方:
<span
v-for=
"(child, childIndex) in item.shopMerchants"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
<span
class=
"label"
>
名称:
{{
item
.
merchantName
}}
</span>
</p>
</div>
</div>
<div
class=
"info"
v-if=
"item.partners.length"
>
服务商:
<span
v-for=
"(child, childIndex) in item.partners"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
</div>
<div
class=
"info"
v-if=
"item.platformMerchants.length"
>
平台方:
<span
v-for=
"(child, childIndex) in item.platformMerchants"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
</div>
</div>
<!--
<div
class=
"box"
v-for=
"(item, index) in accountValidMerchants"
:key=
"index"
>
<p
class=
"channel"
>
渠道:
{{
item
.
paymentChannelName
}}
分账对象未开通虚拟对公账户,请继续前往申请开通:
</p>
<div
class=
"info"
v-if=
"item.shopMerchants.length"
>
流量方:
<span
v-for=
"(child, childIndex) in item.shopMerchants"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
</div>
<div
class=
"info"
v-if=
"item.partners.length"
>
服务商:
<span
v-for=
"(child, childIndex) in item.partners"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
</div>
<div
class=
"info"
v-if=
"item.platformMerchants.length"
>
平台方:
<span
v-for=
"(child, childIndex) in item.platformMerchants"
:key=
'childIndex'
>
{{
child
.
merchantName
}}
</span>
</div>
</div>
-->
</d2-dialog>
</d2-dialog>
</
template
>
</
template
>
...
@@ -82,4 +96,14 @@ export default {
...
@@ -82,4 +96,14 @@ export default {
color
:
#333333
;
color
:
#333333
;
background
:
#f6f8fa
;
background
:
#f6f8fa
;
}
}
.channel
{
color
:
#333333
;
font-size
:
16px
;
}
.info
{
color
:
#666666
;
font-size
:
14px
;
}
</
style
>
</
style
>
src/views/systemConfig/merchant/financialRules/index.vue
View file @
802bd45
This diff is collapsed.
Click to expand it.
src/views/systemConfig/yqStoreManage/qRcodeDialog.vue
View file @
802bd45
<
template
>
<
template
>
<d2-dialog
title=
"收款二维码"
:is-visible=
"qRcodeVisible"
class=
"qRcodeDailog"
width=
"750px"
btn-ok-label=
"全部下载"
<d2-dialog
title=
"收款二维码"
:is-visible=
"qRcodeVisible"
class=
"qRcodeDailog"
width=
"750px"
btn-ok-label=
"全部下载"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
<div
class=
"channelBox"
>
<span>
支付渠道:
</span>
<el-select
v-model=
"paymentChannelId"
placeholder=
"请选择"
class=
"elSelect"
>
<el-option
v-for=
"item in paymentChannelList"
:key=
"item.paymentChannelId"
:label=
"item.paymentChannelName"
:value=
"item.paymentChannelId"
>
</el-option>
</el-select>
<el-button
type=
"primary"
@
click=
"savaAll"
>
重新生成
</el-button>
</div>
<div
class=
"qrcon"
>
<div
class=
"qrcon"
>
<div
class=
"wxcon"
>
<div
class=
"wxcon"
>
<div
class=
"codeDiv"
id=
"wxview"
>
<div
class=
"codeDiv"
id=
"wxview"
>
...
@@ -39,8 +48,8 @@
...
@@ -39,8 +48,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
// alipayQrcode
import
{
createWeappQrcode
}
from
'@api/serviceManage'
import
{
createWeappQrcode
}
from
'@api/serviceManage'
import
{
paymentChannelList
}
from
"@api/merchant"
import
{
baseConfig
}
from
'@/main'
import
{
baseConfig
}
from
'@/main'
import
html2canvas
from
'html2canvas'
import
html2canvas
from
'html2canvas'
import
QRCode
from
"qrcodejs2"
import
QRCode
from
"qrcodejs2"
...
@@ -48,6 +57,8 @@ export default {
...
@@ -48,6 +57,8 @@ export default {
name
:
'QRcodeDialog'
,
name
:
'QRcodeDialog'
,
data
()
{
data
()
{
return
{
return
{
paymentChannelList
:
[],
paymentChannelId
:
'8881A96B22B84A348263EE4F314A2A23'
,
infoForm
:
{
infoForm
:
{
merchantType
:
''
,
merchantType
:
''
,
merchant
:
[],
merchant
:
[],
...
@@ -61,7 +72,8 @@ export default {
...
@@ -61,7 +72,8 @@ export default {
},
},
qrCodeURL
:
''
,
qrCodeURL
:
''
,
aliqrCodeURL
:
''
,
aliqrCodeURL
:
''
,
defaultImg
:
require
(
'./images/defaultImg.png'
)
defaultImg
:
require
(
'./images/defaultImg.png'
),
qrcode
:
''
}
}
},
},
...
@@ -84,11 +96,24 @@ export default {
...
@@ -84,11 +96,24 @@ export default {
components
:
{},
components
:
{},
mounted
()
{
mounted
()
{
this
.
initPaymentChannelList
()
this
.
createQrcodeImage
()
this
.
createQrcodeImage
()
this
.
alipayQrcode
()
this
.
alipayQrcode
()
},
},
methods
:
{
methods
:
{
savaAll
()
{
this
.
createQrcodeImage
()
this
.
alipayQrcode
()
// this.takeScreenshot('wxview', `${this.info.yqMerchantName}微信支付收款码`)
// this.takeScreenshot('aliview', `${this.info.yqMerchantName}支付宝支付收款码`)
},
initPaymentChannelList
()
{
paymentChannelList
().
then
((
res
)
=>
{
this
.
paymentChannelList
=
res
})
},
/**
/**
* @description: 图片转base64
* @description: 图片转base64
* @param {String} url 需要转换的图片原链接(http://....jpg)
* @param {String} url 需要转换的图片原链接(http://....jpg)
...
@@ -117,11 +142,10 @@ export default {
...
@@ -117,11 +142,10 @@ export default {
createQrcodeImage
()
{
createQrcodeImage
()
{
const
oParams
=
{}
const
oParams
=
{}
oParams
.
channelType
=
1
oParams
.
channelType
=
1
oParams
.
appId
=
'wx06d1198e751435d1'
oParams
.
appId
=
this
.
paymentChannelId
==
'8881A96B22B84A348263EE4F314A2A23'
?
'wx06d1198e751435d1'
:
'wx3d2ee7f8bda398cc'
// oParams.appId = 'wx902f0b9c4b2c669d'
oParams
.
qrcodeType
=
'QR_WXA_UNLIMIT'
oParams
.
qrcodeType
=
'QR_WXA_UNLIMIT'
oParams
.
path
=
'packagesPayment/pages/QRPayment/QRPayment'
oParams
.
path
=
'packagesPayment/pages/QRPayment/QRPayment'
oParams
.
scene
=
`merchantId=
${
this
.
info
.
yqMerchantId
}
&merchantName=
${
this
.
info
.
yqMerchantName
}
`
oParams
.
scene
=
`merchantId=
${
this
.
info
.
yqMerchantId
}
&merchantName=
${
this
.
info
.
yqMerchantName
}
&paymentChannelId=
${
this
.
paymentChannelId
}
`
// oParams.appId = 'wx902f0b9c4b2c669d'
// oParams.appId = 'wx902f0b9c4b2c669d'
// oParams.appId = 'wx570d9331f9ace0bd'
// oParams.appId = 'wx570d9331f9ace0bd'
// oParams.qrcodeType = 'QR_WXA_UNLIMIT'
// oParams.qrcodeType = 'QR_WXA_UNLIMIT'
...
@@ -161,9 +185,6 @@ export default {
...
@@ -161,9 +185,6 @@ export default {
// 下载保存图片
// 下载保存图片
takeScreenshot
(
eleId
,
name
)
{
takeScreenshot
(
eleId
,
name
)
{
// const opts = {
// useCORS: true
// }
const
that
=
this
const
that
=
this
html2canvas
(
document
.
getElementById
(
eleId
),
{
html2canvas
(
document
.
getElementById
(
eleId
),
{
backgroundColor
:
null
,
backgroundColor
:
null
,
...
@@ -211,18 +232,23 @@ export default {
...
@@ -211,18 +232,23 @@ export default {
// 生成支付宝中间二维码
// 生成支付宝中间二维码
alipayQrcode
()
{
alipayQrcode
()
{
// const that = this
// const that = this
const
shareUrl
=
`
${
baseConfig
.
alipayPath
}
?merchantId=
${
this
.
info
.
yqMerchantId
}
&merchantName=
${
this
.
info
.
yqMerchantName
}
`
// pay 支付渠道
const
shareUrl
=
`
${
baseConfig
.
alipayPath
}
?merchantId=
${
this
.
info
.
yqMerchantId
}
&merchantName=
${
this
.
info
.
yqMerchantName
}
&pay=
${
this
.
paymentChannelId
}
`
console
.
log
(
baseConfig
.
alipayPath
)
console
.
log
(
baseConfig
.
alipayPath
)
console
.
log
(
shareUrl
)
console
.
log
(
shareUrl
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
console
.
log
(
document
.
getElementById
(
'qrcodeDiv'
))
console
.
log
(
document
.
getElementById
(
'qrcodeDiv'
))
const
qrcode
=
new
QRCode
(
"qrcodeDiv"
,
{
if
(
this
.
qrcode
)
{
this
.
qrcode
.
clear
()
// 清除二维码
}
else
{
this
.
qrcode
=
new
QRCode
(
"qrcodeDiv"
,
{
text
:
shareUrl
,
text
:
shareUrl
,
width
:
150
,
// 图像宽度
width
:
150
,
// 图像宽度
height
:
150
// 图像高度
height
:
150
// 图像高度
})
})
qrcode
.
clear
()
// 清除二维码
}
qrcode
.
makeCode
(
shareUrl
)
// 生成另一个新的二维码
// qrcode.clear() // 清除二维码
this
.
qrcode
.
makeCode
(
shareUrl
)
// 生成另一个新的二维码
this
.
aliqrCodeURL
=
qrcode
this
.
aliqrCodeURL
=
qrcode
},
500
)
},
500
)
// this.$nextTick(() => {
// this.$nextTick(() => {
...
@@ -269,7 +295,7 @@ export default {
...
@@ -269,7 +295,7 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
lang=
"scss"
>
.qrcon
{
.qrcon
{
display
:
flex
;
display
:
flex
;
}
}
...
@@ -345,4 +371,12 @@ export default {
...
@@ -345,4 +371,12 @@ export default {
/* 自定义行数 */
/* 自定义行数 */
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
2
;
}
}
.channelBox
{
margin
:
auto
;
.elSelect
{
margin
:
0
10px
10px
;
}
}
</
style
>
</
style
>
src/views/systemConfig/yqStoreManage/yqStoreManage.vue
View file @
802bd45
...
@@ -33,18 +33,9 @@
...
@@ -33,18 +33,9 @@
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
// import _ from 'lodash'
import
{
getYqMerchantConfig
}
from
'@api/serviceManage'
import
{
// getList,
// getMerchantList,
// addParentMerchant,
// deleteParentMerchant,
getYqMerchantConfig
}
from
'@api/serviceManage'
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
{
BaseData
,
manageTypeList
}
from
'@/common/constants.js'
import
{
BaseData
,
manageTypeList
}
from
'@/common/constants.js'
// import { sendSms, getAdminInfo } from '@api/merchant'
// import { getParkStore } from '@api/editCustomer'
import
qrcodeDialog
from
'./qRcodeDialog'
import
qrcodeDialog
from
'./qRcodeDialog'
import
wxQRcodeDialog
from
'./wxQRcodeDialog'
import
wxQRcodeDialog
from
'./wxQRcodeDialog'
import
sceneEntryDialog
from
'./sceneEntryDialog'
import
sceneEntryDialog
from
'./sceneEntryDialog'
...
...
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