Browse Source

518合并代码

XMLWAN 3 years ago
parent
commit
a28cdb5b70

+ 10 - 2
src/xt_pages/outpatientTool/components/detailStatistics.vue View File

86
           {{scope.row.cnt}}
86
           {{scope.row.cnt}}
87
         </template>
87
         </template>
88
       </el-table-column>
88
       </el-table-column>
89
+      <el-table-column align="center" prop="name" label="单位">
90
+        <template slot-scope="scope">
91
+          <span v-if="scope.row.advice_id > 0">{{scope.row.advice.prescribing_number_unit}}</span>
92
+          <span v-if="scope.row.project_id > 0">
93
+            <span v-if="scope.row.project.type == 2">{{scope.row.project.project.unit}}</span>
94
+            <span v-if="scope.row.project.type == 3">{{scope.row.project.good_info.packing_unit}}</span>
95
+          </span>
96
+        </template>
97
+      </el-table-column>
89
       <el-table-column align="center" prop="name" label="单价">
98
       <el-table-column align="center" prop="name" label="单价">
90
         <template slot-scope="scope">
99
         <template slot-scope="scope">
91
           {{scope.row.pric}}
100
           {{scope.row.pric}}
184
         type: this.item_type,
193
         type: this.item_type,
185
         keyword: this.keywords
194
         keyword: this.keywords
186
       }
195
       }
187
-    //  console.log("patient_id 233232323232323",this.patient_id)
188
      getHisSummaryDetailList(params).then(response=>{
196
      getHisSummaryDetailList(params).then(response=>{
189
        if(response.data.state == 1){
197
        if(response.data.state == 1){
190
           var list =  response.data.data.list
198
           var list =  response.data.data.list
208
             obj.total_price += (this.tableData[i].cnt * this.tableData[i].pric)  
216
             obj.total_price += (this.tableData[i].cnt * this.tableData[i].pric)  
209
           }
217
           }
210
           obj.total_price = (obj.total_price).toFixed(2)
218
           obj.total_price = (obj.total_price).toFixed(2)
211
-          // console.log("tabledate23232332233223",this.tableData)
212
           this.tableData.push(obj)
219
           this.tableData.push(obj)
220
+          console.log("tabl2332322332323232323232323",this.tableData)
213
           var new_arr = []
221
           var new_arr = []
214
        
222
        
215
           if(this.keywords!=""){
223
           if(this.keywords!=""){

+ 16 - 6
src/xt_pages/outpatientTool/components/gatherStatistics.vue View File

170
       list:[],
170
       list:[],
171
       his_patient:{},
171
       his_patient:{},
172
       hisDepatment:[],
172
       hisDepatment:[],
173
+      chineseTraditionalMedicineCostTotal:0,
174
+      checkCostTotal:0,
175
+      laboratoryCostTotal:0,
176
+      zhenChaCostTotal:0,
177
+      bedCostTotal:0,
178
+      materialCostTotal:0,
179
+      otherCostTotal:0,
173
     }
180
     }
174
   },
181
   },
175
   methods: {
182
   methods: {
223
               }, []) // 设置cur默认类型为数组,并且初始值为空的数组
230
               }, []) // 设置cur默认类型为数组,并且初始值为空的数组
224
 
231
 
225
               let tempOrderInfo = []
232
               let tempOrderInfo = []
226
-
233
+              console.log("med_chrgitm_types3323232323232233",med_chrgitm_types)
227
               for (let i = 0; i < med_chrgitm_types.length; i++) {
234
               for (let i = 0; i < med_chrgitm_types.length; i++) {
228
                 let obj = {
235
                 let obj = {
229
                   total: 0,
236
                   total: 0,
422
      return project_name
429
      return project_name
423
     },
430
     },
424
     setNewData(details) {
431
     setNewData(details) {
425
-      console.log("detail23332323232322332332322323232332",details)
432
+      // console.log("detail23332323232322332332322323232332",details)
426
         let drug_ids = []
433
         let drug_ids = []
427
         let project_ids = []
434
         let project_ids = []
428
 
435
 
438
             let obj = {
445
             let obj = {
439
               id: details[i].project.project_id,
446
               id: details[i].project.project_id,
440
               price: details[i].project.price,
447
               price: details[i].project.price,
441
-              record_date:details[i].advice.record_date
448
+              record_date:details[i].project.record_date
442
             }
449
             }
443
             project_ids.push(obj)
450
             project_ids.push(obj)
444
 
451
 
480
               if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price) {
487
               if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price) {
481
                if( details[a].project.type == 2){
488
                if( details[a].project.type == 2){
482
                  obj['name'] = details[a].project.project.project_name
489
                  obj['name'] = details[a].project.project.project_name
483
-                 obj['spec'] = ''
490
+                 obj['spec'] =  details[a].project.project.project_name
484
                  obj['unit'] = details[a].project.project.unit
491
                  obj['unit'] = details[a].project.project.unit
492
+                 obj['record_date'] = details[a].project.record_date
493
+
485
                 
494
                 
486
 
495
 
487
                }else if(details[a].project.type == 3){
496
                }else if(details[a].project.type == 3){
488
                  obj['name'] = details[a].project.good_info.good_name
497
                  obj['name'] = details[a].project.good_info.good_name
489
-                 obj['spec'] = ''
498
+                 obj['spec'] = details[a].project.good_info.specification_name
490
                  obj['unit'] = details[a].project.good_info.packing_unit
499
                  obj['unit'] = details[a].project.good_info.packing_unit
500
+                 obj['record_date'] = details[a].project.record_date
491
 
501
 
492
                }
502
                }
493
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
503
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
495
                 obj['price'] = parseFloat(details[a].pric)
505
                 obj['price'] = parseFloat(details[a].pric)
496
                 obj['chrgitm_lv'] = details[a].chrgitm_lv
506
                 obj['chrgitm_lv'] = details[a].chrgitm_lv
497
                 obj['is_total'] = 2
507
                 obj['is_total'] = 2
498
-                obj['record_date'] = details[a].record_date
508
+               
499
                 count = count + details[a].cnt
509
                 count = count + details[a].cnt
500
               }
510
               }
501
             }
511
             }

