| | |
| | | <ProFormSelect |
| | | placeholder="请选择电子签通道" |
| | | v-model="form.access" |
| | | :value-enum="EnumElectronSignAccessText" |
| | | :value-enum="enabledElectronSignSettings" |
| | | enum-value-key="access" |
| | | enum-label-key="accessName" |
| | | ></ProFormSelect> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="业务编码:" prop="code" :check-rules="[{ message: '请输入业务编码' }]"> |
| | |
| | | <ProFormText |
| | | placeholder="请输入模板名称" |
| | | v-model.trim="form.name" |
| | | :maxlength="15" |
| | | :maxlength="32" |
| | | :disabled="form.isEnterpriseUserCreated" |
| | | ></ProFormText> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | |
| | | import { filterCN, filterNumbersFromString } from '@/utils'; |
| | | import { FormInstance } from 'element-plus'; |
| | | import { EnumElectronSignAccessText } from '@/constants'; |
| | | import * as electronSignServices from '@/services/api/electronSign'; |
| | | import { Message } from '@bole-core/core'; |
| | | |
| | | defineOptions({ |
| | | name: 'AddOrEditTemplateDialog', |
| | |
| | | code: string; |
| | | file: UploadUserFile[]; |
| | | access: EnumElectronSignAccess; |
| | | isEnterpriseUserCreated: boolean; |
| | | enterpriseId: string; |
| | | }; |
| | | |
| | | const form = defineModel<Form>('form'); |
| | |
| | | (e: 'onCancel'): void; |
| | | }>(); |
| | | |
| | | const { enabledElectronSignSettings } = useEnabledElectronSignSettings({ |
| | | enterpriseId: computed(() => form.value.enterpriseId), |
| | | all: true, |
| | | }); |
| | | |
| | | async function handleCodeBlur() { |
| | | try { |
| | | let params: API.CheckContractTemplateCommand = { |
| | | id: form.value?.id, |
| | | }; |
| | | let res = await electronSignServices.checkContractTemplate(params); |
| | | if (res) { |
| | | Message.warnMessage('业务编码已存在,请重新输入'); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | const dialogForm = ref<FormInstance>(); |
| | | |
| | | function onDialogClose() { |