|
|
|
@ -37,7 +37,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template slot="renwufulei"> |
|
|
|
<!-- <template slot="renwufulei"> |
|
|
|
<el-select |
|
|
|
<el-select |
|
|
|
v-model="form.renwufulei" |
|
|
|
v-model="form.renwufulei" |
|
|
|
placeholder="请选择任务父类" |
|
|
|
placeholder="请选择任务父类" |
|
|
|
@ -51,7 +51,7 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</template> --> |
|
|
|
<template slot="xitongmingchengshujuku"> |
|
|
|
<template slot="xitongmingchengshujuku"> |
|
|
|
<el-select |
|
|
|
<el-select |
|
|
|
filterable |
|
|
|
filterable |
|
|
|
@ -164,7 +164,7 @@ import { |
|
|
|
downloadFile, |
|
|
|
downloadFile, |
|
|
|
getCompany, |
|
|
|
getCompany, |
|
|
|
getDepts, |
|
|
|
getDepts, |
|
|
|
getTaskParent, |
|
|
|
// getTaskParent, |
|
|
|
// getTaskLevel, |
|
|
|
// getTaskLevel, |
|
|
|
getTaskTypeData, |
|
|
|
getTaskTypeData, |
|
|
|
getTaskAndDataBase, |
|
|
|
getTaskAndDataBase, |
|
|
|
@ -174,7 +174,7 @@ import WfExamineForm from "./examForm.vue"; |
|
|
|
import WfUserSelect from "./user-select"; |
|
|
|
import WfUserSelect from "./user-select"; |
|
|
|
import exForm from "../../mixins/ex-form"; |
|
|
|
import exForm from "../../mixins/ex-form"; |
|
|
|
import draft from "../../mixins/draft"; |
|
|
|
import draft from "../../mixins/draft"; |
|
|
|
import { dateFormat } from "@/util/date" |
|
|
|
// import { dateFormat } from "@/util/date"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
@ -362,27 +362,28 @@ export default { |
|
|
|
this.form.yunweigongsi = id; |
|
|
|
this.form.yunweigongsi = id; |
|
|
|
this.companyChange(id); |
|
|
|
this.companyChange(id); |
|
|
|
} |
|
|
|
} |
|
|
|
const taskParentData = await getTaskParent(); |
|
|
|
// const taskParentData = await getTaskParent(); |
|
|
|
this.taskParentList = taskParentData.data.data; |
|
|
|
// this.taskParentList = taskParentData.data.data; |
|
|
|
if (this.$route.query.parent) { |
|
|
|
// if (this.$route.query.parent) { |
|
|
|
const id = this.$route.query.parent; |
|
|
|
// const id = this.$route.query.parent; |
|
|
|
this.form.renwufulei = id; |
|
|
|
// this.form.renwufulei = id; |
|
|
|
this.taskParentChange(id); |
|
|
|
// this.taskParentChange(id); |
|
|
|
} |
|
|
|
// } |
|
|
|
const time = this.findObject( |
|
|
|
this.form.renwufulei = this.$route.query.parent; |
|
|
|
this.option.column, |
|
|
|
// const time = this.findObject( |
|
|
|
"qiwangwanchengshijian" |
|
|
|
// this.option.column, |
|
|
|
); |
|
|
|
// "qiwangwanchengshijian" |
|
|
|
|
|
|
|
// ); |
|
|
|
// 期望完成时间限制 |
|
|
|
// 期望完成时间限制 |
|
|
|
time.pickerOptions = { |
|
|
|
// time.pickerOptions = { |
|
|
|
disabledDate(time) { |
|
|
|
// disabledDate(time) { |
|
|
|
return time.getTime() < Date.now() - 24 * 60 * 60 * 1000; |
|
|
|
// return time.getTime() < Date.now() - 24 * 60 * 60 * 1000; |
|
|
|
}, |
|
|
|
// }, |
|
|
|
}; |
|
|
|
// }; |
|
|
|
// 重复模式默认值 |
|
|
|
// 重复模式默认值 |
|
|
|
let addHour = new Date().setHours(new Date().getHours() + 48); |
|
|
|
// let addHour = new Date().setHours(new Date().getHours() + 48); |
|
|
|
time.value = dateFormat(new Date(addHour)); |
|
|
|
// time.value = dateFormat(new Date(addHour)); |
|
|
|
this.form.chongfumoshi = "1627589799957266433"; |
|
|
|
// this.form.chongfumoshi = "1627589799957266433"; |
|
|
|
if (this.permission.wf_process_draft) { |
|
|
|
if (this.permission.wf_process_draft) { |
|
|
|
// 查询是否有草稿箱 |
|
|
|
// 查询是否有草稿箱 |
|
|
|
this.initDraft(process.id).then((data) => { |
|
|
|
this.initDraft(process.id).then((data) => { |
|
|
|
@ -400,10 +401,36 @@ export default { |
|
|
|
this.waiting = false; |
|
|
|
this.waiting = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 任务等级 |
|
|
|
// 运维公司关联代码 |
|
|
|
gradeChange() { |
|
|
|
// gradeChange() { |
|
|
|
console.log(this.examineForm); |
|
|
|
// axios.get("/api/blade-user/maintenanceCompany").then((res) => { |
|
|
|
}, |
|
|
|
// let companyList = res.data.data; |
|
|
|
|
|
|
|
// if (companyList.length > 0) { |
|
|
|
|
|
|
|
// this.form.yunweigongsi = value ? value : companyList[0].id; |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// if (companyList.length === 1) { |
|
|
|
|
|
|
|
// this.option.column.find( |
|
|
|
|
|
|
|
// (item) => item.prop == "yunweigongsi" |
|
|
|
|
|
|
|
// ).disabled = true; |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// let obj = companyList.find(function (i) { |
|
|
|
|
|
|
|
// return i.id === value ? value : companyList[0].id; |
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// axios |
|
|
|
|
|
|
|
// .get("/api/blade-system/dept/getDepts?id=" + obj.deptId) |
|
|
|
|
|
|
|
// .then((res) => { |
|
|
|
|
|
|
|
// let deptList = res.data.data; |
|
|
|
|
|
|
|
// this.option.column.find( |
|
|
|
|
|
|
|
// (item) => item.prop == "guanlibumen" |
|
|
|
|
|
|
|
// ).dicData = deptList; |
|
|
|
|
|
|
|
// if (deptList.length === 1) { |
|
|
|
|
|
|
|
// this.form.guanlibumen = deptList[0].id; |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
// }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|