|
|
@@ -711,14 +711,23 @@
|
|
|
<el-form-item
|
|
|
label="项目名称"
|
|
|
prop="projectName"
|
|
|
- class="special-el-form-item"
|
|
|
+ class="special-el-form-item public-input-height-2"
|
|
|
+ :rules="[
|
|
|
+ { required: true, trigger: 'blur', message: '请选择' },
|
|
|
+ ]"
|
|
|
>
|
|
|
- <el-input
|
|
|
- type="textarea"
|
|
|
- rows="2"
|
|
|
- v-model="formLXApply.projectName"
|
|
|
- disabled
|
|
|
- />
|
|
|
+ <div
|
|
|
+ class="el-input__inner inputSimulation"
|
|
|
+ @click="handleProjectItem"
|
|
|
+ :class="{ show_disabled: pageType === '1' }"
|
|
|
+ :title="formLXApply.projectName"
|
|
|
+ >
|
|
|
+ {{ formLXApply.projectName ? formLXApply.projectName : "请选择 " }}
|
|
|
+ </div>
|
|
|
+ <projectItemLX
|
|
|
+ ref="projectItem"
|
|
|
+ @getProjectInfo="getProjectInfo"
|
|
|
+ ></projectItemLX>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item
|
|
|
@@ -799,14 +808,23 @@
|
|
|
<el-form-item
|
|
|
label="项目名称"
|
|
|
prop="projectName"
|
|
|
- class="special-el-form-item"
|
|
|
+ class="special-el-form-item public-input-height-2"
|
|
|
+ :rules="[
|
|
|
+ { required: true, trigger: 'blur', message: '请选择' },
|
|
|
+ ]"
|
|
|
>
|
|
|
- <el-input
|
|
|
- type="textarea"
|
|
|
- rows="2"
|
|
|
- v-model="formTJApply.projectName"
|
|
|
- disabled
|
|
|
- />
|
|
|
+ <div
|
|
|
+ class="el-input__inner inputSimulation"
|
|
|
+ @click="handleProjectItem"
|
|
|
+ :class="{ show_disabled: pageType === '1' }"
|
|
|
+ :title="formTJApply.projectName"
|
|
|
+ >
|
|
|
+ {{ formTJApply.projectName ? formTJApply.projectName : "请选择 " }}
|
|
|
+ </div>
|
|
|
+ <projectItemTJ
|
|
|
+ ref="projectItem"
|
|
|
+ @getProjectInfo="getProjectInfo"
|
|
|
+ ></projectItemTJ>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item
|
|
|
@@ -911,11 +929,15 @@ import {
|
|
|
addMeeting,
|
|
|
updateMeeting,
|
|
|
getCanScoringMeetingId,
|
|
|
+ addApproval,
|
|
|
+ updateApproval,
|
|
|
+ addDecision,
|
|
|
+ updateDecision,
|
|
|
} from "@/api/invest/meeting";
|
|
|
import {approvalStart} from "@/api/project/approval/pool";
|
|
|
-import {decisionStart} from "@/api/project/decision/pool";
|
|
|
-import {terminationStart} from "@/api/project/termination/pool";
|
|
|
import projectItem from "../invest/components/projectItem";
|
|
|
+import projectItemLX from "./approval/projectItem";
|
|
|
+import projectItemTJ from "./decision/projectItem";
|
|
|
import fileItem from "../invest/components/fileItem";
|
|
|
import selecDept from "../invest/components/selecDept";
|
|
|
import selecUser from "../invest/components/selecUser";
|
|
|
@@ -932,9 +954,10 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
dicts: ["meeting_type", "project_stage", "project_group"],
|
|
|
- components: { projectItem, selecDept, fileItem, selecUser },
|
|
|
+ components: { projectItem,projectItemLX, projectItemTJ, selecDept, fileItem, selecUser },
|
|
|
watch: {
|
|
|
"form.meetingType": function (newValue, oldValue) {
|
|
|
+ // console.log(newValue,"this.form.meetingType", this.form.meetingType);
|
|
|
if (this.form.meetingType == "LX" || this.form.meetingType == "TJ") {
|
|
|
this.verifyProjectName = true;
|
|
|
} else {
|
|
|
@@ -1037,6 +1060,7 @@ export default {
|
|
|
createTime: null,
|
|
|
updateBy: null,
|
|
|
updateTime: null,
|
|
|
+ projectGroup: "",
|
|
|
},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
@@ -1305,7 +1329,7 @@ export default {
|
|
|
},
|
|
|
// 展示立项申请弹窗
|
|
|
showLXApplyPop(row) {
|
|
|
- this.resetLXApply(row);
|
|
|
+ // this.resetLXApply(row);
|
|
|
this.fileListLXApply = [];
|
|
|
this.openLXApply = true;
|
|
|
this.titleLXApply = "立项申请";
|
|
|
@@ -1314,8 +1338,8 @@ export default {
|
|
|
}, 200);
|
|
|
},
|
|
|
// 展示投决申请弹窗
|
|
|
- showTJApplyPop(row) {
|
|
|
- this.resetTJApply(row);
|
|
|
+ showTJApplyPop() {
|
|
|
+ // this.resetTJApply(row);
|
|
|
this.fileListLXApply = [];
|
|
|
this.openTJApply = true;
|
|
|
this.titleTJApply = "投决申请";
|
|
|
@@ -1354,17 +1378,10 @@ export default {
|
|
|
// 获取公司信息
|
|
|
getProjectInfo(info) {
|
|
|
if (info.length > 0) {
|
|
|
- //console.log("info=", info);
|
|
|
- this.form.projectPoolId = info[0].id;
|
|
|
- this.form.projectName = info[0].projectName;
|
|
|
- this.form.projectStage = info[0].projectStage;
|
|
|
- this.form.projectState = info[0].projectState;
|
|
|
- if (info[0].tProjectChannel && info[0].tProjectChannel.channelGroup) {
|
|
|
- this.form.projectGroup = info[0].tProjectChannel.channelGroup;
|
|
|
- } else {
|
|
|
- this.form.projectGroup = "";
|
|
|
- }
|
|
|
- this.$refs.form.clearValidate(["projectName"]);
|
|
|
+ this.formLXApply.projectPoolId = info[0].id;
|
|
|
+ this.formLXApply.projectName = info[0].projectName;
|
|
|
+ this.formTJApply.projectPoolId = info[0].id;
|
|
|
+ this.formTJApply.projectName = info[0].projectName;
|
|
|
}
|
|
|
},
|
|
|
//展示人员
|
|
|
@@ -1411,6 +1428,7 @@ export default {
|
|
|
createTime: null,
|
|
|
updateBy: null,
|
|
|
updateTime: null,
|
|
|
+ projectGroup: "",
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
|
@@ -1610,17 +1628,11 @@ export default {
|
|
|
});*/
|
|
|
}
|
|
|
this.formLXApply.flag=flag;
|
|
|
- try {
|
|
|
- approvalStart(this.formLXApply).then((response) => {
|
|
|
- this.$modal.msgSuccess("新增成功");
|
|
|
- this.openLXApply = false;
|
|
|
- this.$emit("getList");
|
|
|
- this.$store.dispatch("getMyTaskApprovalNumber"); //更新代办数量
|
|
|
- });
|
|
|
- } catch (err) {
|
|
|
- // 捕获重复提交错误
|
|
|
- this.$message.error(err.message);
|
|
|
- }
|
|
|
+ approvalStart(this.formLXApply).then((response) => {
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
+ this.openLXApply = false;
|
|
|
+ this.$emit("getList");
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -1643,17 +1655,11 @@ export default {
|
|
|
});
|
|
|
}*/
|
|
|
this.formTJApply.flag=flag;
|
|
|
- try {
|
|
|
- decisionStart(this.formTJApply).then((response) => {
|
|
|
- this.$modal.msgSuccess("新增成功");
|
|
|
- this.openTJApply = false;
|
|
|
- this.$emit("getList");
|
|
|
- this.$store.dispatch("getMyTaskDecisionNumber"); //更新代办数量
|
|
|
- });
|
|
|
- } catch (err) {
|
|
|
- // 捕获重复提交错误
|
|
|
- this.$message.error(err.message);
|
|
|
- }
|
|
|
+ decisionStart(this.formTJApply).then((response) => {
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
+ this.openTJApply = false;
|
|
|
+ this.$emit("getList");
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -1662,17 +1668,11 @@ export default {
|
|
|
this.$refs["formZZApply"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.formZZApply.flag=flag;
|
|
|
- try {
|
|
|
- terminationStart(this.formZZApply).then((response) => {
|
|
|
- this.$modal.msgSuccess("新增成功");
|
|
|
- this.openZZApply = false;
|
|
|
- this.$emit("getList");
|
|
|
- this.$store.dispatch("getMyTaskTerminationNumber"); //更新代办数量
|
|
|
- });
|
|
|
- } catch (err) {
|
|
|
- // 捕获重复提交错误
|
|
|
- this.$message.error(err.message);
|
|
|
- }
|
|
|
+ terminationStart(this.formZZApply).then((response) => {
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
+ this.openZZApply = false;
|
|
|
+ this.$emit("getList");
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
},
|