+ 8 - 0
src/xt_pages/outpatientTool/detailPrint.vue View File

35
           <td style="width: 17%; text-align: center">项目名称</td>
35
           <td style="width: 17%; text-align: center">项目名称</td>
36
           <td style="width: 10%; text-align: center">规格</td>
36
           <td style="width: 10%; text-align: center">规格</td>
37
           <td style="width: 13%; text-align: center">数量</td>
37
           <td style="width: 13%; text-align: center">数量</td>
38
+          <td style="width: 13%; text-align: center">单位</td>
38
           <td style="width: 11%; text-align: center">单价(元)</td>
39
           <td style="width: 11%; text-align: center">单价(元)</td>
39
           <td style="width: 10%; text-align: center">金额</td>
40
           <td style="width: 10%; text-align: center">金额</td>
40
         </tr>
41
         </tr>
76
           </td>
77
           </td>
77
           <td style="width: 6%; text-align: center">
78
           <td style="width: 6%; text-align: center">
78
             {{ item.cnt }}
79
             {{ item.cnt }}
80
+          </td>
81
+           <td style="width: 6%; text-align: center">
82
+              <span v-if="item.advice_id > 0">{{item.prescribing_number_unit}}</span>
83
+              <span v-if="item.project_id > 0">
84
+                <span v-if="item.project.type == 2">{{item.project.project.unit}}</span>
85
+                <span v-if="item.project.type == 3">{{item.project.good_info.packing_unit}}</span>
86
+              </span>
79
           </td>
87
           </td>
80
           <td style="width: 10%; text-align: center">
88
           <td style="width: 10%; text-align: center">
81
             {{ item.pric }}
89
             {{ item.pric }}

+ 6 - 5
src/xt_pages/outpatientTool/gatherPrint.vue View File

391
               id: details[i].advice.drug_id,
391
               id: details[i].advice.drug_id,
392
               price: details[i].advice.price,
392
               price: details[i].advice.price,
393
               record_date:details[i].advice.advice_date
393
               record_date:details[i].advice.advice_date
394
+              
394
             }
395
             }
395
             drug_ids.push(obj)
396
             drug_ids.push(obj)
396
           } else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
397
           } else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
440
               if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price) {
441
               if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price) {
441
                if( details[a].project.type == 2){
442
                if( details[a].project.type == 2){
442
                  obj['name'] = details[a].project.project.project_name
443
                  obj['name'] = details[a].project.project.project_name
443
-                 obj['spec'] = ''
444
+                 obj['spec'] = details[a].project.project.project_name
444
                  obj['unit'] = details[a].project.project.unit
445
                  obj['unit'] = details[a].project.project.unit
445
-                
446
+                 obj['record_date'] = details[a].project.record_date
446
 
447
 
447
                }else if(details[a].project.type == 3){
448
                }else if(details[a].project.type == 3){
448
                  obj['name'] = details[a].project.good_info.good_name
449
                  obj['name'] = details[a].project.good_info.good_name
449
-                 obj['spec'] = ''
450
-                 obj['unit'] = details[a].project.good_info.packing_unit
451
-               
450
+                 obj['spec'] =  details[a].project.good_info.specification_name
451
+                 obj['unit'] =  details[a].project.good_info.packing_unit
452
+                 obj['record_date'] = details[a].project.record_date
452
 
453
 
453
                }
454
                }
454
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
455
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)