Browse Source

添加质控信息-质控模板选择病历质控,接收端显示医生端(病历),选择首页质控,显示医生端(首页)和编码员

liyanyan 3 weeks ago
parent
commit
527eeca626
1 changed files with 37 additions and 28 deletions
  1. 37 28
      src/views/recordsRoom/qc/components/CreateControlResultDialog.vue

+ 37 - 28
src/views/recordsRoom/qc/components/CreateControlResultDialog.vue

@@ -174,30 +174,30 @@ export default {
         };
       },
     },
-    AAA28: {
-      type: String,
-      default() {
-        return '';
-      },
-    },
+    // AAA28: {
+    //   type: String,
+    //   default() {
+    //     return '';
+    //   },
+    // },
     MED_REC_ID: {
       type: [String, Number], // 根据实际类型定义
       required: true, // 是否必传
     },
-    CWH: {
-      type: [String, Number], // 根据实际类型定义
-      required: true,
-    },
-    AAA29: {
-      type: [String, Number], // 根据实际类型定义
-      required: true,
-    },
-    JSKS: {
-      type: [String, Number], // 根据实际类型定义
-      required: true,
-    },
+    // CWH: {
+    //   type: [String, Number], // 根据实际类型定义
+    //   required: true,
+    // },
+    // AAA29: {
+    //   type: [String, Number], // 根据实际类型定义
+    //   required: true,
+    // },
+    // JSKS: {
+    //   type: [String, Number], // 根据实际类型定义
+    //   required: true,
+    // },
     currentTreeItem: {
-      type: [null, Object], // 根据实际类型定义
+      type: Object, // 根据实际类型定义
       required: false,
     }
   },
@@ -287,7 +287,7 @@ export default {
         ruleArray: [], // 质控模板
         cate: '', // 接收端
         JSR: [], // 接收人
-        JSKS: this.JSKS ? [this.JSKS] : [], // 接收科室
+        JSKS: [], // 接收科室
         ZKR: localStorage.getItem('realname') || '',
         correction_date: '', // 整改期限
         error_field: '', // 质控目录
@@ -320,7 +320,7 @@ export default {
     this.getStaff();
     this.getDeportmentList();
     this.getCaseCateList();
-    this.receivingEnd();
+    // this.receivingEnd();
     this.zkSelectValue();
     this.getZkInfo();
     this.getBlsy();
@@ -341,6 +341,7 @@ export default {
       console.log('选中', nodeData)
       this.ruleFormDisabled.level = nodeData[0].data.level
       this.ruleFormDisabled.score = nodeData[0].parent.value == 1 ? nodeData[0].data.down : nodeData[0].data.score
+      this.receivingEnd(nodeData[0].parent.value)
     },
     success(msg) {
       this.$message({
@@ -517,16 +518,24 @@ export default {
       }
     },
     // 接收端
-    receivingEnd() {
+    receivingEnd(rule) {
       getCaseCate().then(res => {
         const { data } = res;
+        this.receiving = []
         if (data.length) {
-          data.forEach(ele => {
-            this.receiving.push({
-              id: ele.id,
-              name: ele.name,
-            });
-          });
+          // data.forEach(ele => {
+          //   this.receiving.push({
+          //     id: ele.id,
+          //     name: ele.name,
+          //   });
+          // });
+          if(rule == 1) {
+            this.receiving = data.filter(item => item.name != '医生端(病历)')
+          } else if(rule == 2) {
+            this.receiving = data.filter(item => item.name == '医生端(病历)')
+          } else {
+            this.receiving = []
+          }
         }
       });
     },