ht-trade-settlement-order.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. <style type="text/css">
  17. .c-panel .el-form .c-label{width: 7em !important;}
  18. .c-panel .el-form .el-input, .c-panel .el-form .el-textarea__inner{width: 250px;}
  19. </style>
  20. </head>
  21. <body>
  22. <div class="vue-box" style="display: none;" :style="'display: block;'">
  23. <div class="c-panel">
  24. <!-- ------------- 检索参数 ------------- -->
  25. <!-- <div class="c-title">检索参数</div> -->
  26. <el-form ref="form" :model='p' @submit.native.prevent>
  27. <sa-item type="text" name="订单号" v-model="p.tradeNo" width="5em"></sa-item>
  28. <sa-item type="text" name="边民" v-model="p.buyUserName"></sa-item>
  29. <sa-item type="text" name="商家名称" v-model="p.enterpriseName" width="6em"></sa-item>
  30. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  31. <el-button type="info" icon="el-icon-refresh" @click="sa.f5()">重置</el-button>
  32. </el-form>
  33. <!-- ------------- 数据列表 ------------- -->
  34. <el-table class="data-table" ref="data-table" :data="dataList" >
  35. <sa-td type="index" width="30px"></sa-td>
  36. <sa-td name="车牌号" prop="veNo" ></sa-td>
  37. <sa-td name="订单号" prop="tradeNo" width="180px"></sa-td>
  38. <sa-td name="边民" prop="buyUserName" ></sa-td>
  39. <sa-td name="商家名称" prop="enterpriseName" width="280px"></sa-td>
  40. <sa-td name="商品名称" prop="goodsNames" width="200px"></sa-td>
  41. <sa-td name="净重(kg)" prop="netWt"></sa-td>
  42. <sa-td name="总金额" prop="totalPrice" ></sa-td>
  43. <sa-td name="上架金额" prop="upPrice" >
  44. </sa-td>
  45. <sa-td name="订单状态" prop="upPrice" >
  46. <template slot-scope="s">
  47. <div v-if="s.row.upStatus==2">已上架</div>
  48. <div v-else>未上架</div>
  49. </template>
  50. </sa-td>
  51. <el-table-column label="操作" fixed="right" width="100px">
  52. <template slot-scope="s">
  53. <el-button class="c-btn" type="success" icon="el-icon-view" @click="getBank(s.row)">银行回执</el-button>
  54. </template>
  55. </el-table-column>
  56. </el-table>
  57. <!-- ------------- 分页 ------------- -->
  58. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()"></sa-item>
  59. </div>
  60. </div>
  61. <script>
  62. var app = new Vue({
  63. components: {
  64. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  65. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  66. },
  67. el: '.vue-box',
  68. data: {
  69. model: {
  70. title: '修改价格',
  71. visible: false,
  72. form: {
  73. id:'',
  74. upPrice:'',
  75. selPrice:0
  76. }
  77. },
  78. p: { // 查询参数
  79. tradeNo: '', // 订单号
  80. buyUserName: '', // 买家
  81. enterpriseName: '', // 商家名称
  82. saleMainId: sa.p('mainId', 0),
  83. pageNo: 1, // 当前页
  84. pageSize: 20, // 页大小
  85. sortType: 0 // 排序方式
  86. },
  87. dataCount: 0,
  88. dataList: [], // 数据集合
  89. },
  90. methods: {
  91. // 刷新
  92. f5: function() {
  93. sa.ajax('/level-one-server/TbOrder/getList', sa.removeNull(this.p), function(res) {
  94. this.dataList = res.data; // 数据
  95. this.dataCount = res.dataCount; // 数据总数
  96. sa.f5TableHeight(); // 刷新表格高度
  97. }.bind(this));
  98. },
  99. // 查看银行回执
  100. getBank: function(data) {
  101. sa.showIframe('银行回执', 'tb-order-bank-list.html?tradeNo=' + data.tradeNo, '1300px', '90%');
  102. }
  103. },
  104. created: function() {
  105. this.f5();
  106. sa.onInputEnter();
  107. }
  108. })
  109. </script>
  110. </body>
  111. </html>