| | |
| | | :disabled="form.isEnterpriseUserCreated" |
| | | ></ProFormText> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="自定义内容:" prop="customContents"> |
| | | <ProFormCheckbox |
| | | v-model="form.customContents" |
| | | :value-enum="templateParamListForEditContents" |
| | | enum-value-key="name" |
| | | ></ProFormCheckbox> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | | label="上传模板:" |
| | | prop="file" |
| | |
| | | ProFormUpload, |
| | | ProFormSelect, |
| | | ProFormSwitch, |
| | | ProFormCheckbox, |
| | | } from '@bole-core/components'; |
| | | import { filterCN, filterNumbersFromString, downloadFileByUrl } from '@/utils'; |
| | | import { FormInstance, FormRules } from 'element-plus'; |
| | |
| | | } from '@/constants'; |
| | | import * as electronSignServices from '@/services/api/electronSign'; |
| | | import { Message } from '@bole-core/core'; |
| | | import { useTemplateDetailProvide } from '@/fabric-editor/hooks/context'; |
| | | |
| | | defineOptions({ |
| | | name: 'AddOrEditTemplateDialog', |
| | |
| | | enterpriseId: string; |
| | | isAutoSign: boolean; |
| | | autoSignPowerAttorneyUrl: UploadUserFile[]; |
| | | |
| | | customContents: string[]; |
| | | }; |
| | | |
| | | const form = defineModel<Form>('form'); |
| | |
| | | all: true, |
| | | }); |
| | | |
| | | const { templateParamList } = useTemplateDetailProvide({ |
| | | isDefault: false, |
| | | }); |
| | | |
| | | const templateParamListForEditContents = computed(() => { |
| | | return templateParamList.value.map((x) => ({ |
| | | label: x.label, |
| | | value: x.value, |
| | | name: x.data?.field3, |
| | | })); |
| | | }); |
| | | |
| | | async function handleCodeBlur() { |
| | | try { |
| | | let params: API.CheckContractTemplateCommand = { |