瀏覽代碼

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

28169 1 年之前
父節點
當前提交
0bcdfdc0f1

+ 8 - 3
src/xt_pages/hospitalStation/statementPrint.vue 查看文件

27
     <private-charge-print :info="info" ></private-charge-print>
27
     <private-charge-print :info="info" ></private-charge-print>
28
     </div>
28
     </div>
29
 
29
 
30
-    <div class='dialysisPage' style="padding-top:40px;" v-if="this.$store.getters.xt_user.org_id == 10210 || this.$store.getters.xt_user.org_id == 0">
30
+    <div class='dialysisPage' style="padding-top:40px;" v-if="this.$store.getters.xt_user.org_id == 10210 ">
31
 <!--      <private-charge-print :info="info" ></private-charge-print>-->
31
 <!--      <private-charge-print :info="info" ></private-charge-print>-->
32
 <!--      <print-ten :info="info" ></print-ten>-->
32
 <!--      <print-ten :info="info" ></print-ten>-->
33
       <print-ten :info="info"></print-ten>
33
       <print-ten :info="info"></print-ten>
34
     </div>
34
     </div>
35
+    <!-- <div class='dialysisPage' style="padding-top:40px;" v-if="this.$store.getters.xt_user.org_id == 10489 || this.$store.getters.xt_user.org_id == 0">
36
+      <printthree :info="info"></printthree>
37
+    </div> -->
35
 
38
 
36
 <!--    <div class='dialysisPage' style="padding-top:40px;" v-else>-->
39
 <!--    <div class='dialysisPage' style="padding-top:40px;" v-else>-->
37
 <!--      <private-charge-print :info="info" v-if="this.paramsObj.balance_accounts_type == 2"></private-charge-print>-->
40
 <!--      <private-charge-print :info="info" v-if="this.paramsObj.balance_accounts_type == 2"></private-charge-print>-->
56
 import PrivateChargePrint from '../outpatientCharges/statementTemplate/privateChargePrint'
59
 import PrivateChargePrint from '../outpatientCharges/statementTemplate/privateChargePrint'
57
 import HospitalSettlePrint from './settlementTemplate/hospitalSettlePrint'
60
 import HospitalSettlePrint from './settlementTemplate/hospitalSettlePrint'
58
 import PrintTen from './statementTemplate/printTen.vue'
61
 import PrintTen from './statementTemplate/printTen.vue'
62
+// import printthree from './statementTemplate/printthree'
59
 
63
 
60
 export default {
64
 export default {
61
   name: 'dialysisPrintOrder',
65
   name: 'dialysisPrintOrder',
65
     PrivateChargePrint,
69
     PrivateChargePrint,
66
     BreadCrumb,
70
     BreadCrumb,
67
     printOne,
71
     printOne,
68
-    printTwo
72
+    printTwo,
73
+    // printthree
69
   },
74
   },
70
   props: {
75
   props: {
71
     paramsObj: Object
76
     paramsObj: Object
474
               that.list.push(obj)
479
               that.list.push(obj)
475
 
480
 
476
             }
481
             }
477
-            console.log(that.list)
482
+            console.log('333333',that.list)
478
           }
483
           }
479
         })
484
         })
480
 
485
 

+ 9 - 7
src/xt_pages/outpatientCharges/allListPrint.vue 查看文件

13
     </template>
13
     </template>
14
 
14
 
15
     <div class='dialysisPage' style="padding-top:40px;">
15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne  v-if="org_id != 10215  && org_id !=9671&&org_id !=9675&& org_id !=10515" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
16
+      <printOne  v-if="org_id != 10215  && org_id !=9671&&org_id !=9675&& org_id !=10515 && org_id !=10489 && org_id !=0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
17
       <summary-print v-if="org_id == 10215|| org_id ==9671 ||org_id ==9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
17
       <summary-print v-if="org_id == 10215|| org_id ==9671 ||org_id ==9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
