|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<!-- 搜索条件 -->
|
|
|
- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
+ <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
|
|
|
<el-form-item label="SAI类型" prop="saiType">
|
|
|
<el-form-item prop="saiType">
|
|
|
<el-select
|
|
|
@@ -13,6 +13,14 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="TPM状态" prop="tpmStatus">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.tpmStatus"
|
|
|
+ placeholder="请选择TPM状态">
|
|
|
+ <el-option key="未完成" label="未完成" value="未完成"></el-option>
|
|
|
+ <el-option key="已完成" label="已完成" value="已完成"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="登记人部门" prop="applicantDept">
|
|
|
<el-form-item prop="applicantDept">
|
|
|
<el-select
|
|
|
@@ -111,12 +119,8 @@
|
|
|
multiple
|
|
|
v-model="queryParams.workArea"
|
|
|
placeholder="请选择片区">
|
|
|
- <el-option
|
|
|
- v-for="dict in workAreaList"
|
|
|
- :key="dict"
|
|
|
- :label="dict"
|
|
|
- :value="dict"
|
|
|
- ></el-option>
|
|
|
+ <el-option key="EOEG" label="EOEG" value="EOEG"></el-option>
|
|
|
+ <el-option key="NIS" label="NIS" value="NIS"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
@@ -188,11 +192,17 @@
|
|
|
<el-table v-loading="loading" :data="applyList" @selection-change="handleSelectionChange" :height="clientHeight" border>
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="SAI类型" align="center" prop="saiType" :show-overflow-tooltip="true" width="80"/>
|
|
|
+ <el-table-column label="TPM状态" align="center" prop="tpmStatus" :show-overflow-tooltip="true" width="80">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.saiType=='TPM'">{{scope.row.tpmStatus}}</span>
|
|
|
+ <span v-if="scope.row.saiType=='SAI'">/</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="问题描述" align="center" prop="description" :show-overflow-tooltip="true" width="200"/>
|
|
|
<el-table-column label="片区" align="center" prop="workArea" :show-overflow-tooltip="true">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.saiType=='TPM'">/</span>
|
|
|
- <span v-if="scope.row.saiType=='SAI'">scope.row.workArea</span>
|
|
|
+ <span v-if="scope.row.saiType=='SAI'">{{scope.row.workArea}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="申请状态" align="center" prop="applyStatus" :show-overflow-tooltip="true">
|
|
|
@@ -249,25 +259,15 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <!-- 申请已提交操作 -->
|
|
|
- <!-- 申请状态为进行中/待验收 -->
|
|
|
- <!-- 当前登录用户为张力飞 -->
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- @click="handleDelay(scope.row)"
|
|
|
- v-if="(scope.row.applyStatus == 2 || scope.row.applyStatus == 3)
|
|
|
- && loginStaffInfo.userId == '20276'"
|
|
|
- >延期</el-button>
|
|
|
<!-- 申请状态为待评估/进行中/待验收 -->
|
|
|
- <!-- 当前登录用户为处理人(之一)或张力飞 -->
|
|
|
+ <!-- 当前登录用户为处理人(之一) -->
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
@click="handleDetail(scope.row)"
|
|
|
icon="el-icon-edit-outline"
|
|
|
v-if="(scope.row.applyStatus == 1 || scope.row.applyStatus == 2 || scope.row.applyStatus == 3)
|
|
|
- && ((scope.row.handler.indexOf(loginStaffInfo.userId) != -1) || loginStaffInfo.userId == '20276')"
|
|
|
+ && ((scope.row.handler.indexOf(loginStaffInfo.userId) != -1))"
|
|
|
>处理</el-button>
|
|
|
<!-- 申请状态为已完成/已中止-->
|
|
|
<el-button
|
|
|
@@ -283,24 +283,6 @@
|
|
|
@click="processImg(scope.row.processId)"
|
|
|
v-if="scope.row.applyStatus != 0"
|
|
|
>{{ $t('流程图') }}</el-button>
|
|
|
- <!-- 申请未提交操作 -->
|
|
|
- <!-- 申请状态为未提交 -->
|
|
|
- <!-- 当前登录用户为处理人(之一) -->
|
|
|
- <span v-if="scope.row.applyStatus == 0 && scope.row.handler.indexOf(loginStaffInfo.userId) != -1">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- @click="handleSubmit(scope.row)"
|
|
|
- v-hasPermi="['production:eoegapply:edit']"
|
|
|
- icon="el-icon-s-claim"
|
|
|
- >提交申请</el-button>
|
|
|
- <!--<el-button-->
|
|
|
- <!--size="mini"-->
|
|
|
- <!--type="text"-->
|
|
|
- <!--icon="el-icon-document"-->
|
|
|
- <!--@click="handleDoc(scope.row)"-->
|
|
|
- <!-->上传附件</el-button>-->
|
|
|
- </span>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
@@ -315,19 +297,6 @@
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['production:eoegapply:remove']"
|
|
|
>删除</el-button>
|
|
|
- <span v-if="(scope.row.applyStatus == 1
|
|
|
- || scope.row.applyStatus == 2
|
|
|
- || scope.row.applyStatus == 3
|
|
|
- || scope.row.applyStatus == 4)
|
|
|
- && (loginStaffInfo.isMonitor || loginStaffInfo.userId == '20276')">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdate2(scope.row)"
|
|
|
- v-hasPermi="['production:eoegapply:edit']"
|
|
|
- >修改</el-button>
|
|
|
- </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -343,7 +312,7 @@
|
|
|
<el-dialog :close-on-click-modal="false" :title="title" :visible.sync="open" width="60%" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="0px">
|
|
|
<el-descriptions title="" :column="3" border>
|
|
|
- <el-descriptions-item label="SAI类型" :span="3">
|
|
|
+ <el-descriptions-item label="SAI类型" :span="1">
|
|
|
<el-form-item prop="saiType">
|
|
|
<el-select
|
|
|
v-model="form.saiType"
|
|
|
@@ -353,6 +322,16 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="TPM状态" :span="2" v-if="form.saiType == 'TPM'">
|
|
|
+ <el-form-item prop="tpmStatus">
|
|
|
+ <el-select
|
|
|
+ v-model="form.tpmStatus"
|
|
|
+ placeholder="请选择TPM状态">
|
|
|
+ <el-option key="未完成" label="未完成" value="未完成"></el-option>
|
|
|
+ <el-option key="已完成" label="已完成" value="已完成"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-descriptions-item>
|
|
|
<el-descriptions-item label="登记人部门">
|
|
|
<el-form-item prop="applicantDept">
|
|
|
<el-select
|
|
|
@@ -426,7 +405,7 @@
|
|
|
</span>
|
|
|
</el-form-item>
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item label="SAI类别" :span="1" v-if="form.saiType == 'SAI'">
|
|
|
+ <el-descriptions-item label="SAI类别" :span="2" v-if="form.saiType == 'SAI'">
|
|
|
<el-form-item prop="category">
|
|
|
<el-select
|
|
|
@change="handleSaiCategoryChange"
|
|
|
@@ -443,7 +422,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item label="片区" :span="1" v-if="form.saiType == 'SAI'">
|
|
|
+ <el-descriptions-item label="片区" :span="1" v-if="form.saiType == 'SAI' || (form.saiType == 'TPM' && form.tpmStatus == '未完成')">
|
|
|
<el-form-item prop="workArea">
|
|
|
<el-select
|
|
|
@change="handleSaiCategoryChange"
|
|
|
@@ -451,11 +430,24 @@
|
|
|
clearable
|
|
|
v-model="form.workArea"
|
|
|
placeholder="请选择片区">
|
|
|
+ <el-option key="EOEG" label="EOEG" value="EOEG"></el-option>
|
|
|
+ <el-option key="NIS" label="NIS" value="NIS"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="整改负责人" :span="2" v-if="form.saiType == 'SAI' || (form.saiType == 'TPM' && form.tpmStatus == '未完成')">
|
|
|
+ <el-form-item prop="executor">
|
|
|
+ <el-select
|
|
|
+ filterable
|
|
|
+ :disabled="assessDisabled"
|
|
|
+ clearable
|
|
|
+ v-model="form.executor"
|
|
|
+ placeholder="请选择整改负责人">
|
|
|
<el-option
|
|
|
- v-for="dict in workAreaList"
|
|
|
- :key="dict"
|
|
|
- :label="dict"
|
|
|
- :value="dict"
|
|
|
+ v-for="dict in executorOptions"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -560,7 +552,8 @@
|
|
|
</el-descriptions>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button v-if="form.saiType == 'TPM'" type="primary" @click="submitForm">保 存 TPM</el-button>
|
|
|
+ <el-button v-if="form.saiType == 'TPM' && form.tpmStatus == '已完成'" type="primary" @click="submitForm">保 存 TPM</el-button>
|
|
|
+ <el-button v-if="form.saiType == 'TPM' && form.tpmStatus == '未完成'" type="primary" @click="handleSaveAndSubmit">提 交 TPM</el-button>
|
|
|
<el-button v-if="form.saiType == 'SAI'" type="primary" @click="handleSaveAndSubmit" :disabled="submitDisabled">提 交 SAI</el-button>
|
|
|
<el-button v-if="form.saiType == 'SAI'" @click="submitForm" :disabled="submitDisabled">保 存 SAI</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
@@ -971,14 +964,14 @@ export default {
|
|
|
// 设置上传的请求头部
|
|
|
headers: { Authorization: "Bearer " + getToken() },
|
|
|
// 上传的地址
|
|
|
- url: process.env.VUE_APP_BASE_API + "/production/saiFile/uploadFile",
|
|
|
+ url: process.env.VUE_APP_BASE_API + "/production/eoegSaiFile/uploadFile",
|
|
|
commonfileList: null,
|
|
|
commonfileListApply: null,
|
|
|
queryParams: {
|
|
|
pId: null,
|
|
|
- pType: 'saiApply'
|
|
|
+ pType: 'eoegSaiApply'
|
|
|
},
|
|
|
- pType: 'saiApply',
|
|
|
+ pType: 'eoegSaiApply',
|
|
|
pId: null
|
|
|
},
|
|
|
// pdf文件参数
|