|
|
@@ -1,89 +1,95 @@
|
|
|
<template>
|
|
|
- <div class="safety-platform-container">
|
|
|
- <el-alert v-if="showAlertBar" :title="formData?.rejection" type="warning" />
|
|
|
- <header class="safety-platform-container__header">
|
|
|
- <div class="breadcrumb-title"> {{ formData?.responsibilityName }} </div>
|
|
|
- <div class="detail-content">
|
|
|
- <span>类别名称:{{ formData?.departmentName }} </span>
|
|
|
- <span>创建人:{{ formData?.createdByName }} </span>
|
|
|
- <span>创建时间:{{ formData?.createdAt }} </span>
|
|
|
+ <div class="safety-platform-container">
|
|
|
+ <el-alert v-if="showAlertBar" :title="formData?.rejection" type="warning" />
|
|
|
+ <header class="safety-platform-container__header">
|
|
|
+ <div class="breadcrumb-title"> {{ formData?.responsibilityName }} </div>
|
|
|
+ <div class="detail-content">
|
|
|
+ <span>类别名称:{{ formData?.departmentName }} </span>
|
|
|
+ <span>创建人:{{ formData?.createdByName }} </span>
|
|
|
+ <span>创建时间:{{ formData?.createdAt }} </span>
|
|
|
+ </div>
|
|
|
+ </header>
|
|
|
+
|
|
|
+ <main class="safety-platform-container__main">
|
|
|
+ <el-form ref="formRef" label-width="auto" :model="formData" :rules="rules">
|
|
|
+ <h4>基本信息</h4>
|
|
|
+ <div class="detail-ct">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col">
|
|
|
+ <div class="label">责任书名称:</div>
|
|
|
+ <div class="value">{{ formData.responsibilityName }}</div>
|
|
|
</div>
|
|
|
- </header>
|
|
|
-
|
|
|
- <main class="safety-platform-container__main">
|
|
|
- <el-form ref="formRef" label-width="auto" :model="formData" :rules="rules">
|
|
|
- <h4>基本信息</h4>
|
|
|
- <div class="detail-ct">
|
|
|
- <div class="row">
|
|
|
- <div class="col">
|
|
|
- <div class="label">责任书名称:</div>
|
|
|
- <div class="value">{{ formData.responsibilityName }}</div>
|
|
|
- </div>
|
|
|
- <div class="col">
|
|
|
- <div class="label">状态:</div>
|
|
|
- <div class="value">{{ formData.statusName }}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="row">
|
|
|
- <div class="col">
|
|
|
- <div class="label">签署人数:</div>
|
|
|
- <div class="value">{{ formData.signedQuantity }}</div>
|
|
|
- </div>
|
|
|
- <!-- <div class="col">
|
|
|
+ <div class="col">
|
|
|
+ <div class="label">状态:</div>
|
|
|
+ <div class="value">{{ formData.statusName }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col">
|
|
|
+ <div class="label">签署人数:</div>
|
|
|
+ <div class="value">{{ formData.signedQuantity }}</div>
|
|
|
+ </div>
|
|
|
+ <!-- <div class="col">
|
|
|
<div class="label">下发对象:</div>
|
|
|
<div class="value">{{ formData.userGroupName }}</div>
|
|
|
</div> -->
|
|
|
- </div>
|
|
|
- <div class="row">
|
|
|
- <div class="col">
|
|
|
- <div class="label">计划开始日期:</div>
|
|
|
- <div class="value">{{ formData.planStartTime }}</div>
|
|
|
- </div>
|
|
|
- <div class="col">
|
|
|
- <div class="label">计划结束日期:</div>
|
|
|
- <div class="value">{{ formData.planEndTime }}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <h4>责任书内容</h4>
|
|
|
- <div class="detail-ct">
|
|
|
- <div class="row">
|
|
|
- <div class="col">
|
|
|
- <div class="label">责任书文档:</div>
|
|
|
- <div class="value value-s1">
|
|
|
- <div class="file-list">
|
|
|
- <div class="file-item" v-for="item in formData.attachment" :key="item.fileId">
|
|
|
- <span class="file-item--name">{{ item.fileName }}</span>
|
|
|
- <div class="file-item--footer">
|
|
|
- <!-- <div class="info">
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col">
|
|
|
+ <div class="label">计划开始日期:</div>
|
|
|
+ <div class="value">{{ formData.planStartTime }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="col">
|
|
|
+ <div class="label">计划结束日期:</div>
|
|
|
+ <div class="value">{{ formData.planEndTime }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <h4>责任书内容</h4>
|
|
|
+ <div class="detail-ct">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col">
|
|
|
+ <div class="label">责任书文档:</div>
|
|
|
+ <div class="value value-s1">
|
|
|
+ <div class="file-list">
|
|
|
+ <div class="file-item" v-for="item in formData.attachment" :key="item.fileId">
|
|
|
+ <span class="file-item--name">{{ item.fileName }}</span>
|
|
|
+ <div class="file-item--footer">
|
|
|
+ <!-- <div class="info">
|
|
|
<span>{{ item.fileSize }}</span>
|
|
|
</div> -->
|
|
|
- <el-button link type="primary"
|
|
|
- @click="previewOnline(item.fileUrl, item.fileType)">预览</el-button>
|
|
|
- <el-button link type="primary"
|
|
|
- @click.stop="downloadFile(item.fileUrl, item.fileName)">下载</el-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <el-button link type="primary" @click="previewOnline(item.fileUrl, item.fileType)"
|
|
|
+ >预览</el-button
|
|
|
+ >
|
|
|
+ <el-button link type="primary" @click.stop="downloadFile(item.fileUrl, item.fileName)"
|
|
|
+ >下载</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <template v-if="signRecords.level1.length">
|
|
|
- <h4 v-if="currentDepartmentKey === 'A'"> 副院长签署 </h4>
|
|
|
- <h4 v-if="currentDepartmentKey === 'B'"> 负责人签署 </h4>
|
|
|
- <h4 v-if="currentDepartmentKey === 'C'"> 负责人签署 </h4>
|
|
|
- <h4 v-if="currentDepartmentKey === 'D'"> 科室负责人签署 </h4>
|
|
|
- <div class="detail-ct">
|
|
|
- <div class="row" v-for="item in signRecords.level1" :key="item.id">
|
|
|
- <div class="col">
|
|
|
- <div class="label">签名:</div>
|
|
|
- <div class="value value-s1">
|
|
|
- <el-form-item>
|
|
|
- <UploadFiles disabled label="上传文件" :fileList="item.attachment"
|
|
|
- @upload-success="(fileList) => handleUploadSignsUploadSuccess(item, fileList)" />
|
|
|
- </el-form-item>
|
|
|
- <!-- <div class="file-list">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <template v-if="signRecords.level1.length">
|
|
|
+ <h4 v-if="currentDepartmentKey === 'A'"> 副院长签署 </h4>
|
|
|
+ <h4 v-if="currentDepartmentKey === 'B'"> 负责人签署 </h4>
|
|
|
+ <h4 v-if="currentDepartmentKey === 'C'"> 负责人签署 </h4>
|
|
|
+ <h4 v-if="currentDepartmentKey === 'D'"> 科室负责人签署 </h4>
|
|
|
+ <div class="detail-ct">
|
|
|
+ <div class="row" v-for="item in signRecords.level1" :key="item.id">
|
|
|
+ <div class="col">
|
|
|
+ <div class="label">签名:</div>
|
|
|
+ <div class="value value-s1">
|
|
|
+ <el-form-item>
|
|
|
+ <UploadFiles
|
|
|
+ disabled
|
|
|
+ label="上传文件"
|
|
|
+ :fileList="item.attachment"
|
|
|
+ @upload-success="(fileList) => handleUploadSignsUploadSuccess(item, fileList)"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <div class="file-list">
|
|
|
<div class="file-item" v-for="file in item.attachment" :key="file.fileId">
|
|
|
<span class="file-item--name">{{ file.fileName }}</span>
|
|
|
<div class="file-item--footer">
|
|
|
@@ -96,26 +102,30 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div> -->
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template v-if="signRecords.level2.length">
|
|
|
- <h4 v-if="currentDepartmentKey === 'A'"> 党委书记签署 </h4>
|
|
|
- <h4 v-if="currentDepartmentKey === 'B'"> 党委书记签署 </h4>
|
|
|
- <h4 v-if="currentDepartmentKey === 'C'"> 党委书记签署</h4>
|
|
|
- <h4 v-if="currentDepartmentKey === 'D'"> 部门负责人签署 </h4>
|
|
|
- <div class="detail-ct">
|
|
|
- <div class="row" v-for="item in signRecords.level2" :key="item.id">
|
|
|
- <div class="col">
|
|
|
- <div class="label">签名:</div>
|
|
|
- <div class="value value-s1">
|
|
|
- <el-form-item>
|
|
|
- <UploadFiles disabled label="上传文件" :fileList="item.attachment"
|
|
|
- @upload-success="(fileList) => handleUploadSignsUploadSuccess(item, fileList)" />
|
|
|
- </el-form-item>
|
|
|
- <!-- <div class="file-list">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-if="signRecords.level2.length">
|
|
|
+ <h4 v-if="currentDepartmentKey === 'A'"> 党委书记签署 </h4>
|
|
|
+ <h4 v-if="currentDepartmentKey === 'B'"> 党委书记签署 </h4>
|
|
|
+ <h4 v-if="currentDepartmentKey === 'C'"> 党委书记签署</h4>
|
|
|
+ <h4 v-if="currentDepartmentKey === 'D'"> 部门负责人签署 </h4>
|
|
|
+ <div class="detail-ct">
|
|
|
+ <div class="row" v-for="item in signRecords.level2" :key="item.id">
|
|
|
+ <div class="col">
|
|
|
+ <div class="label">签名:</div>
|
|
|
+ <div class="value value-s1">
|
|
|
+ <el-form-item>
|
|
|
+ <UploadFiles
|
|
|
+ disabled
|
|
|
+ label="上传文件"
|
|
|
+ :fileList="item.attachment"
|
|
|
+ @upload-success="(fileList) => handleUploadSignsUploadSuccess(item, fileList)"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <div class="file-list">
|
|
|
<div class="file-item" v-for="file in item.attachment" :key="file.fileId">
|
|
|
<span class="file-item--name">{{ file.fileName }}</span>
|
|
|
<div class="file-item--footer">
|
|
|
@@ -128,25 +138,29 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div> -->
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template v-if="signRecords.level3.length">
|
|
|
- <h4 v-if="currentDepartmentKey === 'A'"> 院长签署 </h4>
|
|
|
- <h4 v-if="currentDepartmentKey === 'B'"> 院长签署 </h4>
|
|
|
- <h4 v-if="currentDepartmentKey === 'C'"> 所长签署 </h4>
|
|
|
- <div class="detail-ct">
|
|
|
- <div class="row" v-for="item in signRecords.level3" :key="item.id">
|
|
|
- <div class="col">
|
|
|
- <div class="label">签名:</div>
|
|
|
- <div class="value value-s1">
|
|
|
- <el-form-item>
|
|
|
- <UploadFiles disabled label="上传文件" :fileList="item.attachment"
|
|
|
- @upload-success="(fileList) => handleUploadSignsUploadSuccess(item, fileList)" />
|
|
|
- </el-form-item>
|
|
|
- <!-- <div class="file-list">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-if="signRecords.level3.length">
|
|
|
+ <h4 v-if="currentDepartmentKey === 'A'"> 院长签署 </h4>
|
|
|
+ <h4 v-if="currentDepartmentKey === 'B'"> 院长签署 </h4>
|
|
|
+ <h4 v-if="currentDepartmentKey === 'C'"> 所长签署 </h4>
|
|
|
+ <div class="detail-ct">
|
|
|
+ <div class="row" v-for="item in signRecords.level3" :key="item.id">
|
|
|
+ <div class="col">
|
|
|
+ <div class="label">签名:</div>
|
|
|
+ <div class="value value-s1">
|
|
|
+ <el-form-item>
|
|
|
+ <UploadFiles
|
|
|
+ disabled
|
|
|
+ label="上传文件"
|
|
|
+ :fileList="item.attachment"
|
|
|
+ @upload-success="(fileList) => handleUploadSignsUploadSuccess(item, fileList)"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <div class="file-list">
|
|
|
<div class="file-item" v-for="file in item.attachment" :key="file.fileId">
|
|
|
<span class="file-item--name">{{ file.fileName }}</span>
|
|
|
<div class="file-item--footer">
|
|
|
@@ -159,75 +173,79 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div> -->
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <h4>材料上传</h4>
|
|
|
-
|
|
|
- <div class="detail-ct">
|
|
|
- <div class="row">
|
|
|
- <div class="col">
|
|
|
- <div class="label">上传附件:</div>
|
|
|
- <div class="value value-s1">
|
|
|
- <el-form-item prop="feedback">
|
|
|
- <UploadFiles label="上传附件"
|
|
|
- disabled
|
|
|
- @upload-success="(fileList) => handleUploadSuccess('feedback', fileList)"
|
|
|
- :fileList="formData.feedback" />
|
|
|
- </el-form-item>
|
|
|
- <div class="file-list" v-if="formData.feedback?.length">
|
|
|
- <div class="file-item" v-for="item in formData.feedback" :key="item.fileId">
|
|
|
- <span class="file-item--name">{{ item.fileName }}</span>
|
|
|
- <div class="file-item--footer">
|
|
|
- <el-button link type="primary"
|
|
|
- @click="previewOnline(item.fileUrl, item.fileType)">预览</el-button>
|
|
|
- <el-button link type="primary"
|
|
|
- @click.stop="downloadFile(item.fileUrl, item.fileName)">下载</el-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <h4>材料上传</h4>
|
|
|
+
|
|
|
+ <div class="detail-ct">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col">
|
|
|
+ <div class="label">上传附件:</div>
|
|
|
+ <div class="value value-s1">
|
|
|
+ <el-form-item prop="feedback">
|
|
|
+ <UploadFiles
|
|
|
+ label="上传附件"
|
|
|
+ disabled
|
|
|
+ @upload-success="(fileList) => handleUploadSuccess('feedback', fileList)"
|
|
|
+ :fileList="formData.feedback"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <div class="file-list" v-if="formData.feedback?.length">
|
|
|
+ <div class="file-item" v-for="item in formData.feedback" :key="item.fileId">
|
|
|
+ <span class="file-item--name">{{ item.fileName }}</span>
|
|
|
+ <div class="file-item--footer">
|
|
|
+ <el-button link type="primary" @click="previewOnline(item.fileUrl, item.fileType)"
|
|
|
+ >预览</el-button
|
|
|
+ >
|
|
|
+ <el-button link type="primary" @click.stop="downloadFile(item.fileUrl, item.fileName)"
|
|
|
+ >下载</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </el-form>
|
|
|
- </main>
|
|
|
- <footer class="safety-platform-container__footer">
|
|
|
- <el-button @click="$router.push({ name: 'responsibilityAgreeManage' })">返回</el-button>
|
|
|
- <el-button type="primary" @click="handleReviewFailed">审核不通过</el-button>
|
|
|
- <el-button type="primary" @click="handleReviewApproved" :loading="submiting">审核通过</el-button>
|
|
|
- </footer>
|
|
|
- </div>
|
|
|
- <PreviewOnline ref="previewOnlineRef" />
|
|
|
- <RefuseReason ref="reviewFeedBackRef" @submit="handleReviewFailedSubmit" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-form>
|
|
|
+ </main>
|
|
|
+ <footer class="safety-platform-container__footer">
|
|
|
+ <el-button @click="$router.push({ name: 'responsibilityAgreeManage' })">返回</el-button>
|
|
|
+ <el-button type="primary" @click="handleReviewFailed">审核不通过</el-button>
|
|
|
+ <el-button type="primary" @click="handleReviewApproved" :loading="submiting">审核通过</el-button>
|
|
|
+ </footer>
|
|
|
+ </div>
|
|
|
+ <PreviewOnline ref="previewOnlineRef" />
|
|
|
+ <RefuseReason ref="reviewFeedBackRef" @submit="handleReviewFailedSubmit" />
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
|
-import { onMounted, ref, computed, reactive } from 'vue';
|
|
|
-import { ElMessage } from 'element-plus';
|
|
|
-import '@wangeditor/editor/dist/css/style.css';
|
|
|
-import { useRouter, useRoute } from 'vue-router';
|
|
|
-import { downloadFile } from '@/views/disaster/utils';
|
|
|
-
|
|
|
-import UploadFiles from '@/components/UploadFiles/UploadFiles.vue';
|
|
|
-import {
|
|
|
+ import { onMounted, ref, computed, reactive } from 'vue';
|
|
|
+ import { ElMessage } from 'element-plus';
|
|
|
+ import '@wangeditor/editor/dist/css/style.css';
|
|
|
+ import { useRouter, useRoute } from 'vue-router';
|
|
|
+ import { downloadFile } from '@/views/disaster/utils';
|
|
|
+
|
|
|
+ import UploadFiles from '@/components/UploadFiles/UploadFiles.vue';
|
|
|
+ import {
|
|
|
safetyResponsibilityDeptQueryDetail,
|
|
|
safetyResponsibilityAdminApprove,
|
|
|
-} from '@/api/production-safety/responsibility-implementation';
|
|
|
+ } from '@/api/production-safety/responsibility-implementation';
|
|
|
|
|
|
-import RefuseReason from './components/RefuseReason.vue';
|
|
|
+ import RefuseReason from './components/RefuseReason.vue';
|
|
|
|
|
|
-import { unformatAttachment, formatAttachmentList } from '@/components/UploadFiles/utils';
|
|
|
-import PreviewOnline from '@/views/disaster/components/PreviewOnline.vue';
|
|
|
-import { s } from 'vite/dist/node/types.d-jgA8ss1A';
|
|
|
+ import { unformatAttachment, formatAttachmentList } from '@/components/UploadFiles/utils';
|
|
|
+ import PreviewOnline from '@/views/disaster/components/PreviewOnline.vue';
|
|
|
+ import { s } from 'vite/dist/node/types.d-jgA8ss1A';
|
|
|
|
|
|
-const router = useRouter();
|
|
|
-const route = useRoute();
|
|
|
-const formRef = ref<any>(null);
|
|
|
-const submiting = ref(false);
|
|
|
-const reviewFeedBackRef = ref<any>();
|
|
|
-const formData = reactive<any>({
|
|
|
+ const router = useRouter();
|
|
|
+ const route = useRoute();
|
|
|
+ const formRef = ref<any>(null);
|
|
|
+ const submiting = ref(false);
|
|
|
+ const reviewFeedBackRef = ref<any>();
|
|
|
+ const formData = reactive<any>({
|
|
|
departmentName: '',
|
|
|
createdByName: '',
|
|
|
createdAt: '',
|
|
|
@@ -243,147 +261,147 @@ const formData = reactive<any>({
|
|
|
rejection: '',
|
|
|
signRecords: [],
|
|
|
status: null,
|
|
|
-});
|
|
|
+ });
|
|
|
|
|
|
-const rules = reactive({
|
|
|
+ const rules = reactive({
|
|
|
signsUpload: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: '请上传签署材料',
|
|
|
- },
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: '请上传签署材料',
|
|
|
+ },
|
|
|
],
|
|
|
-});
|
|
|
+ });
|
|
|
|
|
|
-const signRecords = computed(() => {
|
|
|
+ const signRecords = computed(() => {
|
|
|
return {
|
|
|
- level1: formData.signRecords.filter((item) => item.signLevel === 1),
|
|
|
- level2: formData.signRecords.filter((item) => item.signLevel === 2),
|
|
|
- level3: formData.signRecords.filter((item) => item.signLevel === 3),
|
|
|
+ level1: formData.signRecords.filter((item) => item.signLevel === 1),
|
|
|
+ level2: formData.signRecords.filter((item) => item.signLevel === 2),
|
|
|
+ level3: formData.signRecords.filter((item) => item.signLevel === 3),
|
|
|
};
|
|
|
-});
|
|
|
+ });
|
|
|
|
|
|
-const currentDepartmentKey = computed(() => {
|
|
|
+ const currentDepartmentKey = computed(() => {
|
|
|
switch (formData.departmentName.trim()) {
|
|
|
- case '院领导':
|
|
|
- return 'A';
|
|
|
- case '所/中心/职能部门/直属研究部/分公司':
|
|
|
- return 'B';
|
|
|
- case '所/中心级部门':
|
|
|
- return 'C';
|
|
|
- case '科室':
|
|
|
- return 'D';
|
|
|
- case '员工':
|
|
|
- case '常驻供应商':
|
|
|
- return 'E';
|
|
|
- default:
|
|
|
- return '';
|
|
|
+ case '院领导':
|
|
|
+ return 'A';
|
|
|
+ case '所/中心/职能部门/直属研究部/分公司':
|
|
|
+ return 'B';
|
|
|
+ case '所/中心级部门':
|
|
|
+ return 'C';
|
|
|
+ case '科室':
|
|
|
+ return 'D';
|
|
|
+ case '员工':
|
|
|
+ case '常驻供应商':
|
|
|
+ return 'E';
|
|
|
+ default:
|
|
|
+ return '';
|
|
|
}
|
|
|
-});
|
|
|
+ });
|
|
|
|
|
|
-const showAlertBar = computed(() => {
|
|
|
+ const showAlertBar = computed(() => {
|
|
|
if (!formData.rejection) {
|
|
|
- return false;
|
|
|
+ return false;
|
|
|
}
|
|
|
return formData.status === 2 && formData.rejection !== null;
|
|
|
-});
|
|
|
-const previewOnlineRef = ref<InstanceType<typeof PreviewOnline>>();
|
|
|
-const previewOnline = (url: string | undefined, type) => {
|
|
|
+ });
|
|
|
+ const previewOnlineRef = ref<InstanceType<typeof PreviewOnline>>();
|
|
|
+ const previewOnline = (url: string | undefined, type) => {
|
|
|
if (url) {
|
|
|
- previewOnlineRef.value?.open(url, type);
|
|
|
+ previewOnlineRef.value?.open(url, type);
|
|
|
}
|
|
|
-};
|
|
|
-const handleUploadSignsUploadSuccess = (item, fileList) => {
|
|
|
+ };
|
|
|
+ const handleUploadSignsUploadSuccess = (item, fileList) => {
|
|
|
item.attachment = fileList;
|
|
|
formData.signRecords = [...signRecords.value.level1, ...signRecords.value.level2, ...signRecords.value.level3];
|
|
|
-};
|
|
|
+ };
|
|
|
|
|
|
-const handleUploadSuccess = (prop: string, fileList: any[]) => {
|
|
|
+ const handleUploadSuccess = (prop: string, fileList: any[]) => {
|
|
|
formData[prop] = fileList;
|
|
|
formRef.value.validateField(prop);
|
|
|
-};
|
|
|
-const handleReviewApproved = () => {
|
|
|
+ };
|
|
|
+ const handleReviewApproved = () => {
|
|
|
submiting.value = true;
|
|
|
safetyResponsibilityAdminApprove({
|
|
|
- approveType: 1,
|
|
|
- refuseReason: null,
|
|
|
- id: route.query.id,
|
|
|
+ approveType: 1,
|
|
|
+ refuseReason: null,
|
|
|
+ id: route.query.id,
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- ElMessage.success('审核成功');
|
|
|
- router.push({
|
|
|
- name: 'responsibilityAgreeManage',
|
|
|
- });
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
- submiting.value = false;
|
|
|
+ .then(() => {
|
|
|
+ ElMessage.success('审核成功');
|
|
|
+ router.push({
|
|
|
+ name: 'responsibilityAgreeManage',
|
|
|
});
|
|
|
-};
|
|
|
-const handleQueryDetail = () => {
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ submiting.value = false;
|
|
|
+ });
|
|
|
+ };
|
|
|
+ const handleQueryDetail = () => {
|
|
|
safetyResponsibilityDeptQueryDetail({
|
|
|
- id: route.query.id,
|
|
|
+ id: route.query.id,
|
|
|
}).then((res) => {
|
|
|
- Object.keys(formData).forEach((name) => {
|
|
|
- if (name in res) {
|
|
|
- Object.assign(formData, {
|
|
|
- [name]: res[name],
|
|
|
- status: res.status,
|
|
|
- attachment: unformatAttachment(res.attachment),
|
|
|
- signsUpload: unformatAttachment(res.signsUpload),
|
|
|
- feedback: unformatAttachment(res.feedback),
|
|
|
- signRecords: res.signRecords?.map((item) => ({
|
|
|
- ...item,
|
|
|
- attachment: unformatAttachment(item.attachment),
|
|
|
- })),
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ Object.keys(formData).forEach((name) => {
|
|
|
+ if (name in res) {
|
|
|
+ Object.assign(formData, {
|
|
|
+ [name]: res[name],
|
|
|
+ status: res.status,
|
|
|
+ attachment: unformatAttachment(res.attachment),
|
|
|
+ signsUpload: unformatAttachment(res.signsUpload),
|
|
|
+ feedback: unformatAttachment(res.feedback),
|
|
|
+ signRecords: res.signRecords?.map((item) => ({
|
|
|
+ ...item,
|
|
|
+ attachment: unformatAttachment(item.attachment),
|
|
|
+ })),
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
-};
|
|
|
-const handleReviewFailed = () => {
|
|
|
+ };
|
|
|
+ const handleReviewFailed = () => {
|
|
|
reviewFeedBackRef.value.dialogShow();
|
|
|
-};
|
|
|
+ };
|
|
|
|
|
|
-const handleReviewFailedSubmit = (formData) => {
|
|
|
+ const handleReviewFailedSubmit = (formData) => {
|
|
|
reviewFeedBackRef.value.submitLoading = true;
|
|
|
safetyResponsibilityAdminApprove({
|
|
|
- approveType: 0,
|
|
|
- refuseReason: formData.refuseReason,
|
|
|
- id: route.query.id,
|
|
|
+ approveType: 0,
|
|
|
+ refuseReason: formData.refuseReason,
|
|
|
+ id: route.query.id,
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- reviewFeedBackRef.value.dialogHide();
|
|
|
- ElMessage.success('提交成功');
|
|
|
- router.push({
|
|
|
- name: 'responsibilityAgreeManage',
|
|
|
- });
|
|
|
- })
|
|
|
- .finally(() => {
|
|
|
- reviewFeedBackRef.value.submitLoading = false;
|
|
|
+ .then(() => {
|
|
|
+ reviewFeedBackRef.value.dialogHide();
|
|
|
+ ElMessage.success('提交成功');
|
|
|
+ router.push({
|
|
|
+ name: 'responsibilityAgreeManage',
|
|
|
});
|
|
|
-};
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ reviewFeedBackRef.value.submitLoading = false;
|
|
|
+ });
|
|
|
+ };
|
|
|
|
|
|
-onMounted(() => {
|
|
|
+ onMounted(() => {
|
|
|
handleQueryDetail();
|
|
|
-});
|
|
|
+ });
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-@use '@/styles/page-main-layout.scss' as *;
|
|
|
-@use '@/styles/page-details-layout.scss' as *;
|
|
|
-@use '@/styles/basic-table-action.scss' as *;
|
|
|
+ @use '@/styles/page-main-layout.scss' as *;
|
|
|
+ @use '@/styles/page-details-layout.scss' as *;
|
|
|
+ @use '@/styles/basic-table-action.scss' as *;
|
|
|
|
|
|
-h4 {
|
|
|
+ h4 {
|
|
|
margin-bottom: 10px;
|
|
|
-}
|
|
|
+ }
|
|
|
|
|
|
-.detail-content {
|
|
|
+ .detail-content {
|
|
|
display: flex;
|
|
|
gap: 30px;
|
|
|
margin: 10px 0;
|
|
|
font-size: 14px;
|
|
|
-}
|
|
|
+ }
|
|
|
|
|
|
-.detail-ct {
|
|
|
+ .detail-ct {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
border: 1px solid rgb(220, 223, 230);
|
|
|
@@ -391,126 +409,126 @@ h4 {
|
|
|
margin-bottom: 25px;
|
|
|
|
|
|
.row {
|
|
|
- display: flex;
|
|
|
+ display: flex;
|
|
|
|
|
|
- border-bottom: 1px solid rgb(220, 223, 230);
|
|
|
+ border-bottom: 1px solid rgb(220, 223, 230);
|
|
|
}
|
|
|
|
|
|
.row:last-child {
|
|
|
- border-bottom: none;
|
|
|
+ border-bottom: none;
|
|
|
}
|
|
|
|
|
|
.col {
|
|
|
+ display: flex;
|
|
|
+ flex: 1;
|
|
|
+ min-height: 40px;
|
|
|
+ align-items: stretch;
|
|
|
+
|
|
|
+ .label {
|
|
|
display: flex;
|
|
|
- flex: 1;
|
|
|
- min-height: 40px;
|
|
|
- align-items: stretch;
|
|
|
-
|
|
|
- .label {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: flex-end;
|
|
|
- width: 160px;
|
|
|
- background-color: rgb(245, 247, 250);
|
|
|
- border-right: 1px solid rgb(220, 223, 230);
|
|
|
- }
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-end;
|
|
|
+ width: 160px;
|
|
|
+ background-color: rgb(245, 247, 250);
|
|
|
+ border-right: 1px solid rgb(220, 223, 230);
|
|
|
+ }
|
|
|
|
|
|
- .value {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- flex: 1;
|
|
|
- padding: 10px 20px;
|
|
|
- align-items: center;
|
|
|
- border-right: 1px solid rgb(220, 223, 230);
|
|
|
- }
|
|
|
+ .value {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ flex: 1;
|
|
|
+ padding: 10px 20px;
|
|
|
+ align-items: center;
|
|
|
+ border-right: 1px solid rgb(220, 223, 230);
|
|
|
+ }
|
|
|
|
|
|
- .value-s1 {
|
|
|
- min-height: 60px;
|
|
|
- }
|
|
|
+ .value-s1 {
|
|
|
+ min-height: 60px;
|
|
|
+ }
|
|
|
|
|
|
- .value:nth-child(2) {
|
|
|
- border-right: 0;
|
|
|
- }
|
|
|
+ .value:nth-child(2) {
|
|
|
+ border-right: 0;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.col:nth-child(2) .label {
|
|
|
- border-left: 1px solid rgb(220, 223, 230);
|
|
|
+ border-left: 1px solid rgb(220, 223, 230);
|
|
|
}
|
|
|
-}
|
|
|
+ }
|
|
|
|
|
|
-.table {
|
|
|
+ .table {
|
|
|
display: flex;
|
|
|
align-items: stretch;
|
|
|
border: 1px solid rgb(220, 223, 230);
|
|
|
border-width: 1px 1px 0 1px;
|
|
|
-}
|
|
|
+ }
|
|
|
|
|
|
-.table .value {
|
|
|
+ .table .value {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
// (:deep).el-form-item {
|
|
|
// margin-bottom: 0;
|
|
|
// }
|
|
|
-}
|
|
|
+ }
|
|
|
|
|
|
-.table .label {
|
|
|
+ .table .label {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
border-right: 1px solid rgb(220, 223, 230);
|
|
|
background-color: rgb(245, 247, 250);
|
|
|
-}
|
|
|
-.file-list {
|
|
|
+ }
|
|
|
+ .file-list {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
gap: 10px;
|
|
|
|
|
|
.file-item {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ padding: 10px;
|
|
|
+ // border: 1px solid rgb(220, 223, 230);
|
|
|
+
|
|
|
+ .file-item--name {
|
|
|
+ font-size: 14px;
|
|
|
+ color: #606266;
|
|
|
+ }
|
|
|
+
|
|
|
+ .file-item--footer {
|
|
|
display: flex;
|
|
|
- justify-content: space-between;
|
|
|
align-items: center;
|
|
|
- padding: 10px;
|
|
|
- // border: 1px solid rgb(220, 223, 230);
|
|
|
-
|
|
|
- .file-item--name {
|
|
|
- font-size: 14px;
|
|
|
- color: #606266;
|
|
|
- }
|
|
|
-
|
|
|
- .file-item--footer {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 10px;
|
|
|
+ gap: 10px;
|
|
|
|
|
|
- .info {
|
|
|
- font-size: 12px;
|
|
|
- color: #9099a4;
|
|
|
- }
|
|
|
+ .info {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #9099a4;
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
-// :deep(.breadcrumb .title) {
|
|
|
-// margin-left: 0;
|
|
|
-// }
|
|
|
-
|
|
|
-// .main {
|
|
|
-// display: flex;
|
|
|
-// flex-direction: column;
|
|
|
-// padding: 20px;
|
|
|
-// flex: 1;
|
|
|
-// overflow: hidden;
|
|
|
-// background-color: #fff;
|
|
|
-// }
|
|
|
-// .button-content {
|
|
|
-// margin-bottom: 20px;
|
|
|
-// }
|
|
|
-
|
|
|
-// .page-content {
|
|
|
-// display: flex;
|
|
|
-// justify-content: flex-end;
|
|
|
-// }
|
|
|
-// // :deep(.el-form) {
|
|
|
-// // flex: 1;
|
|
|
-// // overflow: hidden;
|
|
|
-// // overflow-y: auto;
|
|
|
-// // }
|
|
|
+ }
|
|
|
+ // :deep(.breadcrumb .title) {
|
|
|
+ // margin-left: 0;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .main {
|
|
|
+ // display: flex;
|
|
|
+ // flex-direction: column;
|
|
|
+ // padding: 20px;
|
|
|
+ // flex: 1;
|
|
|
+ // overflow: hidden;
|
|
|
+ // background-color: #fff;
|
|
|
+ // }
|
|
|
+ // .button-content {
|
|
|
+ // margin-bottom: 20px;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // .page-content {
|
|
|
+ // display: flex;
|
|
|
+ // justify-content: flex-end;
|
|
|
+ // }
|
|
|
+ // // :deep(.el-form) {
|
|
|
+ // // flex: 1;
|
|
|
+ // // overflow: hidden;
|
|
|
+ // // overflow-y: auto;
|
|
|
+ // // }
|
|
|
</style>
|