|
@@ -17,15 +17,21 @@
|
|
src="https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPng8947935ab81635fdedd8124b11e305eef66286421b69c84fef22233014a3fa9a" />
|
|
src="https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPng8947935ab81635fdedd8124b11e305eef66286421b69c84fef22233014a3fa9a" />
|
|
</div>
|
|
</div>
|
|
<div v-if="tabType === '0'">
|
|
<div v-if="tabType === '0'">
|
|
- <div class="wrap2 l-flex-RC">
|
|
|
|
|
|
+ <!-- <div class="wrap2 l-flex-RC">
|
|
<span class="info2">*</span>
|
|
<span class="info2">*</span>
|
|
<span class="info3">{{ $t('merchantManage.region') }}:
|
|
<span class="info3">{{ $t('merchantManage.region') }}:
|
|
- <!-- 广东省>广州市>天河区 -->
|
|
|
|
</span>
|
|
</span>
|
|
- </div>
|
|
|
|
- <span class="info4">{{ $t('merchantManage.accountNumber') }}:{{ adminObj.username }}</span>
|
|
|
|
- <span class="info5">{{ $t('merchantManage.subscriptionAdministrator') }}:</span>
|
|
|
|
|
|
+ </div> -->
|
|
|
|
+
|
|
|
|
+ <!-- <span class="info5">{{ $t('merchantManage.subscriptionAdministrator') }}:</span> -->
|
|
<van-form @submit="onSubmit">
|
|
<van-form @submit="onSubmit">
|
|
|
|
+ <div class="van-cell van-field">
|
|
|
|
+ <div class="van-cell__title van-field__label"><span>{{ $t('merchantManage.accountNumber') }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="van-cell__value van-field__value o-pt-8" style="text-align: left;">
|
|
|
|
+ <span> {{ adminObj.username }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<van-field v-model="adminObj.name" name="password" :label="$t('merchantManage.fullNameLabel')"
|
|
<van-field v-model="adminObj.name" name="password" :label="$t('merchantManage.fullNameLabel')"
|
|
:placeholder="$t('merchantManage.fullNamePlaceholder')"
|
|
:placeholder="$t('merchantManage.fullNamePlaceholder')"
|
|
:rules="[{ required: true, message: $t('merchantManage.fullNamePlaceholder') }]" />
|
|
:rules="[{ required: true, message: $t('merchantManage.fullNamePlaceholder') }]" />
|
|
@@ -53,7 +59,7 @@
|
|
</div>
|
|
</div>
|
|
<div v-if="adminType === 0 || adminType === 1">
|
|
<div v-if="adminType === 0 || adminType === 1">
|
|
<div class="van-cell van-field">
|
|
<div class="van-cell van-field">
|
|
- <div class="van-cell__title van-field__label"><span>{{ $t('merchantManage.discountCode') }}:</span>
|
|
|
|
|
|
+ <div class="van-cell__title van-field__label"><span>{{ $t('merchantManage.discountCode') }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="van-cell__value van-field__value radioBox">
|
|
<div class="van-cell__value van-field__value radioBox">
|
|
<van-radio-group v-model="adminObj.promoCodeOpen" direction="horizontal">
|
|
<van-radio-group v-model="adminObj.promoCodeOpen" direction="horizontal">
|
|
@@ -63,7 +69,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="van-cell van-field">
|
|
<div class="van-cell van-field">
|
|
- <div class="van-cell__title van-field__label"><span>{{ $t('merchantManage.paymentPlatform') }}:</span>
|
|
|
|
|
|
+ <div class="van-cell__title van-field__label"><span>{{ $t('merchantManage.paymentPlatform') }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="van-cell__value van-field__value radioBox">
|
|
<div class="van-cell__value van-field__value radioBox">
|
|
<van-radio-group v-model="adminObj.payPlatform" direction="horizontal">
|
|
<van-radio-group v-model="adminObj.payPlatform" direction="horizontal">
|
|
@@ -82,7 +88,8 @@
|
|
</div>
|
|
</div>
|
|
<div v-if="tabType === '1'" class="tab2">
|
|
<div v-if="tabType === '1'" class="tab2">
|
|
<div class="kBordBott o-w o-pb-10">
|
|
<div class="kBordBott o-w o-pb-10">
|
|
- <span class="info3">{{ $t('merchantManage.merchantType') }}:个人</span>
|
|
|
|
|
|
+ <span class="info3">{{ $t('merchantManage.merchantType') }}:{{ adminMchObj.altMerchantType == 10 ? "个人" :
|
|
|
|
+ (adminMchObj.altMerchantType == 12 ? "企业" : "") }}</span>
|
|
<span class="info4">{{ $t('merchantManage.contactName') }}:{{ adminMchObj.busiContactName }}</span>
|
|
<span class="info4">{{ $t('merchantManage.contactName') }}:{{ adminMchObj.busiContactName }}</span>
|
|
<span class="word4">{{ $t('merchantManage.cellPhone') }}:{{ adminMchObj.busiContactMobileNo }}</span>
|
|
<span class="word4">{{ $t('merchantManage.cellPhone') }}:{{ adminMchObj.busiContactMobileNo }}</span>
|
|
</div>
|
|
</div>
|
|
@@ -95,22 +102,31 @@
|
|
<span class="word6">{{ $t('merchantManage.legalPerson/IndividualIDNumber') }}:{{ adminMchObj.idCardNo
|
|
<span class="word6">{{ $t('merchantManage.legalPerson/IndividualIDNumber') }}:{{ adminMchObj.idCardNo
|
|
}}</span>
|
|
}}</span>
|
|
<span class="txt3">{{ $t('merchantManage.validityOfIDCard') }}:{{ adminMchObj.idCardExpiry }}</span>
|
|
<span class="txt3">{{ $t('merchantManage.validityOfIDCard') }}:{{ adminMchObj.idCardExpiry }}</span>
|
|
- <span class="txt4">{{ $t('merchantManage.businessLicenseCode') }}:{{ adminMchObj.licenseNo }}</span>
|
|
|
|
- <span class="word7">{{ $t('merchantManage.validityOfBusinessLicense') }}:{{ adminMchObj.licenseExpiry
|
|
|
|
- }}</span>
|
|
|
|
|
|
+ <span v-if="adminMchObj.altMerchantType == 12" class="txt4">{{ $t('merchantManage.businessLicenseCode')
|
|
|
|
+ }}:{{ adminMchObj.licenseNo }}</span>
|
|
|
|
+ <span v-if="adminMchObj.altMerchantType == 12" class="word7">{{
|
|
|
|
+ $t('merchantManage.validityOfBusinessLicense') }}:{{ adminMchObj.licenseExpiry
|
|
|
|
+ }}</span>
|
|
<span class="txt5">{{ $t('merchantManage.natureOfBusiness') }}:{{ adminMchObj.manageScope }}</span> <span
|
|
<span class="txt5">{{ $t('merchantManage.natureOfBusiness') }}:{{ adminMchObj.manageScope }}</span> <span
|
|
class="word8">{{ $t('merchantManage.businessAddress') }}:{{ adminMchObj.manageAddr }}</span>
|
|
class="word8">{{ $t('merchantManage.businessAddress') }}:{{ adminMchObj.manageAddr }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="block5 flex-row justify-between">
|
|
<div class="block5 flex-row justify-between">
|
|
- <span class="txt6">{{ $t('merchantManage.accountType') }}:</span> <span class="word9">{{
|
|
|
|
- adminMchObj.bankAccountType === 1 ? $t('merchantManage.debitCard') :
|
|
|
|
- ''
|
|
|
|
- }}{{ adminMchObj.bankAccountType === 4 ? $t('merchantManage.corporateAccount') : '' }}</span>
|
|
|
|
|
|
+ <span class="txt6">{{ $t('merchantManage.accountType') }}
|
|
|
|
+ :{{ adminMchObj.bankAccountType === 1 ? $t('merchantManage.debitCard') : (adminMchObj.bankAccountType === 4
|
|
|
|
+ ? $t('merchantManage.corporateAccount') : "") }}</span>
|
|
|
|
+ <!-- <span class="word9"></span> -->
|
|
</div>
|
|
</div>
|
|
<span class="word10">{{ $t('merchantManage.bankAccountName') }}:{{ adminMchObj.bankAccountName }}</span>
|
|
<span class="word10">{{ $t('merchantManage.bankAccountName') }}:{{ adminMchObj.bankAccountName }}</span>
|
|
<span class="word11">{{ $t('merchantManage.bankAccount') }}:{{ adminMchObj.bankAccountNo }}</span>
|
|
<span class="word11">{{ $t('merchantManage.bankAccount') }}:{{ adminMchObj.bankAccountNo }}</span>
|
|
- <span class="word12">{{ $t('merchantManage.bankNo') }}:{{ adminMchObj.bankChannelNo }}</span>
|
|
|
|
|
|
+ <span v-if="adminMchObj.bankAccountType == 4" class="word12">{{ $t('merchantManage.bankNo') }}:{{
|
|
|
|
+ adminMchObj.bankChannelNo }}</span>
|
|
|
|
+ <div v-if="adminType < 2">
|
|
|
|
+ <span class="word12">{{ $t('merchantManage.joinpayMch') }}:{{ adminMchObj.signStatus == '签约成功' ?
|
|
|
|
+ adminMchObj.signStatus : '未签约' }}</span>
|
|
|
|
+ <span class="word12">{{ $t('merchantManage.huifuMch') }}:{{ huifuMchObj != null && huifuMchObj.conStat ==
|
|
|
|
+ '5' && huifuMchObj.status == '2' ? '签约成功' : '未签约' }}</span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -119,11 +135,11 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import { onMounted, ref } from "vue";
|
|
import { onMounted, ref } from "vue";
|
|
-import sHeader from "../../components/SimpleHeader";
|
|
|
|
-import { getAdmin, getAdminMch, updateAdmin } from "../../service/merchantManage";
|
|
|
|
|
|
+import sHeader from "@/components/SimpleHeader";
|
|
|
|
+import { getAdmin, getAdminMch, updateAdmin, getHuifuMch } from "@/service/merchantManage";
|
|
import { Toast } from "vant";
|
|
import { Toast } from "vant";
|
|
import { useRoute } from "vue-router";
|
|
import { useRoute } from "vue-router";
|
|
-import { getLoginUser, styleUrl } from "../../common/js/utils";
|
|
|
|
|
|
+import { getLoginUser, styleUrl } from "@/common/js/utils";
|
|
import { useI18n } from "vue-i18n";
|
|
import { useI18n } from "vue-i18n";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -138,22 +154,44 @@ export default {
|
|
const merchantId = ref('');
|
|
const merchantId = ref('');
|
|
const adminObj = ref({});
|
|
const adminObj = ref({});
|
|
const adminMchObj = ref({});
|
|
const adminMchObj = ref({});
|
|
|
|
+ const huifuMchObj = ref({});
|
|
|
|
+ const ifForeign = ref('0');
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
// 加载样式
|
|
// 加载样式
|
|
styleUrl('merchantManage');
|
|
styleUrl('merchantManage');
|
|
merchantId.value = route.query.merchantId;
|
|
merchantId.value = route.query.merchantId;
|
|
getAdminFun();
|
|
getAdminFun();
|
|
|
|
+ console.log(ifForeign.value);
|
|
getAdminMchFun();
|
|
getAdminMchFun();
|
|
|
|
+ getHuifuMchFun();
|
|
|
|
+
|
|
});
|
|
});
|
|
const getAdminFun = async () => {
|
|
const getAdminFun = async () => {
|
|
const { data } = await getAdmin({ id: merchantId.value });
|
|
const { data } = await getAdmin({ id: merchantId.value });
|
|
- if (data.code === "00000") { adminObj.value = data.data; adminObj.value.password = ''; adminObj.value.checkPassword = ''; } else { Toast.fail(data.message); }
|
|
|
|
|
|
+ if (data.code === "00000") {
|
|
|
|
+ adminObj.value = data.data;
|
|
|
|
+ adminObj.value.password = '';
|
|
|
|
+ adminObj.value.checkPassword = '';
|
|
|
|
+ if (data.data.payPlatform == null) {
|
|
|
|
+ adminObj.value.payPlatform = '0';
|
|
|
|
+ }
|
|
|
|
+ if (data.data.promoCodeOpen == null) {
|
|
|
|
+ adminObj.value.promoCodeOpen = '1';
|
|
|
|
+ }
|
|
|
|
+ ifForeign.value = data.data.ifForeign;
|
|
|
|
+ } else { Toast.fail(data.message); }
|
|
console.log('getAdminFun', data);
|
|
console.log('getAdminFun', data);
|
|
};
|
|
};
|
|
const getAdminMchFun = async () => {
|
|
const getAdminMchFun = async () => {
|
|
const { data } = await getAdminMch({ id: merchantId.value });
|
|
const { data } = await getAdminMch({ id: merchantId.value });
|
|
if (data.code === "00000") { adminMchObj.value = data.data; } else { Toast.fail(data.message); }
|
|
if (data.code === "00000") { adminMchObj.value = data.data; } else { Toast.fail(data.message); }
|
|
console.log('getAdminMchFun', data);
|
|
console.log('getAdminMchFun', data);
|
|
|
|
+ console.log('adminMchObj', adminMchObj.value.signStatus);
|
|
|
|
+ }
|
|
|
|
+ const getHuifuMchFun = async () => {
|
|
|
|
+ const { data } = await getHuifuMch({ adminId: merchantId.value });
|
|
|
|
+ if (data.code === "00000") { huifuMchObj.value = data.data; } else { Toast.fail(data.message); }
|
|
|
|
+ console.log('getHuifuMchFun', data);
|
|
}
|
|
}
|
|
const onSubmit = async () => {
|
|
const onSubmit = async () => {
|
|
const params = {
|
|
const params = {
|
|
@@ -180,11 +218,11 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const { data } = await updateAdmin(params);
|
|
const { data } = await updateAdmin(params);
|
|
- if (data.code === "00000") {
|
|
|
|
- Toast.success(t('merchantManage.modificationSucceeded'));
|
|
|
|
|
|
+ if (data.code === "00000") {
|
|
|
|
+ Toast.success(t('merchantManage.modificationSucceeded'));
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
// router.go(0);
|
|
// router.go(0);
|
|
- getAdminFun();
|
|
|
|
|
|
+ getAdminFun();
|
|
}, 1500);
|
|
}, 1500);
|
|
} else { Toast.fail(data.message); }
|
|
} else { Toast.fail(data.message); }
|
|
console.log('onSubmit', data);
|
|
console.log('onSubmit', data);
|
|
@@ -194,11 +232,10 @@ export default {
|
|
adminType,
|
|
adminType,
|
|
adminObj,
|
|
adminObj,
|
|
adminMchObj,
|
|
adminMchObj,
|
|
|
|
+ huifuMchObj,
|
|
onSubmit
|
|
onSubmit
|
|
};
|
|
};
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
-<style lang="less" scoped>
|
|
|
|
-@import "../../common/style/common.less";
|
|
|
|
-</style>
|
|
|
|
|
|
+<style lang="less" scoped>@import "../../common/style/common.less";</style>
|