Pārlūkot izejas kodu

518合并代码

XMLWAN 2 gadus atpakaļ
vecāks
revīzija
7681a8da15

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

@@ -62,7 +62,7 @@
62 62
       <el-table-column align="center" prop="name" label="费用分类">
63 63
         <template slot-scope="scope">
64 64
            <span v-if="scope.row.type == 1">
65
-              {{getAdviceMedChrgintmType(scope.row.advice_id)}}
65
+              {{getAdviceMedChrgintmType(scope.row.name)}}
66 66
            </span>
67 67
            <span v-if="scope.row.type == 2">
68 68
              {{getProjectMedChrgintmType(scope.row.project_id)}}
@@ -305,7 +305,7 @@ export default {
305 305
               order_info[i].med_chrgitm_type = this.getType(order_info[i].med_chrgitm_type)
306 306
               order_info[i].chrgitm_lv  = this.getMedicineInsuranceType(order_info[i].chrgitm_lv)
307 307
             }
308
-           
308
+            console.log("order_info32323232323232233232323232",order_info)
309 309
             this.order_info_list = order_info
310 310
             var prescription = response.data.data.prescription
311 311
           
@@ -862,7 +862,9 @@ export default {
862 862
       for(let i=0;i<this.tableList.length;i++){
863 863
         this.tableList[i].index = i + 1
864 864
       }
865
-       this.tableList.push(objOne)
865
+      this.tableList.push(objOne)
866
+
867
+      console.log("hh2323323232322323233223",this.tableList)
866 868
     },
867 869
 
868 870
     getTotalPrice(val){
@@ -872,10 +874,10 @@ export default {
872 874
       }
873 875
       return total_price.toFixed(2)
874 876
     },
875
-    getAdviceMedChrgintmType(advice_id){
877
+    getAdviceMedChrgintmType(name){
876 878
       var med_chrgitm_type = ""
877 879
       for(let i=0;i<this.order_info_list.length;i++){
878
-        if(advice_id == this.order_info_list[i].advice_id){
880
+        if(name == this.order_info_list[i].advice.advice_name){
879 881
           med_chrgitm_type = this.order_info_list[i].med_chrgitm_type
880 882
         }
881 883
       }
@@ -921,7 +923,7 @@ export default {
921 923
       var total_price = 0
922 924
       for(let i=0;i<this.tableList.length;i++){
923 925
          if(this.tableList[i].advice_id > 0){
924
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
926
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
925 927
          }
926 928
          if(this.tableList[i].project_id > 0){
927 929
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)

+ 2 - 6
src/xt_pages/outpatientTool/detailPrint.vue Parādīt failu

@@ -44,16 +44,12 @@
44 44
           <td width="150" style="text-align: center">金额</td>
45 45
         </tr>
46 46
         <tr v-for="(item, index) in tableData" :key="index">
47
-          <td style="text-align: center">{{ index + 1 }}</td>
48 47
           <td style="text-align: center">
49
-          <td style="width: 19%; text-align: center">
50 48
             <span v-if="item.is_total == 1">{{ index + 1 }}</span>
51 49
             <span v-if="item.is_total == 2">合计</span>
52 50
           </td>
53
-          <td style="width: 10%; text-align: center">
54
-            <span v-if="item.record_date > 0">{{
55
-              getTimes(item.record_date)
56
-            }}</span>
51
+          <td style="text-align: center">
52
+            <span v-if="item.is_total == 1">{{getTimes(item.record_date)}}</span> 
57 53
           </td>
58 54
           <td width="80" style="text-align: center">{{ item.number }}</td>
59 55
           <td style="text-align: center">

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

@@ -57,7 +57,7 @@
57 57
             <tr v-for="(item, index) in tableList" :key="index">
58 58
                 <td style="text-align:center" >
59 59
                   <span v-if="item.type == 1">
60
-                    {{getAdviceMedChrgintmType(item.advice_id)}}
60
+                    {{getAdviceMedChrgintmType(item.name)}}
61 61
                   </span>
62 62
                    <span v-if="item.type == 2">
63 63
                     {{getProjectMedChrgintmType(item.project_id)}}
@@ -716,10 +716,10 @@
716 716
       }
717 717
       return total_price.toFixed(2)
718 718
     },
719
-    getAdviceMedChrgintmType(advice_id){
719
+    getAdviceMedChrgintmType(name){
720 720
       var med_chrgitm_type = ""
721 721
       for(let i=0;i<this.order_info_list.length;i++){
722
-        if(advice_id == this.order_info_list[i].advice_id){
722
+        if(name == this.order_info_list[i].advice.advice_name){
723 723
           med_chrgitm_type = this.order_info_list[i].med_chrgitm_type
724 724
         }
725 725
       }
@@ -765,7 +765,7 @@
765 765
       var total_price = 0
766 766
       for(let i=0;i<this.tableList.length;i++){
767 767
          if(this.tableList[i].advice_id > 0){
768
-           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].advice_id)
768
+           this.tableList[i].drug_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
769 769
          }
770 770
          if(this.tableList[i].project_id > 0){
771 771
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)