tb-order-sendCXB001ByVeNo.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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="buyUserName"></sa-td>
  59. <sa-td name="商品名称" prop="goodsNames" width="200px"></sa-td>
  60. <sa-td name="总重量" prop="netWt"></sa-td>
  61. <sa-td name="总金额" prop="totalPrice"></sa-td>
  62. <sa-td name="上架金额(元)" prop="upPrice" width="100px"></sa-td>
  63. <sa-td name="订单状态" prop="upStatus">
  64. <template slot-scope="s">
  65. <div v-if="s.row.upStatus===2">已上架</div>
  66. <div v-else>未上架</div>
  67. </template>
  68. </sa-td>
  69. <sa-td name="过卡状态" prop="finishStatus">
  70. <template slot-scope="s">
  71. <div v-if="s.row.finishStatus===1">已过卡3</div>
  72. <div v-else>未过卡3</div>
  73. </template>
  74. </sa-td>
  75. <!--(一级市场)订单扣款回执状态[0=初始值 1=扣款成功 2=扣款失败]-->
  76. <sa-td name="扣款状态" prop="sxb010Status">
  77. <template slot-scope="s">
  78. <div v-if="s.row.sxb010Status===1">扣款成功</div>
  79. <div v-else-if="s.row.sxb010Status===2">扣款失败</div>
  80. <div v-else-if="s.row.peopleConfirmStatus===1 && s.row.applyConfirmStatus===1">已确认</div>
  81. <div v-else>未确认</div>
  82. </template>
  83. </sa-td>
  84. <sa-td name="创建时间" prop="createTime" width="140px"></sa-td>
  85. </el-table>
  86. <!-- ------------- 分页 ------------- -->
  87. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount"
  88. @change="f5()"></sa-item>
  89. </div>
  90. </div>
  91. <script>
  92. var app = new Vue({
  93. components: {
  94. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  95. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  96. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  97. },
  98. el: '.vue-box',
  99. data: {
  100. veNo: sa.p('veNo', 0),
  101. id: sa.p('id', 0),
  102. p: { // 查询参数
  103. id: sa.p('id', 0),
  104. veNo: sa.p('veNo', 0), // 车牌号
  105. pageNo: 1, // 当前页
  106. pageSize: 10, // 页大小
  107. sortType: 0 // 排序方式
  108. },
  109. dataCount: 0,
  110. dataList: [], // 数据集合
  111. bigData: [],
  112. },
  113. methods: {
  114. sendCXB001ByVeNo() {
  115. sa.confirm('是否执行推送当前列表订单的结关信息操作', function() {
  116. sa.ajax('/level-one-server/TbOrder/sendCXB001ByVeNo?veNo=' + this.veNo + '&id=' +
  117. this.id,
  118. function(res) {
  119. sa.alert('执行成功', this.clean);
  120. }.bind(this))
  121. }.bind(this));
  122. },
  123. clean: function() {
  124. parent.app.f5(); // 刷新父页面列表
  125. sa.closeCurrIframe(); // 关闭本页
  126. },
  127. f5: function() {
  128. sa.ajax('/level-one-server/TbOrder/getSendCXB001ByVeNoList', sa.removeNull(this.p), function(
  129. res) {
  130. this.dataList = res.data; // 数据
  131. this.dataCount = res.dataCount; // 数据总数
  132. sa.f5TableHeight(); // 刷新表格高度
  133. }.bind(this));
  134. },
  135. },
  136. created: function() {
  137. this.f5();
  138. sa.ajax('/level-one-server/HtTradeSettlement/getById', {
  139. id: this.id
  140. }, function(res) {
  141. this.bigData = res.data; // 数据
  142. sa.f5TableHeight(); // 刷新表格高度
  143. }.bind(this));
  144. sa.onInputEnter();
  145. }
  146. })
  147. </script>
  148. </body>
  149. </html>