18
-      <printTwo v-if="org_id==10515 || org_id==0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printTwo>
18
+      <printTwo v-if="org_id==10515 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printTwo>
19
+      <printthree  v-if="org_id == 10489 || org_id==0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printthree>
19
 <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
20
 <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
20
     </div>
21
     </div>
21
   </div>
22
   </div>
28
   import ListPrintTwo from './listTemplate/listPrintTwo'
29
   import ListPrintTwo from './listTemplate/listPrintTwo'
29
   import SummaryPrint from './allListTemplate/summaryPrint'
30
   import SummaryPrint from './allListTemplate/summaryPrint'
30
   import printTwo from './allListTemplate/printTwo'
31
   import printTwo from './allListTemplate/printTwo'
31
-
32
+  import printthree from './allListTemplate/printthree'
32
   export default {
33
   export default {
33
     name: 'allListPrint',
34
     name: 'allListPrint',
34
     components: {
35
     components: {
35
       SummaryPrint,
36
       SummaryPrint,
36
       ListPrintTwo,
37
       ListPrintTwo,
37
       printOne,
38
       printOne,
38
-      printTwo
39
+      printTwo,
40
+      printthree
39
     },
41
     },
40
     props: {
42
     props: {
41
       paramsObj: Object
43
       paramsObj: Object
453
       },
455
       },
454
       printThisPage() {
456
       printThisPage() {
455
         const style =
457
         const style =
456
-          '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .allListTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;}.allListTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
458
+          '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .allListTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;}.allListTable tr td {padding: 5px 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
457
          const style1 =
459
          const style1 =
458
-          '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .allListTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;} .allListTable tr td {padding: 0 5px;} .allListTable .allListTable_1{border: none;width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;} .allListTable_1 tr{page-break-inside:avoid;} .allListTable_1 tr td {padding: 0 5px;border: 1px solid #000;} .tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
460
+          '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .allListTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;} .allListTable tr td {padding: 5px 5px;} .allListTable .allListTable_1{border: none;width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;} .allListTable_1 tr{page-break-inside:avoid;} .allListTable_1 tr td {padding: 0 5px;border: 1px solid #000;} .tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
459
 
461
 
460
-        if(this.org_id == 10215 || this.org_id == 0 ||this.org_id == 9675){
462
+        if(this.org_id == 10215 ||this.org_id == 9675){
461
           printJS({
463
           printJS({
462
           printable: 'allList-print',
464
           printable: 'allList-print',
463
           type: 'html',
465
           type: 'html',

+ 5 - 3
src/xt_pages/outpatientCharges/allListTemplate/printOne.vue 查看文件

1
 <template>
1
 <template>
2
   <div id="allList-print" class="allList-print">
2
   <div id="allList-print" class="allList-print">
3
-    <div v-for='(i,index) in pageArr.length' :key="index">
3
+    <div v-for='(i,index) in pageArr.length' :key="index" style="page-break-after: always;">
4
       <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用汇总</div>
4
       <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用汇总</div>
5
       <div class="allListInfo">
5
       <div class="allListInfo">
6
         <div>患者姓名:{{ patient.name }}</div>
6
         <div>患者姓名:{{ patient.name }}</div>
18
           <td style="width:10%">类别</td>
18
           <td style="width:10%">类别</td>
19
           <td style="width:40%">项目名称</td>
19
           <td style="width:40%">项目名称</td>
20
           <td style="width:10%">规格</td>
20
           <td style="width:10%">规格</td>
21
-          <td style="width:10%" v-if="org_id==10489 ||org_id==0">报销等级</td>
22
           <td style="width:10%">单价(元)</td>
21
           <td style="width:10%">单价(元)</td>
23
           <td style="width:10%">数量</td>
22
           <td style="width:10%">数量</td>
24
           <td style="width:10%">金额(元)</td>
23
           <td style="width:10%">金额(元)</td>
24
+          <!-- <td style="width:10%" v-if="org_id==10489 ||org_id==0">报销等级</td> -->
25
         </tr>
25
         </tr>
26
         <template v-for='item in list.slice(index * 13,(index * 13) + pageArr[index])'>
26
         <template v-for='item in list.slice(index * 13,(index * 13) + pageArr[index])'>
27
           <tr v-if="item.is_total == 2">
27
           <tr v-if="item.is_total == 2">
28
             <td style="width:10%">{{ item.med_chrgitm_type }}</td>
28
             <td style="width:10%">{{ item.med_chrgitm_type }}</td>
29
             <td style="width:40%">{{ item.name }}</td>
29
             <td style="width:40%">{{ item.name }}</td>
30
             <td style="width:10%">{{ item.spec }}</td>
30
             <td style="width:10%">{{ item.spec }}</td>
31
-            <td style="width:10%" v-if="org_id==10489 ||org_id==0">{{item.chrgitm_lv!=''?getMedicineInsuranceType(item.chrgitm_lv): '丙类' }}</td>
32
             <td style="width:10%">{{ (item.price).toFixed(2) }}</td>
31
             <td style="width:10%">{{ (item.price).toFixed(2) }}</td>
33
             <td style="width:10%">{{ item.count }}{{ item.unit }}</td>
32
             <td style="width:10%">{{ item.count }}{{ item.unit }}</td>
34
             <td style="width:10%">{{ (item.price * item.count).toFixed(2) }}</td>
33
             <td style="width:10%">{{ (item.price * item.count).toFixed(2) }}</td>
34
+            <!-- <td style="width:10%" v-if="org_id==10489 ||org_id==0">
35
+              {{item.chrgitm_lv!=''?getMedicineInsuranceType(item.chrgitm_lv): '丙类' }}
36
+            </td> -->
35
           </tr>
37
           </tr>
36
           <tr>
38
           <tr>
37
             <td colspan="6" style="text-align:right;" v-if="item.is_total == 1">合计:{{ item.total }}元</td>
39
             <td colspan="6" style="text-align:right;" v-if="item.is_total == 1">合计:{{ item.total }}元</td>

+ 214 - 0
src/xt_pages/outpatientCharges/allListTemplate/printthree.vue 查看文件

1
+<template>
2
+  <div id="allList-print" class="allList-print">
3
+    <div v-for='(i,index) in pageArr.length' :key="index" style="page-break-after: always;">
4
+      <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用汇总33</div>
5
+      <div class="allListInfo">
6
+        <div>患者姓名:{{ patient.name }}</div>
7
+        <div>透析号:{{ patient.dialysis_no }}</div>
8
+        <div>性别:{{ patient.gender == 1 ? '男' : '女' }}</div>
9
+        <div>年龄:{{ patient.age }} 岁</div>
10
+        <div v-if="$store.getters.xt_user.org_id  == 0">日期:{{ hospital.in_hosptial_time }} 至
11
+          {{ hospital.out_hosptial_time }}
12
+        </div>
13
+        <div v-else>日期:{{ getTimes(order.settle_start_time) }} 至 {{ getTimes(order.settle_end_time) }}</div>
14
+
15
+      </div>
16
+      <table class="allListTable" border="1">
17
+        <tr>
18
+          <td style="width:10%">类别</td>
19
+          <td style="width:40%">项目名称</td>
20
+          <td style="width:10%">规格</td>
21
+          <td style="width:10%">单价(元)</td>
22
+          <td style="width:10%">数量</td>
23
+          <td style="width:10%">金额(元)</td>
24
+          <td style="width:10%" v-if="org_id==10489 ||org_id==0">报销等级</td>
25
+        </tr>
26
+        <template v-for='item in list.slice(index * 20,(index * 20) + pageArr[index])'>
27
+          <tr v-if="item.is_total == 2">
28
+            <td style="width:10%">{{ item.med_chrgitm_type }}</td>
29
+            <td style="width:40%">{{ item.name }}</td>
30
+            <td style="width:10%">{{ item.spec }}</td>
31
+            <td style="width:10%">{{ (item.price).toFixed(2) }}</td>
32
+            <td style="width:10%">{{ item.count }}{{ item.unit }}</td>
33
+            <td style="width:10%">{{ (item.price * item.count).toFixed(2) }}</td>
34
+            <td style="width:10%" v-if="org_id==10489 ||org_id==0">
35
+              {{item.chrgitm_lv!=''?getMedicineInsuranceType(item.chrgitm_lv): '丙类' }}
36
+            </td>
37
+          </tr>
38
+          <tr>
39
+            <td colspan="6" style="text-align:right;" v-if="item.is_total == 1">合计:{{ item.total }}元</td>
40
+          </tr>
41
+        </template>
42
+      </table>
43
+      <div class="tableBottom">
44
+        <div class="tableBottomOne">制表人:{{ admin.user_name }}</div>
45
+        <div class="tableBottomOne">制表日期:{{ getNowTime() }}</div>
46
+        <div class="tableBottomOne">总费用:{{ order.medfee_sumamt }}元</div>
47
+      </div>
48
+    </div>
49
+  </div>
50
+</template>
51
+
52
+<script>
53
+import { uParseTime } from '@/utils/tools'
54
+
55
+export default {
56
+  props: {
57
+    list: {
58
+      type: Array,
59
+      default: function() {
60
+        return []
61
+      }
62
+    }, patient: {
63
+      type: Object,
64
+      default: function() {
65
+        return {}
66
+      }
67
+    }, order: {
68
+      type: Object,
69
+      default: function() {
70
+        return {}
71
+      }
72
+    }, admin: {
73
+      type: Object,
74
+      default: function() {
75
+        return {}
76
+      }
77
+    }, hospital: {
78
+      type: Object,
79
+      default: function() {
80
+        return {}
81
+      }
82
+
83
+    }
84
+  },
85
+  data() {
86
+    return {
87
+      page: 1,
88
+      pageArr: [],
89
+      org_id:'',
90
+    }
91
+  },
92
+  methods: {
93
+    getNowTime: function() {
94
+      let dateTime
95
+      let yy = new Date().getFullYear()
96
+      let mm = new Date().getMonth() + 1
97
+      let dd = new Date().getDate()
98
+      let hh = new Date().getHours()
99
+      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
100
+          :
101
+          new Date().getMinutes()
102
+      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
103
+          :
104
+          new Date().getSeconds()
105
+      dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
106
+      return dateTime
107
+    },
108
+    getTimes(time) {
109
+      return uParseTime(time, '{y}-{m}-{d}')
110
+    }, getTotal: function(items) {
111
+      let total = 0
112
+      for (let i = 0; i < items.length; i++) {
113
+        total = total + (items[i].count * items[i].price).toFixed(2)
114
+      }
115
+      return total
116
+
117
+    },
118
+    getPage() {
119
+      console.log('kkkkkk',this.list);
120
+      if (this.list.length <= 20) {
121
+        this.page = 1
122
+        this.pageArr.push(this.list.length)
123
+      } else if (this.list.length > 20) {
124
+        this.page = parseInt(this.list.length / 20)
125
+        let num = this.list.length % 20
126
+        for (var i = 0; i < this.page; i++) {
127
+          this.pageArr.push(20)
128
+        }
129
+        if (num != 0) {
130
+          this.pageArr.push(num)
131
+        }
132
+      }
133
+    },
134
+    getMedicineInsuranceType(type) {
135
+      switch (type) {
136
+        case "01":
137
+          return '甲类'
138
+          break
139
+        case "02":
140
+          return '乙类'
141
+
142
+          break
143
+        case "03":
144
+          return '自费'
145
+          break
146
+
147
+      }
148
+
149
+    },
150
+
151
+  },
152
+  created(){
153
+    this.org_id = this.$store.getters.xt_user.org_id
154
+  },
155
+  watch: {
156
+    list: {
157
+      handler(newVal) {
158
+        this.getPage()
159
+      },
160
+      deep: true
161
+    }
162
+  }
163
+}
164
+
165
+
166
+</script>
167
+
168
+<style lang="scss" scoped>
169
+.allList-print {
170
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
171
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
172
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
173
+  margin-bottom: 20px;
174
+  padding: 20px 10px;
175
+}
176
+
177
+.allListTitle {
178
+  font-size: 22px;
179
+  text-align: center;
180
+  font-weight: bold;
181
+  margin-bottom: 10px;
182
+}
183
+
184
+.allListInfo {
185
+  display: flex;
186
+  font-size: 14px;
187
+  justify-content: space-between;
188
+  margin: 10px 0;
189
+}
190
+
191
+.allListTable {
192
+  width: 100%;
193
+  text-align: center;
194
+  border-collapse: collapse;
195
+  line-height: 20px;
196
+  font-size: 12px;
197
+  border-color: #000;
198
+  text-align: left;
199
+}
200
+
201
+.allListTable tr td {
202
+  padding: 0 5px;
203
+}
204
+
205
+.tableBottom {
206
+  font-size: 14px;
207
+  display: flex;
208
+  margin-top: 20px;
209
+}
210
+
211
+.tableBottomOne {
212
+  margin-right: 40px;
213
+}
214
+</style>

+ 95 - 7
src/xt_pages/outpatientCharges/listPrint.vue 查看文件

29
   import printTwo from './listTemplate/printTwo'
29
   import printTwo from './listTemplate/printTwo'
30
   // import printThree from './listTemplate/printThree'
30
   // import printThree from './listTemplate/printThree'
31
   import print from "print-js";
31
   import print from "print-js";
32
-
33
-  import { getHisOrderDetail,getPrivateExpensesOrder } from '@/api/his/his'
32
+  import { getHisOrderDetail,getPrivateExpensesOrder} from '@/api/his/his'
34
   import { uParseTime } from '@/utils/tools'
33
   import { uParseTime } from '@/utils/tools'
35
   import axios from 'axios'
34
   import axios from 'axios'
36
   import PrintThree from './listTemplate/printThree'
35
   import PrintThree from './listTemplate/printThree'
81
 
80
 
82
         }
81
         }
83
       }
82
       }
84
-
83
+      // this.getinfos(this.paramsObj.id)
85
     },
84
     },
86
 
85
 
87
     methods: {
86
     methods: {
103
               this.admin = response.data.data.admin_info
102
               this.admin = response.data.data.admin_info
104
               this.hospital_record = response.data.data.hospital_record
103
               this.hospital_record = response.data.data.hospital_record
105
 
104
 
106
-
107
               //获取所有项目类型进行去重
105
               //获取所有项目类型进行去重
108
               let med_chrgitm_types = []
106
               let med_chrgitm_types = []
109
               for (let i = 0; i < response.data.data.order_info.length; i++) {
107
               for (let i = 0; i < response.data.data.order_info.length; i++) {
618
         //     scanStyles: false
616
         //     scanStyles: false
619
         //   });
617
         //   });
620
         // }
618
         // }
621
-      },getInfoPrivateExpenses10106(order_id){
619
+      },
620
+      getInfoPrivateExpenses10106(order_id){
622
         let params = {
621
         let params = {
623
           order_id: order_id,
622
           order_id: order_id,
624
           admin_user_id:this.$store.getters.xt_user.user.id
623
           admin_user_id:this.$store.getters.xt_user.user.id
640
           }
639
           }
641
         })
640
         })
642
 
641
 
643
-      }, getGoodUnit(id) {
642
+      }, 
643
+      getGoodUnit(id) {
644
         var goodUnit = this.$store.getters.good_unit
644
         var goodUnit = this.$store.getters.good_unit
645
         for (let i = 0; i < goodUnit.length; i++) {
645
         for (let i = 0; i < goodUnit.length; i++) {
646
           if (goodUnit[i].id == id) {
646
           if (goodUnit[i].id == id) {
719
 
719
 
720
             });
720
             });
721
         }
721
         }
722
-      }
722
+      },
723
+      // getinfos(order_id){
724
+      //   let params = {
725
+      //     id: order_id
726
+      //   }
727
+      //   getHisOrderDetailCollect(params).then(res =>{
728
+      //     console.log('mmmmmmmm',res);
729
+      //     if(res.data.state == 0){
730
+
731
+      //     }else{
732
+      //       var order_info = res.data.data.order_info
733
+      //       let chrgitm_lvs = []
734
+      //       let advice = []
735
+      //       let good = []
736
+      //       let project = []
737
+      //       for(let i=0;i<order_info.length;i++){
738
+      //         if(order_info[i].advice.advice_name !=''){
739
+      //           const adv={
740
+      //             advice_name:order_info[i].advice.advice_name,
741
+      //             // good_name:order_info[i].project.good_info.good_name,
742
+      //             // project_name:order_info[i].project.project.project_name,
743
+      //             chrgitm_lv:order_info[i].chrgitm_lv,
744
+      //           }
745
+      //           advice.push(adv)
746
+      //         }
747
+              
748
+      //         if(order_info[i].project.good_info.good_name !=''){
749
+      //           const god={
750
+      //             // advice_name:order_info[i].advice.advice_name,
751
+      //             good_name:order_info[i].project.good_info.good_name,
752
+      //             // project_name:order_info[i].project.project.project_name,
753
+      //             chrgitm_lv:order_info[i].chrgitm_lv,
754
+      //           }
755
+      //           good.push(god)
756
+      //         }
757
+
758
+      //         if(order_info[i].project.project.project_name !=''){
759
+      //           const pro={
760
+      //             // advice_name:order_info[i].advice.advice_name,
761
+      //             // good_name:order_info[i].project.good_info.good_name,
762
+      //             project_name:order_info[i].project.project.project_name,
763
+      //             chrgitm_lv:order_info[i].chrgitm_lv,
764
+      //           }
765
+      //           project.push(pro)
766
+      //         }
767
+
768
+      //         for(let i=0;i<advice.length;i++){
769
+      //           for(let j=i+1;j<advice.length;j++){
770
+      //             if(advice[i].advice_name == advice[j].advice_name){
771
+      //               advice.splice(j,1)
772
+      //               j--
773
+      //             }
774
+      //           }
775
+      //         }
776
+      //         for(let i=0;i<good.length;i++){
777
+      //           for(let j=i+1;j<good.length;j++){
778
+      //             if(good[i].good_name == good[j].good_name){
779
+      //               good.splice(j,1)
780
+      //               j--
781
+      //             }
782
+      //           }
783
+      //         }
784
+      //         for(let i=0;i<project.length;i++){
785
+      //           for(let j=i+1;j<project.length;j++){
786
+      //             if(project[i].project_name == project[j].project_name){
787
+      //               project.splice(j,1)
788
+      //               j--
789
+      //             }
790
+      //           }
791
+      //         }
792
+
793
+      //         chrgitm_lvs = [...advice,...good,...project]
794
+      //         for(let i in this.list){
795
+      //           for(let j in chrgitm_lvs){
796
+      //             if(this.list[i].is_total ==0){
797
+      //               if(this.list[i].name == chrgitm_lvs[j].advice_name ||
798
+      //                   this.list[i].name == chrgitm_lvs[j].good_name ||
799
+      //                   this.list[i].name == chrgitm_lvs[j].project_name
800
+      //               ){
801
+      //                 this.list[i]['chrgitm_lv'] = chrgitm_lvs[j].chrgitm_lv
802
+      //               }
803
+      //             }
804
+      //           }
805
+      //         }
806
+      //       }
807
+
808
+      //     }
809
+      //   })
810
+      // }
723
     }
