listing-management.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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.veNo" width="8em"></sa-item>
  24. <sa-item type="text" name="商品名称" v-model="p.goodsNames" width="11em"></sa-item>
  25. <sa-item type="date" name="申报日期" v-model="p.declTime" width="7em"></sa-item>
  26. </el-form>
  27. <el-form ref="form" :model='p' @submit.native.prevent>
  28. <sa-item type="text" name="航次号" v-model="p.voyageNo" width="11em"></sa-item>
  29. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()" style="margin-left: 163px">查询</el-button>
  30. <el-button size="mini" type="info" @click="sa.f5()">重置</el-button>
  31. </el-form>
  32. <!-- ------------- 数据列表 ------------- -->
  33. <el-table class="data-table" ref="data-table" :data="dataList" >
  34. <sa-td type="index" name="序号" width="80"></sa-td>
  35. <sa-td name="车牌号" prop="veNo"></sa-td>
  36. <sa-td name="提运单号" prop="billNo" width="160"></sa-td>
  37. <sa-td name="航次号" prop="voyageNo" width="160"></sa-td>
  38. <sa-td name="申报人姓名" prop="declareName" ></sa-td>
  39. <sa-td name="商铺" prop="shopName" width="160"></sa-td>
  40. <sa-td name="商品名称" prop="goodsNames" width="160"></sa-td>
  41. <sa-td name="总金额" prop="sumAmt" ></sa-td>
  42. <sa-td name="总毛重" prop="sumGrossWt" ></sa-td>
  43. <sa-td name="总净重" prop="sumNetWt" ></sa-td>
  44. <sa-td name="件数" prop="packNo" ></sa-td>
  45. <sa-td name="申报时间" prop="declTime" width="160"></sa-td>
  46. <el-table-column label="操作" fixed="right" >
  47. <template slot-scope="s">
  48. <!--<el-button class="c-btn" type="success" @click="get(s.row)">查看</el-button>-->
  49. <el-button class="c-btn" type="primary" @click="getOrder(s.row)">查看详情</el-button>
  50. </template>
  51. </el-table-column>
  52. </el-table>
  53. <!-- ------------- 分页 ------------- -->
  54. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()"></sa-item>
  55. </div>
  56. </div>
  57. <script>
  58. var app = new Vue({
  59. components: {
  60. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  61. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  62. },
  63. el: '.vue-box',
  64. data: {
  65. p: { // 查询参数
  66. platSeqNo: '', // 预申报编号
  67. declareId: '', // 申报单编号
  68. goodsNames: '', // 商品名称
  69. returns:0,
  70. chargebacks:0,
  71. pageNo: 1, // 当前页
  72. pageSize: 10, // 页大小
  73. sortType: 0 // 排序方式
  74. },
  75. dataCount: 0,
  76. dataList: [], // 数据集合
  77. },
  78. methods: {
  79. // 刷新
  80. f5: function() {
  81. sa.ajax('/level-one-server/HtTradeSettlement/getListingList', sa.removeNull(this.p), function(res) {
  82. this.dataList = res.data; // 数据
  83. this.dataCount = res.dataCount; // 数据总数
  84. sa.f5TableHeight(); // 刷新表格高度
  85. }.bind(this));
  86. },
  87. // 查看
  88. get: function(data) {
  89. sa.showIframe('数据详情', 'ht-trade-settlement-info.html?id=' + data.id, '1050px', '90%');
  90. },
  91. getOrder(data){
  92. sa.showIframe('详情', 'listing-management-order.html?platSeqNo='+data.platSeqNo+'&mainId='+data.id, '90%', '94%');
  93. },
  94. },
  95. created: function() {
  96. this.f5();
  97. sa.onInputEnter();
  98. }
  99. })
  100. </script>
  101. </body>
  102. </html>