diff --git a/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/data.ts b/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/data.ts
index 98fa9fe7..d9665527 100644
--- a/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/data.ts
+++ b/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/data.ts
@@ -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;
-}
diff --git a/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/inspectionPlan-modal.vue b/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/inspectionPlan-modal.vue
index 77604475..c0218032 100644
--- a/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/inspectionPlan-modal.vue
+++ b/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/inspectionPlan-modal.vue
@@ -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]
diff --git a/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/plan-detail.vue b/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/plan-detail.vue
index 0a46807f..8838b2a0 100644
--- a/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/plan-detail.vue
+++ b/apps/web-antd/src/views/property/inspectionManagement/inspectionPlan/plan-detail.vue
@@ -73,7 +73,7 @@ const monthArr=Array.from({ length: 12 }, (_, i) => ({
:options="getDictOptions('wy_xq')"/>
-
@@ -88,7 +88,7 @@ const monthArr=Array.from({ length: 12 }, (_, i) => ({
:is="renderDict(inspectionPlanDetail.signType,'wy_xjqdfs')"
/>
-
+
diff --git a/apps/web-antd/src/views/system/user/data.tsx b/apps/web-antd/src/views/system/user/data.tsx
index a84e0792..e13c13a5 100644
--- a/apps/web-antd/src/views/system/user/data.tsx
+++ b/apps/web-antd/src/views/system/user/data.tsx
@@ -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',