warehousingRecord.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**
  2. *
  3. * @param {*} _this 当前vue 的实例
  4. * @returns 返回一个表格配置数组
  5. */
  6. export const columns = (_this) => [
  7. {
  8. prop: 'warehousingNumber',
  9. label: '入库文件号'
  10. },
  11. {
  12. prop: 'volumeOrder',
  13. label: '册序号'
  14. },
  15. {
  16. prop: 'warehousingDate',
  17. label: '入库日期'
  18. },
  19. {
  20. prop: 'avmatCatalogName',
  21. label: '名称'
  22. },
  23. {
  24. prop: 'specification',
  25. label: '型号'
  26. },
  27. {
  28. prop: 'diagramNumber',
  29. label: '图号'
  30. },
  31. {
  32. prop: 'machineNumber',
  33. label: '机件号'
  34. },
  35. {
  36. prop: 'warehousingProperty',
  37. label: '入库性质'
  38. },
  39. {
  40. prop: 'actualNumber',
  41. label: '实收数'
  42. },
  43. {
  44. button: true,
  45. label: '操作',
  46. width: '340px',
  47. group: [
  48. {
  49. name: '删除',
  50. type: 'text',
  51. round: false,
  52. plain: false,
  53. onClick: (row, index, scope) => {
  54. _this.handleDelete(row)
  55. }
  56. },
  57. {
  58. name: '手动匹配',
  59. type: 'text',
  60. round: false,
  61. plain: false,
  62. onClick: (row, index, scope) => {
  63. _this.matching('manually', row)
  64. }
  65. }
  66. ]
  67. }
  68. ]
  69. export const data = [
  70. { id: '1', inboundFileNumber: '成G9 xx', outboundDate: '2022-03-01', equipmentName: '发动机', model: 'ZG-1', figureNumber: 'K-7H-1', machineNumber: '03', aircraftNumber: '25', payoffProperty: '发付性质', payoffNumber: '1' },
  71. { id: '2', inboundFileNumber: '成G10 xx', outboundDate: '2022-07-01', equipmentName: '发动机', model: 'ZG-1', figureNumber: 'K-7H-1', machineNumber: '03', aircraftNumber: '25', payoffProperty: '发付性质', payoffNumber: '1' }
  72. ]
  73. /**
  74. *
  75. * @returns 返回表格基础配置项
  76. */
  77. export const options = {
  78. stripe: true, // 斑马纹
  79. mutiSelect: true, // 多选框
  80. index: false, // 显示序号, 多选则 mutiSelect
  81. loading: false, // 表格动画
  82. initTable: true, // 是否一挂载就加载数据
  83. border: true,
  84. height: 'calc(100vh - 300px)'
  85. }