Pārlūkot izejas kodu

518合并代码

XMLWAN 2 gadus atpakaļ
vecāks
revīzija
a28cdb5b70

+ 10 - 2
src/xt_pages/outpatientTool/components/detailStatistics.vue Parādīt failu

@@ -86,6 +86,15 @@
86 86
           {{scope.row.cnt}}
87 87
         </template>
88 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 98
       <el-table-column align="center" prop="name" label="单价">
90 99
         <template slot-scope="scope">
91 100
           {{scope.row.pric}}
@@ -184,7 +193,6 @@ export default {
184 193
         type: this.item_type,
185 194
         keyword: this.keywords
186 195
       }
187
-    //  console.log("patient_id 233232323232323",this.patient_id)
188 196
      getHisSummaryDetailList(params).then(response=>{
189 197
        if(response.data.state == 1){
190 198
           var list =  response.data.data.list
@@ -208,8 +216,8 @@ export default {
208 216
             obj.total_price += (this.tableData[i].cnt * this.tableData[i].pric)  
209 217
           }
210 218
           obj.total_price = (obj.total_price).toFixed(2)
211
-          // console.log("tabledate23232332233223",this.tableData)
212 219
           this.tableData.push(obj)
220
+          console.log("tabl2332322332323232323232323",this.tableData)
213 221
           var new_arr = []
214 222
        
215 223
           if(this.keywords!=""){

+ 16 - 6
src/xt_pages/outpatientTool/components/gatherStatistics.vue Parādīt failu

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

+ 8 - 0
src/xt_pages/outpatientTool/detailPrint.vue Parādīt failu

@@ -35,6 +35,7 @@
35 35
           <td style="width: 17%; text-align: center">项目名称</td>
36 36
           <td style="width: 10%; text-align: center">规格</td>
37 37
           <td style="width: 13%; text-align: center">数量</td>
38
+          <td style="width: 13%; text-align: center">单位</td>
38 39
           <td style="width: 11%; text-align: center">单价(元)</td>
39 40
           <td style="width: 10%; text-align: center">金额</td>
40 41
         </tr>
@@ -76,6 +77,13 @@
76 77
           </td>
77 78
           <td style="width: 6%; text-align: center">
78 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 87
           </td>
80 88
           <td style="width: 10%; text-align: center">
81 89
             {{ item.pric }}

+ 6 - 5
src/xt_pages/outpatientTool/gatherPrint.vue Parādīt failu

@@ -391,6 +391,7 @@
391 391
               id: details[i].advice.drug_id,
392 392
               price: details[i].advice.price,
393 393
               record_date:details[i].advice.advice_date
394
+              
394 395
             }
395 396
             drug_ids.push(obj)
396 397
           } else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
@@ -440,15 +441,15 @@
440 441
               if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price) {
441 442
                if( details[a].project.type == 2){
442 443
                  obj['name'] = details[a].project.project.project_name
443
-                 obj['spec'] = ''
444
+                 obj['spec'] = details[a].project.project.project_name
444 445
                  obj['unit'] = details[a].project.project.unit
445
-                
446
+                 obj['record_date'] = details[a].project.record_date
446 447
 
447 448
                }else if(details[a].project.type == 3){
448 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 455
                 obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)