|
@@ -10,7 +10,7 @@ import { FormState } from './interface';
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取证件类型
|
|
* 获取证件类型
|
|
|
- * @returns
|
|
|
|
|
|
|
+ * @returns
|
|
|
*/
|
|
*/
|
|
|
export function getCardType() {
|
|
export function getCardType() {
|
|
|
const arr = [2, 4, 18, 21];
|
|
const arr = [2, 4, 18, 21];
|
|
@@ -27,6 +27,7 @@ export function handleForm() {
|
|
|
const rules = {
|
|
const rules = {
|
|
|
userinfotype: [{ required: true, message: '请选择客户类型', trigger: 'change' }],
|
|
userinfotype: [{ required: true, message: '请选择客户类型', trigger: 'change' }],
|
|
|
customername: [{ required: true, message: '请输入企业名称', trigger: 'blur' }],
|
|
customername: [{ required: true, message: '请输入企业名称', trigger: 'blur' }],
|
|
|
|
|
+ mobilephone: [{ required: true, message: '请输入联系人手机号', trigger: 'blur' }],
|
|
|
nickname: [{ required: true, message: '请输入企业简称', trigger: 'blur' }],
|
|
nickname: [{ required: true, message: '请输入企业简称', trigger: 'blur' }],
|
|
|
cardtype: [{ required: true, validator: v_cardtype, trigger: 'change' }],
|
|
cardtype: [{ required: true, validator: v_cardtype, trigger: 'change' }],
|
|
|
};
|
|
};
|
|
@@ -35,7 +36,7 @@ export function handleForm() {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 初始化表单数据
|
|
* 初始化表单数据
|
|
|
- * @returns
|
|
|
|
|
|
|
+ * @returns
|
|
|
*/
|
|
*/
|
|
|
export function initFormState(): FormState {
|
|
export function initFormState(): FormState {
|
|
|
return {
|
|
return {
|