tb-order-sendCXB001ByVeNo.html 5.5 KB

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