|
@@ -53,15 +53,31 @@
|
|
|
</div>
|
|
|
<div v-if="altMerchantType == 12" class="requiredLeft">
|
|
|
<!-- 商户名称 -->
|
|
|
- <van-field v-model="regNameValue" name="regNameValue" :label="$t('huifuMch.huifuRegName')"
|
|
|
- :placeholder="$t('huifuMch.huifuRegNamePlaceholder')"
|
|
|
- :rules="[{ required: true, message: $t('huifuMch.huifuRegNamePlaceholder') }]"
|
|
|
- @update:model-value="fieldUpdate" />
|
|
|
+ <div class="cell-input">
|
|
|
+ <van-popover v-model:show="regNameVisible" trigger="manual" placement="top" popover-class="custom-popover"
|
|
|
+ :offset="[25, ]" theme="dark">
|
|
|
+ <template #reference>
|
|
|
+ <van-field v-model="regNameValue" name="regNameValue" :label="$t('huifuMch.huifuRegName')"
|
|
|
+ :placeholder="$t('huifuMch.huifuRegNamePlaceholder')"
|
|
|
+ :rules="[{ required: true, message: $t('huifuMch.huifuRegNamePlaceholder') }]"
|
|
|
+ @update:model-value="fieldUpdate" @click="showPopover(1)" />
|
|
|
+ </template>
|
|
|
+ {{ $t('joinpayMch.merchantNameTips') }}
|
|
|
+ </van-popover>
|
|
|
+ </div>
|
|
|
<!-- 商户简称 -->
|
|
|
- <van-field v-model="shortNameValue" name="shortNameValue" :label="$t('huifuMch.shortNameLabel')"
|
|
|
- :placeholder="$t('huifuMch.shortNamePlaceholder')"
|
|
|
- :rules="[{ required: true, message: $t('huifuMch.shortNamePlaceholder') }]"
|
|
|
- @update:model-value="fieldUpdate" />
|
|
|
+ <div class="cell-input">
|
|
|
+ <van-popover v-model:show="shortNameVisible" trigger="manual" placement="bottom" popover-class="custom-popover"
|
|
|
+ :offset="[25, 0]" theme="dark">
|
|
|
+ <template #reference>
|
|
|
+ <van-field v-model="shortNameValue" name="shortNameValue" :label="$t('huifuMch.shortNameLabel')"
|
|
|
+ :placeholder="$t('huifuMch.shortNamePlaceholder')"
|
|
|
+ :rules="[{ required: true, message: $t('huifuMch.shortNamePlaceholder') }]"
|
|
|
+ @update:model-value="fieldUpdate" @click="showPopover(2)" />
|
|
|
+ </template>
|
|
|
+ {{ $t('joinpayMch.merchantAbbreviationTips') }}
|
|
|
+ </van-popover>
|
|
|
+ </div>
|
|
|
<!-- 注册地址 -->
|
|
|
<van-field v-model="registeredAddress" is-link readonly name="registeredAddress"
|
|
|
:label="$t('huifuMch.huifuRegisteredAddress')"
|
|
@@ -153,7 +169,8 @@
|
|
|
<span
|
|
|
:style="{ color: signStatus == '签约成功' ? (conStat == null && huifuMchID == null ? '#00ff80' : (conStat == 5 && huifuAuditStatus == '2' ? '#00ff80' : '#FFA500')) : '#FFA500' }">
|
|
|
<!-- {{ signStatus == "签约成功" && conStat == "5" ? signStatus : "待签约" }} -->
|
|
|
- {{ signStatus == '签约成功' ? (conStat == nul && huifuMchID == null ? signStatus : (conStat == 5 && huifuAuditStatus == '2' ?
|
|
|
+ {{ signStatus == '签约成功' ? (conStat == nul && huifuMchID == null ? signStatus : (conStat == 5 &&
|
|
|
+ huifuAuditStatus == '2' ?
|
|
|
signStatus : '待签约')) : '待签约' }}
|
|
|
</span>
|
|
|
<van-button span="5" round type="primary" style="height: 2em; padding: 0 2.5em" @click='altMchSignFun()'>{{
|
|
@@ -175,10 +192,19 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 银行账户名称 -->
|
|
|
- <van-field class="requiredLeft" v-model="bankAccountName" name="bankAccountName"
|
|
|
- :label="$t('joinpayMch.bankAccountNameLabel')" :placeholder="$t('joinpayMch.bankAccountNamePlaceholder')"
|
|
|
- :rules="[{ required: true, message: $t('joinpayMch.bankAccountNamePlaceholder') }]"
|
|
|
- @update:model-value="fieldUpdate" />
|
|
|
+ <div class="cell-input">
|
|
|
+ <van-popover v-model:show="popoverVisible" trigger="manual" placement="top" popover-class="custom-popover"
|
|
|
+ :offset="[25, 5]" theme="dark">
|
|
|
+ <template #reference>
|
|
|
+ <van-field class="custom-input" v-model="bankAccountName" name="bankAccountName"
|
|
|
+ :label="$t('joinpayMch.bankAccountNameLabel')"
|
|
|
+ :placeholder="$t('joinpayMch.bankAccountNamePlaceholder')"
|
|
|
+ :rules="[{ required: true, message: $t('joinpayMch.bankAccountNamePlaceholder') }]"
|
|
|
+ @update:model-value="fieldUpdate" @click="showPopover(3)" />
|
|
|
+ </template>
|
|
|
+ {{ $t('joinpayMch.bankAccountNameTips') }}
|
|
|
+ </van-popover>
|
|
|
+ </div>
|
|
|
<!-- 银行账号 -->
|
|
|
<van-field class="requiredLeft" v-model="bankAccountNo" name="bankAccountNo"
|
|
|
:label="$t('joinpayMch.bankAccountLabel')" :placeholder="$t('joinpayMch.bankAccountPlaceholder')"
|
|
@@ -436,6 +462,25 @@ export default {
|
|
|
time: 0
|
|
|
});
|
|
|
|
|
|
+ const regNameVisible = ref(false);
|
|
|
+ const shortNameVisible = ref(false);
|
|
|
+ const popoverVisible = ref(false);
|
|
|
+
|
|
|
+ const showPopover = (value) => {
|
|
|
+ console.log(value);
|
|
|
+ switch (value) {
|
|
|
+ case 1:
|
|
|
+ regNameVisible.value = true;
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ shortNameVisible.value = true;
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ popoverVisible.value = true;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
let addParams = reactive({
|
|
|
adminId: user.id, // 当前登录账户的id Long 必填
|
|
|
altMchName: '', // 分账方名称; string 必填
|
|
@@ -585,7 +630,6 @@ export default {
|
|
|
huifuParams.areaId = areaValues[1]?.code || '';
|
|
|
huifuParams.districtId = areaValues[2]?.code || '';
|
|
|
huifuParams.detailAddr = addParams.manageAddr;
|
|
|
- fieldUpdate();
|
|
|
};
|
|
|
const onConfirmBankAddress = (areaValues) => {
|
|
|
showBankAddress.value = false;
|
|
@@ -595,7 +639,6 @@ export default {
|
|
|
.join('');
|
|
|
huifuParams.cardProvId = areaValues[0]?.code || '';
|
|
|
huifuParams.cardAreaId = areaValues[1]?.code || '';
|
|
|
- fieldUpdate();
|
|
|
};
|
|
|
const onConfirmReAddress = (areaValues) => {
|
|
|
showReAddress.value = false;
|
|
@@ -607,7 +650,6 @@ export default {
|
|
|
huifuParams.regAreaId = areaValues[1]?.code || '';
|
|
|
huifuParams.regDistrictId = areaValues[2]?.code || '';
|
|
|
huifuParams.regDetail = addParams.registeredAddress;
|
|
|
- fieldUpdate();
|
|
|
};
|
|
|
onMounted(async () => {
|
|
|
styleUrl('joinpayMch');
|
|
@@ -763,7 +805,7 @@ export default {
|
|
|
const { data } = await updateConStat(huifuParams);
|
|
|
if (data.code === "00000") {
|
|
|
// Toast.success(t('joinpayMch.withdrawalSucceeded'));
|
|
|
- if(data.data === "5") {
|
|
|
+ if (data.data === "5") {
|
|
|
location.reload();
|
|
|
}
|
|
|
}
|
|
@@ -773,7 +815,7 @@ export default {
|
|
|
const { data } = await updateApproveStatus({ id: joinPayMchID.value });
|
|
|
if (data.code === "00000") {
|
|
|
// Toast.success(t('joinpayMch.withdrawalSucceeded'));
|
|
|
- if(data.data === "P1000") {
|
|
|
+ if (data.data === "P1000") {
|
|
|
location.reload();
|
|
|
}
|
|
|
}
|
|
@@ -1196,6 +1238,10 @@ export default {
|
|
|
huifuPicUpStatus,
|
|
|
huifuMchID,
|
|
|
joinPayMchID,
|
|
|
+ showPopover,
|
|
|
+ regNameVisible,
|
|
|
+ shortNameVisible,
|
|
|
+ popoverVisible
|
|
|
};
|
|
|
},
|
|
|
};
|
|
@@ -1203,4 +1249,5 @@ export default {
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
@import "../../common/style/common.less";
|
|
|
+@import "../../styles/joinpayMch/index.less";
|
|
|
</style>
|