|
@@ -78,10 +78,20 @@
|
|
|
@update:pageSize="handleSizeChange"
|
|
@update:pageSize="handleSizeChange"
|
|
|
@update:pageNumber="handleCurrentChange"
|
|
@update:pageNumber="handleCurrentChange"
|
|
|
>
|
|
>
|
|
|
-
|
|
|
|
|
|
|
+ <template #feedbackCount="scope">
|
|
|
|
|
+ {{ (scope.row.feedbackCount === 0 && scope.row.status === 1) ? '-' : scope.row.feedbackCount }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #issuedCount="scope">
|
|
|
|
|
+ {{ (scope.row.issuedCount === 0 && scope.row.status === 1) ? '-' : scope.row.issuedCount }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #feedbackRatio="scope">
|
|
|
|
|
+ {{ (scope.row.feedbackRatio === 0 && scope.row.status === 1) ? '-' : scope.row.feedbackRatio+'%' }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #plannedEndTime="scope">
|
|
|
|
|
+ {{ scope.row.status === 1 ? '-' : scope.row.plannedEndTime }}
|
|
|
|
|
+ </template>
|
|
|
<template #action="scope">
|
|
<template #action="scope">
|
|
|
<div class="action-container--div" style="justify-content: left">
|
|
<div class="action-container--div" style="justify-content: left">
|
|
|
-
|
|
|
|
|
<!-- 1-未下发、2-待反馈、3-已完成 4- 已作废 -->
|
|
<!-- 1-未下发、2-待反馈、3-已完成 4- 已作废 -->
|
|
|
<!-- 未下发(1):编辑、删除、下发 -->
|
|
<!-- 未下发(1):编辑、删除、下发 -->
|
|
|
<template v-if="Number(scope.row.status) === 1">
|
|
<template v-if="Number(scope.row.status) === 1">
|
|
@@ -108,7 +118,6 @@
|
|
|
@confirm="handleViewInvalid(scope.row.id)"
|
|
@confirm="handleViewInvalid(scope.row.id)"
|
|
|
/>
|
|
/>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<!-- 已完成(3)/已作废(4)-->
|
|
<!-- 已完成(3)/已作废(4)-->
|
|
|
<template v-else>
|
|
<template v-else>
|
|
|
<ActionButton
|
|
<ActionButton
|
|
@@ -118,25 +127,43 @@
|
|
|
}"
|
|
}"
|
|
|
@confirm="handleDelete(scope.row.id)"
|
|
@confirm="handleDelete(scope.row.id)"
|
|
|
/>
|
|
/>
|
|
|
- <ActionButton text="发送查看对象" @click="handleViewRecipients(scope.row.id)" />
|
|
|
|
|
|
|
+ <ActionButton text="查看发送对象" @click="handleViewRecipients(scope.row.id)" />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <ActionButton text="复制" v-if="Number(scope.row.status) !== 4" @click="handleCopyData(scope.row.id)" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
- <template #feedbackCount="scope">
|
|
|
|
|
- {{ (scope.row.feedbackCount === 0 && scope.row.status === 1) ? '-' : scope.row.feedbackCount }}
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #issuedCount="scope">
|
|
|
|
|
- {{ (scope.row.issuedCount === 0 && scope.row.status === 1) ? '-' : scope.row.issuedCount }}
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #feedbackRatio="scope">
|
|
|
|
|
- {{ (scope.row.feedbackRatio === 0 && scope.row.status === 1) ? '-' : scope.row.feedbackRatio+'%' }}
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #plannedEndTime="scope">
|
|
|
|
|
- {{ scope.row.status === 1 ? '-' : scope.row.plannedEndTime }}
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+
|
|
|
</BasicTable>
|
|
</BasicTable>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- 生产安全计划时间设置(复制) -->
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ v-model="copyDialogVisible"
|
|
|
|
|
+ title="生产安全计划时间设置"
|
|
|
|
|
+ width="500"
|
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
|
+ :close-on-press-escape="false"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <el-form ref="formRef" :model="issueWorkPlanForm" :rules="issueWorkPlanFormRules" label-width="150px">
|
|
|
|
|
+ <el-form-item label="计划结束时间:" prop="plannedEndTime" required>
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="issueWorkPlanForm.plannedEndTime"
|
|
|
|
|
+ type="date"
|
|
|
|
|
+ placeholder="请选择完成时间"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <div class="dialog-footer">
|
|
|
|
|
+ <el-button @click="copyDialogVisible = false">取消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="handleConfirmCopy"> 保存 </el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <!-- 生产安全计划下发 -->
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
v-model="issueWorkPlanDialogVisible"
|
|
v-model="issueWorkPlanDialogVisible"
|
|
|
title="生产安全计划下发"
|
|
title="生产安全计划下发"
|
|
@@ -219,6 +246,7 @@
|
|
|
issueWorkPlan,
|
|
issueWorkPlan,
|
|
|
deleteWorkPlan,
|
|
deleteWorkPlan,
|
|
|
exportTableData,
|
|
exportTableData,
|
|
|
|
|
+ copyWorkPlan,
|
|
|
type IssueWorkPlanParams,
|
|
type IssueWorkPlanParams,
|
|
|
} from '@/api/safety-system-construction-work-plan';
|
|
} from '@/api/safety-system-construction-work-plan';
|
|
|
|
|
|
|
@@ -477,6 +505,19 @@
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
+ // 复制
|
|
|
|
|
+ const copyDialogVisible = ref(false)
|
|
|
|
|
+ const copyParams = reactive({
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
|
|
+ const handleCopyData = (id:number)=>{
|
|
|
|
|
+ copyDialogVisible.value = true
|
|
|
|
|
+ }
|
|
|
|
|
+ // 保存复制
|
|
|
|
|
+ const handleConfirmCopy = async ()=>{
|
|
|
|
|
+ const data = {}
|
|
|
|
|
+ await copyWorkPlan(data)
|
|
|
|
|
+ }
|
|
|
// 批量导入
|
|
// 批量导入
|
|
|
const batchImportVisible = ref(false);
|
|
const batchImportVisible = ref(false);
|
|
|
const { urlPrefix } = useGlobSetting();
|
|
const { urlPrefix } = useGlobSetting();
|