|
@@ -78,7 +78,6 @@
|
|
|
>
|
|
|
<el-form-item label="尽调名称" prop="investigateName">
|
|
|
<el-input
|
|
|
- :disabled="dueDiligenceType === '3'"
|
|
|
v-model="dueForm.investigateName"
|
|
|
placeholder="请输入尽调名称"
|
|
|
/>
|
|
@@ -90,7 +89,6 @@
|
|
|
<div
|
|
|
class="el-input__inner inputSimulation"
|
|
|
@click="handleSelectPeople"
|
|
|
- :class="{ show_disabled: dueDiligenceType === '3' }"
|
|
|
>
|
|
|
{{
|
|
|
dueForm.investigatePerson
|
|
@@ -101,7 +99,6 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="尽调费用(元)" prop="investigateCost">
|
|
|
<el-input
|
|
|
- :disabled="dueDiligenceType === '3'"
|
|
|
v-model="dueForm.investigateCost"
|
|
|
placeholder="请输入尽调费用"
|
|
|
onkeyup="value=value.replace(/[^0-9.]/g,'').replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3').replace(/-/g, '')"
|
|
@@ -109,7 +106,6 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="文件" prop="file" class="special-el-form-item">
|
|
|
<fileItem
|
|
|
- :class="{ show_disabled: dueDiligenceType === '3' }"
|
|
|
ref="fileItems"
|
|
|
:id="dueForm.id"
|
|
|
@getFileList="getFileList"
|
|
@@ -121,7 +117,6 @@
|
|
|
class="special-el-form-item"
|
|
|
>
|
|
|
<el-input
|
|
|
- :disabled="dueDiligenceType === '3'"
|
|
|
rows="4"
|
|
|
v-model="dueForm.describe"
|
|
|
type="textarea"
|
|
@@ -134,7 +129,6 @@
|
|
|
class="special-el-form-item"
|
|
|
>
|
|
|
<el-input
|
|
|
- :disabled="dueDiligenceType === '3'"
|
|
|
rows="4"
|
|
|
type="textarea"
|
|
|
v-model="dueForm.remark"
|
|
@@ -311,7 +305,7 @@
|
|
|
<script>
|
|
|
import {
|
|
|
getInvestigatelist,
|
|
|
- getlistProjectPoolId,
|
|
|
+ getInvestigateById,
|
|
|
delInvestigate,
|
|
|
updateInvestigate,
|
|
|
addInvestigatePerson,
|
|
@@ -441,7 +435,12 @@ export default {
|
|
|
/** 查询文件资料列表 */
|
|
|
getList() {
|
|
|
// this.loading = true;
|
|
|
- getInvestigatelist(this.projectId).then((response) => {
|
|
|
+ let queryParams = {
|
|
|
+ orderByColumn: "createTime",
|
|
|
+ isAsc: "desc",
|
|
|
+ projectPoolId: this.projectId,
|
|
|
+ };
|
|
|
+ getInvestigatelist(queryParams).then((response) => {
|
|
|
this.dueList = response.rows;
|
|
|
this.total = response.total;
|
|
|
// this.loading = false;
|
|
@@ -473,14 +472,13 @@ export default {
|
|
|
handleUpdate(row) {
|
|
|
let that = this;
|
|
|
this.resetDueForm();
|
|
|
- const id = row.projectPoolId || row.id;
|
|
|
- getlistProjectPoolId(id).then((response) => {
|
|
|
- if (response.tProjectInvestigate) {
|
|
|
- this.dueForm = response.tProjectInvestigate;
|
|
|
+ const id = row.id;
|
|
|
+ getInvestigateById(id).then((response) => {
|
|
|
+ if (response.data) {
|
|
|
+ this.dueForm = response.data;
|
|
|
this.dueForm.projectName = this.projectName;
|
|
|
- this.selectValues = response.tProjectInvestigate.investigatePersonId;
|
|
|
- this.selectNameValues =
|
|
|
- response.tProjectInvestigate.investigatePerson;
|
|
|
+ this.selectValues = response.data.investigatePersonId;
|
|
|
+ this.selectNameValues = response.data.investigatePerson;
|
|
|
this.dueDiligenceTit = "修改尽调申请";
|
|
|
this.dueDiligenceOpen = true;
|
|
|
setTimeout(() => {
|
|
@@ -602,10 +600,10 @@ export default {
|
|
|
this.$refs["dueForm"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.dueForm.listFile = this.fileList;
|
|
|
- this.dueForm.investigateCost = this.dueForm.investigateCost.replace(
|
|
|
- /-/g,
|
|
|
- ""
|
|
|
- );
|
|
|
+ this.dueForm.investigateCost = this.dueForm.investigateCost
|
|
|
+ .replace(/[^0-9.]/g, "")
|
|
|
+ .replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")
|
|
|
+ .replace(/-/g, "");
|
|
|
if (this.dueForm.id != null) {
|
|
|
updateInvestigate(this.dueForm).then((response) => {
|
|
|
this.$modal.msgSuccess("修改成功");
|