|
@@ -608,7 +608,7 @@ export default {
|
|
|
if(n == '长期医嘱' || n == '临时医嘱') {
|
|
|
this.is_active = n
|
|
|
} else if (b == '2000002') { // 报告单
|
|
|
- this.is_active = type
|
|
|
+ this.is_active = item.type
|
|
|
} else {
|
|
|
this.is_active = item.blbh
|
|
|
}
|
|
@@ -619,24 +619,9 @@ export default {
|
|
|
this.is_active = 0;
|
|
|
this.funQuery();
|
|
|
}
|
|
|
- console.log('----------is_active', this.is_active)
|
|
|
this.titleName = n;
|
|
|
this.parentType = b;
|
|
|
let that = this;
|
|
|
- // 判断点击的
|
|
|
- // if (event.target.id || !item?.list) {
|
|
|
- // if (event.target.outerText == '长期医嘱' || event.target.outerText == '临时医嘱') {
|
|
|
- // that.is_active = event.target.outerText;
|
|
|
- // } else if (b == 2000002) {
|
|
|
- // that.is_active = event.target.id;
|
|
|
- // } else if (b == 294) {
|
|
|
- // that.is_active = event.target.id;
|
|
|
- // } else if (b == 303) {
|
|
|
- // that.is_active = event.target.id;
|
|
|
- // } else {
|
|
|
- // that.is_active = b;
|
|
|
- // }
|
|
|
- // }
|
|
|
that.name_title = n;
|
|
|
if (b != 0 && b != 292 && b != 1 && !isLeaf) {
|
|
|
const params = {
|
|
@@ -702,7 +687,7 @@ export default {
|
|
|
this.happensAdvice = res.data;
|
|
|
});
|
|
|
}
|
|
|
- if (that.parentType == '2000002' && that.is_active != '') {
|
|
|
+ if (that.parentType == '2000002' && isLeaf) {
|
|
|
// 报告单 相关
|
|
|
let parm = {
|
|
|
type: Number(that.is_active),
|
|
@@ -710,12 +695,7 @@ export default {
|
|
|
if (this.is_tm_path.includes(this.$route.path)) {
|
|
|
parm.is_tm = 1;
|
|
|
}
|
|
|
- let treeListArr = Object.values(that.treeList);
|
|
|
- treeListArr.forEach((item, index) => {
|
|
|
- if (item.bllb == 2000002) {
|
|
|
- parm.zyh = Number(item.list[0].ZYH);
|
|
|
- }
|
|
|
- });
|
|
|
+ parm.zyh = item.ZYH
|
|
|
that.$axios.post('/get_pacs_data', parm).then(res => {
|
|
|
this.pacsDetail = res.data;
|
|
|
});
|