tb-transport-demand-apply.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. <el-form ref="form" :model='p' @submit.native.prevent>
  22. <sa-item type="text" name="司机" v-model="p.driverName" width="80px"></sa-item>
  23. <sa-item type="text" name="车牌" v-model="p.plateNo" width="80px"></sa-item>
  24. <sa-item type="enum" name="状态" v-model="p.status" width="80px">
  25. <el-select v-model="p.status">
  26. <el-option label="全部" value=""></el-option>
  27. <el-option label="待货主确认" value="0"></el-option>
  28. <el-option label="货主已确认" value="1"></el-option>
  29. <el-option label="货主已拒绝" value="2"></el-option>
  30. <el-option label="司机已取消" value="3"></el-option>
  31. </el-select>
  32. </sa-item>
  33. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  34. <el-button size="mini" type="info" @click="sa.f5()">重置</el-button>
  35. </el-form>
  36. <!-- ------------- 数据列表 ------------- -->
  37. <el-table class="data-table" ref="data-table" :data="dataList" >
  38. <sa-td name="申请时间" prop="applyTime" ></sa-td>
  39. <sa-td name="申请人(司机)" prop="driverName" ></sa-td>
  40. <sa-td name="车辆" prop="plateNo" ></sa-td>
  41. <sa-td name="确认状态" prop="status" type="enum" :jv="{0: '待货主确认', 1: '货主已确认', 2: '货主已拒绝', 3: '司机已取消'}"></sa-td>
  42. <sa-td name="订单号" prop="orderId" ></sa-td>
  43. <sa-td name="确认时间" prop="dealTime" ></sa-td>
  44. </el-table>
  45. <!-- ------------- 分页 ------------- -->
  46. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()"></sa-item>
  47. </div>
  48. </div>
  49. <script>
  50. var app = new Vue({
  51. components: {
  52. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  53. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  54. },
  55. el: '.vue-box',
  56. data: {
  57. p: { // 查询参数
  58. demandId: sa.p('demandId', 0), // 货运需求单唯一标识,自增主键
  59. driverName: '', // 司机
  60. plateNo: '', // 车牌
  61. status: '', // 申请单状态
  62. pageNo: 1, // 当前页
  63. pageSize: 10, // 页大小
  64. sortType: 0 // 排序方式
  65. },
  66. dataCount: 0,
  67. dataList: [], // 数据集合
  68. },
  69. methods: {
  70. // 刷新
  71. f5: function() {
  72. sa.ajax('/transport-server/TbTransportDemandApply/getList', sa.removeNull(this.p), function(res) {
  73. this.dataList = res.data; // 数据
  74. this.dataCount = res.dataCount; // 数据总数
  75. sa.f5TableHeight(); // 刷新表格高度
  76. }.bind(this));
  77. },
  78. // 查看
  79. get: function(data) {
  80. sa.showIframe('货运需求单详情', 'tb-transport-demand-info.html?demandId=' + data.demandId, '1050px', '90%');
  81. }
  82. },
  83. created: function() {
  84. this.f5();
  85. sa.onInputEnter();
  86. }
  87. })
  88. </script>
  89. </body>
  90. </html>