|
@@ -1,41 +1,75 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<div v-show="type == 1">
|
|
|
- <el-table border :data="dueList">
|
|
|
+ <el-table border :data="dueList" class="tableWrapper">
|
|
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
|
|
- <el-table-column
|
|
|
- label="尽调名称"
|
|
|
- align="center"
|
|
|
- prop="investigateName"
|
|
|
- />
|
|
|
+ <el-table-column label="尽调名称" align="center" prop="investigateName">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div :title="scope.row.investigateName">
|
|
|
+ {{ scope.row.investigateName }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
<el-table-column
|
|
|
label="尽调人员"
|
|
|
align="center"
|
|
|
prop="investigatePerson"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div :title="scope.row.investigatePerson">
|
|
|
+ {{ scope.row.investigatePerson }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="尽调费用(元)"
|
|
|
align="center"
|
|
|
prop="investigateCost"
|
|
|
- />
|
|
|
- <el-table-column label="描述" align="center" prop="describe" />
|
|
|
- <el-table-column label="备注" align="center" prop="remark" />
|
|
|
- <el-table-column label="创建时间" align="center" prop="createTime" />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div :title="scope.row.investigateCost">
|
|
|
+ {{ scope.row.investigateCost }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="描述" align="center" prop="describe">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div :title="scope.row.describe">
|
|
|
+ {{ scope.row.describe }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="备注" align="center" prop="remark">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div :title="scope.row.remark">
|
|
|
+ {{ scope.row.remark }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="创建时间" align="center" prop="createTime">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div :title="scope.row.createTime">
|
|
|
+ {{ scope.row.createTime }}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
label="操作"
|
|
|
align="center"
|
|
|
class-name="small-padding fixed-width"
|
|
|
- width="220"
|
|
|
+ width="360"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
+ <!--
|
|
|
+ v-show="scope.row.investigatePersonId.indexOf(user.userId) > -1" -->
|
|
|
<el-button
|
|
|
class="custom-blue-color"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-search"
|
|
|
@click="handleLook(scope.row)"
|
|
|
- >查看尽调报告</el-button
|
|
|
+ >查看报告</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
v-show="scope.row.investigatePersonId.indexOf(user.userId) > -1"
|
|
@@ -43,7 +77,16 @@
|
|
|
type="text"
|
|
|
icon="el-icon-upload2"
|
|
|
@click="handleSurvey('3', scope.row, scope.row)"
|
|
|
- >上传尽调报告</el-button
|
|
|
+ >上传报告</el-button
|
|
|
+ >
|
|
|
+ <!-- status 0=进行中 1=完成 -->
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.status === '0'"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-circle-check"
|
|
|
+ @click="handleDuePlan(scope.row)"
|
|
|
+ >完成尽调</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -312,6 +355,7 @@ import {
|
|
|
addInvestigate,
|
|
|
getProjectInvestigateId,
|
|
|
dueAllPeportList,
|
|
|
+ updateStatus,
|
|
|
} from "@/api/invest/pool";
|
|
|
import projectItem from "./projectItem";
|
|
|
import fileItem from "./fileItem";
|
|
@@ -432,7 +476,7 @@ export default {
|
|
|
// getProjectName(projectName) {
|
|
|
// this.projectName = projectName;
|
|
|
// },
|
|
|
- /** 查询文件资料列表 */
|
|
|
+ /** 查询列表 */
|
|
|
getList() {
|
|
|
// this.loading = true;
|
|
|
let queryParams = {
|
|
@@ -443,6 +487,13 @@ export default {
|
|
|
getInvestigatelist(queryParams).then((response) => {
|
|
|
this.dueList = response.rows;
|
|
|
this.total = response.total;
|
|
|
+ // 如果尽调全部完成,才能显示发起尽调申请;
|
|
|
+ let showDueApply = response.rows.every(function (item) {
|
|
|
+ return item.status === "1";
|
|
|
+ });
|
|
|
+ if (showDueApply) {
|
|
|
+ this.$emit("changeShowDueApply", "1");
|
|
|
+ }
|
|
|
// this.loading = false;
|
|
|
});
|
|
|
},
|
|
@@ -468,6 +519,21 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ // 完成尽调
|
|
|
+ handleDuePlan(row) {
|
|
|
+ let that = this;
|
|
|
+ const investigateName = row.investigateName;
|
|
|
+ this.$modal
|
|
|
+ .confirm('是否确认完成"' + investigateName + '"?')
|
|
|
+ .then(function () {
|
|
|
+ return updateStatus(row.id);
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.$modal.msgSuccess("操作成功");
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
// 修改尽调申请
|
|
|
handleUpdate(row) {
|
|
|
let that = this;
|
|
@@ -496,10 +562,18 @@ export default {
|
|
|
|
|
|
// 获取fileList
|
|
|
getFileList(fileList) {
|
|
|
- this.fileList = fileList;
|
|
|
+ if (fileList && fileList.length > 0) {
|
|
|
+ this.fileList = fileList;
|
|
|
+ } else {
|
|
|
+ this.fileList = [];
|
|
|
+ }
|
|
|
},
|
|
|
getreportFileList(fileList) {
|
|
|
- this.reportFileList = fileList;
|
|
|
+ if (fileList && fileList.length > 0) {
|
|
|
+ this.reportFileList = fileList;
|
|
|
+ } else {
|
|
|
+ this.reportFileList = [];
|
|
|
+ }
|
|
|
},
|
|
|
// 用户选中数据
|
|
|
handleUserSelect(selection) {
|
|
@@ -528,6 +602,7 @@ export default {
|
|
|
this.dueDiligenceType = type;
|
|
|
//type 1=发起 2=修改 3=上传
|
|
|
if (type === "1") {
|
|
|
+ this.fileList = [];
|
|
|
this.resetDueForm();
|
|
|
setTimeout(() => {
|
|
|
that.$refs.fileItems.fileList = [];
|
|
@@ -614,6 +689,7 @@ export default {
|
|
|
addInvestigate(this.dueForm).then((response) => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.dueDiligenceOpen = false;
|
|
|
+ this.$emit("changeShowDueApply", "0");
|
|
|
this.getList();
|
|
|
});
|
|
|
}
|