VoucherTicket.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <template lang="pug">
  2. .voucher-ticket
  3. .voucher-ticket-wrapper
  4. form.voucher-ticket-from
  5. .voucher-ticket-from-separator
  6. h3 Detalles de pagos
  7. hr
  8. .voucher-ticket-from-item
  9. label.voucher-ticket-from-label Cliente
  10. label.voucher-ticket-from-input {{ customer.name|| '' }}
  11. .voucher-ticket-from-item
  12. label.voucher-ticket-from-label Factura número
  13. label.voucher-ticket-from-input {{ invoice.number || '' }}
  14. .voucher-ticket-from-grid-header
  15. label.voucher-ticket-from-grid-header-left Vencimiento
  16. label.voucher-ticket-from-grid-header-right Monto
  17. .voucher-ticket-from-grid
  18. .voucher-ticket-from-grid-item(v-for="line in items")
  19. label.voucher-ticket-from-grid-item-left {{ line.dateMaturity | dateFormat}}
  20. label.voucher-ticket-from-grid-item-right {{ line.amountResidualCurrency | currency(...invoice.currency) }}
  21. .voucher-ticket-from-item-total
  22. label.voucher-ticket-from-label-total Total
  23. .ticket-currency-total-wrapper
  24. .ticket-currency-total-item(v-for="item in currencyAmount")
  25. h3.currency-total-symbol {{ item.symbolCurrency }}
  26. input.currency-total-amount(readonly :value='item.amount | currency( ...item)')
  27. //- .ticket-currency-total-item
  28. //- label.voucher-ticket-from-input-total {{ totalPayments | currency(...invoice.currency) }}
  29. //- .voucher-ticket-from-item-total
  30. //- label.voucher-ticket-from-label-total Pagado
  31. //- label.voucher-ticket-from-input-total {{ paymentTotal | currency(...invoice.currency) }}
  32. //- .voucher-ticket-from-item-total
  33. //- label.voucher-ticket-from-label-total Saldo
  34. //- label.voucher-ticket-from-input-total {{ paymentBalance | currency(...invoice.currency) }}
  35. </template>
  36. <script>
  37. export default {
  38. props: {
  39. customer: {
  40. type: String,
  41. default: ''
  42. },
  43. invoice: {
  44. type: String,
  45. default: ''
  46. },
  47. currencyAmount :{
  48. type: Array,
  49. default: [],
  50. // default: [{
  51. // symbolCurrency: 'G$',
  52. // amount: 999999999,
  53. // symbol: ' ',
  54. // position: 'before',
  55. // rateSilent: 0,
  56. // thousandsSeparator: '.',
  57. // decimalSeparator: ',',
  58. // decimalPlaces: 0
  59. // }],
  60. // {
  61. // symbolCurrency: '$',
  62. // amount: 999999999,
  63. // symbol: ' ',
  64. // position: 'before',
  65. // rateSilent: 0,
  66. // thousandsSeparator: '.',
  67. // decimalSeparator: ',',
  68. // decimalPlaces: 0,
  69. // decimalZeros: false
  70. // }
  71. },
  72. // paymentBalance: {
  73. // type: Number,
  74. // default: 0
  75. // },
  76. // paymentTotal: {
  77. // type: Number,
  78. // default: 0
  79. // },
  80. // totalPayments: {
  81. // type: Number,
  82. // default: 0
  83. // },
  84. items: {
  85. type: [],
  86. default: []
  87. },
  88. }
  89. }
  90. </script>
  91. <style lang="sass">
  92. @import '../../assets/variables'
  93. .voucher-ticket
  94. width: 500px
  95. height: 100%
  96. font-size: 8pt
  97. display: flex
  98. .voucher-ticket-wrapper
  99. width: 100%
  100. height: 460px
  101. margin: 10px
  102. border: 1px solid #d3d3d3
  103. // background: $app-light-color
  104. display: inline-block
  105. .voucher-ticket-from
  106. width: 100%
  107. height: 100%
  108. .voucher-ticket-from-separator
  109. h3
  110. color: #9e9e9e
  111. font-size: 16pt
  112. margin-left: 10px
  113. margin-right: 10px
  114. margin-top: 10px
  115. margin-bottom: 5px
  116. text-align: center
  117. hr
  118. margin-top: 3px
  119. margin-left: 10px
  120. margin-right: 10px
  121. .voucher-ticket-from-item
  122. width: 100%
  123. height: 35px
  124. margin-bottom: 5px
  125. .voucher-ticket-from-label
  126. width: 150px
  127. height: 35px
  128. font:
  129. size: 10pt
  130. weight: bold
  131. padding-left: 10px
  132. .voucher-ticket-from-input
  133. width: calc(100% - 160px)
  134. height: 25px
  135. font:
  136. size: 10pt
  137. weight: bold
  138. border-left: 0px
  139. border-top: 0px
  140. border-right: 0px
  141. border-bottom: 1px solid #dedede
  142. .voucher-ticket-from-grid-header
  143. width: calc(100% - 20px)
  144. height: 30px
  145. margin: 0px 10px
  146. border: 1px solid #d3d3d3
  147. background: #f5f5f5
  148. .voucher-ticket-from-grid-header-left, .voucher-ticket-from-grid-header-right
  149. width: calc(50% - 10px)
  150. height: 30px
  151. font:
  152. size: 10pt
  153. padding-left: 10px
  154. margin-top: 5px
  155. .voucher-ticket-from-grid-header-left
  156. margin-left: 5px
  157. text-align: left
  158. .voucher-ticket-from-grid-header-right
  159. margin-right: 5px
  160. text-align: center
  161. .voucher-ticket-from-grid
  162. width: calc(100% - 20px)
  163. height: 160px
  164. overflow-y: auto
  165. margin: 0px 10px
  166. border: 1px solid #d3d3d3
  167. .voucher-ticket-from-grid-item
  168. width: calc(100% - 10px )
  169. height: 30px
  170. padding-top: 1px
  171. border-bottom: 1px solid #dedede
  172. margin-left: 5px
  173. margin-right: 5px
  174. .voucher-ticket-from-grid-item-left, .voucher-ticket-from-grid-item-right
  175. width: calc(50% - 10px)
  176. height: 30px
  177. font:
  178. size: 10pt
  179. padding-left: 10px
  180. margin-top: 5px
  181. .voucher-ticket-from-grid-item-left
  182. text-align: left
  183. .voucher-ticket-from-grid-item-right
  184. text-align: right
  185. padding-right: 15px
  186. .voucher-ticket-from-item-total
  187. width: 100%
  188. height: 25px
  189. .voucher-ticket-from-label-total
  190. width: 40%
  191. height: 25px
  192. margin-top: 10px
  193. font:
  194. size: 15pt
  195. weight: bold
  196. text-align: right
  197. padding-right: 15px
  198. float: left
  199. .ticket-currency-total-wrapper
  200. width: 50%
  201. height: 115px
  202. float: right
  203. margin: 5px 10px 10px 10px
  204. overflow-y: auto
  205. border-left: 1px solid #d3d3d3
  206. .ticket-currency-total-item
  207. width: 100%
  208. height: 25px
  209. margin-top: 2px
  210. .currency-total-symbol
  211. width: 30px
  212. height: 100%
  213. font-size: 15pt
  214. text-align: center
  215. float: left
  216. margin: 0px
  217. padding-left: 5px
  218. padding-right: 5px
  219. .currency-total-amount
  220. width: calc(100% - 35px)
  221. height: 100%
  222. float: right
  223. font-size: 15pt
  224. text-align: right
  225. margin-right: 5px
  226. padding-right: 10px
  227. border-top: 0px
  228. border-left: 0px
  229. border-right: 0px
  230. // display: inline-block
  231. // .voucher-ticket-from-input-total
  232. // width: calc(40% - 10px)
  233. // height: 25px
  234. // margin-top: 15px
  235. // text-align: right
  236. // padding-right: 15px
  237. // font:
  238. // size: 10pt
  239. // weight: bold
  240. // border-bottom: 1px solid #dedede
  241. </style>