luojun 2 lat temu
rodzic
commit
af94d7dd81
1 zmienionych plików z 12 dodań i 2 usunięć
  1. 12 2
      src/views/resumption/plan/index.vue

+ 12 - 2
src/views/resumption/plan/index.vue

@@ -428,7 +428,7 @@ export default {
     //已完成下发的计划不显示下发按钮
     checkCanPublish(row) {
       // console.log(row.planOfOrgType,"row.planOfOrgType")
-      if (row.planOfOrgType == "1" && row.distribute == null) {
+      if (row.planOfOrgType == "1" && (row.distribute == null||row.distribute == 2)) {
         return true;
       }
       return false;
@@ -492,7 +492,17 @@ export default {
       this.$refs.editDialog.show(id, other);
     },
     showDialogDistribute(row) {
-      this.$refs.dialogDistribute.show(row);
+      api.cheHui(row.id).then((response) => {
+        console.log(response.data,"appPlanService.cheHui(id);")
+        if(response.data!=1){
+          this.$refs.dialogDistribute.show(row);
+        }else{
+          this.getList();
+        }
+          
+          
+        })
+      
     },
     async onDel(id, name) {
       this.$modal