|
@@ -1,15 +1,5 @@
|
|
|
<template >
|
|
|
<div class="app-container">
|
|
|
- <!-- 顶部工具栏 -->
|
|
|
- <!--<el-row :gutter="10">-->
|
|
|
- <!--<div class="top-right-btn">-->
|
|
|
- <!--<el-row>-->
|
|
|
- <!--<el-tooltip effect="dark" :content="tagsView.refresh" placement="top">-->
|
|
|
- <!--<el-button size="mini" circle icon="el-icon-refresh" @click="getList()" />-->
|
|
|
- <!--</el-tooltip>-->
|
|
|
- <!--</el-row>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</el-row>-->
|
|
|
<el-table v-loading="loading" :data="approvedangerList" @selection-change="handleSelectionChange" :height="clientHeight" border>
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="流程ID" align="center" prop="processId" :show-overflow-tooltip="true"/>
|
|
@@ -34,7 +24,6 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
-
|
|
|
<pagination
|
|
|
v-show="total>0"
|
|
|
:total="total"
|
|
@@ -42,139 +31,30 @@
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
-
|
|
|
- <!--<!– 弹窗, 新增 / 修改 –>-->
|
|
|
- <!--<div v-if="addOrUpdateVisible">-->
|
|
|
- <!--<el-dialog :close-on-click-modal="false" v-dialogDrag :visible.sync="addOrUpdateVisible" :destroy-on-close="true">-->
|
|
|
- <!--<add-or-update v-if="this.infoprocessName === ($t('重大隐患')+' '+ $t('审批流程') )|| this.infoprocessName === ($t('普通隐患')+' ' + $t('审批流程') )" :info="approveInfo"></add-or-update>-->
|
|
|
- <!--<accident v-if="this.infoprocessName === ($t('事件')+ $t('审批流程'))" :info="approveInfo" @recordInfo="approveChange($event)"></accident>-->
|
|
|
- <!--<el-form>-->
|
|
|
- <!--<el-form-item :label="$t('上传措施前照片')" prop="before" v-if="this.infoTaskName === '执行人'">-->
|
|
|
- <!--<el-upload-->
|
|
|
- <!--ref="uploadbefore"-->
|
|
|
- <!--:limit="1"-->
|
|
|
- <!--:headers="uploadbefore.headers"-->
|
|
|
- <!--:action="uploadbefore.url"-->
|
|
|
- <!--:disabled="uploadbefore.isUploading"-->
|
|
|
- <!--:on-progress="handleFileUploadProgressBefore"-->
|
|
|
- <!--:on-success="handleFileSuccessBefore"-->
|
|
|
- <!--:auto-upload="true"-->
|
|
|
- <!--drag-->
|
|
|
- <!-->-->
|
|
|
- <!--<i class="el-icon-upload"></i>-->
|
|
|
- <!--<div class="el-upload__text">-->
|
|
|
- <!--{{ $t('将文件拖到此处,或') }}-->
|
|
|
- <!--<em>{{ $t('点击上传') }}</em>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</el-upload>-->
|
|
|
- <!--</el-form-item>-->
|
|
|
- <!--<el-form-item :label="$t('上传措施后照片')" prop="after" v-if="this.infoTaskName === $t('执行人')">-->
|
|
|
- <!--<el-upload-->
|
|
|
- <!--ref="uploadafter"-->
|
|
|
- <!--:limit="1"-->
|
|
|
- <!--:headers="uploadafter.headers"-->
|
|
|
- <!--:action="uploadafter.url"-->
|
|
|
- <!--:disabled="uploadafter.isUploading"-->
|
|
|
- <!--:on-progress="handleFileUploadProgressAfter"-->
|
|
|
- <!--:on-success="handleFileSuccessAfter"-->
|
|
|
- <!--drag-->
|
|
|
- <!-->-->
|
|
|
- <!--<i class="el-icon-upload"></i>-->
|
|
|
- <!--<div class="el-upload__text">-->
|
|
|
- <!--{{ $t('将文件拖到此处,或') }}-->
|
|
|
- <!--<em>{{ $t('点击上传') }}</em>-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</el-upload>-->
|
|
|
- <!--</el-form-item>-->
|
|
|
- <!--<el-form-item :label="$t('审批意见')" prop="comment">-->
|
|
|
- <!--<el-input v-model="comment" :placeholder="$t('请输入') + $t('审批意见')" maxlength="100" show-word-limit></el-input>-->
|
|
|
- <!--</el-form-item>-->
|
|
|
- <!--</el-form>-->
|
|
|
- <!--<span v-if="this.infoprocessName === ($t('重大隐患')+' ' + $t('审批流程') ) || this.infoprocessName === ($t('普通隐患')+' ' + $t('审批流程') )" slot="footer">-->
|
|
|
- <!--<span v-if="this.infoTaskName === $t('执行人')" class="dialog-footer">-->
|
|
|
- <!--<el-button type="primary" @click="dataFormSubmit(1)">{{ $t('已完成') }}</el-button>-->
|
|
|
- <!--<el-button type="danger" @click="dataFormSubmit(0)">{{ $t('无法执行') }}</el-button>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--<span v-if="this.infoTaskName === $t('验证人')" class="dialog-footer">-->
|
|
|
- <!--<el-button type="primary" @click="dataFormSubmit(1)">{{ $t('通过') }}</el-button>-->
|
|
|
- <!--<el-button type="danger" @click="dataFormSubmit(0)">{{ $t('无效') }}</el-button>-->
|
|
|
- <!--<el-button type="warning" @click="dataFormSubmit(2)">{{ $t('未达标') }}</el-button>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--<span v-if="this.infoTaskName === $t('记录人')" class="dialog-footer">-->
|
|
|
- <!--<el-button type="primary" @click="dataFormSubmit(1)">{{ $t('重新提交') }}</el-button>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--<span v-if="this.infoTaskName === $t('确认')" class="dialog-footer">-->
|
|
|
- <!--<el-button type="primary" @click="dataFormSubmit(1)">{{ $t('确认') }}</el-button>-->
|
|
|
- <!--<el-button type="danger" @click="dataFormSubmit(0)">{{ $t('确认')+' ' + $t('不通过') }}</el-button>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--<span v-if="this.infoprocessName === ($t('事件') + $t('审批流程'))" slot="footer">-->
|
|
|
- <!--<span v-if="this.infoTaskName === $t('记录人')" class="dialog-footer">-->
|
|
|
- <!--<el-button type="primary" @click="dataFormSubmit(1)">{{ $t('提交') }}</el-button>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--</el-dialog>-->
|
|
|
- <!--</div>-->
|
|
|
-
|
|
|
- <!--<add-or-update v-if="specDealVisible" ref="specDeal" @refreshDataList="getList"></add-or-update>-->
|
|
|
- <!--<spec-modify v-if="specModifyDealVisible" ref="specModifyDeal" @refreshDataList="getList"></spec-modify>-->
|
|
|
- <!--<spec-training-plan v-if="specTrainingPlanDealVisible" ref="specTrainingPlanDeal" @refreshDataList="getList"></spec-training-plan>-->
|
|
|
<process-img v-if="processImgVisible" ref="processImg" @refreshDataList="getList"></process-img>
|
|
|
- <!--<intact-resolve v-if="intactResolveVisible" ref="intactResolveDeal" @refreshDataList="getList"></intact-resolve>-->
|
|
|
- <!--<kekao-resolve v-if="kekaoResolveVisible" ref="kekaoResolveDeal" @refreshDataList="getList"></kekao-resolve>-->
|
|
|
- <!--<spec-maintenance v-if="specMaintenanceVisible" ref="specMaintenance" @refreshDataList="getList"></spec-maintenance>-->
|
|
|
- <!--<invoice-detail v-if="invoiceDetailVisible" ref="invoiceDetail" @refreshDataList="getList"></invoice-detail>-->
|
|
|
- <!--<offlinevalve-detail v-if="offlinevalveDetailVisible" ref="offlinevalveDetail" @refreshDataList="getList"></offlinevalve-detail>-->
|
|
|
- <!--<safetychange-detail v-if="safetychangeDetailVisible" ref="safetychangeDetail" @refreshDataList="getList"></safetychange-detail>-->
|
|
|
- <common-detail v-if="commonVisible" ref="commonDetail" @refreshDataList="getList"/>
|
|
|
+ <questionnaire-detail v-if="questionnaireVisible" ref="questionnaireDetail" @refreshDataList="getList"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {getPendinglist, handleApprovedanger} from "@/api/rc/approvedanger";
|
|
|
import ProcessImg from '../processImg/index';
|
|
|
- import {treeselect} from "@/api/system/dept";
|
|
|
- import {getToken} from "@/utils/auth";
|
|
|
- import Treeselect from "@riophae/vue-treeselect";
|
|
|
- import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
- import CommonDetail from "@/views/rc/approve/detail/common-detail";
|
|
|
- // import SpecMaintenance from "@/views/approve/pending/specMaintenance-deal";
|
|
|
- // import KekaoResolve from '../approveDetail/kekao-resolve';
|
|
|
- // import InvoiceDetail from "@/views/approve/approveDetail/invoice-detail";
|
|
|
- // import OfflinevalveDetail from "@/views/approve/approveDetail/offlinevalve-detail";
|
|
|
- // import SafetychangeDetail from "@/views/approve/approveDetail/safetychange-detail";
|
|
|
- // import SaiApplyDetail from "@/views/approve/approveDetail/sai-apply-detail";
|
|
|
- // import AddOrUpdate from './spec-detail';
|
|
|
- // import SpecModify from './specModify-deal';
|
|
|
- // import SpecTrainingPlan from './specTrainingPlan-deal';
|
|
|
- // import IntactResolve from '../approveDetail/intact-resolve';
|
|
|
- // import Accident from '../approveaccidentDetail/index';
|
|
|
+ import {getToken} from "@/utils/auth"
|
|
|
+ import QuestionnaireDetail from "@/views/rc/approve/detail/questionnaire-detail";
|
|
|
|
|
|
export default {
|
|
|
name: "Pending",
|
|
|
components: {
|
|
|
- CommonDetail,
|
|
|
- Treeselect,
|
|
|
ProcessImg,
|
|
|
+ QuestionnaireDetail
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
//弹窗界面是否开启
|
|
|
- addOrUpdateVisible: false,
|
|
|
+ questionnaireVisible: false,
|
|
|
processImgVisible: false,
|
|
|
- specDealVisible: false,
|
|
|
- specModifyDealVisible: false,
|
|
|
- specTrainingPlanDealVisible: false,
|
|
|
- intactResolveVisible:false,
|
|
|
- kekaoResolveVisible:false,
|
|
|
- specMaintenanceVisible: false,
|
|
|
- invoiceDetailVisible:false,
|
|
|
- offlinevalveDetailVisible:false,
|
|
|
- safetychangeDetailVisible:false,
|
|
|
- saiApplyVisible:false,
|
|
|
- commonVisible: false,
|
|
|
// 选中数组
|
|
|
ids: [],
|
|
|
// 非单个禁用
|
|
@@ -273,7 +153,6 @@
|
|
|
this.clientHeight = document.body.clientHeight -200
|
|
|
})
|
|
|
this.getList();
|
|
|
- this.getTreeselect();
|
|
|
this.getDicts("PLANT_DIVIDE").then(response => {
|
|
|
this.plantCodeOptions = response.data;
|
|
|
});
|
|
@@ -288,12 +167,6 @@
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
- /** 查询部门下拉树结构 */
|
|
|
- getTreeselect() {
|
|
|
- treeselect().then(response => {
|
|
|
- this.deptOptions = response.data;
|
|
|
- });
|
|
|
- },
|
|
|
// 装置名称字典翻译
|
|
|
plantCodeFormat(row, column) {
|
|
|
return this.selectDictLabel(this.plantCodeOptions, row.plantCode);
|
|
@@ -334,10 +207,11 @@
|
|
|
},
|
|
|
//操作审批流程
|
|
|
addOrUpdateHandle (row) {
|
|
|
- if (row.processName == "通用审批流程") {
|
|
|
- this.commonVisible = true
|
|
|
+ if (row.processName == "问卷审批流程") {
|
|
|
+ this.title = '处理问卷审批流程';
|
|
|
+ this.questionnaireVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.commonDetail.init(row.obj.memberId, row.taskId, row.processId, row.taskName, 1)
|
|
|
+ this.$refs.questionnaireDetail.init(row.progress, row.taskId, row.processId, row.taskName, 2)
|
|
|
})
|
|
|
}
|
|
|
},
|