소스 검색

518合并代码

XMLWAN 3 년 전
부모
커밋
7681a8da15

+ 8 - 6
src/xt_pages/outpatientTool/components/gatherStatistics.vue 파일 보기

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

+ 2 - 6
src/xt_pages/outpatientTool/detailPrint.vue 파일 보기

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

+ 4 - 4
src/xt_pages/outpatientTool/gatherPrint.vue 파일 보기

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