|
|
@@ -280,8 +280,11 @@ export default defineComponent({
|
|
|
name: 'add-custom',
|
|
|
components: {},
|
|
|
setup() {
|
|
|
+ // 控制关闭弹窗
|
|
|
const { visible, cancel } = closeModal('custom_info_btn_add');
|
|
|
+ // 证件类型
|
|
|
const cardTypeList = ref<AllEnums[]>(getCardType());
|
|
|
+ // 表单
|
|
|
const formRef = ref();
|
|
|
const formState: UnwrapRef<FormState> = reactive(initFormState());
|
|
|
const rules = {
|
|
|
@@ -290,6 +293,7 @@ export default defineComponent({
|
|
|
nickname: [{ required: true, message: '请输入企业简称', trigger: 'blur' }],
|
|
|
cardtype: [{ required: true, message: '请选择证件类型', trigger: 'change' }],
|
|
|
};
|
|
|
+ // 下单方法
|
|
|
const { loading, applyAction } = handleApply();
|
|
|
function isPersonal(): boolean {
|
|
|
return formState.userinfotype === '1';
|