ソースを参照

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 年 前
コミット
02d686ebdb

+ 1 - 1
src/xt_pages/data/components/consumables.vue ファイルの表示

@@ -110,7 +110,7 @@
110 110
           {{ scope.row.packing_price }}
111 111
         </template>
112 112
       </el-table-column>
113
-       <el-table-column label="社保目录编码" width="110" align="center">
113
+       <el-table-column label="国家医保编码" width="110" align="center">
114 114
         <template slot-scope="scope">
115 115
           {{ scope.row.social_security_directory_code }}
116 116
         </template>

+ 9 - 9
src/xt_pages/data/components/drugs.vue ファイルの表示

@@ -89,7 +89,7 @@
89 89
           </div>
90 90
         </template>
91 91
       </el-table-column>
92
-  
92
+
93 93
       <el-table-column prop="date" label="进货价" width="100" align="center">
94 94
         <template slot-scope="scope">
95 95
           <div>{{scope.row.last_price}}</div>
@@ -100,7 +100,7 @@
100 100
           <div>{{scope.row.retail_price}}</div>
101 101
         </template>
102 102
       </el-table-column>
103
-       <el-table-column prop="date" label="医保编码" width="100" align="center">
103
+       <el-table-column prop="date" label="国家医保编码" width="100" align="center">
104 104
         <template slot-scope="scope">
105 105
           <div>{{scope.row.medical_insurance_number}}</div>
106 106
         </template>
@@ -673,7 +673,7 @@
673 673
                  this.formValue.drug_classify = ""
674 674
               }
675 675
 
676
-              
676
+
677 677
 
678 678
               this.$refs.addDrugs.show(id, this.formValue)
679 679
 
@@ -938,7 +938,7 @@
938 938
            console.log("isHasMinUnit",isHasMinUnit)
939 939
           var isHasPackingUnit = header.includes('*包装单位')
940 940
           console.log("isHasPackingUnit",isHasPackingUnit)
941
-        
941
+
942 942
           var isHasDrugType =  header.includes('*药品类型');
943 943
           console.log("isHasDrugType",isHasDrugType)
944 944
           var isHasDrugStockLimit =  header.includes('*库存警戒');
@@ -947,14 +947,14 @@
947 947
           console.log("isHasDrugOriginPlace",isHasDrugOriginPlace)
948 948
           var isHasDrugDosageForm = header.includes('*药品剂型');
949 949
           console.log("isHasDrugDosageForm",isHasDrugDosageForm)
950
-         
950
+
951 951
           var isHasRetailPrice = header.includes('*拆零零售价');
952 952
           console.log("isHasRetailPrice",isHasRetailPrice)
953 953
           var isHasPackingPrice= header.includes('*包装零售价');
954 954
           console.log("isHasLastPrice",isHasPackingPrice)
955 955
           var isHasLastPrice = header.includes('*进货价');
956 956
           console.log("进货价",isHasLastPrice)
957
-          
957
+
958 958
           var isHasDrugClassifye = header.includes('*药物分类');
959 959
          console.log("isHasDrugClassifye",isHasDrugClassifye)
960 960
          var isHasManufacturer = header.includes('*生产厂商');
@@ -965,7 +965,7 @@
965 965
          console.log("isDrugDoseUnit",isDrugDoseUnit)
966 966
           if (!(isHasDrugName  && isHasDosage && isHasMaxUnit && isHasUnval && isHasMinUnit && isHasPackingUnit && isHasDrugType &&  isHasDrugStockLimit && isHasDrugOriginPlace &&
967 967
           isHasDrugDosageForm &&  isHasRetailPrice && isHasPackingPrice && isHasLastPrice && isHasDrugClassifye && isHasManufacturer && isHasDrugDose && isDrugDoseUnit)) {
968
-           
968
+
969 969
             this.dialogVisible = true;
970 970
             return
971 971
           }
@@ -1005,7 +1005,7 @@
1005 1005
            }
1006 1006
 
1007 1007
 
1008
-  
1008
+
1009 1009
           if (results[i]['*拆零'] === undefined) {
1010 1010
                 obj['min_number'] = ''
1011 1011
               } else {
@@ -1383,7 +1383,7 @@
1383 1383
           'drugs':tableData
1384 1384
         };
1385 1385
         console.log("params222222222",params)
