update
1.去掉新增员工时,工号必填
This commit is contained in:
@@ -29,7 +29,7 @@ export const columns: BasicColumn[] = [
|
||||
width: 64,
|
||||
},
|
||||
{
|
||||
title: '员工编号',
|
||||
title: '员工工号',
|
||||
align: 'center',
|
||||
dataIndex: ['extension', 'empSysno'],
|
||||
width: 80,
|
||||
@@ -145,7 +145,7 @@ export const searchFormSchema: FormSchema[] = [
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '员工编号',
|
||||
label: '员工工号',
|
||||
field: 'empNo',
|
||||
component: 'Input',
|
||||
},
|
||||
@@ -299,7 +299,7 @@ export const formSchema: (isUpdate: boolean) => FormSchema[] = (isUpdate) => {
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: '员工编号',
|
||||
label: '员工工号',
|
||||
field: 'empSysno',
|
||||
component: 'Input',
|
||||
componentProps: ({ formModel }) => {
|
||||
@@ -311,7 +311,7 @@ export const formSchema: (isUpdate: boolean) => FormSchema[] = (isUpdate) => {
|
||||
},
|
||||
dynamicRules: ({ model, schema }) => {
|
||||
let rule = rules.duplicateCheckRuleAndDelFlag('health_user_employee_ex', 'emp_sysno', 'false', model, schema, false);
|
||||
rule[0] = { ...rule[0], required: true };
|
||||
rule[0] = { ...rule[0], required: false };
|
||||
return rule;
|
||||
},
|
||||
},
|
||||
@@ -711,7 +711,7 @@ export const migrateUserFormSchema: FormSchema[] = [
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '员工编号',
|
||||
label: '员工工号',
|
||||
field: 'workNo',
|
||||
component: 'Input',
|
||||
componentProps: {
|
||||
|
||||
Reference in New Issue
Block a user