zdl 1 жил өмнө
parent
commit
82037e1927

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

@@ -213,6 +213,7 @@ export default {
       results: {
       results: {
         data: {}
         data: {}
       },
       },
+      is_tm_path: ['/hospital-caseViews', '/embedIndex-caseViews', '/reviewIndex-caseViews', '/whitelist-caseViews', '/whitelist-search']
     };
     };
   },
   },
   computed: {
   computed: {
@@ -315,7 +316,7 @@ export default {
       const params = {
       const params = {
         id: this.valData,
         id: this.valData,
       };
       };
-      if (this.$route.query.status) {
+      if (this.is_tm_path.includes(this.$route.path)) {
         params.is_tm = 1;
         params.is_tm = 1;
       }
       }
       this.$axios.post('/medical_record', params).then(res => {
       this.$axios.post('/medical_record', params).then(res => {
@@ -354,7 +355,7 @@ export default {
           MED_REC_ID: that.valData,
           MED_REC_ID: that.valData,
           bllb: b,
           bllb: b,
         };
         };
-        if (this.$route.query.status) {
+        if (this.is_tm_path.includes(this.$route.path)) {
           params.is_tm = 1;
           params.is_tm = 1;
         }
         }
         that.$axios.post('/getAllCase', params).then(res => {
         that.$axios.post('/getAllCase', params).then(res => {
@@ -368,7 +369,7 @@ export default {
           id: this.valData,
           id: this.valData,
           bllb: b,
           bllb: b,
         };
         };
-        if (this.$route.query.status) {
+        if (this.is_tm_path.includes(this.$route.path)) {
           params.is_tm = '1';
           params.is_tm = '1';
         }
         }
         that.$axios2.post('/get_case_platform', params).then(res => {
         that.$axios2.post('/get_case_platform', params).then(res => {
@@ -380,7 +381,7 @@ export default {
           id: this.valData,
           id: this.valData,
           bllb: b,
           bllb: b,
         };
         };
-        if (this.$route.query.status) {
+        if (this.is_tm_path.includes(this.$route.path)) {
           params.is_tm = 1;
           params.is_tm = 1;
         }
         }
         that.$axios2.post('/get_case_platform', params).then(res => {
         that.$axios2.post('/get_case_platform', params).then(res => {
@@ -392,7 +393,7 @@ export default {
         const params = {
         const params = {
           AAA28: that.valData,
           AAA28: that.valData,
         };
         };
-        if (this.$route.query.status) {
+        if (this.is_tm_path.includes(this.$route.path)) {
           params.is_tm = 1;
           params.is_tm = 1;
         }
         }
         that.$axios.post('/long', params).then(res => {
         that.$axios.post('/long', params).then(res => {
@@ -404,7 +405,7 @@ export default {
         const params = {
         const params = {
           AAA28: that.valData,
           AAA28: that.valData,
         };
         };
-        if (this.$route.query.status) {
+        if (this.is_tm_path.includes(this.$route.path)) {
           params.is_tm = 1;
           params.is_tm = 1;
         }
         }
         that.$axios.post('/temporary', params).then(res => {
         that.$axios.post('/temporary', params).then(res => {
@@ -416,7 +417,7 @@ export default {
         let parm = {
         let parm = {
           type: Number(that.is_active),
           type: Number(that.is_active),
         };
         };
-        if (this.$route.query.status) {
+        if (this.is_tm_path.includes(this.$route.path)) {
           parm.is_tm = 1;
           parm.is_tm = 1;
         }
         }
         let treeListArr = Object.values(that.treeList);
         let treeListArr = Object.values(that.treeList);
@@ -444,7 +445,7 @@ export default {
           // 请求前先重置之前的数据
           // 请求前先重置之前的数据
           that.caseRecodeInfo = {};
           that.caseRecodeInfo = {};
           let parm = { blbh: that.is_active };
           let parm = { blbh: that.is_active };
-          if (this.$route.query.status) {
+          if (this.is_tm_path.includes(this.$route.path)) {
             parm.is_tm = 1;
             parm.is_tm = 1;
           }
           }
           that.$axios.post('/get_bc_data', parm).then(res => {
           that.$axios.post('/get_bc_data', parm).then(res => {
@@ -459,7 +460,7 @@ export default {
           // 请求前先重置之前的数据
           // 请求前先重置之前的数据
           that.surgeryData = {};
           that.surgeryData = {};
           let parm = { blbh: that.is_active };
           let parm = { blbh: that.is_active };
-          if (this.$route.query.status) {
+          if (this.is_tm_path.includes(this.$route.path)) {
             parm.is_tm = 1;
             parm.is_tm = 1;
           }
           }
           that.$axios.post('/get_surgery_data', parm).then(res => {
           that.$axios.post('/get_surgery_data', parm).then(res => {

+ 4 - 1
src/views/data/query/adviceSearch.vue

@@ -366,6 +366,7 @@ export default {
           return time.getTime() > Date.now();
           return time.getTime() > Date.now();
         },
         },
       },
       },
+      is_tm_path: ['/hospital-caseViews', '/embedIndex-caseViews', '/reviewIndex-caseViews', '/whitelist-caseViews', '/whitelist-search']
     };
     };
   },
   },
   mounted() {
   mounted() {
@@ -467,7 +468,9 @@ export default {
       if (this.formData1.AAA04_end) {
       if (this.formData1.AAA04_end) {
         pramse.AAA04_end = { type: ageType2, value: this.formData1.AAA04_end };
         pramse.AAA04_end = { type: ageType2, value: this.formData1.AAA04_end };
       }
       }
-
+      if (this.is_tm_path.includes(this.$route.path)) {
+        pramse.is_tm = 1;
+      }
       this.$axios3.post('/yz/serach', pramse).then(res => {
       this.$axios3.post('/yz/serach', pramse).then(res => {
         this.tableData = res.data.list || [];
         this.tableData = res.data.list || [];
         this.paginationData.total = res.data.total;
         this.paginationData.total = res.data.total;

+ 4 - 0
src/views/data/query/index.vue

@@ -406,6 +406,7 @@ export default {
       AEM01C: '',
       AEM01C: '',
       SUM_ARG_STAY: '',
       SUM_ARG_STAY: '',
       SUM_ARG_F_D: '',
       SUM_ARG_F_D: '',
+      is_tm_path: ['/hospital-caseViews', '/embedIndex-caseViews', '/reviewIndex-caseViews', '/whitelist-caseViews', '/whitelist-search']
     };
     };
   },
   },
   mounted() {},
   mounted() {},
@@ -867,6 +868,9 @@ export default {
       }
       }
     },
     },
     getinfo(p) {
     getinfo(p) {
+      if (this.is_tm_path.includes(this.$route.path)) {
+        p.is_tm = 1;
+      }
       this.$axios.post('/qualityList', p).then(res => {
       this.$axios.post('/qualityList', p).then(res => {
         this.paginationData.total = res.data.count;
         this.paginationData.total = res.data.count;
         this.tableData = res.data.list;
         this.tableData = res.data.list;

+ 5 - 1
src/views/outpatient/case/index.vue

@@ -230,7 +230,8 @@ import { dateFormat } from '@/utils/index'
         },
         },
         resultSearch: 0,
         resultSearch: 0,
         searchNum: 0,
         searchNum: 0,
-        departmentList: []
+        departmentList: [],
+        is_tm_path: ['/hospital-caseViews', '/embedIndex-caseViews', '/reviewIndex-caseViews', '/whitelist-caseViews', '/whitelist-search']
       }
       }
     },
     },
     created() {
     created() {
@@ -268,6 +269,9 @@ import { dateFormat } from '@/utils/index'
         if (field[0].key) {
         if (field[0].key) {
           params.field = field
           params.field = field
         }
         }
+        if (this.is_tm_path.includes(this.$route.path)) {
+          params.is_tm = 1;
+        }
         this.$axios.post('/get_omr_bl01_list', params).then(res => {
         this.$axios.post('/get_omr_bl01_list', params).then(res => {
           this.tableData = res.data.list
           this.tableData = res.data.list
           this.infoData  = res.data.detail
           this.infoData  = res.data.detail

+ 13 - 3
src/views/search/index.vue

@@ -499,7 +499,8 @@ export default {
       searchNum: 0,
       searchNum: 0,
       professionSearchData: {},
       professionSearchData: {},
       // 排序
       // 排序
-      sort: []
+      sort: [],
+      is_tm_path: ['/hospital-caseViews', '/embedIndex-caseViews', '/reviewIndex-caseViews', '/whitelist-caseViews', '/whitelist-search']
     };
     };
   },
   },
   mounted() {
   mounted() {
@@ -741,7 +742,10 @@ export default {
         pramse.keyword = this.formData0.input; // 关键字
         pramse.keyword = this.formData0.input; // 关键字
         pramse.AAC01_start = this.formData1.startTime;
         pramse.AAC01_start = this.formData1.startTime;
         pramse.AAC01_end = this.formData1.endTime;
         pramse.AAC01_end = this.formData1.endTime;
-
+        
+        if (this.is_tm_path.includes(this.$route.path)) {
+          pramse.is_tm = 1;
+        }
         this.$axios3.post(queryUrl, pramse).then(res => {
         this.$axios3.post(queryUrl, pramse).then(res => {
           this.tableData = res.data.data.list || [];
           this.tableData = res.data.data.list || [];
           this.tableDataDetails = res.data.data.detail || [];
           this.tableDataDetails = res.data.data.detail || [];
@@ -776,7 +780,9 @@ export default {
         } else {
         } else {
           pramse.AAA40_end = this.formData1.AAA04_end;
           pramse.AAA40_end = this.formData1.AAA04_end;
         }
         }
-
+        if (this.is_tm_path.includes(this.$route.path)) {
+          pramse.is_tm = 1;
+        }
         this.$axios3.post(queryUrl, pramse).then(res => {
         this.$axios3.post(queryUrl, pramse).then(res => {
           this.tableData = res.data.data.list || [];
           this.tableData = res.data.data.list || [];
           this.tableDataDetails = res.data.data.detail || [];
           this.tableDataDetails = res.data.data.detail || [];
@@ -830,6 +836,10 @@ export default {
       if (this.sort.length) {
       if (this.sort.length) {
         queryData.sort = this.sort
         queryData.sort = this.sort
       }
       }
+      
+      if (this.is_tm_path.includes(this.$route.path)) {
+        queryData.is_tm = 1;
+      }
       this.$axios3.post('/bl/serach', queryData).then(res => {
       this.$axios3.post('/bl/serach', queryData).then(res => {
         this.tableData = res.data.list || [];
         this.tableData = res.data.list || [];
         this.tableDataDetails = res.data.detail || [];
         this.tableDataDetails = res.data.detail || [];