tb-order-deductionByVeNo.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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>
  17. hr {
  18. border: none; /* 移除默认边框 */
  19. height: 1px; /* 设置高度 */
  20. background-color: gainsboro;/* 设置颜色 */
  21. margin: 5px 0; /* 设置上下外边距 */
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div class="vue-box" style="display: none;" :style="'display: block;'">
  27. <div class="c-panel">
  28. <el-form v-if="bigData">
  29. <div style="color: red;font-weight: bold">请核对当前进境结算单信息,以下列表为未执行扣款的订单:</div>
  30. <el-row style="margin-left: 200px;">
  31. <el-col span="8">
  32. <sa-info name="车牌号" br>{{bigData.veNo}}</sa-info>
  33. <sa-info name="预申报编号" br>{{bigData.platSeqNo}}</sa-info>
  34. <sa-info name="商品名称" br>{{bigData.goodsNames}}</sa-info>
  35. </el-col>
  36. <el-col span="8">
  37. <sa-info name="总毛重(kg)" br>{{bigData.sumGrossWt}}</sa-info>
  38. <sa-info name="总净重(kg)" br>{{bigData.sumNetWt}}</sa-info>
  39. <sa-info name="总金额" br>{{bigData.sumAmt}}</sa-info>
  40. </el-col>
  41. <el-col span="8">
  42. <sa-info name="互市区" br>{{bigData.fieldName}}</sa-info>
  43. <sa-info name="创建时间" br>{{bigData.createTime}}</sa-info>
  44. </el-col>
  45. </el-row>
  46. </el-form>
  47. <hr>
  48. <el-form ref="form" @submit.native.prevent>
  49. <el-button type="success" icon="el-icon-info" @click="deductionByVeNo()">按车扣款</el-button>
  50. </el-form>
  51. <!-- ------------- 数据列表 ------------- -->
  52. <el-table class="data-table" ref="data-table" :data="dataList" >
  53. <sa-td type="index" width="30px"></sa-td>
  54. <sa-td name="车牌号" prop="veNo" ></sa-td>
  55. <sa-td name="订单号" prop="tradeNo" width="180"></sa-td>
  56. <sa-td name="买家" prop="buyUserName" ></sa-td>
  57. <sa-td name="商家名称" prop="enterpriseName" width="280px"></sa-td>
  58. <sa-td name="商品名称" prop="goodsNames" width="200px"></sa-td>
  59. <sa-td name="总重量" prop="netWt" ></sa-td>
  60. <sa-td name="总金额" prop="totalPrice" ></sa-td>
  61. <sa-td name="上架金额(元)" prop="upPrice" ></sa-td>
  62. <sa-td name="订单状态" prop="upStatus" >
  63. <template slot-scope="s">
  64. <div v-if="s.row.upStatus===2">已上架</div>
  65. <div v-else>未上架</div>
  66. </template>
  67. </sa-td>
  68. <sa-td name="过卡状态" prop="finishStatus" >
  69. <template slot-scope="s">
  70. <div v-if="s.row.finishStatus===1">已过卡3</div>
  71. <div v-else>未过卡3</div>
  72. </template>
  73. </sa-td>
  74. <!--(一级市场)订单扣款回执状态[0=初始值 1=扣款成功 2=扣款失败]-->
  75. <sa-td name="扣款状态" prop="sxb010Status" >
  76. <template slot-scope="s">
  77. <div v-if="s.row.sxb010Status===1">扣款成功</div>
  78. <div v-else-if="s.row.sxb010Status===2">扣款失败</div>
  79. <div v-else-if="s.row.peopleConfirmStatus===1 && s.row.applyConfirmStatus===1">已确认</div>
  80. <div v-else>未确认</div>
  81. </template>
  82. </sa-td>
  83. <sa-td name="补扣次数" prop="deductionCount">
  84. <template slot-scope="s">
  85. <div v-if="s.row.deductionCount==0">0</div>
  86. <div v-else>{{s.row.deductionCount}}</div>
  87. </template>
  88. </sa-td>
  89. <sa-td name="补扣时间" prop="deductionTime" width="140px"></sa-td>
  90. <sa-td name="创建时间" prop="createTime" width="140px"></sa-td>
  91. </el-table>
  92. <!-- ------------- 分页 ------------- -->
  93. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()"></sa-item>
  94. </div>
  95. </div>
  96. <script>
  97. var app = new Vue({
  98. components: {
  99. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  100. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  101. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  102. },
  103. el: '.vue-box',
  104. data: {
  105. veNo: sa.p('veNo', 0),
  106. id: sa.p('id', 0),
  107. bigData: [],
  108. p: { // 查询参数
  109. id: sa.p('id', 0),
  110. veNo: sa.p('veNo', 0), // 车牌号
  111. pageNo: 1, // 当前页
  112. pageSize: 10, // 页大小
  113. sortType: 0 // 排序方式
  114. },
  115. dataCount: 0,
  116. dataList: [], // 数据集合
  117. },
  118. methods: {
  119. deductionByVeNo() {
  120. if(this.dataCount === 0 ) {
  121. sa.error('当前车没有需要执行扣款的订单')
  122. return;
  123. }
  124. sa.confirm('是否执行当前列表订单的扣款操作', function() {
  125. sa.ajax('/level-one-server/TbOrder/deductionByVeNo?veNo=' + this.veNo + '&id='+this.id, function(res) {
  126. sa.alert('操作成功', this.clean);
  127. }.bind(this))
  128. }.bind(this));
  129. },
  130. clean: function() {
  131. parent.app.f5(); // 刷新父页面列表
  132. sa.closeCurrIframe(); // 关闭本页
  133. },
  134. f5: function() {
  135. sa.ajax('/level-one-server/TbOrder/getDeductionByVeNoList', sa.removeNull(this.p), function(res) {
  136. this.dataList = res.data; // 数据
  137. this.dataCount = res.dataCount; // 数据总数
  138. sa.f5TableHeight(); // 刷新表格高度
  139. }.bind(this));
  140. },
  141. },
  142. created: function() {
  143. this.f5();
  144. sa.ajax('/level-one-server/HtTradeSettlement/getById', {id : this.id}, function(res) {
  145. this.bigData = res.data; // 数据
  146. sa.f5TableHeight(); // 刷新表格高度
  147. }.bind(this));
  148. sa.onInputEnter();
  149. }
  150. })
  151. </script>
  152. </body>
  153. </html>