|
@@ -195,11 +195,16 @@
|
|
|
<el-form-item label="会议主题" prop="meetingTheme">
|
|
|
<el-input v-model="form.meetingTheme" placeholder="请输入会议主题" />
|
|
|
</el-form-item>
|
|
|
+
|
|
|
<!-- <el-form-item label="会议编号" prop="meetingCode">
|
|
|
<el-input v-model="form.meetingCode" placeholder="请输入会议编号" />
|
|
|
</el-form-item> -->
|
|
|
<el-form-item label="会议类别" prop="meetingType">
|
|
|
- <el-select v-model="form.meetingType" placeholder="请选择会议类别">
|
|
|
+ <el-select
|
|
|
+ v-model="form.meetingType"
|
|
|
+ placeholder="请选择会议类别"
|
|
|
+ :disabled="pageType === '1'"
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.meeting_type"
|
|
|
:key="dict.value"
|
|
@@ -208,10 +213,18 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="项目名称" prop="projectName">
|
|
|
+
|
|
|
+ <el-form-item
|
|
|
+ label="项目名称"
|
|
|
+ prop="projectName"
|
|
|
+ :rules="[
|
|
|
+ { required: verifyProjectName, trigger: 'blur', message: '请选择' },
|
|
|
+ ]"
|
|
|
+ >
|
|
|
<div
|
|
|
class="el-input__inner inputSimulation"
|
|
|
@click="handleProjectItem"
|
|
|
+ :class="{ show_disabled: pageType === '1' }"
|
|
|
>
|
|
|
{{ form.projectName ? form.projectName : "请选择 " }}
|
|
|
</div>
|
|
@@ -230,6 +243,16 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <!-- <el-form-item label="组别" prop="projectGroup">
|
|
|
+ <el-select v-model="form.projectGroup" disabled placeholder="">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.project_group"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item label="会议开始时间" prop="startTime">
|
|
|
<el-date-picker
|
|
|
clearable
|
|
@@ -315,10 +338,30 @@ export default {
|
|
|
default: "1", //1=显示全部列表 2=显示某项目下的详情列表
|
|
|
},
|
|
|
},
|
|
|
- dicts: ["meeting_type", "project_stage"],
|
|
|
+ dicts: ["meeting_type", "project_stage", "project_group"],
|
|
|
components: { projectItem, selecDept, fileItem },
|
|
|
+ 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 {
|
|
|
+ this.verifyProjectName = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ open: function (newValue, oldValue) {
|
|
|
+ if (newValue === false) {
|
|
|
+ this.queryParams.projectPoolId = null;
|
|
|
+ this.meetingType = null;
|
|
|
+ this.pageType = null;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
+ pageType: null,
|
|
|
+ meetingType: null,
|
|
|
+ verifyProjectName: false,
|
|
|
fileList: [],
|
|
|
showProjectItem: false,
|
|
|
deptId: "",
|
|
@@ -359,6 +402,7 @@ export default {
|
|
|
projectPoolId: null,
|
|
|
projectName: null,
|
|
|
projectStage: null,
|
|
|
+ projectGroup: null,
|
|
|
startTime: null,
|
|
|
endTime: null,
|
|
|
place: null,
|
|
@@ -369,13 +413,14 @@ export default {
|
|
|
createTime: null,
|
|
|
updateBy: null,
|
|
|
updateTime: null,
|
|
|
+ projectGroup: null,
|
|
|
},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
meetingTheme: [{ required: true, trigger: "blur", message: "请输入" }],
|
|
|
meetingType: [{ required: true, trigger: "change", message: "请选择" }],
|
|
|
- // projectPoolId: [{ required: true, trigger: "blur", message: "请选择" }],
|
|
|
- projectName: [{ required: true, trigger: "blur", message: "请选择" }],
|
|
|
+ // projectGroup: [{ required: true, trigger: "change", message: "请选择" }],
|
|
|
+ // projectName: [{ required: true, trigger: "blur", message: "请选择" }],
|
|
|
startTime: [{ required: true, trigger: "change", message: "请选择" }],
|
|
|
endTime: [{ required: true, trigger: "blur", message: "请选择" }],
|
|
|
place: [{ required: true, trigger: "blur", message: "请输入" }],
|
|
@@ -385,6 +430,19 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ // 查询该id下的列表信息
|
|
|
+ if (this.$route.query.id) {
|
|
|
+ this.queryParams.projectPoolId = this.$route.query.id;
|
|
|
+ }
|
|
|
+ // 会议类型
|
|
|
+ if (this.$route.query.meetingType) {
|
|
|
+ this.meetingType = this.$route.query.meetingType;
|
|
|
+ }
|
|
|
+ // 直接弹出新增
|
|
|
+ if (this.$route.query.type === "1") {
|
|
|
+ this.pageType = this.$route.query.type;
|
|
|
+ this.handleAdd();
|
|
|
+ }
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
@@ -419,6 +477,7 @@ export default {
|
|
|
this.form.projectPoolId = info[0].id;
|
|
|
this.form.projectName = info[0].projectName;
|
|
|
this.form.projectStage = info[0].projectStage;
|
|
|
+ this.form.projectGroup = info[0].projectGroup;
|
|
|
this.form.projectState = info[0].projectState;
|
|
|
console.log("this.form=", this.form);
|
|
|
},
|
|
@@ -450,6 +509,7 @@ export default {
|
|
|
projectPoolId: null,
|
|
|
projectName: null,
|
|
|
projectStage: null,
|
|
|
+ projectGroup: null,
|
|
|
startTime: null,
|
|
|
endTime: null,
|
|
|
place: null,
|
|
@@ -460,6 +520,7 @@ export default {
|
|
|
createTime: null,
|
|
|
updateBy: null,
|
|
|
updateTime: null,
|
|
|
+ projectGroup: null,
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -481,8 +542,16 @@ export default {
|
|
|
},
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
- let that= this;
|
|
|
+ let that = this;
|
|
|
this.reset();
|
|
|
+ // 直接绑定好项目
|
|
|
+ if (this.pageType === "1") {
|
|
|
+ let projectItemMessage = this.$store.getters.projectItemMessage;
|
|
|
+ this.form.projectPoolId = projectItemMessage.id;
|
|
|
+ this.form.projectName = projectItemMessage.projectName;
|
|
|
+ this.form.projectStage = projectItemMessage.projectStage;
|
|
|
+ this.form.meetingType = this.meetingType;
|
|
|
+ }
|
|
|
this.open = true;
|
|
|
this.title = "添加会议记录";
|
|
|
setTimeout(() => {
|
|
@@ -497,9 +566,9 @@ export default {
|
|
|
this.form = response.data;
|
|
|
this.form.projectName = response.data.tProjectPool.projectName;
|
|
|
this.form.projectStage = response.data.tProjectPool.projectStage;
|
|
|
+ this.form.projectGroup = response.data.tProjectPool.projectGroup;
|
|
|
this.open = true;
|
|
|
this.title = "修改会议记录";
|
|
|
- this.$refs.fileItems.getListFileBusinessId(id);
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|