logisticsExpenses.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <template-page
  3. ref="pageRef"
  4. :get-list="getList"
  5. :export-list="exportList"
  6. :options-evens-group="optionsEvensGroup"
  7. :column-parsing="columnParsing"
  8. >
  9. <Popu v-if="visible" />
  10. </template-page>
  11. </template>
  12. <script>
  13. import TemplatePage from '@/components/template/template-page-1.vue'
  14. import import_mixin from '@/components/template/import_mixin.js'
  15. import add_callback_mixin from '@/components/template/add_callback_mixin.js'
  16. import Popu from '@/components/template/popu.vue'
  17. import { getListCostBillV2, exportListCostBillV2 } from '@/api/logisticsBill'
  18. export default {
  19. components: { TemplatePage, Popu },
  20. mixins: [import_mixin, add_callback_mixin],
  21. data() {
  22. return {
  23. visible: false,
  24. // 事件组合
  25. optionsEvensGroup: [
  26. ],
  27. // 表格属性
  28. tableAttributes: {
  29. // 启用勾选列
  30. selectColumn: true
  31. }, // 关闭新增弹窗
  32. // 表格事件
  33. tableEvents: {
  34. 'selection-change': this.selectionChange
  35. },
  36. recordSelected: []
  37. }
  38. },
  39. methods: {
  40. // 列表请求函数
  41. getList(...p) {
  42. this.recordSelected = []
  43. return getListCostBillV2(...p)
  44. },
  45. // 列表导出函数
  46. exportList: exportListCostBillV2,
  47. // 表格列解析渲染数据更改
  48. columnParsing(item, defaultData) {
  49. return defaultData
  50. },
  51. // 监听勾选变化
  52. selectionChange(data) {
  53. this.recordSelected = data
  54. },
  55. operation() {
  56. return (h, { row, index, column }) => {
  57. return <div class='operation-btns'></div>
  58. }
  59. },
  60. handleClose() {
  61. this.addOff(() => {
  62. this.visible = false
  63. })()
  64. }
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped></style>