1386
-        
1386
+
1387 1387
         postDrugInformation(params).then(response=>{
1388 1388
            if(response.data.state == 1){
1389 1389
              var msg =  response.data.data.msg;

+ 1 - 1
src/xt_pages/data/components/project.vue ファイルの表示

@@ -98,7 +98,7 @@
98 98
                     {{getExecutiveSection(scope.row.executive_section)}}
99 99
                 </template>
100 100
             </el-table-column>
101
-            <el-table-column label="医保编码" width="140" align="center">
101
+            <el-table-column label="国家医保编码" width="140" align="center">
102 102
                 <template  slot-scope="scope">
103 103
                    {{scope.row.medical_code}}
104 104
                 </template>

+ 11 - 10
src/xt_pages/hospitalStation/template/printOne.vue ファイルの表示

@@ -46,7 +46,7 @@
46 46
           </div>
47 47
           <div class="doctorBox">
48 48
               <p>医师:{{item.doctor?item.doctor:""}}</p>
49
-              <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
49
+              <p>日期:{{getTime(item.pre_time)?getTime(item.pre_time):""}}</p>
50 50
           </div>
51 51
           <div class="actionBar">
52 52
                  <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
@@ -248,15 +248,16 @@ export default {
248 248
         return project_name
249 249
      },
250 250
 
251
-     getDiagnosis(id){
252
-        var name = ""
253
-        for(let i=0;i<this.diagnoses.length;i++){
254
-          if(id == this.diagnoses[i].id){
255
-             name = this.diagnoses[i].class_name
256
-          }
257
-        }
258
-        return name
259
-     }
251
+     getDiagnosis(id) {
252
+       let arr = id.split(',')
253
+       var name = ''
254
+       for (let i = 0; i < this.diagnoses.length; i++) {
255
+         if (arr.indexOf(String(this.diagnoses[i].id)) > -1) {
256
+           name += this.diagnoses[i].class_name + ' '
257
+         }
258
+       }
259
+       return name
260
+     },
260 261
 
261 262
    },
262 263
    created(){

+ 20 - 9
src/xt_pages/hospitalStation/template/printTwo.vue ファイルの表示

@@ -15,7 +15,7 @@
15 15
             <div style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
16 16
             <div style="margin-bottom: 10px;">电话:{{patient.phone}}</div>
17 17
             <div>地址:{{patient.home_address}}</div>
18
-            <div style="display:flex;width:50%;">临床诊断:{{patient.diagnose}}</div>
18
+            <div style="display:flex;width:50%;">临床诊断:22222{{ getDiagnosis(advicePrint[0].info.diagnosis) }}</div>
19 19
         </div>
20 20
         <div class="prescriptionBox">
21 21
             <div class="Rp">Rp:</div>
@@ -51,6 +51,7 @@ export default {
51 51
     },
52 52
     data(){
53 53
       return {
54
+        diagnoses:[],
54 55
         doctorList:[],
55 56
         advicePrint:{},
56 57
         patient:{},
@@ -62,6 +63,15 @@ export default {
62 63
       }
63 64
     },
64 65
    methods:{
66
+     getInitData(){
67
+       getInitData().then(response=>{
68
+         if(response.data.state == 1){
69
+           this.department = response.data.data.department
70
+           this.diagnoses = response.data.data.diagnose
71
+           console.log("争端",this.diagnoses)
72
+         }
73
+       })
74
+     },
65 75
      getAge(patient){
66 76
        var thisLen = patient.id_card_no.length
67 77
        var birth = ''
@@ -88,8 +98,16 @@ export default {
88 98
                this.doctorList = doctor
89 99
              }
90 100
          })
101
+     },   getDiagnosis(id) {
102
+       let arr = id.split(',')
103
+       var name = ''
104
+       for (let i = 0; i < this.diagnoses.length; i++) {
105
+         if (arr.indexOf(String(this.diagnoses[i].id)) > -1) {
106
+           name += this.diagnoses[i].class_name + ' '
107
+         }
108
+       }
109
+       return name
91 110
      },
92
-
93 111
       getDoctor(id){
94 112
         var name = ""
95 113
         for(let i=0;i<this.doctorList.length;i++){
@@ -147,14 +165,7 @@ export default {
147 165
           }
148 166
        })
149 167
      },
150
-     getInitData(){
151
-       getInitData().then(response=>{
152
-          if(response.data.state == 1){
153
-            this.department = response.data.data.department
154 168
 
155
-          }
156
-       })
157
-     },
158 169
      getDepart(id){
159 170
          var name = ""
160 171
        for(let i=0;i<this.department.length;i++){

+ 3 - 2
src/xt_pages/hospitalStation/treatTemplate/printOne.vue ファイルの表示

@@ -403,10 +403,11 @@
403 403
         })
404 404
       },
405 405
       getDiagnosis(id) {
406
+        let arr = id.split(',')
406 407
         var name = ''
407 408
         for (let i = 0; i < this.diagnoses.length; i++) {
408
-          if (id == this.diagnoses[i].id) {
409
-            name = this.diagnoses[i].class_name
409
+          if (arr.indexOf(String(this.diagnoses[i].id)) > -1) {
410
+            name += this.diagnoses[i].class_name + ' '
410 411
           }
411 412
         }
412 413
         return name