diff --git a/src/api/thirdparty/third-mch-fz-relation.ts b/src/api/thirdparty/third-mch-fz-relation.ts index efe84993..587d9e3c 100644 --- a/src/api/thirdparty/third-mch-fz-relation.ts +++ b/src/api/thirdparty/third-mch-fz-relation.ts @@ -35,3 +35,24 @@ export function retry(id: string | number, mchId: string | number) { params: { mchId }, }) } + +/** 提交支付宝直付通二级商户全量资料修改申请;支付宝处理完成后才会在账单和支付结果页生效。 */ +export function modifyAlipayAlias(id: string | number, data: Record) { + return request({ + url: `/third/third-mch-fz-relation/${id}/alipay-alias`, + method: "post", + data, + }) +} + +/** 将资料图片上传到支付宝,返回可填入资料表单的 image_id。 */ +export function uploadAlipayImage(id: string | number, file: File) { + const formData = new FormData() + formData.append("file", file) + return request({ + url: `/third/third-mch-fz-relation/${id}/alipay-image`, + method: "post", + headers: { "Content-Type": "multipart/form-data" }, + data: formData, + }) +} diff --git a/src/views/mch/mch-manage/components/alipay-image-upload.vue b/src/views/mch/mch-manage/components/alipay-image-upload.vue new file mode 100644 index 00000000..3a7a9b8c --- /dev/null +++ b/src/views/mch/mch-manage/components/alipay-image-upload.vue @@ -0,0 +1,81 @@ + + + diff --git a/src/views/mch/mch-manage/components/alipay-merchant-profile-dialog.vue b/src/views/mch/mch-manage/components/alipay-merchant-profile-dialog.vue new file mode 100644 index 00000000..db8e99ac --- /dev/null +++ b/src/views/mch/mch-manage/components/alipay-merchant-profile-dialog.vue @@ -0,0 +1,745 @@ + + + diff --git a/src/views/mch/mch-manage/components/pay-setting-form.vue b/src/views/mch/mch-manage/components/pay-setting-form.vue index 2fb90eb7..dff8f0f9 100644 --- a/src/views/mch/mch-manage/components/pay-setting-form.vue +++ b/src/views/mch/mch-manage/components/pay-setting-form.vue @@ -19,8 +19,8 @@ - + @@ -29,15 +29,16 @@
分账关系
-
默认关系负责支付渠道商户路由;只有“开启分账”且渠道已绑定时才执行平台抽佣。 +
+ 默认关系负责支付渠道商户路由;只有“开启分账”且渠道已绑定时才执行平台抽佣。
刷新 - 新增关系 + 新增关系
@@ -73,32 +74,41 @@ 分账已关闭 {{ relationStatusMeta(row.status).label - }} + }} - + - + - + @@ -121,8 +131,8 @@ 是否开启分账 - + @@ -153,7 +163,8 @@ %
- + @@ -166,7 +177,8 @@ + : '微信接收方类型和关系类型在开启分账后提交微信分账关系接口。' }} + 修改二级商户、平台账号或接收方身份时会生成新关系版本;仅开启分账的关系会进入渠道绑定任务。历史订单仍保留原关系。 + +