Explorar el Código

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

csx hace 3 años
padre
commit
02d686ebdb

+ 1 - 1
src/xt_pages/data/components/consumables.vue Ver fichero

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

+ 9 - 9
src/xt_pages/data/components/drugs.vue Ver fichero

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

+ 1 - 1
src/xt_pages/data/components/project.vue Ver fichero

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

+ 11 - 10
src/xt_pages/hospitalStation/template/printOne.vue Ver fichero

46
           </div>
46
           </div>
47
           <div class="doctorBox">
47
           <div class="doctorBox">
48
               <p>医师:{{item.doctor?item.doctor:""}}</p>
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
           </div>
50
           </div>
51
           <div class="actionBar">
51
           <div class="actionBar">
52
                  <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
52
                  <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
248
         return project_name
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
    created(){
263
    created(){

+ 20 - 9
src/xt_pages/hospitalStation/template/printTwo.vue Ver fichero

15
             <div style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
15
             <div style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
16
             <div style="margin-bottom: 10px;">电话:{{patient.phone}}</div>
16
             <div style="margin-bottom: 10px;">电话:{{patient.phone}}</div>
17
             <div>地址:{{patient.home_address}}</div>
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
         </div>
19
         </div>
20
         <div class="prescriptionBox">
20
         <div class="prescriptionBox">
21
             <div class="Rp">Rp:</div>
21
             <div class="Rp">Rp:</div>
51
     },
51
     },
52
     data(){
52
     data(){
53
       return {
53
       return {
54
+        diagnoses:[],
54
         doctorList:[],
55
         doctorList:[],
55
         advicePrint:{},
56
         advicePrint:{},
56
         patient:{},
57
         patient:{},
62
       }
63
       }
63
     },
64
     },
64
    methods:{
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
      getAge(patient){
75
      getAge(patient){
66
        var thisLen = patient.id_card_no.length
76
        var thisLen = patient.id_card_no.length
67
        var birth = ''
77
        var birth = ''
88
                this.doctorList = doctor
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
       getDoctor(id){
111
       getDoctor(id){
94
         var name = ""
112
         var name = ""
95
         for(let i=0;i<this.doctorList.length;i++){
113
         for(let i=0;i<this.doctorList.length;i++){
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
      getDepart(id){
169
      getDepart(id){
159
          var name = ""
170
          var name = ""
160
        for(let i=0;i<this.department.length;i++){
171
        for(let i=0;i<this.department.length;i++){

+ 3 - 2
src/xt_pages/hospitalStation/treatTemplate/printOne.vue Ver fichero

403
         })
403
         })
404
       },
404
       },
405
       getDiagnosis(id) {
405
       getDiagnosis(id) {
406
+        let arr = id.split(',')
406
         var name = ''
407
         var name = ''
407
         for (let i = 0; i < this.diagnoses.length; i++) {
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
         return name
413
         return name