paygoodsorder.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright (c) 2018-2025, lengleng All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the pig4cloud.com developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: lengleng (wangiegie@gmail.com)
  16. */
  17. export const tableOption = {
  18. border: true,
  19. index: true,
  20. indexLabel: '序号',
  21. stripe: true,
  22. menuAlign: 'center',
  23. viewBtn: true,
  24. align: 'center',
  25. searchShow: false,
  26. column: [
  27. {
  28. label: 'ID',
  29. prop: 'goodsOrderId',
  30. hide: true,
  31. editDisabled: true,
  32. addDisplay: false
  33. },
  34. {
  35. label: '商品ID',
  36. prop: 'goodsId'
  37. },
  38. {
  39. label: '商品名称',
  40. prop: 'goodsName'
  41. },
  42. {
  43. label: '金额/元',
  44. prop: 'amount'
  45. },
  46. {
  47. label: '用户ID',
  48. prop: 'userId',
  49. hide: true,
  50. editDisabled: true,
  51. addDisplay: false
  52. },
  53. {
  54. label: '订单状态',
  55. prop: 'status',
  56. type: 'select',
  57. search: true,
  58. dicUrl: '/admin/dict/type/order_status'
  59. },
  60. {
  61. label: '支付订单号',
  62. prop: 'payOrderId',
  63. overHidden: true,
  64. search: true
  65. },
  66. {
  67. label: '创建时间',
  68. prop: 'createTime',
  69. type: 'datetime',
  70. format: 'yyyy-MM-dd HH:mm:ss',
  71. valueFormat: 'yyyy-MM-dd HH:mm:ss',
  72. editDisplay: false,
  73. overHidden: true,
  74. addDisplay: false
  75. }
  76. ]
  77. }