This commit is contained in:
parent
ebf12ac233
commit
23f3830a44
@ -88,6 +88,7 @@ export interface InspectionPlanVO {
|
|||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
state?:string
|
state?:string
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface InspectionPlanForm extends BaseEntity {
|
export interface InspectionPlanForm extends BaseEntity {
|
||||||
|
@ -37,11 +37,11 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
field: 'planName',
|
field: 'planName',
|
||||||
minWidth: 180,
|
minWidth: 180,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '巡检路线',
|
// title: '巡检路线',
|
||||||
field: 'inspectionRouteId',
|
// field: 'inspectionRouteId',
|
||||||
width: 180,
|
// width: 180,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: '巡检周期',
|
title: '巡检周期',
|
||||||
field: 'inspectionPlanPeriod',
|
field: 'inspectionPlanPeriod',
|
||||||
|
@ -74,7 +74,9 @@ const [BasicModal, modalApi] = useVbenModal({
|
|||||||
}else {
|
}else {
|
||||||
record.inspectionWorkday=record.inspectionWorkday?.split(',')
|
record.inspectionWorkday=record.inspectionWorkday?.split(',')
|
||||||
}
|
}
|
||||||
record.userId=record.userId?.split(',')
|
if(record.inspectionPlanStaffVoList&&record.inspectionPlanStaffVoList.length){
|
||||||
|
record.userId=record.inspectionPlanStaffVoList.map(item=>item.userId)
|
||||||
|
}
|
||||||
await formApi.setValues(record);
|
await formApi.setValues(record);
|
||||||
}
|
}
|
||||||
await markInitialized();
|
await markInitialized();
|
||||||
@ -95,6 +97,8 @@ async function handleConfirm() {
|
|||||||
if (data.planDate && data.planDate.length) {
|
if (data.planDate && data.planDate.length) {
|
||||||
data.startDate = data.planDate[0]
|
data.startDate = data.planDate[0]
|
||||||
data.endDate = data.planDate[1]
|
data.endDate = data.planDate[1]
|
||||||
|
data.startTime=data.planDate[0]?.split(' ')[1]
|
||||||
|
data.endTime=data.planDate[1]?.split(' ')[1]
|
||||||
}
|
}
|
||||||
if(data.inspectionPlanPeriod=='1'){
|
if(data.inspectionPlanPeriod=='1'){
|
||||||
data.inspectionMonth=data.inspectionMonth?.join(',')
|
data.inspectionMonth=data.inspectionMonth?.join(',')
|
||||||
@ -105,7 +109,16 @@ async function handleConfirm() {
|
|||||||
data.inspectionMonth=undefined
|
data.inspectionMonth=undefined
|
||||||
data.inspectionDay=undefined
|
data.inspectionDay=undefined
|
||||||
}
|
}
|
||||||
data.userId=data.userId?.join(',')
|
if(data.userId){
|
||||||
|
data.inspectionPlanStaffBoList=[]
|
||||||
|
data.userId.forEach(item=>
|
||||||
|
data.inspectionPlanStaffBoList.push({
|
||||||
|
userId:item,
|
||||||
|
startTime:data.startDate,
|
||||||
|
endTime:data.endDate
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
// data.userId=data.userId?.join(',')
|
||||||
await (isUpdate.value ? inspectionPlanUpdate(data) : inspectionPlanAdd(data));
|
await (isUpdate.value ? inspectionPlanUpdate(data) : inspectionPlanAdd(data));
|
||||||
resetInitialized();
|
resetInitialized();
|
||||||
emit('reload');
|
emit('reload');
|
||||||
|
@ -94,7 +94,9 @@ const monthArr=Array.from({ length: 12 }, (_, i) => ({
|
|||||||
/>
|
/>
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="巡检人员" :span="2">
|
<DescriptionsItem label="巡检人员" :span="2">
|
||||||
{{ inspectionPlanDetail.projectName }}
|
<span style="margin-right: 10px;" v-for="item in inspectionPlanDetail.inspectionPlanStaffVoList">
|
||||||
|
{{item.userName}}
|
||||||
|
</span>
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="备注" :span="2">
|
<DescriptionsItem label="备注" :span="2">
|
||||||
{{ inspectionPlanDetail.remark }}
|
{{ inspectionPlanDetail.remark }}
|
||||||
|
Loading…
Reference in New Issue
Block a user