Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

listPrintTwo.vue 8.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <template>
  2. <div id="allList-print" class="allList-print">
  3. <table
  4. class="listTable"
  5. border="0"
  6. cellspacing="0"
  7. style="font-size: 14px"
  8. align="center"
  9. >
  10. <THEAD
  11. style="
  12. display: table-header-group;
  13. font-weight: bold;
  14. "
  15. >
  16. <TR>
  17. <TD colspan="3" align="center" style="font-size: 20px">
  18. {{ $store.getters.xt_user.org.org_name }}费用清单
  19. </TD>
  20. </TR>
  21. <TR>
  22. <TD colspan="1">患者姓名:{{ patient.name }}</TD>
  23. <TD>性别:{{ patient.gender == 1 ? "男" : "女" }}</TD>
  24. <TD>年龄:{{ getAge(patient.id_card_no)?getAge(patient.id_card_no)+'岁':''}}</TD>
  25. <TD
  26. >结算类型:{{
  27. order.is_medicine_insurance == 1 ? "医保" : "自费"
  28. }}</TD
  29. >
  30. </TR>
  31. <TR>
  32. <TD> 住院/门诊号:{{ order.mdtrt_id }} </TD>
  33. <TD>科室:血透 </TD>
  34. <TD>就诊流水号:{{ order.mdtrt_id }}</TD>
  35. </TR>
  36. <TR>
  37. <TD> 总费用:{{ order.medfee_sumamt }} </TD>
  38. <TD>个人支付:{{ order.psn_part_amt }} </TD>
  39. <TD>基金支付记账:{{ order.fund_pay_sumamt }}</TD>
  40. </TR>
  41. <TR>
  42. <TD>补充医疗支付记账:0.00</TD>
  43. <TD>救助支付金额:{{ order.maf_pay }}</TD>
  44. <TD></TD>
  45. </TR>
  46. </THEAD>
  47. <TBODY style="text-align: center">
  48. <TR>
  49. <TD colspan="3">
  50. <Table class="allListTable" border="1">
  51. <TR>
  52. <TD style="width: 5%">序号</TD>
  53. <TD style="width: 15%">处方日期</TD>
  54. <TD style="width: 10%">费用编号</TD>
  55. <TD style="width: 40%">费用名称</TD>
  56. <TD style="width: 5%">单位</TD>
  57. <TD style="width: 5%">数量</TD>
  58. <TD style="width: 10%">单价</TD>
  59. <TD style="width: 10%">金额</TD>
  60. </TR>
  61. <template v-for="(item, index) in list">
  62. <tr v-if="item.is_total == 0">
  63. <td style="width: 5%">{{ index + 1 }}</td>
  64. <td style="width: 15%">{{ item.p_time }}</td>
  65. <td style="width: 10%">
  66. {{ item.feedetl_sn.split("-")[2] }}
  67. </td>
  68. <td style="width: 30%; white-space: nowrap; overflow: hidden">
  69. {{ item.name }}{{ item.spec }}
  70. </td>
  71. <td style="width: 5%">{{ item.unit }}</td>
  72. <td style="width: 5%; text-align: right">{{ item.count }}</td>
  73. <td style="width: 10%; text-align: right">
  74. {{ item.price }}
  75. </td>
  76. <td style="width: 10%; text-align: right">
  77. {{ (item.price * item.count).toFixed(2) }}
  78. </td>
  79. </tr>
  80. <tr v-if="item.is_total == 1">
  81. <td style="width: 5%"></td>
  82. <td style="width: 15%"></td>
  83. <td style="width: 10%"></td>
  84. <td style="width: 30%; white-space: nowrap; overflow: hidden">
  85. {{ item.name }}
  86. </td>
  87. <td style="width: 5%"></td>
  88. <td style="width: 5%"></td>
  89. <td style="width: 10%; text-align: right"></td>
  90. <td style="width: 10%; text-align: right">
  91. {{ item.price }}
  92. </td>
  93. </tr>
  94. </template>
  95. </Table>
  96. </TD>
  97. </TR>
  98. </TBODY>
  99. </table>
  100. <!-- <div class="allListTitle">
  101. </div> -->
  102. <!-- <div class="allListInfo">
  103. <div style="text-align: left">患者姓名:{{ patient.name }}</div>
  104. <div style="text-align: left; padding-left: -20px">
  105. 性别:{{ patient.gender == 1 ? "男" : "女" }}
  106. </div>
  107. <div style="text-align: left">
  108. 结算类型:{{ order.is_medicine_insurance == 1 ? "医保" : "自费" }}
  109. </div>
  110. </div>
  111. <div class="allListInfo">
  112. <div style="text-align: left">住院/门诊号:{{ order.mdtrt_id }}</div>
  113. <div style="text-align: left">科室:血透</div>
  114. <div style="text-align: left">就诊流水号:{{ order.mdtrt_id }}</div>
  115. </div>
  116. <div class="allListInfo">
  117. <div style="text-align: left">总费用:{{ order.medfee_sumamt }}</div>
  118. <div style="text-align: left">个人支付:{{ order.psn_part_amt }}</div>
  119. <div style="text-align: left">
  120. 基金支付记账:{{ order.fund_pay_sumamt }}
  121. </div>
  122. </div>
  123. <div class="allListInfo">
  124. <div style="text-align: left">补充医疗支付记账:0.00</div>
  125. <div style="text-align: left">救助支付金额:{{ order.maf_pay }}</div>
  126. <div></div>
  127. </div>-->
  128. </div>
  129. </template>
  130. <script>
  131. import { uParseTime } from "@/utils/tools";
  132. export default {
  133. props: {
  134. list: {
  135. type: Array,
  136. default: function () {
  137. return [];
  138. },
  139. },
  140. patient: {
  141. type: Object,
  142. default: function () {
  143. return {};
  144. },
  145. },
  146. order: {
  147. type: Object,
  148. default: function () {
  149. return {};
  150. },
  151. },
  152. admin: {
  153. type: Object,
  154. default: function () {
  155. return {};
  156. },
  157. },
  158. hospital: {
  159. type: Object,
  160. default: function () {
  161. return {};
  162. },
  163. },
  164. },
  165. data() {
  166. return {
  167. page: 1,
  168. pageArr: [],
  169. };
  170. },
  171. methods: {
  172. getAge(val){
  173. var thisLen = val.length;
  174. var birth = "";
  175. if (thisLen == 15) {
  176. birth = "19" + val.substr(6, 6);
  177. } else {
  178. birth = val.substr(6, 8);
  179. }
  180. var birthTwo =
  181. birth.substr(0, 4) +
  182. "-" +
  183. birth.substr(4, 2) +
  184. "-" +
  185. birth.substr(6, 2);
  186. var age = this.jsGetAge(birthTwo, "-");
  187. return age;
  188. },
  189. getNowTime: function () {
  190. let dateTime;
  191. let yy = new Date().getFullYear();
  192. let mm = new Date().getMonth() + 1;
  193. let dd = new Date().getDate();
  194. let hh = new Date().getHours();
  195. let mf =
  196. new Date().getMinutes() < 10
  197. ? "0" + new Date().getMinutes()
  198. : new Date().getMinutes();
  199. let ss =
  200. new Date().getSeconds() < 10
  201. ? "0" + new Date().getSeconds()
  202. : new Date().getSeconds();
  203. dateTime = yy + "-" + mm + "-" + dd + " " + hh + ":" + mf + ":" + ss;
  204. return dateTime;
  205. },
  206. getTimes(time) {
  207. return uParseTime(time, "{y}-{m}-{d}");
  208. },
  209. getTotal: function (items) {
  210. let total = 0;
  211. for (let i = 0; i < items.length; i++) {
  212. total = total + (items[i].count * items[i].price).toFixed(2);
  213. }
  214. return total;
  215. },
  216. },
  217. watch: {
  218. list: {
  219. handler(newVal) {
  220. // this.getPage()
  221. },
  222. deep: true,
  223. },
  224. },
  225. };
  226. </script>
  227. <style lang="scss" scoped>
  228. .allList-print {
  229. -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
  230. 0 0 60px rgba(0, 0, 0, 0.06) inset;
  231. -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
  232. 0 0 40px rgba(0, 0, 0, 0.06) inset;
  233. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
  234. margin-bottom: 20px;
  235. padding: 20px 10px;
  236. }
  237. .allListTitle {
  238. font-size: 24px;
  239. text-align: center;
  240. font-weight: bold;
  241. margin-bottom: 10px;
  242. }
  243. .allListInfo {
  244. display: flex;
  245. font-size: 16px;
  246. justify-content: space-between;
  247. margin: 10px 0;
  248. }
  249. .allListInfo div {
  250. min-width: 200px;
  251. }
  252. .allListTable {
  253. width: 100%;
  254. text-align: center;
  255. border-collapse: collapse;
  256. line-height: 20px;
  257. font-size: 14px;
  258. border-color: #000;
  259. text-align: left;
  260. }
  261. .allListTable tr td {
  262. padding: 0 5px;
  263. }
  264. .tableBottom {
  265. font-size: 16px;
  266. display: flex;
  267. margin-top: 20px;
  268. }
  269. .tableBottomOne {
  270. margin-right: 40px;
  271. }
  272. .listTable {
  273. width: 100%;
  274. text-align: center;
  275. border-collapse: collapse;
  276. line-height: 40px;
  277. font-size: 14px;
  278. border-color: #000;
  279. text-align: left;
  280. }
  281. .listTable thead {
  282. width: 100%;
  283. text-align: center;
  284. border-collapse: collapse;
  285. line-height: 40px;
  286. font-size: 14px;
  287. border-color: #000;
  288. text-align: left;
  289. }
  290. .listTable thead tr td {
  291. padding: 0 5px;
  292. }
  293. .tableBottom {
  294. font-size: 16px;
  295. display: flex;
  296. margin-top: 20px;
  297. }
  298. .tableBottomOne {
  299. margin-right: 40px;
  300. }
  301. </style>