summaryPrint.vue 8.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <template>
  2. <div id="allList-print" class="allList-print">
  3. <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}汇总清单</div>
  4. <div class="allListInfo">
  5. <div>科别:门诊</div>
  6. <div>床号:</div>
  7. <div>门诊号:{{ order.mdtrt_id }}</div>
  8. <div>患者姓名:{{ patient.name }}</div>
  9. </div>
  10. <div class="allListInfo">
  11. <div>预交款:</div>
  12. <div>门诊日期:</div>
  13. <div>总费用:{{ order.medfee_sumamt }}</div>
  14. </div>
  15. <div class="allListInfo">
  16. <div>西药:&nbsp;&nbsp;&nbsp;{{order.westernMedicineCostTotal?order.westernMedicineCostTotal:''}}</div>
  17. <div >中成药:{{order.chineseTraditionalMedicineCostTotal?order.chineseTraditionalMedicineCostTotal:''}}</div>
  18. <div >中草药:</div>
  19. <div >检查费:{{order.checkCostTotal?order.checkCostTotal:''}}</div>
  20. </div>
  21. <div class="allListInfo">
  22. <div >输氧费:</div>
  23. <div>手术费:{{order.operationCostTotal?order.operationCostTotal:''}}</div>
  24. <div >化验费:{{order.laboratoryCostTotal?order.laboratoryCostTotal:''}}</div>
  25. <div>输血费:</div>
  26. </div>
  27. <div class="allListInfo">
  28. <div >诊察费:{{order.zhenChaCostTotal?order.zhenChaCostTotal:''}}</div>
  29. <div >治疗费:{{order.treatCostTotal?order.treatCostTotal:''}}</div>
  30. <div >护理费:</div>
  31. <div >床位费:{{order.bedCostTotal?order.bedCostTotal:''}}</div>
  32. </div>
  33. <div class="allListInfo">
  34. <div >麻醉费:</div>
  35. <div >材料费:{{order.materialCostTotal?order.materialCostTotal:''}}</div>
  36. <div >其他费:{{order.otherCostTotal?order.otherCostTotal:''}}</div>
  37. <div style="visibility: hidden;">其他费:</div>
  38. </div>
  39. <!-- <div style="display:flex;justify-content: space-between;">-->
  40. <!-- <div style="position: absolute;top:160px;left:40px">西药</div>-->
  41. <!-- <div style="position: absolute;top:160px;left:110px">{{ list.westernMedicineCostTotal }}</div>-->
  42. <!-- <div style="position: absolute;top:160px;left:180px">检查费</div>-->
  43. <!-- <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>-->
  44. <!-- <div style="position: absolute;top:160px;left:340px">化验费</div>-->
  45. <!-- <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>-->
  46. <!-- <div style="position: absolute;top:160px;left:500px">治疗费</div>-->
  47. <!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
  48. <!-- <div style="position: absolute;top:160px;left:500px">麻醉费</div>-->
  49. <!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
  50. <!-- </div>-->
  51. <!-- <div style="display:flex;justify-content: space-between;">-->
  52. <!-- <div style="position: absolute;top:190px;left:40px">中成药</div>-->
  53. <!-- <div style="position: absolute;top:190px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>-->
  54. <!-- <div style="position: absolute;top:190px;left:180px">输氧费</div>-->
  55. <!-- <div style="position: absolute;top:190px;left:260px">{{ list.laboratoryCostTotal }}</div>-->
  56. <!-- <div style="position: absolute;top:190px;left:340px">输血费</div>-->
  57. <!-- <div style="position: absolute;top:190px;left:420px">{{ list.operationCostTotal }}</div>-->
  58. <!-- <div style="position: absolute;top:190px;left:500px">护理费</div>-->
  59. <!-- <div style="position: absolute;top:190px;left:580px">{{ list.otherCostTotal }}</div>-->
  60. <!-- <div style="position: absolute;top:160px;left:500px">材料费</div>-->
  61. <!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
  62. <!-- </div>-->
  63. <!-- <div style="display:flex;justify-content: space-between;">-->
  64. <!-- <div style="position: absolute;top:210px;left:40px">中草药</div>-->
  65. <!-- <div style="position: absolute;top:210px;left:110px"></div>-->
  66. <!-- <div style="position: absolute;top:210px;left:180px">手术费</div>-->
  67. <!-- <div style="position: absolute;top:210px;left:260px"></div>-->
  68. <!-- <div style="position: absolute;top:210px;left:340px">诊察费</div>-->
  69. <!-- <div style="position: absolute;top:210px;left:420px">{{ list.materialCostTotal }}</div>-->
  70. <!-- <div style="position: absolute;top:210px;left:500px">床位费</div>-->
  71. <!-- <div style="position: absolute;top:210px;left:580px"></div>-->
  72. <!-- <div style="position: absolute;top:160px;left:500px">其他</div>-->
  73. <!-- <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>-->
  74. <!-- </div>-->
  75. <table class="allListTable" border="1">
  76. <tr>
  77. <td style="width:10%">费用类别</td>
  78. <td style="width:35%">项目名称</td>
  79. <td style="width:15%">规格</td>
  80. <td style="width:5%">单位</td>
  81. <td style="width:10%">数量</td>
  82. <td style="width:10%">单价</td>
  83. <td style="width:10%">金额</td>
  84. <td style="width:10%">医保类型</td>
  85. </tr>
  86. <template v-for='(item,index) in list'>
  87. <tr>
  88. <td style="width:10%">{{ item.med_chrgitm_type }}</td>
  89. <td style="width:35%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ item.name }}</td>
  90. <td style="width:15%">{{ item.spec }}</td>
  91. <td style="width:5%">{{ item.unit }}</td>
  92. <td style="width:10%">{{ item.count }}</td>
  93. <td style="width:10%;text-align:right;">{{ item.price }}</td>
  94. <td style="width:10%;text-align:right;">{{ (item.price * item.count).toFixed(2) }}</td>
  95. <td style="width:10%">{{ item.medicine_insurance_kind }}</td>
  96. </tr>
  97. </template>
  98. </table>
  99. </div>
  100. </template>
  101. <script>
  102. import { uParseTime } from '@/utils/tools'
  103. export default {
  104. props: {
  105. list: {
  106. type: Array,
  107. default: function() {
  108. return []
  109. }
  110. }, patient: {
  111. type: Object,
  112. default: function() {
  113. return {}
  114. }
  115. }, order: {
  116. type: Object,
  117. default: function() {
  118. return {}
  119. }
  120. }, admin: {
  121. type: Object,
  122. default: function() {
  123. return {}
  124. }
  125. }, hospital: {
  126. type: Object,
  127. default: function() {
  128. return {}
  129. }
  130. }
  131. },
  132. data() {
  133. return {
  134. page: 1,
  135. pageArr: []
  136. }
  137. },
  138. methods: {
  139. getNowTime: function() {
  140. let dateTime
  141. let yy = new Date().getFullYear()
  142. let mm = new Date().getMonth() + 1
  143. let dd = new Date().getDate()
  144. let hh = new Date().getHours()
  145. let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
  146. :
  147. new Date().getMinutes()
  148. let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
  149. :
  150. new Date().getSeconds()
  151. dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
  152. return dateTime
  153. },
  154. getTimes(time) {
  155. return uParseTime(time, '{y}-{m}-{d}')
  156. }, getTotal: function(items) {
  157. let total = 0
  158. for (let i = 0; i < items.length; i++) {
  159. total = total + (items[i].count * items[i].price).toFixed(2)
  160. }
  161. return total
  162. }
  163. },
  164. watch: {
  165. list: {
  166. handler(newVal) {
  167. this.getPage()
  168. },
  169. deep: true
  170. }
  171. }
  172. }
  173. </script>
  174. <style lang="scss" scoped>
  175. .allList-print {
  176. -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
  177. -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
  178. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
  179. margin-bottom: 20px;
  180. padding: 20px 10px;
  181. }
  182. .allListTitle {
  183. font-size: 24px;
  184. text-align: center;
  185. font-weight: bold;
  186. margin-bottom: 10px;
  187. }
  188. .allListInfo {
  189. display: flex;
  190. font-size: 16px;
  191. justify-content: space-between;
  192. margin: 10px 0;
  193. }
  194. .allListTable {
  195. width: 100%;
  196. text-align: center;
  197. border-collapse: collapse;
  198. line-height: 20px;
  199. font-size: 14px;
  200. border-color: #000;
  201. text-align: left;
  202. }
  203. .allListTable tr td {
  204. padding: 0 5px;
  205. }
  206. .tableBottom {
  207. font-size: 16px;
  208. display: flex;
  209. margin-top: 20px;
  210. }
  211. .tableBottomOne {
  212. margin-right: 40px;
  213. }
  214. </style>