|
@@ -34,14 +34,14 @@
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
>修改</el-button
|
|
|
>
|
|
|
- <!-- <el-button
|
|
|
+ <el-button
|
|
|
class="custom-red-color"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
>删除</el-button
|
|
|
- > -->
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- 添加或修改尽调申请 -->
|
|
@@ -65,12 +65,9 @@
|
|
|
placeholder="请输入尽调名称"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="项目名称" prop="projectName">
|
|
|
- <el-input
|
|
|
- disabled
|
|
|
- v-model="dueForm.projectName"
|
|
|
- />
|
|
|
- </el-form-item> -->
|
|
|
+ <el-form-item label="项目名称" prop="projectName">
|
|
|
+ <el-input disabled v-model="dueForm.projectName" />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="尽调人员" prop="investigatePerson">
|
|
|
<div
|
|
|
class="el-input__inner inputSimulation"
|
|
@@ -212,28 +209,35 @@
|
|
|
<el-button @click="cancelduePeportForm">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <!--选择人员-->
|
|
|
- <el-dialog
|
|
|
- title="选择人员"
|
|
|
- :visible.sync="userVisible"
|
|
|
- width="60%"
|
|
|
- :show-close="false"
|
|
|
- >
|
|
|
- <flow-user
|
|
|
- :checkType="checkType"
|
|
|
- :selectValues="selectValues"
|
|
|
- @handleUserSelect="handleUserSelect"
|
|
|
- ></flow-user>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="userVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="checkUserComplete">确 定</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
</el-table>
|
|
|
+ <!--选择人员-->
|
|
|
+ <el-dialog
|
|
|
+ title="选择人员"
|
|
|
+ :visible.sync="userVisible"
|
|
|
+ width="80%"
|
|
|
+ :show-close="false"
|
|
|
+ >
|
|
|
+ <flow-user
|
|
|
+ :checkType="checkType"
|
|
|
+ :selectValues="selectValues"
|
|
|
+ @handleUserSelect="handleUserSelect"
|
|
|
+ ></flow-user>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="userVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="checkUserComplete">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { getInvestigatelist, getlistProjectPoolId } from "@/api/invest/pool";
|
|
|
+import {
|
|
|
+ getInvestigatelist,
|
|
|
+ getlistProjectPoolId,
|
|
|
+ delInvestigate,
|
|
|
+ updateInvestigate,
|
|
|
+ addInvestigatePerson,
|
|
|
+ getProjectInvestigateId,
|
|
|
+} from "@/api/invest/pool";
|
|
|
import projectItem from "./projectItem";
|
|
|
import fileItem from "./fileItem";
|
|
|
import selecDept from "./selecDept";
|
|
@@ -244,6 +248,9 @@ export default {
|
|
|
projectId: {
|
|
|
type: String,
|
|
|
},
|
|
|
+ projectName: {
|
|
|
+ type: String,
|
|
|
+ },
|
|
|
},
|
|
|
dicts: ["up_way", "project_stage"],
|
|
|
components: { projectItem, fileItem, selecDept, FlowUser },
|
|
@@ -325,6 +332,14 @@ export default {
|
|
|
dueDiligenceType: "0",
|
|
|
};
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ open: function (newValue, oldValue) {
|
|
|
+ if (newValue === false) {
|
|
|
+ this.selectValues = null;
|
|
|
+ // this.queryParams.projectPoolId = null;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.getList();
|
|
|
},
|
|
@@ -346,6 +361,8 @@ export default {
|
|
|
getlistProjectPoolId(id).then((response) => {
|
|
|
if (response.tProjectInvestigate) {
|
|
|
this.dueForm = response.tProjectInvestigate;
|
|
|
+ this.dueForm.projectName = this.projectName;
|
|
|
+ this.selectValues = response.tProjectInvestigate.investigatePersonId;
|
|
|
this.dueDiligenceTit = "修改尽调申请";
|
|
|
this.dueDiligenceOpen = true;
|
|
|
setTimeout(() => {
|
|
@@ -357,7 +374,7 @@ export default {
|
|
|
/*用户选中赋值*/
|
|
|
checkUserComplete() {
|
|
|
this.userVisible = false;
|
|
|
- this.checkType = "";
|
|
|
+ // this.checkType = "";
|
|
|
},
|
|
|
|
|
|
// 获取fileList
|
|
@@ -469,6 +486,7 @@ export default {
|
|
|
this.dueDiligenceOpen = false;
|
|
|
});
|
|
|
}
|
|
|
+ this.getList();
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -501,11 +519,13 @@ export default {
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
- const idsName = row.fileName ? row.fileName : this.idsName;
|
|
|
+ const investigateName = row.investigateName
|
|
|
+ ? row.investigateName
|
|
|
+ : "此项";
|
|
|
this.$modal
|
|
|
- .confirm('是否确认删除"' + idsName + '"?')
|
|
|
+ .confirm('是否确认删除"' + investigateName + '"?')
|
|
|
.then(function () {
|
|
|
- // return delInformation(ids);
|
|
|
+ return delInvestigate(ids);
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.getList();
|