shangfutong-ui/jeepay-ui-uapp-agent/pageApply/components/rules.js

2326 lines
54 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 支付宝官方进件规则
let alipayRule = [
{
name: "mccCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择经营类目",
},
{
name: "licenseNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照编号",
},
{
name: "licenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传营业执照图片",
},
{
name: "licenseEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照有效期",
},
{
name: "mchFullName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户名称全称",
},
{
name: "areaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户地理位置",
},
{
name: "address",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户详细地址",
},
{
name: "storeOuterImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传门头照",
},
{
name: "storeInnerImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传店内环境照",
},
{
name: "accountNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入支付宝账号",
},
{
name: "contactName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户联系人姓名",
},
{
name: "contactPhone",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入合法的商户联系人电话",
},
{
name: "contactEmail",
checkType: "email",
checkRule: "",
errorMsg: "请输入合法的商户联系人邮箱",
},
];
// 支付宝额外的进件规则,没有直接返回空即可
let alipayFun = (check) => {};
// 盛付通进件规则
let shengpayRule = [
{
name: "mccCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择行业类型",
},
{
name: "contactName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户联系人姓名",
},
{
name: "contactPhone",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入正确的商户联系人电话",
},
{
name: "contactEmail",
checkType: "email",
checkRule: "",
errorMsg: "请输入正确的商户联系人邮箱",
},
{
name: "mchShortName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户简称",
},
{
name: "mchFullName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户名称全称",
},
{
name: "areaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户地理位置",
},
{
name: "address",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户详细地址",
},
{
name: "idcardName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证姓名",
},
{
name: "idcardNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证号",
},
{
name: "idcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证人像面照",
},
{
name: "idcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证国徽面照",
},
{
name: "idcardEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证起始有效期",
},
{
name: "idcardEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证结束有效期",
},
{
name: "settAccountName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入结算银行卡持卡人姓名",
},
];
// 盛付通额外的进件规则,没有直接返回空即可
let shengpayFun = (
check,
merchantType,
settAccountType,
settAccountName,
idcardName,
nameResult
) => {
// 个体与企业要填
if (merchantType != 1) {
check.push(
{
name: "licenseNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照编号",
},
{
name: "licenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传营业执照",
},
{
name: "licenseEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照起始有效期",
},
{
name: "licenseEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照结束有效期",
}
);
}
// 对公
if (settAccountType == "B") {
check.push(
{
name: "settAccountNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入开户银行卡号",
},
{
name: "settAccountBankName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入开户银行名称",
},
{
name: "settAccountBankBranchAreaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择开户银行卡分支行所在地区",
},
{
name: "settAccountBankBranchName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入开户银行卡支行名称",
}
);
}
// 个体商户不需要手持身份证
if (merchantType != 2) {
check.push();
// { name: "idcardInHandImg", checkType: "notnull",checkRule: "", errorMsg: "请上传法人手持身份证照片" },
}
// 企业结算到个人
if (settAccountType == "C" && merchantType == 3) {
check.push(
{
name: "companyAccountName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入对公账户名称",
},
{
name: "companyAccountNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入对公账户银行卡号",
},
{
name: "companyAccountBankName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入对公账户开户银行名称",
},
{
name: "companyAccountBankBranchAreaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择对公账户开户支行所在地区",
},
{
name: "companyAccountBankBranchName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入对公账户开户支行名称",
},
{
name: "companyAccountLicenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传开户许可证照片",
}
);
}
// 企业性质 && 对私结算 && 结算到非法人银行卡时 需要传以下信息
if (
(merchantType == 2 || merchantType == 3) &&
settAccountType == "C" &&
settAccountName != idcardName
) {
check.push(
{
name: "settAccountIdcardNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入持卡人身份证号",
},
{
name: "settAccountIdcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传持卡人身份证人像照",
},
{
name: "settAccountIdcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传持卡人身份证国徽面照片",
},
{
name: "settAccountIdcardEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择持卡人身份证起始有效期",
},
{
name: "settAccountIdcardEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择持卡人身份证结束有效期",
}
);
}
// 商户联系人和法人姓名不一样必填项
if (nameResult) {
check.push(
{
name: "contactIdcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传商户联系人身份证人像面照片",
},
{
name: "contactIdcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传商户联系人身份证国徽面照片",
},
{
name: "contactIdcardNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户联系人身份证号",
},
{
name: "contactIdcardEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户联系人身份证起始有效期",
},
{
name: "contactIdcardEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户联系人身份证结束有效期",
},
{
name: "contactIdcardAddress",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户联系人身份证居住地址",
},
{
name: "contactWxAuthImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传业务办理授权函图片",
}
);
}
};
//微信校验规则
let wxpayRule = [
{
name: "merchantType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户类型",
},
{
name: "licenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传营业执照",
},
{
name: "licenseNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照编号",
},
{
name: "mchFullName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户名称全称",
},
{
name: "licenseAddress",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照注册地址",
},
{
name: "licenseEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照有效期开始日期",
},
{
name: "licenseEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照有效期截止日期",
},
{
name: "idcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证人像面照",
},
{
name: "idcardName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证姓名",
},
{
name: "idcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证国徽面照",
},
{
name: "idcardNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证号",
},
{
name: "idcardEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证起始有效期",
},
{
name: "idcardEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证结束有效期",
},
{
name: "mchShortName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户简称",
},
{
name: "servicePhone",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入客服电话",
},
{
name: "storeName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入门店简称",
},
{
name: "areaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户地理位置",
},
{
name: "address",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户详细地址",
},
{
name: "storeInnerImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传店内环境照",
},
{
name: "storeOuterImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传门头照",
},
{
name: "mccCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择行业",
},
{
name: "settAccountNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入开户银行卡账号",
},
{
name: "settAccountBankName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入开户银行名称",
},
{
name: "settAccountBankName",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择开户行",
},
{
name: "contactType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择超管身份",
},
{
name: "contactPhone",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入正确的手机号码",
},
{
name: "contactEmail",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入超级管理员邮箱",
},
];
let wxpayFun = (check, isNeedQualification, merchantType, contactType) => {
if (isNeedQualification) {
check.push({
name: "qualifications",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传特殊资质照",
});
}
if (merchantType == 3) {
check.push({
name: "idcardAddress",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证居住地址",
});
}
if (contactType == "SUPER") {
check.push(
{
name: "contactIdDocCopy",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传超管身份证人像面照片",
},
{
name: "contactIdDocCopyBack",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传超管身份证国徽面照片",
},
{
name: "contactName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入超管身份证姓名",
},
{
name: "contactIdNumber",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入超管身份证号",
},
{
name: "contactIdDocPeriodBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择超管身份证起始有效期",
},
{
name: "contactIdDocPeriodEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择超管身份证结束有效期",
},
{
name: "businessAuthorizationLetter",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传业务办理授权函",
}
);
}
};
let zftpayRule = [
{
name: "mchFullName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户名称",
},
{
name: "idcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证人像面照",
},
{
name: "idcardName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证姓名",
},
{
name: "idcardNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证号 ",
},
{
name: "idcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证国徽面照片",
},
{
name: "idcardEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证起始有效期",
},
{
name: "idcardEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证结束有效期",
},
{
name: "mccCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择经营类目",
},
{
name: "mchShortName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户简称",
},
{
name: "contactName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户联系人姓名",
},
{
name: "contactPhone",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入正确的商户联系人手机号",
},
{
name: "areaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户经营省市县",
},
{
name: "address",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户经营地址",
},
{
name: "storeOuterImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传门头照",
},
{
name: "storeInnerImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传店内环境照",
},
{
name: "bindingAlipayLogonId",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入签约支付宝账号",
},
];
const zftpayFun = (check, defaultSettleType, merchantType) => {
if (defaultSettleType == "alipayAccount") {
check.push({
name: "alipayLogonId",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入结算支付宝账号",
});
}
if (merchantType != 1) {
check.push(
{
name: "licenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传营业执照图片",
},
{
name: "licenseNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照编号",
}
);
}
if (defaultSettleType == "bankCard") {
check.push(
{
name: "settAccountType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择账户类型",
},
{
name: "settAccountName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行开户名",
},
{
name: "settAccountNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行账号",
},
{
name: "settAccountBankName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行名称",
},
{
name: "accountInstId",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行简称",
},
{
name: "settAccountBankBranchAreaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择开户行分支行所在地区",
},
{
name: "settAccountBankBranchName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入开户支行名称",
},
{
name: "licenseAuthLetterImage",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传授权函照",
}
);
}
};
let sftpayRule = [
{
name: "merchantType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择选择商户类型",
},
{
name: "idcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证人像面照片",
},
{
name: "idcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "法人身份证国徽面照片",
},
{
name: "idcardName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证姓名",
},
{
name: "idcardNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证号",
},
{
name: "idcardEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证结束有效期",
},
{
name: "mchShortName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户简称",
},
{
name: "storeName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入店铺名称",
},
{
name: "contactPhone",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入正确的手机号",
},
{
name: "contactEmail",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入邮箱",
},
{
name: "settAccountType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择账户类型",
},
{
name: "settAccountNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行账号",
},
{
name: "settAccountBankName",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择开户行",
},
{
name: "settAccountBankBranchAreaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择开户行省市区",
},
];
let sftpayFun = (check, merchantType, contactType) => {
if (merchantType == 2 || merchantType == 3) {
check.push(
{
name: "licenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传营业执照",
},
{
name: "licenseNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照编号",
},
{
name: "mchFullName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户名称全称",
}
);
}
if (contactType == "66") {
check.push(
{
name: "contactIdDocCopy",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传超管身份证人像面照片",
},
{
name: "contactIdDocCopyBack",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传超管身份证国徽面照片",
},
{
name: "contactName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入超管身份证姓名",
},
{
name: "contactIdNumber",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入超管身份证号",
},
{
name: "contactIdDocPeriodBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择超管身份证起始有效期",
},
{
name: "contactIdDocPeriodEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择超管身份证结束有效期",
},
{
name: "businessAuthorizationLetter",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传业务办理授权函",
}
);
}
if (merchantType == 3) {
check.push({
name: "idcardAddress",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证居住地址",
});
}
};
let lklpayRule = [
{
name: "merchantType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择选择商户类型",
},
{
name: "mchFullName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户名称",
},
{
name: "idcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证人像面照",
},
{
name: "idcardName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证姓名",
},
{
name: "idcardNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证号",
},
{
name: "idcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证国徽面照片",
},
{
name: "idcardEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证起始有效期",
},
{
name: "idcardEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证结束有效期",
},
{ name: "mccCode", checkType: "notnull", checkRule: "",errorMsg: "请选择行业MCC"},
{
name: "mccCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择行业MCC",
},
{
name: "merBusiContent",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择经营内容",
},
{
name: "contactName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户联系人姓名",
},
{
name: "contactPhone",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户联系人手机号",
},
{
name: "areaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户经营省市县",
},
{
name: "address",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户经营地址",
},
// { name: "settlePeriod", checkType: "notnull", checkRule: "",errorMsg: "请选择结算周期"},
// { name: "posType", checkType: "notnull", checkRule: "",errorMsg: "请选择POS类型"},
{
name: "storeOuterImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传门头照",
},
{
name: "storeInnerImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传店内环境照",
},
{
name: "settAccountType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择账户类型",
},
{
name: "settAccountName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行开户名",
},
{
name: "settAccountNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行账号",
},
];
let lklpayFun = (check, merchantType) => {
if (merchantType != 1) {
check.push(
{
name: "licenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传营业执照照片",
},
{
name: "licenseNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照编号",
},
{
name: "licenseEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照起始有效期",
},
{
name: "licenseEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照有效期截止",
}
);
}
};
// 云闪付
let ysfpayRule = [
{
name: "merchantType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户类型",
},
{
name: "acqOrgType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择机构类型",
},
{
name: "mchFullName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户名称",
},
{
name: "idcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证人像面照",
},
{
name: "idcardName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证姓名",
},
{
name: "idcardNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证号",
},
{
name: "idcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证国徽面照片",
},
{
name: "mccCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择经营类目",
},
{
name: "contactName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户联系人姓名",
},
{
name: "contactPhone",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入商户联系人手机号",
},
{
name: "serviceTel",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入客服电话",
},
{
name: "contactEmail",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入邮箱地址",
},
{
name: "areaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户经营省市县",
},
{
name: "address",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户经营地址",
},
{
name: "storeOuterImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传门头照",
},
{
name: "storeOuter2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传门店外景照",
},
{
name: "storeInnerImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传店内环境照",
},
{
name: "storeCashierImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传收银台照",
},
{
name: "settleAccountType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择账户类型",
},
{
name: "settlePeriod",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择结算周期",
},
{
name: "settAccountLicenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传银行卡正面照",
},
{
name: "settAccountName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行开户名",
},
{
name: "openBankReservePhone",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行预留手机号",
},
{
name: "settAccountNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行账号",
},
{
name: "settAccountBankName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行名称",
},
{
name: "settAccountBankBranchName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入开户支行名称",
},
{
name: "openBankCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入联行行号",
},
{
name: "acquiringAgreementPhoto",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传商户收单协议",
},
];
let ysfpayFun = (check, merchantType, settleAccountType) => {
if (merchantType != 1) {
check.push(
{
name: "licenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传营业执照照片",
},
{
name: "licenseNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照编号",
},
{
name: "licenseEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择营业执照有效期截止日期",
}
);
}
if (settleAccountType == 3) {
check.push(
{
name: "settAccountIdcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传被授权人证件人像照",
},
{
name: "settAccountIdcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传被授权人证件国徽照",
},
{
name: "settAccountIdcardNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入被授权人身份证号",
},
{
name: "applymentDetailInfo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入结算授权证书",
}
);
}
if (settleAccountType == 1) {
check.push({
name: "companyAccountLicenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传开户许可证",
});
}
};
// 富友
const fuioupayRule = [
{
name: "merchantType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户类型",
},
{
name: "licenseType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择证件类型",
},
{
name: "mchFullName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户名称全称",
},
{
name: "licenseEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择证件有效期开始时间",
},
{
name: "licenseEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择证件有效期截止",
},
{
name: "idcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证人像面照片",
},
{
name: "idcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证国徽面照片",
},
{
name: "idcardName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证姓名",
},
{
name: "idcardNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入法人身份证号",
},
{
name: "idcardEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择法人身份证起始有效期",
},
{
name: "idcardEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择法人身份证结束有效期",
},
{
name: "mccCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择选择行业mcc",
},
{
name: "mchShortName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户简称",
},
{
name: "servicePhone",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入客服电话",
},
{
name: "areaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户经营地区县代码",
},
{
name: "address",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户详细地址",
},
{
name: "storeOuterImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传门头照",
},
{
name: "storeInnerImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请店内环境照",
},
{
name: "contactName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户联系人姓名",
},
{
name: "contactCertNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户联系人身份证号",
},
{
name: "contactPhone",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入商户联系人电话",
},
{
name: "contactEmail",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户联系人邮箱",
},
{
name: "settAccountType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择账户类型",
},
{
name: "settAccountName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入开户名称",
},
{
name: "settAccountNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行账号",
},
{
name: "settAccountBankName",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择开户行",
},
{
name: "interBankNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入联行号",
},
{
name: "settAccountBankBranchName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入开户支行名称",
},
{
name: "acntArtifFlag",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择法人入账标识",
},
{
name: "settleTp",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择清算类型",
},
];
const fuioupayFun = (
check,
settAccountType,
licenseType,
acntArtifFlag,
settleTp
) => {
if (["B", "0", "1"].includes(licenseType)) {
check.push(
{
name: "licenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传营业执照图片",
},
{
name: "licRegisAddr",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照注册地址",
}
);
}
if (settleTp == 3 || settleTp == 4) {
check.push({
name: "settleTpCd",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择清算类型扣率",
});
}
if (settleTp == 4) {
check.push({
name: "settleTs",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入清算时间",
});
}
if (licenseType == "A") {
check.push(
{
name: "licenseNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入身份证号码",
},
{
name: "handCertificateImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传手持证件照片",
}
);
} else if (licenseType == "0") {
check.push(
{
name: "licenseNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照号",
},
{
name: "organizationImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传组织机构代码证照片",
},
{
name: "taxRegistrationImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传税务登记证照片",
}
);
} else {
check.push({
name: "licenseNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照号",
});
}
if (settAccountType == "C") {
check.push({
name: "settAccountLicenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传结算银行卡照片",
});
}
if (settAccountType == "B" || licenseType == "0" || licenseType == "1") {
check.push({
name: "companyAccountLicenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传开户许可证照片",
});
}
if (acntArtifFlag == 0) {
check.push(
{
name: "settAccountIdcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传入账账户身份证人像面照片",
},
{
name: "settAccountIdcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传入账账户身份证国徽面照片",
},
{
name: "acntArtifImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传入账非法人证明照片",
}
);
}
};
// 斗拱
const dgpayRule = [
{
name: "merchantType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择商户类型",
},
{
name: "mchFullName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户名称",
},
{ name: "loginUserName", checkType: "notnull", errorMsg: "请输入管理员账号" },
{
name: "mccCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择经营类目",
},
{
name: "contactName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入联系人姓名",
},
{
name: "contactPhone",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入正确的联系人手机号",
},
{
name: "contactEmail",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入联系人邮箱 ",
},
{
name: "areaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择经营省市县",
},
{
name: "address",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入经营地址",
},
{
name: "servicePhone",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入正确的客服电话",
},
{
name: "settAccountType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择账户类型",
},
{
name: "settAccountName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行卡开户名",
},
{
name: "settAccountNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行卡号",
},
{
name: "settAccountBankBranchAreaCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行卡开户地",
},
{
name: "settAccountIdcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传结算人身份证人像面照片",
},
{
name: "settAccountIdcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传结算人身份证国徽面照片",
},
{
name: "settAccountIdcardNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入[持卡人]人身份证号",
},
{
name: "settAccountIdcardEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择[持卡人]身份证起始有效期",
},
{
name: "settAccountIdcardEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择[持卡人]身份证结束有效期",
},
{
name: "settAccountBindPhone",
checkType: "phoneno",
checkRule: "",
errorMsg: "请输入正确的[持卡人]手机号",
},
{name: "aliFeeMcc",checkType: "notnull",errorMsg: "请选择支付宝商户经营类目"}
];
const dgpayFun = (check, merchantType, settAccountType) => {
if (merchantType != 1) {
check.push(
{
name: "licenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传营业执照",
},
{
name: "mchShortName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入商户简称",
},
{
name: "licenseNo",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入营业执照编号",
},
{
name: "licenseEffectBegin",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择营业执照起始有效期",
},
{
name: "licenseEffectEnd",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择营业执照有效期截止",
},
{
name: "idcard1Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证人像面照片",
},
{
name: "idcard2Img",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传法人身份证国徽面照片",
},
{
name: "busiType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择经营类型",
},
{
name: "receiptName",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入小票名称",
},
{
name: "entType",
checkType: "notnull",
checkRule: "",
errorMsg: "请选择公司类型",
},
{
name: "storeOuterImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传门头照",
},
{
name: "storeInnerImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传店内环境照",
}
);
}
if (settAccountType == "C") {
check.push(
{
name: "settAccountLicenseImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传结算卡正面照",
},
{
name: "settBankCardBackImg",
checkType: "notnull",
checkRule: "",
errorMsg: "请上传结算卡反面照",
}
);
} else if (settAccountType == "B") {
check.push(
{
name: "bankCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入银行编码",
},
{
name: "branchCode",
checkType: "notnull",
checkRule: "",
errorMsg: "请输入联行行号",
}
);
}
};
// 银联前置
const utmpayRule = [
{ name: "merchantType", checkType: "notnull", errorMsg: "请选择商户类型" },
{
name: "businessLicenseType",
checkType: "notnull",
errorMsg: "请选择执照类型",
},
{ name: "licenseImg", checkType: "notnull", errorMsg: "请上传营业执照" },
{ name: "licenseNo", checkType: "notnull", errorMsg: "请输入营业执照编号" },
{ name: "legalPerson", checkType: "notnull", errorMsg: "请输入法人姓名" },
{ name: "mchFullName", checkType: "notnull", errorMsg: "请输入商户名称" },
{ name: "mchShortName", checkType: "notnull", errorMsg: "请输入商户简称" },
{
name: "idcard1Img",
checkType: "notnull",
errorMsg: "请上传法人身份证人像面照",
},
{
name: "idcard2Img",
checkType: "notnull",
errorMsg: "请上传法人身份证国徽面照",
},
{
name: "idcardName",
checkType: "notnull",
errorMsg: "请输入联系人身份证姓名",
},
{ name: "idcardNo", checkType: "notnull", errorMsg: "请输入联系人身份证号" },
{
name: "contactPhone",
checkType: "phoneno",
errorMsg: "请输入商户联系人手机号",
},
{
name: "contactEmail",
checkType: "email",
errorMsg: "请输入商户联系人邮箱",
},
{ name: "mccCode", checkType: "notnull", errorMsg: "请选择经营类目" },
{
name: "areaCode",
checkType: "notnull",
errorMsg: "请选择商户地理位置省市县",
},
{ name: "address", checkType: "notnull", errorMsg: "请输入商户经营地址" },
{
name: "customerPhone",
checkType: "phoneno",
errorMsg: "请输入正确的客服电话",
},
{ name: "storeOuterImg", checkType: "notnull", errorMsg: "请上传门头照" },
{ name: "settAccountType", checkType: "notnull", errorMsg: "请选择账户类型" },
{
name: "isContactInfo",
checkType: "notnull",
errorMsg: "请选择是否为负责人",
},
{
name: "settAccountName",
checkType: "notnull",
errorMsg: "请输入银行开户名",
},
{
name: "bankCardPhone",
checkType: "phoneno",
errorMsg: "请输入正确的银行预留手机号",
},
{ name: "settAccountNo", checkType: "notnull", errorMsg: "请输入银行账号" },
{
name: "settAccountBankBranchAreaCode",
checkType: "notnull",
errorMsg: "请选择开户行省市县",
},
{ name: "bankId", checkType: "notnull", errorMsg: "请输入开户银行ID" },
{ name: "settAccountNo", checkType: "notnull", errorMsg: "请输入银行账号" },
{ name: "contactLine", checkType: "notnull", errorMsg: "请输入联行行号" },
];
let utmpayFun = (check) => {};
// 银盛
const yspayRule = [
{ name: "merchantType", checkType: "notnull", errorMsg: "请选择商户类型" },
{
name: "idcard1Img",
checkType: "notnull",
errorMsg: "请上传法人身份证人像面照",
},
{
name: "idcard2Img",
checkType: "notnull",
errorMsg: "请上传法人身份证国徽面照",
},
{
name: "idcardInHandImg",
checkType: "notnull",
errorMsg: "请上传法人手持身份证照",
},
{
name: "idcardName",
checkType: "notnull",
errorMsg: "请输入法人身份证姓名",
},
{ name: "idcardNo", checkType: "notnull", errorMsg: "请输入法人身份证号" },
{ name: "idcardAddress", checkType: "notnull", errorMsg: "请输入法人地址" },
{name:"settAccountBankImg2",checkType:"notnull",errorMsg:"请上传银行卡反面照"},
{name: "legalPersonPhone",
checkType: "notnull",
errorMsg: "请输入法人电话",
},
{ name: "crpGender", checkType: "notnull", errorMsg: "请选择法人性别" },
{
name: "idcardEffectBegin",
checkType: "notnull",
errorMsg: "请选择法人身份证起始有效期",
},
{
name: "idcardEffectEnd",
checkType: "notnull",
errorMsg: "请选择法人身份证结束有效期",
},
{ name: "mccCode", checkType: "notnull", errorMsg: "请选择经营类目MCC" },
{
name: "isLegalInfo",
checkType: "notnull",
errorMsg: "请选择是否为法人信息",
},
{
name: "contactName",
checkType: "notnull",
errorMsg: "请输入商户联系人姓名",
},
{
name: "contactPhone",
checkType: "notnull",
errorMsg: "请输入商户联系人手机号",
},
{
name: "contactEmail",
checkType: "notnull",
errorMsg: "请输入商户联系人邮箱",
},
{ name: "areaCode", checkType: "notnull", errorMsg: "请选择商户经营省市县" },
{ name: "address", checkType: "notnull", errorMsg: "请输入商户经营地址" },
{ name: "storeOuterImg", checkType: "notnull", errorMsg: "请上传门头照" },
{ name: "storeInnerImg", checkType: "notnull", errorMsg: "请上传店内环境照" },
{ name: "storeCashierImg", checkType: "notnull", errorMsg: "请上传收银台照" },
{ name: "settAccountType", checkType: "notnull", errorMsg: "请选择账户类型" },
{ name: "settlementType", checkType: "notnull", errorMsg: "请选择结算类型" },
{
name: "settAccountName",
checkType: "notnull",
errorMsg: "请输入银行开户名",
},
{ name: "settAccountNo", checkType: "notnull", errorMsg: "请输入银行卡账号" },
{ name: "bankType", checkType: "notnull", errorMsg: "请输入开户行编号" },
{
name: "settAccountBankName",
checkType: "notnull",
errorMsg: "请输入银行名称",
},
{
name: "openAccBanktype",
checkType: "notnull",
errorMsg: "请输入开户行行号",
},
{
name: "settAccountBankBranchName",
checkType: "notnull",
errorMsg: "请输入开户行支行名称",
},
{
name: "settAccountBankBranchAreaCode",
checkType: "notnull",
errorMsg: "请选择开户行省市县",
},
{
name: "bankMobile",
checkType: "notnull",
errorMsg: "请输入银行预留手机号",
},
{
name: "codeLegalPersonAcc",
checkType: "notnull",
errorMsg: "请选择是否法人结算",
},
]
let yspayFun = (check, merchantType, codeLegalPersonAcc, settAccountType) => {
if (merchantType != 1) {
check.push(
{
name: "licenseImg",
checkType: "notnull",
errorMsg: "请上传营业执照照片",
},
{
name: "licenseNo",
checkType: "notnull",
errorMsg: "请输入营业执照编号",
},
{
name: "licenseEffectBegin",
checkType: "notnull",
errorMsg: "请选择营业执照起始有效期",
},
{
name: "licenseEffectEnd",
checkType: "notnull",
errorMsg: "请营业执照有效期截止日期",
},
{
name: "actualManager",
checkType: "notnull",
errorMsg: "请输入实际控制人姓名",
}
);
}
merchantType == 1
? check.push({
name: "mchFullName",
checkType: "notnull",
errorMsg: "请输入商户名称",
})
: check.push({
name: "mchFullName",
checkType: "notnull",
errorMsg: "请输入营业执照名称",
});
if (codeLegalPersonAcc == 0) {
check.push(
{
name: "settAccountIdcard1Img",
checkType: "notnull",
errorMsg: "请上传结算人身份证人像面照片",
},
{
name: "settAccountIdcard2Img",
checkType: "notnull",
errorMsg: "请上传结算人身份证国徽面照片",
},
{
name: "unincorporatedName",
checkType: "notnull",
errorMsg: "请输入结算人姓名",
},
{
name: "settAccountIdcardNo",
checkType: "notnull",
errorMsg: "请输入结算人身份证号",
},
{
name: "settAccountIdcardEffectEnd",
checkType: "notnull",
errorMsg: "请选择结算人证件有效期",
},
{
name: "authAddress",
checkType: "notnull",
errorMsg: "请输入结算人身份证地址",
}
)
}
if (settAccountType == 'B' && merchantType == '3') {
check.push(
{ name: "companyAccountLicenseImg",checkType: "notnull",errorMsg: "请上传开户许可证照片"}
)
} else {
check.push(
{ name: "settAccountLicenseImg",checkType: "notnull",errorMsg: "请上传银行卡正面照"},
{ name: "settAccountBankImg2",checkType: "notnull",errorMsg: "请上传银行卡反面照"},
)
}
}
const lklspayRule = [
{ name: "address", checkType: "notnull", errorMsg: "请选择经纬度" },
{ name: "mchAreaCode", checkType: "notnull", errorMsg: "请选择商户省市县" },
{ name: "bankInfo", checkType: "notnull", errorMsg: "请选择银行信息" },
{ name: "clearingBankCode", checkType: "notnull", errorMsg: "请输入" },
{ name: "contactEmail", checkType: "notnull", errorMsg: "请输入邮箱" },
{
name: "contactName",
checkType: "notnull",
errorMsg: "请输入商户联系人姓名",
},
{
name: "contactPhone",
checkType: "notnull",
errorMsg: "请输入商户联系人手机号",
},
{ name: "idcard1Img", checkType: "notnull", errorMsg: "请上传身份证正面" },
{ name: "idcard2Img", checkType: "notnull", errorMsg: "请上传身份证国徽面" },
{
name: "idcardEffectBegin",
checkType: "notnull",
errorMsg: "请输入身份证起始有效期",
},
{
name: "idcardEffectEnd",
checkType: "notnull",
errorMsg: "请输入身份证结束有效期",
},
{ name: "idcardName", checkType: "notnull", errorMsg: "请输入身份证姓名" },
{ name: "idcardNo", checkType: "notnull", errorMsg: "请输入身份证号" },
{
name: "isLegalInfo",
checkType: "notnull",
errorMsg: "请选择结算人是否为法人",
},
{ name: "latitude", checkType: "notnull", errorMsg: "请选择经纬度" },
{ name: "lnglat", checkType: "notnull", errorMsg: "请选择经纬度" },
{ name: "longtude", checkType: "notnull", errorMsg: "请选择经纬度" },
{ name: "mccCode", checkType: "notnull", errorMsg: "请选择行业类型" },
{
name: "mchShortName",
checkType: "notnull",
errorMsg: "请输入商户经营名称",
},
{ name: "merRegName", checkType: "notnull", errorMsg: "请输入商户注册名称" },
{ name: "merchantType", checkType: "notnull", errorMsg: "请选择商户类型" },
{
name: "openningBankCode",
checkType: "notnull",
errorMsg: "请输入联行行号",
},
{
name: "selectAreaCode",
checkType: "notnull",
errorMsg: "请选择银行查询范围",
},
{
name: "settAccountBankBranchAreaCode",
checkType: "notnull",
errorMsg: "请输入支行地址",
},
{
name: "settAccountBankName",
checkType: "notnull",
errorMsg: "请输入银行名称",
},
{ name: "settAccountName", checkType: "notnull", errorMsg: "请输入开户名" },
{ name: "settAccountNo", checkType: "notnull", errorMsg: "请输入银行卡号" },
{ name: "settAccountType", checkType: "notnull", errorMsg: "请选择结算类型" },
];
const lklspayFun = (check, merchantType, isLegalInfo) => {
if (merchantType != 1) {
check.push(
{
name: "mchFullName",
checkType: "notnull",
errorMsg: "请输入营业执照名称",
},
{
name: "licenseImg",
checkType: "notnull",
errorMsg: "请上传营业执照照片",
},
{
name: "licenseNo",
checkType: "notnull",
errorMsg: "请输入营业执照编号",
},
{
name: "licenseEffectBegin",
checkType: "notnull",
errorMsg: "请输入营业执照起始有效期",
},
{
name: "licenseEffectEnd",
checkType: "notnull",
errorMsg: "请输入营业执照有效期截止",}
);
}
if (isLegalInfo == "0") {
check.push(
{
name: "settAccountIdcard1Img",
checkType: "notnull",
errorMsg: "请上传结算人身份证人像面照",
},
{
name: "settAccountIdcard2Img",
checkType: "notnull",
errorMsg: "请上传结算人身份证国徽照",
},
{
name: "settAccountIdcardNo",
checkType: "notnull",
errorMsg: "请输入结算人身份证号",
},
{
name: "settAccountIdcardEffectBegin",
checkType: "notnull",
errorMsg: "请输入结算人身份证起始有效期",
},
{
name: "settAccountIdcardEffectEnd",
checkType: "notnull",
errorMsg: "请输入法人身份证结束有效期",
},
);
}
};
export default {
alipayRule,
alipayFun,
shengpayRule,
shengpayFun,
wxpayRule,
wxpayFun,
zftpayRule,
zftpayFun,
sftpayRule,
sftpayFun,
lklpayRule,
lklpayFun,
ysfpayRule,
ysfpayFun,
fuioupayRule,
fuioupayFun,
dgpayRule,
dgpayFun,
utmpayRule,
utmpayFun,
yspayRule,
yspayFun,
lklspayRule,
lklspayFun,
};