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 63ad58df
authored
Aug 12, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 功能开发
1 parent
ebadba70
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
223 additions
and
105 deletions
package.json
src/api/request.js
src/api/serviceManage.js
src/store/modules/goodsInfoData/index.js
src/views/goods/shelfManage/components/detailCon/DivisionConfig.vue
src/views/goods/shelfManage/components/editCon/DivisionConfig.vue
src/views/goods/shelfManage/components/editMultilateralCon/DivisionConfig.vue
src/views/systemConfig/ShopConfig/components/qRcodeDialog.vue
src/views/systemConfig/merchant/financialRules/components/financialCalculationDialog.vue
src/views/systemConfig/yqStoreManage/qRcodeDialog.vue
package.json
View file @
63ad58d
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
"file-saver"
:
"^2.0.5"
,
"file-saver"
:
"^2.0.5"
,
"flex.css"
:
"^1.1.7"
,
"flex.css"
:
"^1.1.7"
,
"fuse.js"
:
"^3.4.4"
,
"fuse.js"
:
"^3.4.4"
,
"glsk-oss-jssdk"
:
"^1.0.
3
"
,
"glsk-oss-jssdk"
:
"^1.0.
4
"
,
"glsx-common-sdk"
:
"^0.3.0"
,
"glsx-common-sdk"
:
"^0.3.0"
,
"hash.js"
:
"^1.0.0"
,
"hash.js"
:
"^1.0.0"
,
"hotkeys-js"
:
"^3.6.2"
,
"hotkeys-js"
:
"^3.6.2"
,
...
...
src/api/request.js
View file @
63ad58d
...
@@ -20,7 +20,7 @@ const request = (
...
@@ -20,7 +20,7 @@ const request = (
)
=>
{
)
=>
{
// 兼容线上dj和scrm appkey和secret不一样的情况
// 兼容线上dj和scrm appkey和secret不一样的情况
let
apiName
=
""
let
apiName
=
""
console
.
log
(
"params.method"
,
params
)
//
console.log("params.method", params)
if
(
params
.
method
.
includes
(
"dj.api.smartcarlife"
))
{
if
(
params
.
method
.
includes
(
"dj.api.smartcarlife"
))
{
apiName
=
"dj"
apiName
=
"dj"
}
else
if
(
params
.
method
.
includes
(
"dj.api.script"
))
{
}
else
if
(
params
.
method
.
includes
(
"dj.api.script"
))
{
...
...
src/api/serviceManage.js
View file @
63ad58d
...
@@ -3,135 +3,141 @@ import request from "./request"
...
@@ -3,135 +3,141 @@ import request from "./request"
const
path
=
"dj.smartcarlife.api."
const
path
=
"dj.smartcarlife.api."
// 分页查询园区店服务商列表
// 分页查询园区店服务商列表
export
function
getList
(
data
)
{
export
function
getList
(
data
)
{
// data.method = `${path}partnerMerchant.serviceRef.page`
// data.method = `${path}partnerMerchant.serviceRef.page`
data
.
method
=
`
${
path
}
yqPartnerMerchant.ref.page`
data
.
method
=
`
${
path
}
yqPartnerMerchant.ref.page`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 获取商户列表(园区店和服务商)
// 获取商户列表(园区店和服务商)
export
function
getMerchantList
(
data
)
{
export
function
getMerchantList
(
data
)
{
data
.
method
=
`
${
path
}
merchant.list`
data
.
method
=
`
${
path
}
merchant.list`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 给园区店添加服务商
// 给园区店添加服务商
export
function
addParentMerchant
(
data
)
{
export
function
addParentMerchant
(
data
)
{
data
.
method
=
`
${
path
}
partnerMerchant.serviceRef.add`
data
.
method
=
`
${
path
}
partnerMerchant.serviceRef.add`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 保存园区店服务商关联
// 保存园区店服务商关联
export
function
saveParentMerchant
(
data
)
{
export
function
saveParentMerchant
(
data
)
{
data
.
method
=
`
${
path
}
partnerMerchant.serviceRef.save`
data
.
method
=
`
${
path
}
partnerMerchant.serviceRef.save`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 删除关联服务商
// 删除关联服务商
export
function
deleteParentMerchant
(
data
)
{
export
function
deleteParentMerchant
(
data
)
{
data
.
method
=
`
${
path
}
partnerMerchant.serviceRef.delete`
data
.
method
=
`
${
path
}
partnerMerchant.serviceRef.delete`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 获取园区店列表
// 获取园区店列表
export
function
getYqMerchantConfig
(
data
)
{
export
function
getYqMerchantConfig
(
data
)
{
data
.
method
=
`dj.api.smarcarlife.yqMerchantConfig.page`
data
.
method
=
`dj.api.smarcarlife.yqMerchantConfig.page`
return
request
(
data
,
"GET"
)
return
request
(
data
,
"GET"
)
}
}
// 获取园区店列表-获取园区店配置项
// 获取园区店列表-获取园区店配置项
export
function
GETYQMERCHANTCONFIGDETAIL
(
data
)
{
export
function
GETYQMERCHANTCONFIGDETAIL
(
data
)
{
data
.
method
=
`dj.api.smarcarlife.yqMerchantConfig.detail`
data
.
method
=
`dj.api.smarcarlife.yqMerchantConfig.detail`
return
request
(
data
,
"GET"
)
return
request
(
data
,
"GET"
)
}
}
// 获取园区店列表-修改园区店配置项
// 获取园区店列表-修改园区店配置项
export
function
UPDATEYQMERCHANTCONFIG
(
data
)
{
export
function
UPDATEYQMERCHANTCONFIG
(
data
)
{
data
.
method
=
`dj.api.smarcarlife.yqMerchantConfig.modify`
data
.
method
=
`dj.api.smarcarlife.yqMerchantConfig.modify`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 生成小程序码
// 生成小程序码
export
function
createWeappQrcode
(
data
)
{
export
function
createWeappQrcode
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.common.createWeappQrcode.new`
data
.
method
=
`dj.api.smartcarlife.common.createWeappQrcode.new`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 获取园区店支付宝页面二维码
// 获取园区店支付宝页面二维码
export
function
alipayQrcode
(
data
)
{
export
function
alipayQrcode
(
data
)
{
data
.
method
=
`dj.api.smarcarlife.yqMerchantConfig.alipay.qrcode`
data
.
method
=
`dj.api.smarcarlife.yqMerchantConfig.alipay.qrcode`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 获取园区店配置项
// 获取园区店配置项
export
function
yqMerchantConfigDetail
(
data
)
{
export
function
yqMerchantConfigDetail
(
data
)
{
data
.
method
=
`dj.api.smarcarlife.yqMerchantConfig.detail`
data
.
method
=
`dj.api.smarcarlife.yqMerchantConfig.detail`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 关联园区店加企微二维码
// 关联园区店加企微二维码
export
function
serviceMerchantRelateQrcode
(
data
)
{
export
function
serviceMerchantRelateQrcode
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.serviceMerchant.relate.qrcode`
data
.
method
=
`dj.api.smartcarlife.serviceMerchant.relate.qrcode`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 获取园区店配置的场景入口
// 获取园区店配置的场景入口
export
function
getYqMerchantSceneConfigAPI
(
data
)
{
export
function
getYqMerchantSceneConfigAPI
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.select.openScene.info`
data
.
method
=
`dj.api.smartcarlife.select.openScene.info`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 配置园区店场景入口
// 配置园区店场景入口
export
function
settingYqMerchantSceneAPI
(
data
)
{
export
function
settingYqMerchantSceneAPI
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.update.openScene.info`
data
.
method
=
`dj.api.smartcarlife.update.openScene.info`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 获取服务商数据
// 获取服务商数据
export
function
getServiceListAPI
(
data
)
{
export
function
getServiceListAPI
(
data
)
{
data
.
method
=
"dj.api.smarcarlife.yqMerchantConfig.partnerMerchantDetail"
data
.
method
=
"dj.api.smarcarlife.yqMerchantConfig.partnerMerchantDetail"
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 获取服务商配置
// 获取服务商配置
export
function
getProviderProcurementInfo
(
data
)
{
export
function
getProviderProcurementInfo
(
data
)
{
data
.
method
=
data
.
method
=
"dj.smartcarlife.api.yqPartnerMerchant.selectProviderProcurementInfo"
"dj.smartcarlife.api.yqPartnerMerchant.selectProviderProcurementInfo"
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 配置服务商
// 配置服务商
export
function
updateProviderProcurementInfo
(
data
)
{
export
function
updateProviderProcurementInfo
(
data
)
{
data
.
method
=
data
.
method
=
"dj.smartcarlife.api.yqPartnerMerchant.updateProviderProcurementInfo"
"dj.smartcarlife.api.yqPartnerMerchant.updateProviderProcurementInfo"
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 获取发货主体
// 获取发货主体
export
function
getShippingEntityInfoAll
(
data
)
{
export
function
getShippingEntityInfoAll
(
data
)
{
data
.
method
=
data
.
method
=
"dj.smartcarlife.api.yqPartnerMerchant.selectShippingEntityInfoAll"
"dj.smartcarlife.api.yqPartnerMerchant.selectShippingEntityInfoAll"
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
// 获取下级商户
// 获取下级商户
export
function
searchServiceMerchant
(
data
)
{
export
function
searchServiceMerchant
(
data
)
{
data
.
method
=
"dj.api.serviceMerchant.page.search"
data
.
method
=
"dj.api.serviceMerchant.page.search"
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
/**根据4s店商户号查找员工设备列表 */
/**根据4s店商户号查找员工设备列表 */
export
function
getMerchantEmployeeList
(
data
)
{
export
function
getMerchantEmployeeList
(
data
)
{
data
.
method
=
"dj.api.mindworkplate.badge.findPhoneListByShopMerchantNo"
data
.
method
=
"dj.api.mindworkplate.badge.findPhoneListByShopMerchantNo"
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
/**获取阿里云token */
/**获取阿里云token */
export
function
getAliOSSToken
(
data
=
{})
{
export
function
getAliOSSToken
(
data
=
{})
{
data
.
method
=
'dj.api.mindworkplate.badge.getToken'
data
.
method
=
"dj.api.mindworkplate.badge.getToken"
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
/** 录音文件批量新增 */
/** 录音文件批量新增 */
export
function
updateRecordings
(
data
)
{
export
function
updateRecordings
(
data
)
{
data
.
method
=
"dj.api.smartcarlife.inspection.conversation.recordings"
data
.
method
=
"dj.api.smartcarlife.inspection.conversation.recordings"
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
/** 设置商户默认的支付渠道 */
export
function
setDefaultPaymentChannel
(
data
)
{
data
.
method
=
"dj.api.serviceMerchant.setDefaultPaymentChannel"
return
request
(
data
,
"post"
)
}
src/store/modules/goodsInfoData/index.js
View file @
63ad58d
import
{
getGoodsCategoryConfiguration
}
from
"@/api/sys.base.js"
import
{
getGoodsCategoryConfiguration
}
from
"@/api/sys.base.js"
import
{
getAllGoodsList
}
from
"@api/grounding"
import
{
getAllGoodsList
}
from
"@api/grounding"
import
{
merchantSettleDistributeRuleLastRule
}
from
"@api/shelfManage"
import
{
merchantSettleDistributeRuleLastRule
}
from
"@api/shelfManage"
import
{
set
}
from
"nprogress
"
import
{
paymentChannelList
}
from
"@api/merchant
"
export
default
{
export
default
{
namespaced
:
true
,
namespaced
:
true
,
state
:
{
state
:
{
...
@@ -60,7 +60,10 @@ export default {
...
@@ -60,7 +60,10 @@ export default {
isLoadingGoods
:
false
,
// 加载状态
isLoadingGoods
:
false
,
// 加载状态
merchantSettleDistributeRuleLastRule
:
null
,
merchantSettleDistributeRuleLastRule
:
null
,
firstLineSunshineOnlinePointsFlag
:
null
,
firstLineSunshineOnlinePointsFlag
:
null
,
firstLineSunshine2OnlinePointsFlag
:
null
firstLineSunshine2OnlinePointsFlag
:
null
,
paymentChannelList
:
[],
isLoadingPaymentChannelList
:
null
,
promiseGetPaymentChannelList
:
null
},
},
mutations
:
{
mutations
:
{
/**
/**
...
@@ -213,6 +216,43 @@ export default {
...
@@ -213,6 +216,43 @@ export default {
})
// 清除Promise
})
// 清除Promise
}
}
},
},
async
getPaymentChannelList
({
commit
,
state
})
{
if
(
state
.
paymentChannelList
&&
state
.
paymentChannelList
.
length
)
{
return
state
.
paymentChannelList
}
// 正在请求,返回现有Promise
if
(
state
.
promiseGetPaymentChannelList
)
{
return
state
.
promiseGetPaymentChannelList
}
try
{
commit
(
"SET_LOADING"
,
{
isLoading
:
true
,
name
:
"isLoadingPaymentChannelList"
})
const
promise
=
paymentChannelList
({})
// 替换为你的API调用
commit
(
"SET_PROMISE"
,
{
promise
,
name
:
"promiseGetPaymentChannelList"
})
const
response
=
await
promise
console
.
log
(
response
,
"getGoods"
)
commit
(
"SET_DATA"
,
{
data
:
response
,
name
:
"paymentChannelList"
})
return
response
}
finally
{
commit
(
"SET_LOADING"
,
{
isLoading
:
false
,
name
:
"isLoadingPaymentChannelList"
})
commit
(
"SET_PROMISE"
,
{
promise
:
null
,
name
:
"promiseGetPaymentChannelList"
})
// 清除Promise
}
},
async
getMerchantSettleDistributeRuleLastRule
({
commit
,
state
},
id
)
{
async
getMerchantSettleDistributeRuleLastRule
({
commit
,
state
},
id
)
{
console
.
log
(
id
,
"getMerchantSettleDistributeRuleLastRule"
)
console
.
log
(
id
,
"getMerchantSettleDistributeRuleLastRule"
)
if
(
state
.
merchantSettleDistributeRuleLastRule
)
{
if
(
state
.
merchantSettleDistributeRuleLastRule
)
{
...
...
src/views/goods/shelfManage/components/detailCon/DivisionConfig.vue
View file @
63ad58d
...
@@ -5,78 +5,50 @@
...
@@ -5,78 +5,50 @@
<span>
分账配置
</span>
<span>
分账配置
</span>
</div>
</div>
<div
style=
"padding: 20px"
>
<div
style=
"padding: 20px"
>
<el-form
<el-form
ref=
"divisionRuleRef"
:model=
"financialObj"
label-suffix=
":"
label-width=
"154px"
>
ref=
"divisionRuleRef"
<el-form-item
label=
""
prop=
""
v-for=
"(item, index) in financialObj.divisionRuleAutos"
:key=
"index"
>
:model=
"financialObj"
<span
class=
"payChannel"
slot=
"label"
>
label-suffix=
":"
<span
class=
""
>
label-width=
"154px"
{{
item
.
paymentChannelName
}}
>
</span>
</span>
<el-form-item
label=
""
prop=
"autoFlag"
>
<el-form-item
label=
""
prop=
"autoFlag"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
线上自动分账
</span>
<span
class=
"tips-label"
>
线上自动分账
</span>
<el-tooltip
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
content=
"产生交易后会自动打款给商户,开启及关闭操作第二天生效。"
popper-class=
"tooltip-class"
placement=
"top"
>
effect=
"dark"
<span
class=
"tips-icon"
/>
</el-tooltip>
:
content=
"产生交易后会自动打款给商户,开启及关闭操作第二天生效。"
placement=
"top"
>
<span
class=
"tips-icon"
/>
</el-tooltip
>
:
</span>
</span>
<el-switch
<el-switch
v-model=
"financialObj.autoFlag"
active-value=
"Y"
disabled
inactive-value=
"N"
/>
v-model=
"financialObj.autoFlag"
active-value=
"Y"
disabled
inactive-value=
"N"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"结算时间方式"
>
<el-form-item
label=
"结算时间方式"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
分账周期
</span>
<span
class=
"tips-label"
>
分账周期
</span>
<el-tooltip
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
content=
"用户支付的款项可按T+1或指定日自动打款给商户。"
placement=
"top"
>
popper-class=
"tooltip-class"
<span
class=
"tips-icon"
/>
</el-tooltip>
:
effect=
"dark"
content=
"用户支付的款项可按T+1或指定日自动打款给商户。"
placement=
"top"
>
<span
class=
"tips-icon"
/>
</el-tooltip
>
:
</span>
</span>
<div
class=
"block_item"
style=
"margin-bottom: 20px"
>
<div
class=
"block_item"
style=
"margin-bottom: 20px"
>
<span>
<span>
分账周期 T+
{{
settleTimeObj
.
first
}}
日
分账周期 T+
{{
settleTimeObj
.
first
}}
日
<span
v-show=
"financialObj.settleTimeType == 1"
<span
v-show=
"financialObj.settleTimeType == 1"
>
(分账后第2天到分账方对公账户)
</span>
>
(分账后第2天到分账方对公账户)
</span
>
</span>
</span>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form-item>
<el-form-item
label=
"流量方分账方"
>
<el-form-item
label=
"流量方分账方"
>
<span>
{{
financialObj
.
realityShopMerchantName
}}
</span>
<span>
{{
financialObj
.
realityShopMerchantName
}}
</span>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-tabs
v-model=
"editableTabsValue"
type=
"card"
class=
"my-tab-pane"
>
<el-tabs
v-model=
"editableTabsValue"
type=
"card"
class=
"my-tab-pane"
>
<!-- closable -->
<!-- closable -->
<el-tab-pane
<el-tab-pane
v-for=
"item in editableTabs"
:key=
"item.name"
:label=
"item.title"
:name=
"item.name"
>
v-for=
"item in editableTabs"
:key=
"item.name"
:label=
"item.title"
:name=
"item.name"
>
<span
slot=
"label"
>
{{
item
.
title
}}
</span>
<span
slot=
"label"
>
{{
item
.
title
}}
</span>
<div
class=
"classificationCptContainer"
>
<div
class=
"classificationCptContainer"
>
<el-form
<el-form
ref=
"divisionRuleRef"
:model=
"financialObj"
label-suffix=
":"
label-width=
"154px"
>
ref=
"divisionRuleRef"
<h3
v-if=
"
:model=
"financialObj"
label-suffix=
":"
label-width=
"154px"
>
<h3
v-if=
"
financialObj.goodsTypeGroupRules[editableTabsValue - 1]
financialObj.goodsTypeGroupRules[editableTabsValue - 1]
.groupType == 1
.groupType == 1
"
"
>
>
全部品类
全部品类
</h3>
</h3>
...
@@ -85,21 +57,17 @@
...
@@ -85,21 +57,17 @@
{{
{{
financialObj
.
goodsTypeGroupRules
[
editableTabsValue
-
1
]
financialObj
.
goodsTypeGroupRules
[
editableTabsValue
-
1
]
.
categoryType
||
"--"
.
categoryType
||
"--"
}}
</el-form-item
}}
</el-form-item>
>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
{{
{{
financialObj
.
goodsTypeGroupRules
[
editableTabsValue
-
1
]
financialObj
.
goodsTypeGroupRules
[
editableTabsValue
-
1
]
.
packageArrText
.
packageArrText
}}
</el-form-item
}}
</el-form-item>
>
</div>
</div>
<template
<template
v-for=
"(item, index) in financialObj.goodsTypeGroupRules[
v-for=
"(item, index) in financialObj.goodsTypeGroupRules[
editableTabsValue - 1
editableTabsValue - 1
].expenseCategoryRules"
].expenseCategoryRules"
>
>
<el-form-item
:key=
"index"
:label=
"item.expenseCategoryName"
>
<el-form-item
:key=
"index"
:label=
"item.expenseCategoryName"
>
<span>
{{
<span>
{{
getExpenseCategoryCalculateType
(
getExpenseCategoryCalculateType
(
...
@@ -111,15 +79,9 @@
...
@@ -111,15 +79,9 @@
</
template
>
</
template
>
</el-form>
</el-form>
</div>
</div>
<tableAccount
<tableAccount
ref=
"tableAccount"
:merchant-distribution-rules=
"financialObj.goodsTypeGroupRules[editableTabsValue - 1]
ref=
"tableAccount"
:merchant-distribution-rules=
"
financialObj.goodsTypeGroupRules[editableTabsValue - 1]
.merchantDistributionRules
.merchantDistributionRules
"
"
:table-select-options=
"tableSelectOptions"
:classification-obj-select=
"tableClassificationObjSelect"
/>
:table-select-options=
"tableSelectOptions"
:classification-obj-select=
"tableClassificationObjSelect"
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
...
@@ -137,11 +99,11 @@ export default {
...
@@ -137,11 +99,11 @@ export default {
props
:
{
props
:
{
divisiObj
:
{
divisiObj
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
},
},
basicInfo
:
{
basicInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
}
}
},
},
data
()
{
data
()
{
...
@@ -248,7 +210,7 @@ export default {
...
@@ -248,7 +210,7 @@ export default {
deep
:
true
deep
:
true
}
}
},
},
created
()
{},
created
()
{
},
methods
:
{
methods
:
{
initData
(
data
)
{
initData
(
data
)
{
...
...
src/views/goods/shelfManage/components/editCon/DivisionConfig.vue
View file @
63ad58d
This diff is collapsed.
Click to expand it.
src/views/goods/shelfManage/components/editMultilateralCon/DivisionConfig.vue
View file @
63ad58d
...
@@ -7,6 +7,12 @@
...
@@ -7,6 +7,12 @@
</div>
</div>
<div
class=
"publicContainer"
>
<div
class=
"publicContainer"
>
<el-form
ref=
"divisionRuleRef"
:model=
"financialObj"
:rules=
"rules"
label-suffix=
":"
label-width=
"180px"
>
<el-form
ref=
"divisionRuleRef"
:model=
"financialObj"
:rules=
"rules"
label-suffix=
":"
label-width=
"180px"
>
<el-form-item
label=
""
prop=
""
v-for=
"(item, index) in financialObj.divisionRuleAutos"
:key=
"index"
>
<span
class=
"payChannel"
slot=
"label"
>
<span
class=
""
>
{{
item
.
paymentChannelName
}}
</span>
</span>
<el-form-item
label=
""
prop=
"autoFlag"
>
<el-form-item
label=
""
prop=
"autoFlag"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
线上自动分账
</span>
<span
class=
"tips-label"
>
线上自动分账
</span>
...
@@ -14,6 +20,34 @@
...
@@ -14,6 +20,34 @@
placement=
"top"
>
placement=
"top"
>
<span
class=
"tips-icon"
/>
</el-tooltip>
:
<span
class=
"tips-icon"
/>
</el-tooltip>
:
</span>
</span>
<el-switch
class=
"switch"
v-model=
"item.autoFlag"
active-value=
"Y"
inactive-value=
"N"
/>
</el-form-item>
<el-form-item
label=
"结算时间方式"
prop=
"settleTimeType"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
分账周期
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
content=
"用户支付的款项可按T+1或指定日自动打款给商户。"
placement=
"top"
>
<span
class=
"tips-icon"
/>
</el-tooltip>
:
</span>
<el-radio-group
v-model=
"item.settleTimeType"
:disabled=
"item.autoFlag === 'N'"
>
<div
class=
"block_item"
style=
"margin-bottom: 20px"
>
<el-radio
:label=
"1"
>
分账周期 T+
<el-input-number
v-model=
"item.settleTime"
controls-position=
"right"
size=
"small"
:min=
"0"
:max=
"20"
:disabled=
"item.autoFlag === 'N'"
/>
日
<span
v-show=
"item.settleTimeType == 1"
>
(分账后第2天到分账方对公账户)
</span>
</el-radio>
</div>
</el-radio-group>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
""
prop=
"autoFlag"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
线上自动分账
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
content=
"产生交易后会自动打款给商户,开启及关闭操作第二天生效。"
placement=
"top"
>
<span
class=
"tips-icon"
/>
</el-tooltip>
:
</span>
<el-switch
v-model=
"financialObj.autoFlag"
active-value=
"Y"
inactive-value=
"N"
/>
<el-switch
v-model=
"financialObj.autoFlag"
active-value=
"Y"
inactive-value=
"N"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"结算时间方式"
prop=
"settleTimeType"
>
<el-form-item
label=
"结算时间方式"
prop=
"settleTimeType"
>
...
@@ -33,7 +67,7 @@
...
@@ -33,7 +67,7 @@
</el-radio>
</el-radio>
</div>
</div>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
-->
<!--
<el-form-item
label=
"流量方分账方"
prop=
"realityShopMerchantId"
required
>
<!--
<el-form-item
label=
"流量方分账方"
prop=
"realityShopMerchantId"
required
>
<el-select
v-model=
"financialObj.realityShopMerchantId"
placeholder=
"请选择流量方分账方"
>
<el-select
v-model=
"financialObj.realityShopMerchantId"
placeholder=
"请选择流量方分账方"
>
<el-option
v-for=
"item in baseData.merchantLevelList"
:key=
"item.merchantId"
:label=
"item.showMerchantName"
<el-option
v-for=
"item in baseData.merchantLevelList"
:key=
"item.merchantId"
:label=
"item.showMerchantName"
...
@@ -144,7 +178,8 @@ export default {
...
@@ -144,7 +178,8 @@ export default {
multiPlatformMerchantFlag
:
"N"
,
// 是否多平台
multiPlatformMerchantFlag
:
"N"
,
// 是否多平台
goodsTypeGroupRules
:
[],
goodsTypeGroupRules
:
[],
partnerMerchantId
:
""
,
partnerMerchantId
:
""
,
partnerMerchantName
:
""
partnerMerchantName
:
""
,
divisionRuleAutos
:
[]
},
},
// 结算周期
// 结算周期
settleTimeObj
:
{
settleTimeObj
:
{
...
@@ -338,6 +373,7 @@ export default {
...
@@ -338,6 +373,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getGoodsCategoryConfigurationData
()
// 商品分类
this
.
getGoodsCategoryConfigurationData
()
// 商品分类
this
.
initPaymentChannelList
()
// 平台方
// 平台方
// this.$EventBus.$on("shelfUpdateContractMer", (obj) => {
// this.$EventBus.$on("shelfUpdateContractMer", (obj) => {
// this.$set(this.financialObj, "realityPlatformMerchantId", obj.merchantId)
// this.$set(this.financialObj, "realityPlatformMerchantId", obj.merchantId)
...
@@ -359,7 +395,8 @@ export default {
...
@@ -359,7 +395,8 @@ export default {
...
mapActions
(
"goodsInfoData"
,
[
...
mapActions
(
"goodsInfoData"
,
[
"getGoodsCategoryConfiguration"
,
"getGoodsCategoryConfiguration"
,
"getGoods"
,
"getGoods"
,
"getMerchantSettleDistributeRuleLastRule"
"getMerchantSettleDistributeRuleLastRule"
,
"getPaymentChannelList"
]),
]),
...
mapMutations
(
"FinancialRules"
,
[
"toggle"
,
"set4sService"
]),
...
mapMutations
(
"FinancialRules"
,
[
"toggle"
,
"set4sService"
]),
initDjzhySubMerchant
()
{
initDjzhySubMerchant
()
{
...
@@ -372,6 +409,23 @@ export default {
...
@@ -372,6 +409,23 @@ export default {
}
}
})
})
},
},
async
initPaymentChannelList
()
{
// paymentChannelList().then((res) => {
// console.log(res, "paymentChannelList")
const
res
=
await
this
.
getPaymentChannelList
()
console
.
log
(
res
,
'initPaymentChannelList'
)
this
.
financialObj
.
divisionRuleAutos
=
res
.
map
(
item
=>
{
return
{
paymentChannelId
:
item
.
paymentChannelId
,
paymentChannelName
:
item
.
paymentChannelName
,
autoFlag
:
"N"
,
// 自动分账标识(Y是,N否)
settleTimeType
:
1
,
// 分账时间方式(1:T+1,2:每月)
settleTime
:
""
// 分账时间每月几号
}
})
// this.paymentChannelList = res
// })
},
initFinancialObj
(
merchantId
)
{
initFinancialObj
(
merchantId
)
{
// 先取默认值
// 先取默认值
this
.
financialObj
=
Object
.
assign
(
this
.
financialObj
,
{
this
.
financialObj
=
Object
.
assign
(
this
.
financialObj
,
{
...
@@ -488,6 +542,18 @@ export default {
...
@@ -488,6 +542,18 @@ export default {
result
=
result
?.
merchantSettleDistributeRule
||
this
.
financialObj
result
=
result
?.
merchantSettleDistributeRule
||
this
.
financialObj
result
.
autoFlag
=
result
.
autoFlag
?
result
.
autoFlag
:
"N"
result
.
autoFlag
=
result
.
autoFlag
?
result
.
autoFlag
:
"N"
result
.
settleTimeType
=
result
.
settleTimeType
?
result
.
settleTimeType
:
1
result
.
settleTimeType
=
result
.
settleTimeType
?
result
.
settleTimeType
:
1
if
(
result
?.
divisionRuleAutos
.
length
)
{
console
.
log
()
const
list
=
[]
this
.
financialObj
.
divisionRuleAutos
.
forEach
((
item
)
=>
{
const
findItem
=
result
.
divisionRuleAutos
.
find
(
item2
=>
item
.
paymentChannelId
==
item2
.
paymentChannelId
)
list
.
push
(
findItem
||
item
)
})
console
.
log
(
'result.divisionRuleAutos'
,
list
)
result
.
divisionRuleAutos
=
list
}
else
{
result
.
divisionRuleAutos
=
deepClone
(
this
.
financialObj
.
divisionRuleAutos
)
}
result
.
realityShopLevel
=
result
?.
realityShopLevel
||
1
result
.
realityShopLevel
=
result
?.
realityShopLevel
||
1
result
&&
result
.
divisionRuleId
&&
(
this
.
financialObj
=
result
)
result
&&
result
.
divisionRuleId
&&
(
this
.
financialObj
=
result
)
result
.
multiPlatformMerchantFlag
=
result
.
multiPlatformMerchantFlag
||
"N"
result
.
multiPlatformMerchantFlag
=
result
.
multiPlatformMerchantFlag
||
"N"
...
@@ -1490,7 +1556,28 @@ export default {
...
@@ -1490,7 +1556,28 @@ export default {
@import
"../../style/editdetailCon.scss"
;
@import
"../../style/editdetailCon.scss"
;
.publicContainer
{
.publicContainer
{
//
display
:
flex
;
margin
:
20px
;
margin
:
20px
;
::v-deep.el-form-item__content
{
display
:
flex
;
}
.payChannel
{
display
:
inline-block
;
width
:
200px
;
height
:
32px
;
opacity
:
1
;
background
:
#f5f7fa
;
text-align
:
center
;
line-height
:
32px
;
color
:
#333333
;
font-size
:
14px
;
}
.switch
{
margin-top
:
8px
;
}
}
}
.title
{
.title
{
...
...
src/views/systemConfig/ShopConfig/components/qRcodeDialog.vue
View file @
63ad58d
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,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 +48,8 @@ export default {
...
@@ -48,6 +48,8 @@ export default {
name
:
'QRcodeDialog'
,
name
:
'QRcodeDialog'
,
data
()
{
data
()
{
return
{
return
{
paymentChannelList
:
[],
paymentChannelId
:
''
,
infoForm
:
{
infoForm
:
{
merchantType
:
''
,
merchantType
:
''
,
merchant
:
[],
merchant
:
[],
...
@@ -84,13 +86,30 @@ export default {
...
@@ -84,13 +86,30 @@ export default {
components
:
{},
components
:
{},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
info
)
this
.
paymentChannelId
=
this
.
info
.
paymentChannelId
||
'8881A96B22B84A348263EE4F314A2A23'
// console.log(this.info)
this
.
initPaymentChannelList
()
this
.
createQrcodeImage
()
this
.
createQrcodeImage
()
this
.
alipayQrcode
()
this
.
alipayQrcode
()
},
},
methods
:
{
methods
:
{
savaAll
()
{
// this.info.yqMerchantId}&MN=${this.info.yqMerchantName}&P=${this.paymentChannelId}
setDefaultPaymentChannel
({
paymentChannelId
:
this
.
paymentChannelId
,
merchantId
:
this
.
info
.
yqMerchantId
})
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)
...
@@ -119,12 +138,12 @@ export default {
...
@@ -119,12 +138,12 @@ 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.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}`
oParams
.
scene
=
`shopMerchantId=
${
this
.
info
.
merchantId
}
&shopMerchantName=
${
this
.
info
.
merchantName
}
`
oParams
.
scene
=
`shopMerchantId=
${
this
.
info
.
merchantId
}
&shopMerchantName=
${
this
.
info
.
merchantName
}
&paymentChannelId=
${
this
.
paymentChannelId
}
`
createWeappQrcode
(
oParams
).
then
(
res
=>
{
createWeappQrcode
(
oParams
).
then
(
res
=>
{
this
.
qrCodeURL
=
res
this
.
qrCodeURL
=
res
...
@@ -209,7 +228,7 @@ export default {
...
@@ -209,7 +228,7 @@ export default {
// this
// this
// const that = this
// const that = this
// let shareUrl = `https://www.baidu.com/`;
// let shareUrl = `https://www.baidu.com/`;
const
shareUrl
=
`
${
baseConfig
.
alipayPath
}
?shopMerchantId=
${
this
.
info
.
merchantId
}
&shopMerchantName=
${
this
.
info
.
merchantName
}
`
const
shareUrl
=
`
${
baseConfig
.
alipayPath
}
?shopMerchantId=
${
this
.
info
.
merchantId
}
&shopMerchantName=
${
this
.
info
.
merchantName
}
&P=
${
this
.
paymentChannelId
}
`
console
.
log
(
baseConfig
.
alipayPath
)
console
.
log
(
baseConfig
.
alipayPath
)
console
.
log
(
shareUrl
)
console
.
log
(
shareUrl
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
src/views/systemConfig/merchant/financialRules/components/financialCalculationDialog.vue
View file @
63ad58d
...
@@ -228,7 +228,6 @@ export default {
...
@@ -228,7 +228,6 @@ export default {
},
},
methods
:
{
methods
:
{
initQrCode
()
{
initQrCode
()
{
// createQrcodeImage() {
const
oParams
=
{}
const
oParams
=
{}
oParams
.
channelType
=
1
oParams
.
channelType
=
1
oParams
.
appId
=
this
.
financialCalculationObj
.
paymentChannelId
==
'8881A96B22B84A348263EE4F314A2A23'
?
'wx06d1198e751435d1'
:
'wx3d2ee7f8bda398cc'
oParams
.
appId
=
this
.
financialCalculationObj
.
paymentChannelId
==
'8881A96B22B84A348263EE4F314A2A23'
?
'wx06d1198e751435d1'
:
'wx3d2ee7f8bda398cc'
...
...
src/views/systemConfig/yqStoreManage/qRcodeDialog.vue
View file @
63ad58d
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
:value=
"item.paymentChannelId"
>
:value=
"item.paymentChannelId"
>
</el-option>
</el-option>
</el-select>
</el-select>
<el-button
type=
"primary"
@
click=
"savaAll"
>
重新生成
</el-button>
<el-button
type=
"primary"
@
click=
"savaAll"
>
保存并
重新生成
</el-button>
</div>
</div>
<div
class=
"qrcon"
>
<div
class=
"qrcon"
>
<div
class=
"wxcon"
>
<div
class=
"wxcon"
>
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
createWeappQrcode
}
from
'@api/serviceManage'
import
{
createWeappQrcode
,
setDefaultPaymentChannel
}
from
'@api/serviceManage'
import
{
paymentChannelList
}
from
"@api/merchant"
import
{
paymentChannelList
}
from
"@api/merchant"
import
{
baseConfig
}
from
'@/main'
import
{
baseConfig
}
from
'@/main'
import
html2canvas
from
'html2canvas'
import
html2canvas
from
'html2canvas'
...
@@ -103,6 +103,11 @@ export default {
...
@@ -103,6 +103,11 @@ export default {
methods
:
{
methods
:
{
savaAll
()
{
savaAll
()
{
// this.info.yqMerchantId}&MN=${this.info.yqMerchantName}&P=${this.paymentChannelId}
setDefaultPaymentChannel
({
paymentChannelId
:
this
.
paymentChannelId
,
merchantId
:
this
.
info
.
yqMerchantId
})
this
.
createQrcodeImage
()
this
.
createQrcodeImage
()
this
.
alipayQrcode
()
this
.
alipayQrcode
()
// this.takeScreenshot('wxview', `${this.info.yqMerchantName}微信支付收款码`)
// this.takeScreenshot('wxview', `${this.info.yqMerchantName}微信支付收款码`)
...
...
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