|
@@ -53,7 +53,8 @@
|
|
|
<div class="van-cell van-field requiredLeft">
|
|
|
<div class="van-cell__title van-field__label"><span>{{ $t('joinpayMch.merchantType') }}</span></div>
|
|
|
<div class="van-cell__value van-field__value radioBox">
|
|
|
- <van-radio-group v-model="altMerchantType" direction="horizontal" @change="fieldUpdate" :disabled="huifuMchID != null || joinPayMchID != null">
|
|
|
+ <van-radio-group v-model="altMerchantType" direction="horizontal" @change="fieldUpdate"
|
|
|
+ :disabled="huifuMchID != null || joinPayMchID != null">
|
|
|
<van-radio name="10" icon-size="18px">{{ $t('joinpayMch.personal') }}</van-radio>
|
|
|
<!-- <van-radio name="11" icon-size="18px">{{$t('joinpayMch.individualBusinesses')}}</van-radio> -->
|
|
|
<van-radio name="12" icon-size="18px">{{ $t('joinpayMch.enterprise') }}</van-radio>
|
|
@@ -186,9 +187,10 @@
|
|
|
{{ signStatus == '签约成功' ? (huifuMchID == null ? signStatus : (huifuAuditStatus == '2' ? signStatus :
|
|
|
'待签约')) : '待签约' }}
|
|
|
</span>
|
|
|
- <van-button :disabled="huifuMchID == null ? (signStatus == '签约成功' ? true : false) : (huifuAuditStatus == '2' && signStatus == '签约成功' ? true : false)"
|
|
|
- span="5" round type="primary" style="height: 2em; padding: 0 2.5em" @click='altMchSignFun()'>{{
|
|
|
- $t('joinpayMch.signAContract') }}
|
|
|
+ <van-button
|
|
|
+ :disabled="huifuMchID == null ? (signStatus == '签约成功' ? true : false) : (huifuAuditStatus == '2' && signStatus == '签约成功' ? true : false)"
|
|
|
+ span="5" round type="primary" style="height: 2em; padding: 0 2.5em" @click='altMchSignFun()'>{{
|
|
|
+ $t('joinpayMch.signAContract') }}
|
|
|
</van-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -197,7 +199,8 @@
|
|
|
<div class="van-cell van-field requiredLeft">
|
|
|
<div class="van-cell__title van-field__label"><span>{{ $t('joinpayMch.accountType') }}</span></div>
|
|
|
<div class="van-cell__value van-field__value radioBox">
|
|
|
- <van-radio-group v-model="bankAccountType" direction="horizontal" @change="fieldUpdate" :disabled="altMerchantType === '10'">
|
|
|
+ <van-radio-group v-model="bankAccountType" direction="horizontal" @change="fieldUpdate"
|
|
|
+ :disabled="altMerchantType === '10'">
|
|
|
<van-radio name="1" icon-size="18px">{{ $t('joinpayMch.debitCard') }}</van-radio>
|
|
|
<van-radio name="4" icon-size="18px">{{
|
|
|
$t('joinpayMch.corporateAccount')
|
|
@@ -225,9 +228,8 @@
|
|
|
:rules="[{ required: true, message: $t('joinpayMch.bankAccountPlaceholder') }]"
|
|
|
@update:model-value="fieldUpdate" />
|
|
|
<!-- 银行地址 -->
|
|
|
- <van-field class="requiredLeft" v-model="bankAddress" is-link readonly
|
|
|
- name="bankAddress" :label="$t('huifuMch.huifuBankAddress')"
|
|
|
- :placeholder="$t('huifuMch.huifuBankAddressPlaceholder')"
|
|
|
+ <van-field class="requiredLeft" v-model="bankAddress" is-link readonly name="bankAddress"
|
|
|
+ :label="$t('huifuMch.huifuBankAddress')" :placeholder="$t('huifuMch.huifuBankAddressPlaceholder')"
|
|
|
:rules="[{ required: true, message: $t('huifuMch.huifuBankAddressPlaceholder') }]"
|
|
|
@click="showBankAddress = true" />
|
|
|
<div v-if="bankAccountType === '4'" class="requiredLeft">
|
|
@@ -287,7 +289,8 @@
|
|
|
</template>
|
|
|
</van-field> -->
|
|
|
<!-- 操作 -->
|
|
|
- <van-row justify="space-around" v-if="huifuAuditStatus != '4' && huifuAuditStatus != '1'" style="padding: 1em; margin: 2em 0;">
|
|
|
+ <van-row justify="space-around" v-if="huifuAuditStatus != '4' && huifuAuditStatus != '1'"
|
|
|
+ style="padding: 1em; margin: 2em 0;">
|
|
|
<van-button span="5" round type="primary" style="height: 2em; padding: 1.5em 2em" native-type="submit">{{
|
|
|
$t('joinpayMch.submitDataForReview') }}
|
|
|
</van-button>
|
|
@@ -442,7 +445,7 @@ import sHeader from "../../components/SimpleHeader";
|
|
|
import { showFailToast, showSuccessToast, showToast, showLoadingToast } from "vant";
|
|
|
import { areaList } from "@vant/area-data";
|
|
|
import {
|
|
|
- getOneJoinPayMch, updateJoinPayMchCheck, altMchSign, updateConStat,
|
|
|
+ getOneJoinPayMch, updateJoinPayMchCheck, altMchSign,
|
|
|
sentImage, updateApproveStatus, saveJoinPayMch
|
|
|
} from '../../service/joinpayMch';
|
|
|
import { newUploadPic, getHuifuMchCheck, newSaveHuifuMch, updateMerchant, openAccount, sendSms } from "@/service/huifuMch";
|
|
@@ -771,9 +774,9 @@ export default {
|
|
|
addParams.emailValue = data.data.email;
|
|
|
addParams.manageAddr = areaList.province_list[data.data.provId] + areaList.city_list[data.data.areaId] + areaList.county_list[data.data.districtId];
|
|
|
huifuMchNO.value = data.data.huifuId;
|
|
|
- if (huifuMchNO.value != null && conStat.value != "5") {
|
|
|
- changeConStat();
|
|
|
- }
|
|
|
+ // if (huifuMchNO.value != null && conStat.value != "5") {
|
|
|
+ // changeConStat();
|
|
|
+ // }
|
|
|
addParams.validityType = data.data.certValidityType;
|
|
|
addParams.beginDate = dateUtil.formatDate(data.data.certBeginDate);
|
|
|
addParams.endDate = dateUtil.formatDate(data.data.certEndDate);
|
|
@@ -783,7 +786,8 @@ export default {
|
|
|
huifuParams.cardProvId = data.data.cardProvId;
|
|
|
huifuParams.cardAreaId = data.data.cardAreaId;
|
|
|
huifuParams.detailAddr = data.data.detailAddr;
|
|
|
- addParams.bankAddress = areaList.province_list[data.data.cardProvId] + areaList.city_list[data.data.cardAreaId]
|
|
|
+ addParams.bankAddress = areaList.province_list[data.data.cardProvId] == areaList.city_list[data.data.cardAreaId] ? areaList.province_list[data.data.cardProvId] :
|
|
|
+ (areaList.province_list[data.data.cardProvId] + areaList.city_list[data.data.cardAreaId]);
|
|
|
if (data.data.cardFrontPic != null && data.data.legalCertBackPic != null && data.data.legalCertFrontPic) {
|
|
|
huifuPicUpStatus.value = 1;
|
|
|
}
|
|
@@ -792,7 +796,8 @@ export default {
|
|
|
addParams.altMerchantType = "12";
|
|
|
addParams.regNameValue = data.data.regName;
|
|
|
addParams.shortNameValue = data.data.shortName;
|
|
|
- addParams.registeredAddress = areaList.province_list[data.data.regProvId] + areaList.city_list[data.data.regAreaId] + areaList.county_list[data.data.regDistrictId];
|
|
|
+ addParams.registeredAddress = areaList.province_list[data.data.regProvId] == areaList.city_list[data.data.regAreaId] ? (areaList.city_list[data.data.regAreaId] + areaList.county_list[data.data.regDistrictId]) :
|
|
|
+ (areaList.province_list[data.data.regProvId] + areaList.city_list[data.data.regAreaId] + areaList.county_list[data.data.regDistrictId]);
|
|
|
huifuParams.regProvId = data.data.regProvId;
|
|
|
huifuParams.regAreaId = data.data.regAreaId;
|
|
|
huifuParams.regDistrictId = data.data.regDistrictId;
|
|
@@ -822,15 +827,15 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
// 更新汇付签约状态
|
|
|
- const changeConStat = async () => {
|
|
|
- const { data } = await updateConStat(huifuParams);
|
|
|
- if (data.code === "00000") {
|
|
|
- // showSuccessToast(t('joinpayMch.withdrawalSucceeded'));
|
|
|
- if (data.data === "5") {
|
|
|
- location.reload();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // const changeConStat = async () => {
|
|
|
+ // const { data } = await updateConStat(huifuParams);
|
|
|
+ // if (data.code === "00000") {
|
|
|
+ // // showSuccessToast(t('joinpayMch.withdrawalSucceeded'));
|
|
|
+ // if (data.data === "5") {
|
|
|
+ // location.reload();
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
// 更新图片审核情况
|
|
|
const changeApproveStatus = async () => {
|
|
|
const { data } = await updateApproveStatus({ id: joinPayMchID.value });
|
|
@@ -901,8 +906,8 @@ export default {
|
|
|
addParams.licenseExpiry = addParams.endDateLicense;
|
|
|
}
|
|
|
huifuParams.regName = addParams.legalPerson;
|
|
|
- huifuParams.name = addParams.busiContactName;
|
|
|
- huifuParams.phone = addParams.busiContactMobileNo;
|
|
|
+ huifuParams.name = addParams.legalPerson;
|
|
|
+ huifuParams.phone = addParams.phoneNo;
|
|
|
huifuParams.email = addParams.emailValue;
|
|
|
huifuParams.cardName = addParams.bankAccountName;
|
|
|
huifuParams.cardNo = addParams.bankAccountNo.replace(/\s/g, '');
|
|
@@ -920,6 +925,7 @@ export default {
|
|
|
huifuParams.licenseBeginDate = addParams.beginDateLicense.replace(/-/g, "");
|
|
|
huifuParams.licenseEndDate = addParams.endDateLicense.replace(/-/g, "");
|
|
|
huifuParams.servicePhone = addParams.servicePhoneValue;
|
|
|
+ huifuParams.regDetail = addParams.registeredAddress;
|
|
|
if (addParams.bankAccountType === '4') {
|
|
|
huifuParams.cardType = '0';
|
|
|
huifuParams.branchCode = addParams.bankChannelNo;
|
|
@@ -999,18 +1005,25 @@ export default {
|
|
|
const { data } = await sentImage(params);
|
|
|
let response = null;
|
|
|
if (data.code === "00000") {
|
|
|
- response = await openAccount({ id: huifuMchID.value });
|
|
|
- if (response.data.code === "00000") {
|
|
|
- console.log("response", response);
|
|
|
- loadingUp.close();
|
|
|
+ if (huifuMchNO.value == null) {
|
|
|
+ response = await openAccount({ id: huifuMchID.value });
|
|
|
+ if (response.data.code === "00000") {
|
|
|
+ console.log("response", response);
|
|
|
+ loadingUp.close();
|
|
|
+ showSuccessToast(t('joinpayMch.uploadSucceeded'));
|
|
|
+ setTimeout(() => {
|
|
|
+ location.reload();
|
|
|
+ }, 1500);
|
|
|
+ } else {
|
|
|
+ console.log("response", response);
|
|
|
+ loadingUp.close();
|
|
|
+ showFailToast(`${response.data.message}`);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
showSuccessToast(t('joinpayMch.uploadSucceeded'));
|
|
|
setTimeout(() => {
|
|
|
location.reload();
|
|
|
}, 1500);
|
|
|
- } else {
|
|
|
- console.log("response", response);
|
|
|
- loadingUp.close();
|
|
|
- showFailToast(`${response.data.message}`);
|
|
|
}
|
|
|
} else { showFailToast(t('joinpayMch.submitFailed')); }
|
|
|
} catch (error) {
|
|
@@ -1033,20 +1046,13 @@ export default {
|
|
|
if (data.code === "00000") {
|
|
|
console.log(huifuAuditStatus.value);
|
|
|
let huifuMch = await openAccount({ id: huifuMchID.value });
|
|
|
- // let huifuMch = null;
|
|
|
- // if (huifuAuditStatus.value === '1') {
|
|
|
- // huifuMch = await auditAddMerchant({ id: huifuMchID.value, status: "1" });
|
|
|
- // } else if (huifuAuditStatus.value === '4') {
|
|
|
- // huifuMch = await auditUpdateMerchant({ id: huifuMchID.value, status: "1" });
|
|
|
- // }
|
|
|
- // console.log(data1);
|
|
|
if (huifuMch.data.code === "00000") {
|
|
|
showSuccessToast(t('joinpayMch.signingSuccessfully'));
|
|
|
setTimeout(() => {
|
|
|
location.reload();
|
|
|
}, 1500);
|
|
|
} else {
|
|
|
- showFailToast(`${huifuMch.message}`);
|
|
|
+ showFailToast(`${huifuMch.data.message}`);
|
|
|
}
|
|
|
} else {
|
|
|
showFailToast(`${data.message}`);
|
|
@@ -1280,5 +1286,4 @@ export default {
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
@import "../../common/style/common.less";
|
|
|
-@import "../../styles/joinpayMch/index.less";
|
|
|
-</style>
|
|
|
+@import "../../styles/joinpayMch/index.less";</style>
|