811
     }
724
 
812
 
725
   }
813
   }

+ 20 - 13
src/xt_pages/outpatientCharges/listTemplate/printOne.vue 查看文件

1
 <template>
1
 <template>
2
     <div id="list-print" class="list-print">
2
     <div id="list-print" class="list-print">
3
         <div v-for='(i,index) in pageArr.length' :key="index" style="page-break-after: always;">
3
         <div v-for='(i,index) in pageArr.length' :key="index" style="page-break-after: always;">
4
-        <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用清单</div>
4
+        <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用清单33</div>
5
         <div class="listInfo">
5
         <div class="listInfo">
6
 
6
 
7
             <div>患者姓名:{{patient.name}}</div>
7
             <div>患者姓名:{{patient.name}}</div>
17
         </div>
17
         </div>
18
         <table class="listTable" border="1">
18
         <table class="listTable" border="1">
19
             <tr>
19
             <tr>
20
-                <td style="width:15%">开方日期</td>
21
-                <td style="width:10%">类别</td>
20
+              <td style="width:12%">开方日期</td>
21
+              <td style="width:8%">类别</td>
22
               <td style="width:10%">医保编码</td>
22
               <td style="width:10%">医保编码</td>
23
               <td style="width:30%">项目名称</td>
23
               <td style="width:30%">项目名称</td>
