|
@@ -189,6 +189,14 @@
|
|
|
<el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width" v-if="isApprove==0">
|
|
|
<template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-folder"
|
|
|
+
|
|
|
+ @click="handleDoc(scope.row)"
|
|
|
+ >附件
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
@@ -346,6 +354,11 @@
|
|
|
<el-button @click="upload.open = false">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <!-- 附件对话框 -->
|
|
|
+ <el-dialog v-dialogDrag :close-on-click-modal="false" :visible.sync="doc.open" append-to-body title="现场照片"
|
|
|
+ width="1000px">
|
|
|
+ <el-image v-for="file in doc.fileList" :key="file.id" :src="file.fileUrl" lazy></el-image>
|
|
|
+ </el-dialog>
|
|
|
<!-- 驳回原因对话框 -->
|
|
|
<el-dialog v-dialogDrag :close-on-click-modal="false" :visible.sync="reason.open" append-to-body title="驳回"
|
|
|
width="1000px">
|
|
@@ -387,6 +400,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import {getPssrUser} from "@/api/pssr/aboveall";
|
|
|
import {doApprove} from "@/api/pssr/approve";
|
|
|
import {updateMaterialBatch} from "@/api/pssr/material";
|
|
|
+import {listFile} from "@/api/pssr/file";
|
|
|
|
|
|
export default {
|
|
|
dicts:['pssr_approve_status'],
|
|
@@ -404,6 +418,17 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ doc: {
|
|
|
+ file: "",
|
|
|
+ // 是否显示弹出层(报告附件)
|
|
|
+ open: false,
|
|
|
+ fileList: [],
|
|
|
+ queryParams: {
|
|
|
+ itemId: null,
|
|
|
+ subId: this.subId,
|
|
|
+ forShort: 'sys'
|
|
|
+ },
|
|
|
+ },
|
|
|
userOptions: [],
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
@@ -712,6 +737,21 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ /** 报告附件按钮操作 */
|
|
|
+ handleDoc(row) {
|
|
|
+ this.doc.fileList=[]
|
|
|
+ this.doc.open = true;
|
|
|
+ this.doc.queryParams.itemId = row.id
|
|
|
+ this.getFileList()
|
|
|
+ },
|
|
|
+ getFileList() {
|
|
|
+ listFile(this.doc.queryParams).then(response => {
|
|
|
+ this.doc.fileList = response.rows;
|
|
|
+ this.doc.fileList.forEach(item => {
|
|
|
+ item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|