ht-trade-settlement-order.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>边民订单表-列表</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <!-- 所有的 css & js 资源 -->
  8. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  9. <link rel="stylesheet" href="../../static/sa.css">
  10. <script src="../../static/kj/vue.min.js"></script>
  11. <script src="../../static/kj/element-ui/index.js"></script>
  12. <script src="../../static/kj/httpVueLoader.js"></script>
  13. <script src="../../static/kj/jquery.min.js"></script>
  14. <script src="../../static/kj/layer/layer.js"></script>
  15. <script src="../../static/sa.js"></script>
  16. </head>
  17. <body>
  18. <div class="vue-box" style="display: none;" :style="'display: block;'">
  19. <div class="c-panel">
  20. <!-- ------------- 检索参数 ------------- -->
  21. <!-- <div class="c-title">检索参数</div> -->
  22. <el-form ref="form" :model='p' @submit.native.prevent>
  23. <sa-item type="text" name="订单号" v-model="p.tradeNo" width="5em"></sa-item>
  24. <sa-item type="text" name="买家" v-model="p.buyUserName"></sa-item>
  25. <sa-item type="text" name="商家名称" v-model="p.enterpriseName" width="6em"></sa-item>
  26. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  27. <el-button type="info" icon="el-icon-refresh" @click="sa.f5()">重置</el-button>
  28. </el-form>
  29. <!-- ------------- 数据列表 ------------- -->
  30. <el-table class="data-table" ref="data-table" :data="dataList" >
  31. <sa-td type="index" name="序号"></sa-td>
  32. <sa-td name="订单号" prop="tradeNo" width="180"></sa-td>
  33. <sa-td name="买家" prop="buyUserName" ></sa-td>
  34. <sa-td name="商家名称" prop="enterpriseName" ></sa-td>
  35. <sa-td name="商品名称" prop="goodsNames" width="280"></sa-td>
  36. <sa-td name="总重量" prop="totalWeight" ></sa-td>
  37. <sa-td name="总金额" prop="totalPrice" ></sa-td>
  38. <sa-td name="车牌号" prop="veNo" ></sa-td>
  39. <sa-td type="enum" name="交易确认" prop="peopleConfirmStatus" :jv="{1: '已确认[green]', 0: '未确认[#ff910a]'}" ></sa-td>
  40. <sa-td type="enum" name="委托确认" prop="cooperEntrustStatus" :jv="{1: '已确认[green]', 0: '未确认[#ff910a]'}" ></sa-td>
  41. <sa-td type="enum" name="进口确认" prop="applyConfirmStatus" :jv="{1: '已确认[green]', 0: '未确认[#ff910a]'}" ></sa-td>
  42. </el-table>
  43. <!-- ------------- 分页 ------------- -->
  44. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()"></sa-item>
  45. </div>
  46. </div>
  47. <script>
  48. var app = new Vue({
  49. components: {
  50. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  51. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  52. },
  53. el: '.vue-box',
  54. data: {
  55. p: { // 查询参数
  56. tradeNo: '', // 订单号
  57. buyUserName: '', // 买家
  58. enterpriseName: '', // 商家名称
  59. platSeqNo: sa.p('platSeqNo', 0),
  60. pageNo: 1, // 当前页
  61. pageSize: 20, // 页大小
  62. sortType: 0 // 排序方式
  63. },
  64. dataCount: 0,
  65. dataList: [], // 数据集合
  66. },
  67. methods: {
  68. // 刷新
  69. f5: function() {
  70. sa.ajax('/level-one-server/TbOrder/getList', sa.removeNull(this.p), function(res) {
  71. this.dataList = res.data; // 数据
  72. this.dataCount = res.dataCount; // 数据总数
  73. sa.f5TableHeight(); // 刷新表格高度
  74. }.bind(this));
  75. }
  76. },
  77. created: function() {
  78. this.f5();
  79. sa.onInputEnter();
  80. }
  81. })
  82. </script>
  83. </body>
  84. </html>