24
-                <td style="width:10%">规格</td>
25
-                <td style="width:10%">单价(元)</td>
26
-                <td style="width:6%">数量</td>
27
-                <td style="width:10%">金额(元)</td>
24
+              <td style="width:10%">规格</td>
25
+              <td style="width:8%">单价(元)</td>
26
+              <td style="width:5%">数量</td>
27
+              <td style="width:10%">金额(元)</td>
28
               <td v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0 " style="width:10%">医保类型</td>
28
               <td v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0 " style="width:10%">医保类型</td>
29
-
29
+              <td style="width:10%" v-if="org_id == 10489 || org_id == 0">报销等级</td>
30
 
30
 
31
             </tr>
31
             </tr>
32
             <tr v-for="item in list.slice(index * 16,(index * 16) + pageArr[index])">
32
             <tr v-for="item in list.slice(index * 16,(index * 16) + pageArr[index])">
33
-                <td style="width:15%">{{item.p_time}}</td>
34
-                <td style="width:10%">{{item.med_chrgitm_type}}</td>
33
+                <td style="width:12%">{{item.p_time}}</td>
34
+                <td style="width:8%">{{item.med_chrgitm_type}}</td>
35
                 <td style="width:10%">{{item.code}}</td>
35
                 <td style="width:10%">{{item.code}}</td>
