This commit is contained in:
parent
975e45fea6
commit
c8777c5b05
@ -220,6 +220,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
buttonStyle: 'solid',
|
buttonStyle: 'solid',
|
||||||
},
|
},
|
||||||
rules: 'selectRequired',
|
rules: 'selectRequired',
|
||||||
|
defaultValue:'0'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '巡检人员',
|
label: '巡检人员',
|
||||||
@ -238,11 +239,3 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
formItemClass: 'col-span-2'
|
formItemClass: 'col-span-2'
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const weekOptions = (): any[] => {
|
|
||||||
let arr: any[] = []
|
|
||||||
for (let i = 1; i <= 7; i++) {
|
|
||||||
arr.push({label: '星期' + '', value: i})
|
|
||||||
}
|
|
||||||
return arr;
|
|
||||||
}
|
|
||||||
|
@ -65,7 +65,6 @@ const [BasicModal, modalApi] = useVbenModal({
|
|||||||
await queryPersonData()
|
await queryPersonData()
|
||||||
const {id} = modalApi.getData() as { id?: number | string };
|
const {id} = modalApi.getData() as { id?: number | string };
|
||||||
isUpdate.value = !!id;
|
isUpdate.value = !!id;
|
||||||
|
|
||||||
if (isUpdate.value && id) {
|
if (isUpdate.value && id) {
|
||||||
const record = await inspectionPlanInfo(id);
|
const record = await inspectionPlanInfo(id);
|
||||||
record.planDate = [record.startDate, record.endDate]
|
record.planDate = [record.startDate, record.endDate]
|
||||||
|
@ -88,7 +88,7 @@ const monthArr=Array.from({ length: 12 }, (_, i) => ({
|
|||||||
:is="renderDict(inspectionPlanDetail.signType,'wy_xjqdfs')"
|
:is="renderDict(inspectionPlanDetail.signType,'wy_xjqdfs')"
|
||||||
/>
|
/>
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="允许补件">
|
<DescriptionsItem label="允许补检">
|
||||||
<component
|
<component
|
||||||
:is="renderDict(inspectionPlanDetail.canReexamine,'wy_sf')"
|
:is="renderDict(inspectionPlanDetail.canReexamine,'wy_sf')"
|
||||||
/>
|
/>
|
||||||
|
@ -130,12 +130,9 @@ export const drawerSchema: FormSchemaGetter = () => [
|
|||||||
component: 'Input',
|
component: 'Input',
|
||||||
fieldName: 'phonenumber',
|
fieldName: 'phonenumber',
|
||||||
label: '手机号码',
|
label: '手机号码',
|
||||||
defaultValue: undefined,
|
|
||||||
rules: z
|
rules: z
|
||||||
.string()
|
.string()
|
||||||
.regex(/^1[3-9]\d{9}$/, '请输入正确的手机号码')
|
.regex(/^1[3-9]\d{9}$/, { message: '请输入正确的手机号' }),
|
||||||
.optional()
|
|
||||||
.or(z.literal('')),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
|
Loading…
Reference in New Issue
Block a user