|
|
@@ -669,7 +669,6 @@ export default {
|
|
|
},
|
|
|
//所属机构为当前用户登录机构时才显示 “编辑、删除”按钮
|
|
|
checkCanEdit(row) {
|
|
|
- console.log("checkCanEdit", this.$store.getters.orgId, row.belongOrgId)
|
|
|
return (
|
|
|
row.belongOrgId == this.$store.getters.orgId && row.createOrgId == this.$store.getters.orgId
|
|
|
);
|
|
|
@@ -741,6 +740,7 @@ export default {
|
|
|
category: null,
|
|
|
checkSub: true,
|
|
|
done: null,
|
|
|
+ hasTask: null,
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
|
@@ -833,7 +833,6 @@ export default {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
let request = {...this.form};
|
|
|
- console.log("request", request);
|
|
|
if (this.form.planExecOrgIdList) {
|
|
|
const list = Array.isArray(this.form.planExecOrgIdList)
|
|
|
? this.form.planExecOrgIdList
|
|
|
@@ -845,10 +844,14 @@ export default {
|
|
|
if (request.id != null) {
|
|
|
let msg = "";
|
|
|
if (this.form.planStatus == 1) {
|
|
|
- if (this.form.done == 1) {
|
|
|
- msg = "因存在已完成任务,本次修改内容将从下周期生效";
|
|
|
+ if (this.form.hasTask != 1) {
|
|
|
+ msg = "是否确认修改?";
|
|
|
} else {
|
|
|
- msg = "因不存在已完成任务,本次修改内容将立即生效";
|
|
|
+ if (this.form.done == 1) {
|
|
|
+ msg = "因存在已完成任务,本次修改内容将从下周期生效";
|
|
|
+ } else {
|
|
|
+ msg = "因不存在已完成任务,本次修改内容将立即生效";
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
msg = "是否确认修改?";
|