ht-trade-settlement-list.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>航通交易结算表-列表</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  8. <!-- 所有的 css & js 资源 -->
  9. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="../../static/kj/vue.min.js"></script>
  12. <script src="../../static/kj/element-ui/index.js"></script>
  13. <script src="../../static/kj/httpVueLoader.js"></script>
  14. <script src="../../static/kj/jquery.min.js"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. <style>
  18. .el-dialog__body {
  19. padding: 0 20px 30px 20px
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div class="vue-box" style="display: none;" :style="'display: block;'">
  25. <div class="c-panel">
  26. <!-- ------------- 检索参数 ------------- -->
  27. <div class="c-title">检索参数</div>
  28. <el-form ref="form" :model='p' @submit.native.prevent>
  29. <sa-item type="text" name="车牌号" v-model="p.veNo" width="7em"></sa-item>
  30. <sa-item type="date" name="申报日期" v-model="p.declTime" width="7em"></sa-item>
  31. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  32. <el-button size="mini" type="info" @click="sa.f5()">重置</el-button>
  33. </el-form>
  34. <!-- ------------- 数据列表 ------------- -->
  35. <el-table class="data-table" ref="data-table" :data="dataList">
  36. <sa-td type="index" name="序号"></sa-td>
  37. <sa-td name="预申报编号" prop="platSeqNo" width="160px"></sa-td>
  38. <sa-td name="车牌号" prop="veNo"></sa-td>
  39. <sa-td name="申报时间" prop="declTime" width="160"></sa-td>
  40. <sa-td name="航次号" prop="voyageNo" width="160"></sa-td>
  41. <sa-td name="申报人姓名" prop="declareName"></sa-td>
  42. <sa-td name="商品名称" prop="goodsNames" width="160"></sa-td>
  43. <sa-td name="总金额" prop="sumAmt"></sa-td>
  44. <sa-td name="总毛重(kg)" prop="sumGrossWt"></sa-td>
  45. <sa-td name="总净重(kg)" prop="sumNetWt"></sa-td>
  46. <sa-td name="商铺名称" prop="shopName" width="160"></sa-td>
  47. <sa-td name="件数" prop="packNo"></sa-td>
  48. <sa-td type="enum" name="互助社确认" prop="hzsConfirmStatus"
  49. :jv="{1: '已确认[green]', 0: '未确认[#ff910a]'}"></sa-td>
  50. <sa-td name="确认时间" prop="hzsConfirmTime" width="160"></sa-td>
  51. <sa-td name="申报单编号" prop="declareId" width="160px"></sa-td>
  52. <sa-td name="提运单号" prop="billNo" width="160"></sa-td>
  53. <el-table-column label="操作" width="280px" fixed="right" align="center">
  54. <template slot-scope="s">
  55. <el-button class="c-btn" type="success" @click="get(s.row)">查看</el-button>
  56. <el-button class="c-btn" type="primary" @click="getOrder(s.row)">边民订单</el-button>
  57. <span>
  58. <el-button
  59. v-if="s.row.hzsConfirmStatus===0 &&sa.isAuth('ht-trade-settlement-hzsconfirm')"
  60. class="c-btn" type="info" @click="hzsConfirm(s.row)">互助社确认</el-button>
  61. </span>
  62. <span>
  63. <el-button v-if="sa.isAuth('tb-order-deduction')&&s.row.hzsConfirmStatus==1" class="c-btn" type="warning"
  64. @click="ToDeductionByVeNo(s.row)">按车订单扣款</el-button>
  65. </span>
  66. <span>
  67. <el-button v-if="sa.isAuth('tb-order-sendCXB001')&&s.row.hzsConfirmStatus==1" class="c-btn" type="warning"
  68. @click="ToSendCXB001ByVeNo(s.row)">推送结关</el-button>
  69. </span>
  70. </template>
  71. </el-table-column>
  72. </el-table>
  73. <!-- ------------- 分页 ------------- -->
  74. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount"
  75. @change="f5()"></sa-item>
  76. </div>
  77. </div>
  78. <script>
  79. var app = new Vue({
  80. components: {
  81. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  82. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  83. },
  84. el: '.vue-box',
  85. data: {
  86. p: { // 查询参数
  87. platSeqNo: '', // 预申报编号
  88. declareId: '', // 申报单编号
  89. veNo: '',
  90. goodsNames: '', // 商品名称
  91. returns: 0,
  92. chargebacks: 0,
  93. pageNo: 1, // 当前页
  94. pageSize: 10, // 页大小
  95. sortType: 0 // 排序方式
  96. },
  97. dataCount: 0,
  98. dataList: [], // 数据集合
  99. },
  100. methods: {
  101. // 刷新
  102. f5: function() {
  103. sa.ajax('/level-one-server/HtTradeSettlement/getList', sa.removeNull(this.p), function(res) {
  104. this.dataList = res.data; // 数据
  105. this.dataCount = res.dataCount; // 数据总数
  106. sa.f5TableHeight(); // 刷新表格高度
  107. }.bind(this));
  108. },
  109. // 查看
  110. get: function(data) {
  111. sa.showIframe('数据详情', 'ht-trade-settlement-info.html?id=' + data.id, '1050px', '90%');
  112. },
  113. getOrder(data) {
  114. sa.showIframe('边民订单', '../tb-order/tb-order-list.html?mainId=' + data.id, '90%', '94%');
  115. },
  116. hzsConfirm(data) {
  117. sa.confirm('是否确认订单', function() {
  118. sa.ajax('/level-one-server/HtTradeSettlement/hzsConfirm?id=' + data.id, function(
  119. res) {
  120. sa.ok('确认成功');
  121. this.f5();
  122. }.bind(this))
  123. }.bind(this));
  124. },
  125. ToDeductionByVeNo(data) {
  126. let veNo = data.veNo;
  127. let id = data.id;
  128. sa.showIframe('按车订单扣款【' + veNo + '】', 'tb-order-deductionByVeNo.html?veNo=' + veNo + '&id=' + id,
  129. '1660px', '97%');
  130. },
  131. ToSendCXB001ByVeNo(data) {
  132. let veNo = data.veNo;
  133. let id = data.id;
  134. sa.showIframe('按车推送结关【' + veNo + '】', 'tb-order-sendCXB001ByVeNo.html?veNo=' + veNo + '&id=' +
  135. id, '1200px', '97%');
  136. },
  137. },
  138. created: function() {
  139. this.f5();
  140. sa.onInputEnter();
  141. }
  142. })
  143. </script>
  144. </body>
  145. </html>