|
|
@@ -129,24 +129,6 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <!-- <el-col :span="8">-->
|
|
|
- <!-- <!– <el-form-item–>-->
|
|
|
- <!-- <!– label="申请部门"–>-->
|
|
|
- <!-- <!– prop="responsibleDeptId">–>-->
|
|
|
- <!-- <!– <ele-tree-select–>-->
|
|
|
- <!-- <!– :disabled="dialogType=='view'"–>-->
|
|
|
- <!-- <!– clearable–>-->
|
|
|
- <!-- <!– ref="deptRef"–>-->
|
|
|
- <!-- <!– :data="deptTreeList"–>-->
|
|
|
- <!-- <!– v-model="form.responsibleDeptId"–>-->
|
|
|
- <!-- <!– valueKey="id"–>-->
|
|
|
- <!-- <!– labelKey="name"–>-->
|
|
|
- <!-- <!– placeholder="请选择"–>-->
|
|
|
- <!-- <!– @change="changeDeptInfo"–>-->
|
|
|
- <!-- <!– default-expand-all–>-->
|
|
|
- <!-- <!– />–>-->
|
|
|
- <!-- <!– </el-form-item>–>-->
|
|
|
- <!-- </el-col>-->
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
@@ -268,8 +250,11 @@
|
|
|
export default {
|
|
|
name: 'plan-form',
|
|
|
components: {
|
|
|
- // fileUpload,
|
|
|
- ProjectForm, PersonSelect, userSelectDialog },
|
|
|
+ // fileUpload,
|
|
|
+ ProjectForm,
|
|
|
+ PersonSelect,
|
|
|
+ userSelectDialog
|
|
|
+ },
|
|
|
props: {
|
|
|
dialogType: {
|
|
|
type: String,
|
|
|
@@ -309,11 +294,13 @@
|
|
|
...this.form,
|
|
|
...this.dialogForm
|
|
|
};
|
|
|
- if(this.projectList.length==0){
|
|
|
- this.projectList=[{
|
|
|
- id:this.form.projectId,
|
|
|
- name:this.form.projectName
|
|
|
- }]
|
|
|
+ if (this.projectList.length == 0) {
|
|
|
+ this.projectList = [
|
|
|
+ {
|
|
|
+ id: this.form.projectId,
|
|
|
+ name: this.form.projectName
|
|
|
+ }
|
|
|
+ ];
|
|
|
}
|
|
|
this.$nextTick(async () => {
|
|
|
//通过项目去查
|
|
|
@@ -403,7 +390,7 @@
|
|
|
},
|
|
|
async created() {
|
|
|
this.planList = await this.getTargetPlanTree({
|
|
|
- projectId: '',
|
|
|
+ projectId: ''
|
|
|
// processStatus: [2],
|
|
|
// status: [0, 1]
|
|
|
});
|
|
|
@@ -418,17 +405,28 @@
|
|
|
},
|
|
|
methods: {
|
|
|
async changeProjectInfo(val) {
|
|
|
+ // console.log(val);
|
|
|
+
|
|
|
this.projectStageList = [];
|
|
|
this.form.projectStageId = null;
|
|
|
this.projectBOMList = [];
|
|
|
this.form.projectBomId = null;
|
|
|
this.form.parentId = null;
|
|
|
+ this.form.responsibleUserIds = [];
|
|
|
this.planList = await this.getTargetPlanTree({
|
|
|
projectId: val,
|
|
|
processStatus: [2],
|
|
|
status: [0, 1]
|
|
|
});
|
|
|
- if (!val) return;
|
|
|
+
|
|
|
+ // console.log(this.userList);
|
|
|
+
|
|
|
+ if (!val) {
|
|
|
+ this.$emit('allUser');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // console.log('123');
|
|
|
+
|
|
|
await this.getProjectsSelectTreeData(
|
|
|
{
|
|
|
treeType: 0,
|