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