user-order-list.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. use common\helpers\ComponentHelper;
  3. ComponentHelper::loadComponentView('com-user-info');
  4. ?>
  5. <com-list-page :crumbs="crumbs" id="application">
  6. <com-list-table
  7. ref="table"
  8. :api-params="apiParams"
  9. :search-list="searchList"
  10. >
  11. <el-table-column label="会员" width="180">
  12. <template slot-scope="scope">
  13. <com-user-info :user="scope.row.user"></com-user-info>
  14. </template>
  15. </el-table-column>
  16. <el-table-column prop="order_no" label="订单号" width="220" align="center">
  17. <template slot-scope="scope">
  18. {{scope.row.bargain_order_id|emptyFilled}}
  19. </template>
  20. </el-table-column>
  21. <el-table-column prop="price" label="减少金额" align="center"></el-table-column>
  22. <el-table-column label="砍价时间" width="150" align="center">
  23. <template slot-scope="scope">
  24. <span> {{scope.row.created_at|dateTimeFormat('Y-m-d H:i:s')}}</span>
  25. </template>
  26. </el-table-column>
  27. </com-list-table>
  28. </com-list-page>
  29. <script>
  30. const application = new Vue({
  31. el: '#application',
  32. data: {
  33. crumbs: [
  34. {
  35. title: '砍价',
  36. },
  37. {
  38. title: '砍价订单',
  39. router: 'bargain/default/order-list',
  40. },
  41. {
  42. title: '砍价详情',
  43. }
  44. ],
  45. searchList: [
  46. {
  47. key: 'nickname',
  48. title: '请输入用户昵称',
  49. type: 'text',
  50. clearable: true,
  51. },
  52. {
  53. key: 'mobile',
  54. title: '请输入用户手机号',
  55. type: 'text',
  56. clearable: true,
  57. },
  58. ],
  59. apiParams: {
  60. r: 'bargain/default/user-order-list',
  61. bargain_order_id: getQuery('bargain_order_id'), // this.bargain_order_id,
  62. },
  63. },
  64. })
  65. </script>