Преглед на файлове

bugfix 首页质控-临床

yuwandanmian преди 1 година
родител
ревизия
a52187221c

+ 14 - 7
src/views/data/frontHome/components/SearchBox2.vue

@@ -4,7 +4,14 @@
       <el-form-item label="住院号码">
       <el-form-item label="住院号码">
         <el-input v-model="data.AAA28" clearable placeholder="请输入"></el-input>
         <el-input v-model="data.AAA28" clearable placeholder="请输入"></el-input>
       </el-form-item>
       </el-form-item>
-      <el-form-item label="出院科室">
+      <!-- 临床科室 -->
+      <el-form-item v-if="type_name == 'lc'" label="出院科室">
+        <el-select v-model="data.AAC11N" filterable clearable placeholder="请选择">
+          <el-option v-for="(item, index) in departmentList" :label="item" :value="item" :key="index"></el-option>
+        </el-select>
+      </el-form-item>
+      <!-- 非临床科室 -->
+      <el-form-item v-else label="出院科室">
         <el-select v-model="data.dep_id" filterable clearable placeholder="请选择">
         <el-select v-model="data.dep_id" filterable clearable placeholder="请选择">
           <el-option v-for="(item, index) in departmentList" :label="item.name" :value="item.id" :key="index"></el-option>
           <el-option v-for="(item, index) in departmentList" :label="item.name" :value="item.id" :key="index"></el-option>
         </el-select>
         </el-select>
@@ -125,12 +132,12 @@ export default {
           ICD9_ID1: ''
           ICD9_ID1: ''
         }
         }
       },
       },
