新增开放平台
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!-- 结算信息 -->
|
||||
<template>
|
||||
<el-row :gutter="gutter">
|
||||
<el-col :span="span">
|
||||
<el-col :span="24">
|
||||
<el-form ref="d1FormRef" :model="d1Form" label-width="120" label-position="left">
|
||||
<div class="title_wrap">
|
||||
<el-text>D1</el-text>
|
||||
@@ -76,7 +76,7 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-col>
|
||||
<el-col :span="span">
|
||||
<el-col :span="span" v-if="false">
|
||||
<el-form ref="d0FormRef" :model="d0Form" label-width="120" label-position="left">
|
||||
<div class="title_wrap">
|
||||
<el-text>D0</el-text>
|
||||
@@ -183,6 +183,8 @@ import { merchBaseAccount, getBranchList, updateAccount, authentication, updateA
|
||||
import { useRoute } from 'vue-router'
|
||||
import { ElMessage } from 'element-plus';
|
||||
const route = useRoute()
|
||||
import { useUser } from "@/store/user.js";
|
||||
const storeUser = useUser();
|
||||
|
||||
const span = ref(12)
|
||||
const gutter = ref(50)
|
||||
@@ -196,7 +198,7 @@ const d1BankRef4 = ref(null)
|
||||
const d1BankRef5 = ref(null)
|
||||
const bankBranchs = ref([])
|
||||
const d1Form = reactive({
|
||||
userid: route.query.id,
|
||||
userid: storeUser.userInfo.userId,
|
||||
channeltype: 'D1',
|
||||
bankCard: {},
|
||||
idcard: {},
|
||||
@@ -268,7 +270,7 @@ const d0BankRef4 = ref(null)
|
||||
const d0BankRef5 = ref(null)
|
||||
const d0FormRef = ref(null)
|
||||
const d0Form = reactive({
|
||||
userid: route.query.id,
|
||||
userid: storeUser.userInfo.userId,
|
||||
channeltype: 'D0',
|
||||
bankCard: {},
|
||||
idcard: {},
|
||||
@@ -335,7 +337,7 @@ async function d0SubmitHandle() {
|
||||
// 结算信息
|
||||
async function merchBaseAccountAjax() {
|
||||
try {
|
||||
const res = await merchBaseAccount(route.query.id)
|
||||
const res = await merchBaseAccount(storeUser.userInfo.userId)
|
||||
await d1BanknameChange(res.D1.bankCard.bankname, res.D1.bankCard.branchcity)
|
||||
await d0BanknameChange(res.D1.bankCard.bankname, res.D1.bankCard.branchcity)
|
||||
|
||||
@@ -385,7 +387,7 @@ async function merchBaseAccountAjax() {
|
||||
|
||||
// 结算人与收银台合照 结算人手持身份证照
|
||||
const authForm = reactive({
|
||||
merchantCode: route.query.merchantcode,
|
||||
merchantCode: storeUser.userInfo.merchantcode,
|
||||
picUrl: ''
|
||||
})
|
||||
const authFormLoading = ref(false)
|
||||
@@ -394,7 +396,7 @@ const authFormUpload1 = ref(null)
|
||||
// 认证信息
|
||||
async function authenticationAjax() {
|
||||
try {
|
||||
const res = await authentication(route.query.id)
|
||||
const res = await authentication(storeUser.userInfo.userId)
|
||||
authForm.picUrl = res.image
|
||||
authFormUpload1.value.pselectFile({ url: res.image })
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user