| | |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="'数据绑定字段'" required> |
| | | <el-input |
| | | v-model="baseAttr.bindProperty" |
| | | placeholder="请输入数据参数字段" |
| | | @input="(value) => changeCommon('bindProperty', value)" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item :label="'合同模板变量类型'" required> |
| | | <FieldSelect |
| | | v-model="baseAttr.templateParamType" |
| | |
| | | @change="(value) => changeCommon('templateParamType', value)" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item :label="'合同模板变量'" required> |
| | | <FieldSelect |
| | | v-model="baseAttr.recorder" |
| | |
| | | userType: EnumUserType.Personal, |
| | | label: '', |
| | | name: '', |
| | | bindProperty: '', |
| | | required: true, |
| | | }); |
| | | |
| | |
| | | baseAttr.label = activeObject.get('label'); |
| | | baseAttr.name = activeObject.get('name'); |
| | | baseAttr.required = activeObject.get('required'); |
| | | baseAttr.bindProperty = activeObject.get('bindProperty'); |
| | | } |
| | | }; |
| | | |
| | |
| | | required: true, |
| | | label: item.label, |
| | | name: item.data?.field3, |
| | | bindProperty: item.data?.field4, |
| | | |
| | | templateDataParamId: '', |
| | | pageNum: templateEditState.currentImageIndex, |
| | |
| | | 'required', |
| | | 'templateDataParamId', |
| | | 'pageNum', |
| | | 'bindProperty', |
| | | ]; |
| | | |
| | | export class TemplateParam extends fabric.IText { |
| | |
| | | type: x.templateParamType, |
| | | recorder: x.recorder, |
| | | userType: x.userType, |
| | | bindProperty: x.bindProperty, |
| | | } as API.SaveContractTemplateValuesCommandItem) |
| | | ), |
| | | templateJsonData: JSON.stringify(templateEditState.jsonMap), |
| | |
| | | name?: string; |
| | | /** 是否必填 */ |
| | | required?: boolean; |
| | | /** 绑定字段 */ |
| | | bindProperty?: string; |
| | | } |
| | | } |
| | | |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业合同模板选择器数据 GET /api/user/electronSign/getEnterpriseContractTemplateSelect */ |
| | | export async function getEnterpriseContractTemplateSelect( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseContractTemplateSelectParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.SelectOptionGuidGetEnterpriseContractTemplateSelectQueryOption[]>( |
| | | '/api/user/electronSign/getEnterpriseContractTemplateSelect', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | request: undefined, |
| | | ...params['request'], |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询个人实名结果 GET /api/user/electronSign/getPersonalUserRealResult */ |
| | | export async function getPersonalUserRealResult( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | request: undefined, |
| | | ...params['request'], |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 邀请灵工签约 POST /api/user/enterpriseEmployee/inviteEnterpriseEmployeeElectronSign */ |
| | | export async function inviteEnterpriseEmployeeElectronSign( |
| | | body: API.InviteEnterpriseEmployeeElectronSignCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterpriseEmployee/inviteEnterpriseEmployeeElectronSign', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | enterpriseId?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseContractTemplateSelectParams { |
| | | /** 查询企业合同模板选择器数据 */ |
| | | request?: GetEnterpriseContractTemplateSelectQuery; |
| | | } |
| | | |
| | | interface APIgetEnterpriseElectronSignSettingParams { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseEmployeeElectronSignParams { |
| | | /** 查询个人用户签约详情 */ |
| | | request?: GetEnterpriseEmployeeElectronSignQuery; |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | /** 合同模板业务编码 */ |
| | | code?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseEmployeeParams { |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultListSelectOptionGuidGetEnterpriseContractTemplateSelectQueryOption { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: SelectOptionGuidGetEnterpriseContractTemplateSelectQueryOption[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultListSelectOptionStringGetDictionaryDataSelectQueryResultOption { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | label?: string; |
| | | /** 变量代码 */ |
| | | name?: string; |
| | | /** 绑定字段 */ |
| | | bindProperty?: string; |
| | | /** 是否必填 */ |
| | | required?: boolean; |
| | | } |
| | |
| | | content?: string[]; |
| | | } |
| | | |
| | | type GetEnterpriseContractTemplateSelectQuery = Record<string, any>; |
| | | |
| | | interface GetEnterpriseContractTemplateSelectQueryOption { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 模板名称 */ |
| | | name?: string; |
| | | /** 模板Id */ |
| | | templateId?: string; |
| | | } |
| | | |
| | | interface GetEnterpriseContractTemplatesQuery { |
| | | /** 企业Id */ |
| | | enterpriseId?: string; |
| | |
| | | electronSignAccesses?: EnumElectronSignAccess[]; |
| | | } |
| | | |
| | | type GetEnterpriseEmployeeElectronSignQuery = Record<string, any>; |
| | | |
| | | type GetEnterpriseEmployeeElectronSignQueryResult = Record<string, any>; |
| | | interface GetEnterpriseEmployeeElectronSignQueryResult { |
| | | /** 合同编号 */ |
| | | contractCode?: string; |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | /** 签约方信息-员工-姓名 */ |
| | | name?: string; |
| | | /** 签约方信息-员工-证件类型 */ |
| | | identityType?: string; |
| | | /** 签约方信息-员工-证件号码 */ |
| | | identity?: string; |
| | | /** 签约方信息-员工-签约时间 */ |
| | | userSignContractTime?: string; |
| | | /** 签约方信息-公司主体-主体类型 */ |
| | | enterpriseType?: string; |
| | | /** 签约方信息-公司主体-签约主体 */ |
| | | enterpriseName?: string; |
| | | /** 签约方信息-公司主体-签约时间 */ |
| | | enterpriseSignContractTime?: string; |
| | | /** 协议内容 */ |
| | | contractUrl?: string; |
| | | } |
| | | |
| | | interface GetEnterpriseEmployeeElectronSignsQuery { |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | |
| | | } |
| | | |
| | | interface GetEnterpriseEmployeeElectronSignsQueryResultItem { |
| | | /** Id */ |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | /** 企业全称 */ |
| | | enterpriseName?: string; |
| | |
| | | identity?: string; |
| | | } |
| | | |
| | | interface InviteEnterpriseEmployeeElectronSignCommand { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | /** 合同模板Id */ |
| | | contractTemplateId?: string; |
| | | } |
| | | |
| | | interface LoginCommandCallback { |
| | | /** 用户Id */ |
| | | id?: string; |
| | |
| | | label?: string; |
| | | /** 变量代码 */ |
| | | name?: string; |
| | | /** 绑定字段 */ |
| | | bindProperty?: string; |
| | | /** 是否必填 */ |
| | | required?: boolean; |
| | | } |
| | |
| | | data?: GetDictionaryCategorySelectQueryOption; |
| | | } |
| | | |
| | | interface SelectOptionGuidGetEnterpriseContractTemplateSelectQueryOption { |
| | | /** 值 */ |
| | | value?: string; |
| | | /** 标签 */ |
| | | label?: string; |
| | | data?: GetEnterpriseContractTemplateSelectQueryOption; |
| | | } |
| | | |
| | | interface SelectOptionStringGetDictionaryDataSelectQueryResultOption { |
| | | /** 值 */ |
| | | value?: string; |
| | |
| | | field1: row.field1, |
| | | field3: row.field3, |
| | | field2: convertApi2FormUrlOnlyOne(row.field2), |
| | | field4: row.field4, |
| | | }); |
| | | } else { |
| | | handleAdd({ |
| | |
| | | field1: '', |
| | | field2: [] as UploadUserFile[], |
| | | field3: '', |
| | | field4: '', |
| | | title: '新增字典', |
| | | }, |
| | | editTitle: '编辑字典', |
| | |
| | | <ProFormItemV2 label="编号:" prop="code" :check-rules="[{ message: '请输入编号' }]"> |
| | | <ProFormText v-model.trim="form.code" :disabled="!!form.id"></ProFormText> |
| | | </ProFormItemV2> |
| | | <template v-if="category?.data?.code === CategoryCode.ElectronSignParam"> |
| | | <ProFormItemV2 |
| | | label="参数字段名:" |
| | | prop="field3" |
| | | :check-rules="[{ message: '请输入参数字段名' }]" |
| | | v-if="category?.data?.code === CategoryCode.ElectronSignParam" |
| | | > |
| | | <ProFormText v-model.trim="form.field3"></ProFormText> |
| | | <ProFormText v-model.trim="form.field3" placeholder="请输入参数字段名"></ProFormText> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 |
| | | label="绑定字段名:" |
| | | prop="field4" |
| | | :check-rules="[{ message: '请输入绑定字段名' }]" |
| | | > |
| | | <ProFormText v-model.trim="form.field4" placeholder="请输入绑定字段名"></ProFormText> |
| | | </ProFormItemV2> |
| | | </template> |
| | | |
| | | <ProFormItemV2 |
| | | label="图片:" |
| | | prop="field2" |
| | |
| | | field1?: string; |
| | | field2?: UploadUserFile[]; |
| | | field3?: string; |
| | | field4?: string; |
| | | }; |
| | | |
| | | const form = defineModel<Form>('form'); |