-      type_name:{  // 'lc' 临床
-        type: String,
-        default() {
-          return ''
-        }
-      },
+    },
+    type_name:{  // 'lc' 临床
+      type: String,
+      default() {
+        return ''
+      }
     },
     },
     codes: {
     codes: {
       type: Array,
       type: Array,

+ 6 - 3
src/views/data/frontHome/components/TableBox2.vue

@@ -32,7 +32,7 @@
         width="100"
         width="100"
         align="center">
         align="center">
         <template slot-scope="scope">
         <template slot-scope="scope">
-          <span class="link" @click="toPage(scope.row.MED_REC_ID)">{{ scope.row.AAA28 }}</span>
+          <span class="link" @click="toPage(scope.row)">{{ scope.row.AAA28 }}</span>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
       <el-table-column
       <el-table-column
@@ -159,8 +159,11 @@ export default {
     },
     },
   },
   },
   methods: {
   methods: {
-    toPage(val) {
-      this.storageSet('getData', val);
+    toPage(row) {
+      // MED_REC_ID  非临床住院号
+      // ZYH  临床住院号
+      const { MED_REC_ID, ZYH } = row
+      this.storageSet('getData', MED_REC_ID ? MED_REC_ID : ZYH);
       const toPath = '/details'
       const toPath = '/details'
       this.$router.push({ path: toPath, query: {type_name: this.type_name} });
       this.$router.push({ path: toPath, query: {type_name: this.type_name} });
     },
     },

+ 2 - 1
src/views/data/frontHome/defectRuleProblem.vue

@@ -48,7 +48,8 @@ export default {
         ICD10_NAME: '',
         ICD10_NAME: '',
         ICD10_ID1: '',
         ICD10_ID1: '',
         ICD9_NAME: '',
         ICD9_NAME: '',
-        ICD9_ID1: ''
+        ICD9_ID1: '',
+        AAC11N: ''
       },
       },
       tableData: [],
       tableData: [],
       paginationData: {
       paginationData: {

+ 9 - 11
src/views/data/query/details.vue

@@ -735,7 +735,7 @@
                 <el-input class="tableReach" v-model="item.HOCUS_MAN_NAME" placeholder="请输入"></el-input>
                 <el-input class="tableReach" v-model="item.HOCUS_MAN_NAME" placeholder="请输入"></el-input>
               </td>
               </td>
             </tr>
             </tr>
-            <tr v-if="data.operation.length == 0">
+            <tr v-if="!data.operation || data.operation.length == 0">
               <td class="table-value"></td>
               <td class="table-value"></td>
               <td class="table-value"></td>
               <td class="table-value"></td>
               <td class="table-value"></td>
               <td class="table-value"></td>
@@ -1363,9 +1363,7 @@ export default {
     // 生命周期钩子:模板编译/挂载之前
     // 生命周期钩子:模板编译/挂载之前
   },
   },
   mounted() {
   mounted() {
-    // this.valData = this.storageGet('getData');
     this.valData = this.storageGet('getData');
     this.valData = this.storageGet('getData');
-    console.log(this.storageGet('getData'));
     if(this.valData){
     if(this.valData){
       if(this.type_name == 'lc'){
       if(this.type_name == 'lc'){
         this.funQuery_lc();
         this.funQuery_lc();
@@ -1457,8 +1455,8 @@ export default {
       }
       }
     },
     },
     // 加载数据后渲染颜色
     // 加载数据后渲染颜色
-    setColor(e){
-      let errorList = e;
+    setColor(){
+      let errorList = this.errorList;
       for(var i = 0;i<errorList.length;i++){
       for(var i = 0;i<errorList.length;i++){
         this.$refs[errorList[i].error_field].style.color = ( errorList[i].category<=1 ? 'red':'#e26e01' );
         this.$refs[errorList[i].error_field].style.color = ( errorList[i].category<=1 ? 'red':'#e26e01' );
       }
       }
@@ -1476,7 +1474,7 @@ export default {
         this.score = res.data.score;
         this.score = res.data.score;
         this.errorList = res.data.error;
         this.errorList = res.data.error;
 
 
-        if (this.data.diagnosis.length < 22) {
+        if (this.data.diagnosis && this.data.diagnosis.length < 22) {
           for (let i = 0; i < 22 - this.data.diagnosis.length; i++) {
           for (let i = 0; i < 22 - this.data.diagnosis.length; i++) {
             this.data.diagnosis.push({
             this.data.diagnosis.push({
               ICD10_ID1: '',
               ICD10_ID1: '',
@@ -1487,7 +1485,7 @@ export default {
             });
             });
           }
           }
         }
         }
-        if (this.data.operation.length < 8) {
+        if (this.data.operation && this.data.operation.length < 8) {
           for (let i = 0; i < 22 - this.data.operation.length; i++) {
           for (let i = 0; i < 22 - this.data.operation.length; i++) {
             this.data.operation.push({
             this.data.operation.push({
               FRIST_ASSISTANT_NAME: '',
               FRIST_ASSISTANT_NAME: '',
@@ -1518,7 +1516,7 @@ export default {
     // 临床数据
     // 临床数据
     funQuery_lc() {
     funQuery_lc() {
       let pramse = {
       let pramse = {
-        id: this.valData,
+        ZYH: this.valData,
       };
       };
       if (this.$route.query.status) {
       if (this.$route.query.status) {
         pramse.is_tm = 1
         pramse.is_tm = 1
@@ -1526,7 +1524,7 @@ export default {
       this.$axios.post('/home_sz_quality/blInfo', pramse).then(res => {
       this.$axios.post('/home_sz_quality/blInfo', pramse).then(res => {
         this.data = res.data;
         this.data = res.data;
 
 
-        if (this.data.diagnosis.length < 22) {
+        if (this.data.diagnosis && this.data.diagnosis.length < 22) {
           for (let i = 0; i < 22 - this.data.diagnosis.length; i++) {
           for (let i = 0; i < 22 - this.data.diagnosis.length; i++) {
             this.data.diagnosis.push({
             this.data.diagnosis.push({
               ICD10_ID1: '',
               ICD10_ID1: '',
@@ -1537,7 +1535,7 @@ export default {
             });
             });
           }
           }
         }
         }
-        if (this.data.operation.length < 8) {
+        if (this.data.operation && this.data.operation.length < 8) {
           for (let i = 0; i < 22 - this.data.operation.length; i++) {
           for (let i = 0; i < 22 - this.data.operation.length; i++) {
             this.data.operation.push({
             this.data.operation.push({
               FRIST_ASSISTANT_NAME: '',
               FRIST_ASSISTANT_NAME: '',
@@ -1565,7 +1563,7 @@ export default {
     //临床质控结果
     //临床质控结果
     getQualityResult(f){
     getQualityResult(f){
       let pramse = {
       let pramse = {
-        id: this.valData,
+        ZYH: this.valData,
       };
       };
       this.$axios.post('/home_sz_quality/blInfo', pramse).then(res => {
       this.$axios.post('/home_sz_quality/blInfo', pramse).then(res => {
         this.score = res.data.score;
         this.score = res.data.score;

+ 22 - 22
src/views/encoder/index.vue

@@ -325,28 +325,28 @@
       },
       },
       // 获取统计信息
       // 获取统计信息
       async getTongjiData() {
       async getTongjiData() {
-        // await this.$axios_new.post('/api/bmy/qualityStatistics', this.formInline).then(res => {
-        //   this.tongjiData = res.data
-        // })
-        this.tongjiData = {
-          "blSum": 1,
-          "dayAvg": 1,
-          "qxSum": 1,
-          "averageError": "100.00",
-          "averageScore": "99.00",
-          "minScore": 99,
-          "you_sum": 1,
-          "liang_sum": 0,
-          "zhong_sum": 0,
-          "cha_sum": 0,
-          "you_ratio": "100.00",
-          "liang_ratio": "0.00",
-          "zhong_ratio": "0.00",
-          "cha_ratio": "0.00",
-          "jbxx": 7,
-          "zlxx": 1,
-          "fyxx": 0
-        }
+        await this.$axios_new.post('/api/bmy/qualityStatistics', this.formInline).then(res => {
+          this.tongjiData = res.data
+        })
+        // this.tongjiData = {
+        //   "blSum": 1,
+        //   "dayAvg": 1,
+        //   "qxSum": 1,
+        //   "averageError": "100.00",
+        //   "averageScore": "99.00",
+        //   "minScore": 99,
+        //   "you_sum": 1,
+        //   "liang_sum": 0,
+        //   "zhong_sum": 0,
+        //   "cha_sum": 0,
+        //   "you_ratio": "100.00",
+        //   "liang_ratio": "0.00",
+        //   "zhong_ratio": "0.00",
+        //   "cha_ratio": "0.00",
+        //   "jbxx": 7,
+        //   "zlxx": 1,
+        //   "fyxx": 0
+        // }
       },
       },
       onToggleTongjiShow() {
       onToggleTongjiShow() {
         this.tongji_show = !this.tongji_show
         this.tongji_show = !this.tongji_show