zdl hai 1 ano
pai
achega
8d1a215dfc
Modificáronse 1 ficheiros con 124 adicións e 9 borrados
  1. 124 9
      src/views/allcase/caseViews.vue

+ 124 - 9
src/views/allcase/caseViews.vue

@@ -11,7 +11,7 @@
             <span>住院病案</span>
           </li>
           <li
-            :class="[is_active == item.bllb && item.bllb != 49 ? 'is-active' : '', item.bllb == 49 || [2000002, 294, 303].includes(item.bllb) ? 'li-left-itemyz' : 'li-left-item']"
+            :class="[is_active == item.bllb && item.bllb != 49 ? 'is-active' : '', item.bllb == 49 || [2000002, 294, 303, 329, 288, 34, 87].includes(item.bllb) ? 'li-left-itemyz' : 'li-left-item']"
             v-for="(item, index) in treeList"
             :key="index"
             @click="clickTree(item.bllb, item.name, item)"
@@ -27,7 +27,7 @@
               </div>
             </div>
             <!-- 病程记录、手术记录 -->
-            <div v-if="[294, 303].includes(item.bllb)">
+            <div v-if="[294, 303, 329, 288, 34, 87].includes(item.bllb)">
               <div
                 :class="['li-left-item-li', is_active == jitem.blbh ? 'is-active' : '']"
                 v-for="(jitem, jindex) in item.list"
@@ -325,15 +325,130 @@ export default {
     },
 
     getTree() {
-      let that = this;
-      let pramse = {
-        id: this.valData,
-      };
-      this.$axios.post('/getTree', pramse).then(res => {
-        that.treeList = res.data;
-      });
+      // let that = this;
+      // let pramse = {
+      //   id: this.valData,
+      // };
+      // this.$axios.post('/getTree', pramse).then(res => {
+      //   that.treeList = res.data;
+      // });
+      this.treeList = {
+		"0": {
+			"name": "出院记录",
+			"bllb": 1,
+			"count": 1,
+			"blbh": "4540696"
+		},
+		"1": {
+			"name": "入院记录",
+			"bllb": 292,
+			"count": 1,
+			"blbh": "4524241"
+		},
+		"2": {
+			"name": "病程记录",
+			"bllb": 294,
+			"count": 4,
+			"list": [{
+					"jzhm": "657251",
+					"blbh": 4524244,
+					"name": "首次病程记录 2021年04月06日 22:07",
+					"type": 1
+				},
+				{
+					"jzhm": "657251",
+					"blbh": 4527814,
+					"name": "成雨副主任医师查房记录 2021年04月07日 10:41",
+					"type": 4
+				},
+				{
+					"jzhm": "657251",
+					"blbh": 4547609,
+					"name": "王海涛主治医师查房记录 2021年04月10日 09:18",
+					"type": 4
+				},
+				{
+					"jzhm": "657251",
+					"blbh": 4547650,
+					"name": "成雨副主任医师查房记录 2021年04月12日 08:47",
+					"type": 4
+				}
+			]
+		},
+		"6": {
+			"name": "授权同意类",
+			"bllb": 329,
+			"count": 3,
+			"list": [{
+					"jzhm": "657251",
+					"blbh": "4524256",
+					"name": "滨医_病种收费知情告知书 2021-04-06 22:21:10",
+					"type": ""
+				},
+				{
+					"jzhm": "657251",
+					"blbh": "4524257",
+					"name": "滨医_参保人员住院协议_通用 2021-04-06 22:22:02",
+					"type": ""
+				},
+				{
+					"jzhm": "657251",
+					"blbh": "4524258",
+					"name": "滨医_通用授权委托书 2021-04-06 22:22:51",
+					"type": ""
+				}
+			]
+		},
+		"24": {
+			"name": "医患沟通类",
+			"bllb": 34,
+			"count": 1,
+			"list": [{
+				"jzhm": "657251",
+				"blbh": "4524246",
+				"name": "医患沟通记录单 2021-04-06 22:08:31",
+				"type": ""
+			}]
+		},
+		"25": {
+			"name": "医疗常用表格",
+			"bllb": 87,
+			"count": 2,
+			"list": [{
+					"jzhm": "657251",
+					"blbh": "4524259",
+					"name": "滨医-临床路径知情同意书 2021-04-06 22:23:26",
+					"type": ""
+				},
+				{
+					"jzhm": "657251",
+					"blbh": "4524260",
+					"name": "滨医_临床路径患者满意度调查 2021-04-06 22:23:58",
+					"type": ""
+				}
+			]
+		},
+		"26": {
+			"name": "医嘱",
+			"bllb": 49,
+			"count": 2
+		}
+	}
     },
     clickTree(b, n, item) {
+      if (item) {
+        if (item.blbh) {
+          this.is_active_blbh = item.blbh
+        } else {
+          if (event.target.id) {
+            this.is_active_blbh = event.target.id
+          } else {
+            return
+          }
+        }
+      } else {
+        this.is_active_blbh = this.mainHomeData.MED_REC_ID
+      }
       this.titleName = n;
       this.parentType = b;
       let that = this;