36
                 <td style="width:30%">{{item.name}}</td>
36
                 <td style="width:30%">{{item.name}}</td>
37
                 <td style="width:10%">{{item.spec}}</td>
37
                 <td style="width:10%">{{item.spec}}</td>
38
-                <td style="width:10%">{{item.price}}</td>
39
-                <td style="width:6%">{{item.count}}{{item.unit}}</td>
38
+                <td style="width:8%">{{item.price}}</td>
39
+                <td style="width:5%">{{item.count}}{{item.unit}}</td>
40
                 <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
40
                 <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
41
-              <td v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0 " style="width:10%">{{getMedicineInsuranceKind(item.type)}}</td>
41
+                <td v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0 " style="width:10%">{{getMedicineInsuranceKind(item.type)}}</td>
42
+                <td style="width:10%" v-if="org_id == 10489 || org_id == 0">
43
+                  {{item.type!='' ? getMedicineInsuranceKind(item.type):'丙类'}}
44
+                </td>
42
             </tr>
45
             </tr>
43
         </table>
46
         </table>
44
         <div class="tableBottom">
47
         <div class="tableBottom">
87
         return{
90
         return{
88
             page:1,
91
             page:1,
89
             pageArr:[],
92
             pageArr:[],
93
+            org_id:'',
90
         }
94
         }
91
     },
95
     },
92
     // mounted(){
96
     // mounted(){
143
       }
147
       }
144
 
148
 
145
     },
149
     },
150
+    created(){
151
+      this.org_id = this.$store.getters.xt_user.org_id
152
+    },
146
     watch:{
153
     watch:{
147
         list: {
154
         list: {
148
             handler(newVal) {
155
             handler(newVal) {