|
|
@ -137,8 +137,7 @@ |
|
|
|
<el-button v-if="scope.row.shebeizhongleidaima === '2000' && scope.row.jianyanleibie === 'ZJ'" v-show="scope.row.jilubianhao" type="success" size="mini" icon="el-icon-view" title="预览记录" circle @click="showZJPreviewJudge(scope.row)" /> |
|
|
|
<el-button v-else v-show="scope.row.jilubianhao" type="success" size="mini" icon="el-icon-view" title="预览 原始记录" circle @click="common.viewYsjl(scope.row.id, 'YSJL')" /> |
|
|
|
<el-button type="primary" size="mini" icon="el-icon-view" title="预览 报告" circle @click="common.viewYsjl(scope.row.id, 'JYBG')" /> |
|
|
|
<el-button v-show="scope.row.shebeizhongleidaima === '2000' && scope.row.jianyanleibie === 'ZJ'" type="primary" size="mini" circle icon="el-icon-scissors" title="绘制驳回文件" @click="showDrawCanvas(scope.row)" /> |
|
|
|
<el-button size="mini" type="info" icon="el-icon-message" title="查看驳回意见" circle @click="viewAllRejection(scope.row.id)" /> |
|
|
|
<el-button size="mini" type="info" icon="el-icon-message" title="查看驳回意见" circle @click="viewAllRejection(scope.row.renwuId)" /> |
|
|
|
<el-button v-show="scope.row.shebeizhongleidaima === '2000' && scope.row.jianyanleibie === 'ZJ'" type="info" size="mini" circle icon="el-icon-info" title="查看相关鉴证" @click="showVerification(scope.row.renwuId,false)" /> |
|
|
|
<!-- 锅炉制造 并且 当前报告的检验人员中包含当前用户 才显示该按钮 --> |
|
|
|
<el-button v-if="scope.row.shebeizhongleidaima === '1000' && scope.row.jianyanleibie === 'ZJ' && scope.row.jianyanrenyuan.split(',').indexOf(String($store.getters.userId)) !== -1" type="info" size="mini" circle title="收费信息" @click="showSfInfo(scope.row)"> |
|
|
@ -284,11 +283,11 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="驳回环节:" required> |
|
|
|
<el-select v-model="bohuiForm.flowstatus" placeholder="请选择"> |
|
|
|
<el-option v-if="str==2" label="起草环节" value="1" /> |
|
|
|
<el-option v-if="str==3" label="审核环节" value="1" /> |
|
|
|
<el-option v-if="flowstatus === 2 || flowstatus === 3" label="起草环节" value="1" /> |
|
|
|
<el-option v-if="flowstatus === 3" label="审核环节" value="2" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="上传驳回附件:"> |
|
|
|
<!-- <el-form-item label="上传驳回附件:"> |
|
|
|
<span style="color: #dd6161">多张图片可合成一份pdf文件进行上传</span> |
|
|
|
<el-upload |
|
|
|
action="" |
|
|
@ -307,7 +306,7 @@ |
|
|
|
点击上传 |
|
|
|
</el-button> |
|
|
|
</el-upload> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item>--> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogBohuiVisible = false"> |
|
|
@ -321,41 +320,18 @@ |
|
|
|
|
|
|
|
<!-- 驳回意见 --> |
|
|
|
<el-dialog :visible.sync="dialogBohuiyijianVisible" :modal-append-to-body="false" title="驳回意见" width="50%"> |
|
|
|
<el-form> |
|
|
|
<el-form-item> |
|
|
|
<span class="radio-group-label">绘制文件:</span> |
|
|
|
<el-button type="primary" size="small" icon="el-icon-view" @click="rejectPicture('YSJL')"> |
|
|
|
原始记录 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" size="small" icon="el-icon-view" @click="rejectPicture('JYBG')"> |
|
|
|
报 告 |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table :data="infoNotes"> |
|
|
|
<el-table-column align="center" label="驳回人" prop="infoSend" /> |
|
|
|
<el-table-column :formatter="formatter.getChineseName" align="center" label="驳回人" prop="infoSend" /> |
|
|
|
<el-table-column align="center" label="驳回意见" prop="infoNotes" /> |
|
|
|
<el-table-column align="center" label="驳回时间" prop="createTime" /> |
|
|
|
<el-table-column align="center" label="驳回附件" width="120"> |
|
|
|
<!-- <el-table-column align="center" label="驳回附件" width="120"> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<el-button type="primary" size="small" circle icon="el-icon-view" title="预览" @click="common.viewReject(row.id, row.fileName)" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column>--> |
|
|
|
</el-table> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!--选择绘制PDF--> |
|
|
|
<el-dialog :visible.sync="dialogDrawCanvasVisible" :modal-append-to-body="appendToBody" title="选择绘制驳回文件" width="16%"> |
|
|
|
<el-form style="width: 200px;"> |
|
|
|
<el-button type="primary" plain size="small" icon="el-icon-search" @click="drawCanvas('YSJL')"> |
|
|
|
原始记录 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" plain size="small" icon="el-icon-search" @click="drawCanvas('JYBG')"> |
|
|
|
报 告 |
|
|
|
</el-button> |
|
|
|
</el-form> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!--选择预览记录文件(制造监检压力容器)--> |
|
|
|
<el-dialog :visible.sync="dialogZJPreviewVisible" :modal-append-to-body="appendToBody" title="选择预览记录文件" width="20%"> |
|
|
|
<el-form> |
|
|
@ -447,7 +423,7 @@ export default { |
|
|
|
modelId: '', |
|
|
|
currentRenwuId: 0, |
|
|
|
jylbList: [], |
|
|
|
str: '', |
|
|
|
flowstatus: '', |
|
|
|
statusList: [ |
|
|
|
{ |
|
|
|
value: 1, |
|
|
@ -681,20 +657,17 @@ export default { |
|
|
|
} |
|
|
|
this.ysjlId = [] |
|
|
|
const arr = [] |
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
|
if (this.multipleSelection.length > 1) { |
|
|
|
if (this.multipleSelection[i].flowstatus !== this.multipleSelection[i + 1].flowstatus) { |
|
|
|
this.$message('选择的驳回数据状态请保持一致') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (this.multipleSelection[i].flowstatus !== 1) { |
|
|
|
arr.push(this.multipleSelection[i].id) |
|
|
|
this.str = this.multipleSelection[i].flowstatus |
|
|
|
} else { |
|
|
|
this.flowstatus = this.multipleSelection[0].flowstatus |
|
|
|
if (this.flowstatus === 1) { |
|
|
|
this.$message('存在未流转报告。') |
|
|
|
return false |
|
|
|
} |
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
|
|
if (this.multipleSelection[i].flowstatus !== this.flowstatus) { |
|
|
|
this.$message('选择的驳回数据环节请保持一致') |
|
|
|
} |
|
|
|
arr.push(this.multipleSelection[0].id) |
|
|
|
} |
|
|
|
this.ysjlId = arr |
|
|
|
if (this.ysjlId.length) { |
|
|
@ -1329,18 +1302,17 @@ export default { |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 根据报告ID查看驳回原因 |
|
|
|
* @param ysjlId |
|
|
|
* @param renwuId |
|
|
|
*/ |
|
|
|
viewAllRejection(ysjlId) { |
|
|
|
viewAllRejection(renwuId) { |
|
|
|
this.api({ |
|
|
|
url: '/taskinfo/viewAllRejection', |
|
|
|
url: '/taskinfo/viewRejection', |
|
|
|
method: 'get', |
|
|
|
params: { |
|
|
|
ysjlId: ysjlId |
|
|
|
renwuId: renwuId |
|
|
|
} |
|
|
|
}).then(data => { |
|
|
|
this.infoNotes = data |
|
|
|
this.ysjlId = ysjlId |
|
|
|
if (!this.infoNotes.length) { |
|
|
|
this.$alert('暂无驳回意见!', '驳回意见', { |
|
|
|
confirmButtonText: '关闭' |
|
|
|