|
@@ -160,23 +160,23 @@
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="审批状态" align="center" prop="approveStatus" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.pssr_approve_status" :value="scope.row.approveStatus" :show-type="getTagType(scope.row.approveStatus)"/>
|
|
|
+ <dict-tag :options="dict.type.pssr_approve_status" :value="scope.row.approveStatus" :show-type="getTagType(scope.row.approveStatus)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="位号/管线号" align="center" prop="tagNo" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="设备名称" align="center" prop="equipmentName" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="PI&D图号" align="center" prop="pidNo" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="检修内容" align="center" prop="workDes" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="完成状态" align="center" prop="completionStatus" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="确认人" align="center" prop="confirmerName" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="确认时间" align="center" prop="completionDate" >
|
|
|
+ <el-table-column label="位号/管线号" align="center" prop="tagNo" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="设备名称" align="center" prop="equipmentName" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="PI&D图号" align="center" prop="pidNo" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="检修内容" align="center" prop="workDes" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="完成状态" align="center" prop="completionStatus" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="确认人" align="center" prop="confirmerName" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="确认时间" align="center" prop="completionDate" width="180" >
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.completionDate, '{y}-{m}-{d}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="驳回原因" align="center" prop="reason" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column label="操作" align="center" v-if="isApprove==0"
|
|
|
+ <el-table-column label="驳回原因" align="center" prop="reason" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true" width="180"/>
|
|
|
+ <el-table-column label="操作" align="center" v-if="isApprove==0" width="200"
|
|
|
class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -186,6 +186,14 @@
|
|
|
|
|
|
@click="handleDocP(scope.row)"
|
|
|
>附件({{scope.row.fileNum}})
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ v-hasPermi="['pssr:file:specialEdit']"
|
|
|
+ icon="el-icon-folder"
|
|
|
+ @click="handleDocSpecial(scope.row)"
|
|
|
+ >附件(管)({{scope.row.fileNum}})
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -790,9 +798,16 @@ export default {
|
|
|
this.$refs.upload.submit();
|
|
|
},
|
|
|
/** 报告附件按钮操作 */
|
|
|
+ handleDocSpecial(row) {
|
|
|
+ this.doc_p.queryParams.itemId = row.id
|
|
|
+ this.doc_p.visible = true;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.pssrFile.init(this.subId, this.doc_p.queryParams.forShort, row.id, row.fileList)
|
|
|
+ })
|
|
|
+ },
|
|
|
handleDocP(row) {
|
|
|
this.doc_p.queryParams.itemId = row.id
|
|
|
- if (row.approveStatus == 0) {
|
|
|
+ if (row.approveStatus != 2) {
|
|
|
this.doc_p.visible = true;
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.pssrFile.init(this.subId, this.doc_p.queryParams.forShort, row.id, row.fileList)
|