detailsTable.vue 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <div class="content main">
  3. <zz-table :settings="{ stripe: true }" :cols="cols" :data="mixins_list"> </zz-table>
  4. </div>
  5. </template>
  6. <script>
  7. import list from '@/utils/list.js';
  8. export default {
  9. mixins: [list],
  10. props: ['params'],
  11. data() {
  12. return {
  13. mixins_querys: {
  14. chargeType: ''
  15. },
  16. cols: [
  17. {
  18. label: '收据号',
  19. prop: 'receiptNumber'
  20. },
  21. {
  22. label: '地址',
  23. prop: 'assets'
  24. },
  25. {
  26. label: '业主',
  27. prop: 'clientName',
  28. width: '100'
  29. },
  30. {
  31. label: '费用名称',
  32. prop: 'chargeName',
  33. width: '200'
  34. },
  35. {
  36. label: '计费时间',
  37. prop: 'paymentDays'
  38. },
  39. {
  40. label: '应收金额(元)',
  41. prop: 'receivableAmount'
  42. },
  43. {
  44. label: '实收金额(元)',
  45. prop: 'receivedAmount'
  46. },
  47. {
  48. label: '付款方式',
  49. prop: 'payTypeDict'
  50. },
  51. {
  52. label: '缴费时间',
  53. prop: 'chargeDate'
  54. },
  55. {
  56. label: '打印状态',
  57. prop: 'printStatus',
  58. format(val) {
  59. if (val == 0) {
  60. return '<span class="redText">未打印</span>';
  61. } else if (val == 1) {
  62. return '<span class="greenText">已打印</span>';
  63. }
  64. }
  65. },
  66. {
  67. label: '备注',
  68. prop: 'remark'
  69. },
  70. {
  71. label: '操作',
  72. prop: 'id',
  73. slot: 'opt'
  74. }
  75. ],
  76. mixins_post: 'post'
  77. };
  78. },
  79. methods: {},
  80. created() {
  81. this.mixins_dataUrl = '/sc-charge/charge/receipt/findDetail'; // 分页查询接口
  82. this.mixins_query = { id: this.params.id };
  83. this.mixins_search();
  84. }
  85. };
  86. </script>
  87. <style lang='scss' scoped >