This commit is contained in:
@@ -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')"
|
||||
/>
|
||||
|
Reference in New Issue
Block a user