ht-trade-settlement-order.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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 type="text/css">
  18. .c-panel .el-form .c-label {
  19. width: 7em !important;
  20. }
  21. .c-panel .el-form .el-input,
  22. .c-panel .el-form .el-textarea__inner {
  23. width: 250px;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <div class="vue-box" style="display: none;" :style="'display: block;'">
  29. <div class="c-panel">
  30. <el-form ref="form" :model='p' @submit.native.prevent>
  31. <div>
  32. <sa-item type="text" name="边民" v-model="p.buyUserName" width="80px"></sa-item>
  33. <sa-item name="确认状态" width="120px">
  34. <el-select v-model="p.applyConfirmStatus">
  35. <el-option label="全部" value=""></el-option>
  36. <el-option label="未确认" value="0"></el-option>
  37. <el-option label="已确认" value="1"></el-option>
  38. </el-select>
  39. </sa-item>
  40. </div>
  41. <div>
  42. <sa-item name="出卡3" width="120px">
  43. <el-select v-model="p.finishStatus">
  44. <el-option label="全部" value=""></el-option>
  45. <el-option label="未出卡3" value="0"></el-option>
  46. <el-option label="已出卡3" value="1"></el-option>
  47. </el-select>
  48. </sa-item>
  49. <sa-item name="上架状态" width="120px">
  50. <el-select v-model="p.upStatus">
  51. <el-option label="全部" value=""></el-option>
  52. <el-option label="未上架" value="1"></el-option>
  53. <el-option label="已上架" value="2"></el-option>
  54. </el-select>
  55. </sa-item>
  56. <sa-item name="扣款状态" width="120px">
  57. <el-select v-model="p.Sxb010Status">
  58. <el-option label="全部" value=""></el-option>
  59. <el-option label="未扣款" value="0"></el-option>
  60. <el-option label="扣款失败" value="2"></el-option>
  61. <el-option label="已扣款" value="1"></el-option>
  62. </el-select>
  63. </sa-item>
  64. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
  65. <el-button type="info" icon="el-icon-refresh" @click="sa.f5()">重置</el-button>
  66. </div>
  67. </el-form>
  68. <!-- ------------- 数据列表 ------------- -->
  69. <el-table class="data-table" ref="data-table" :data="dataList">
  70. <sa-td type="index" width="30px"></sa-td>
  71. <sa-td name="车牌号" prop="veNo"></sa-td>
  72. <sa-td name="订单号" prop="tradeNo" width="190px"></sa-td>
  73. <sa-td name="边民" prop="buyUserName"></sa-td>
  74. <sa-td name="商品名称" prop="goodsNames" width="200px"></sa-td>
  75. <sa-td name="净重(kg)" prop="netWt"></sa-td>
  76. <sa-td name="总金额" prop="totalPrice" width="90px"></sa-td>
  77. <sa-td name="确认状态" prop="totalPrice">
  78. <template slot-scope="s">
  79. <div v-if="s.row.applyConfirmStatus==1">已确认</div>
  80. <div v-else>未确认</div>
  81. </template>
  82. </sa-td>
  83. <sa-td name="过卡状态" prop="finishStatus">
  84. <template slot-scope="s">
  85. <div v-if="s.row.finishStatus===1">已过卡3</div>
  86. <div v-else>未过卡3</div>
  87. </template>
  88. </sa-td>
  89. <sa-td name="上架金额(元)" prop="upPrice" width="90px">
  90. </sa-td>
  91. <sa-td name="订单状态" prop="upPrice">
  92. <template slot-scope="s">
  93. <div v-if="s.row.upStatus==2">已上架</div>
  94. <div v-else>未上架</div>
  95. </template>
  96. </sa-td>
  97. <!-- <sa-td type="enum" name="交易确认" prop="peopleConfirmStatus" :jv="{1: '已确认[green]', 0: '未确认[#ff910a]'}" ></sa-td>
  98. <sa-td type="enum" name="委托确认" prop="cooperEntrustStatus" :jv="{1: '已确认[green]', 0: '未确认[#ff910a]'}" ></sa-td>
  99. <sa-td type="enum" name="进口确认" prop="applyConfirmStatus" :jv="{1: '已确认[green]', 0: '未确认[#ff910a]'}" ></sa-td> -->
  100. <el-table-column label="操作" fixed="right" width="100px">
  101. <template slot-scope="s">
  102. <el-button class="c-btn" type="success"
  103. @click="getBank(s.row)">银行回执</el-button>
  104. </template>
  105. </el-table-column>
  106. </el-table>
  107. <!-- ------------- 分页 ------------- -->
  108. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount"
  109. @change="f5()"></sa-item>
  110. </div>
  111. <el-dialog :title="model.title" :visible.sync="model.visible" width="500px">
  112. <div>
  113. 当前价格(元):{{model.form.upPrice}}
  114. </div>
  115. <sa-item type="num" name="金额" v-model="model.form.selPrice" placeholder="确认金额" br></sa-item>
  116. <span slot="footer" class="dialog-footer">
  117. <el-button @click="model.visible = false">取 消</el-button>
  118. <el-button type="primary" @click="save">保存</el-button>
  119. <el-button type="primary" @click="sel">转售二级</el-button>
  120. </span>
  121. </el-dialog>
  122. </div>
  123. <script>
  124. var app = new Vue({
  125. components: {
  126. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  127. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  128. },
  129. el: '.vue-box',
  130. data: {
  131. model: {
  132. title: '修改价格',
  133. visible: false,
  134. form: {
  135. id: '',
  136. upPrice: '',
  137. selPrice: 0
  138. }
  139. },
  140. p: { // 查询参数
  141. tradeNo: '', // 订单号
  142. buyUserName: '', // 买家
  143. applyConfirmStatus: '', // 商家名称
  144. saleMainId: sa.p('mainId', 0),
  145. pageNo: 1, // 当前页
  146. pageSize: 10, // 页大小
  147. sortType: 0 // 排序方式
  148. },
  149. dataCount: 0,
  150. dataList: [], // 数据集合
  151. },
  152. methods: {
  153. editPrice(item) {
  154. this.model = {
  155. title: '修改订单【' + item.tradeNo + '】价格',
  156. visible: true,
  157. form: item
  158. }
  159. },
  160. save() {
  161. let price = this.model.form.selPrice;
  162. if (!price) {
  163. sa.error('请输入金额')
  164. return;
  165. }
  166. sa.ajax('/level-one-server/TbOrder/editUpPrice', {
  167. id: this.model.form.id,
  168. price: price
  169. }, function(res) {
  170. this.f5();
  171. this.model.visible = false;
  172. }.bind(this));
  173. },
  174. sel() {
  175. let price = this.model.form.selPrice;
  176. if (!price) {
  177. sa.error('请输入金额')
  178. return;
  179. }
  180. sa.ajax('/level-two-server/TbOrders/addOrderByResale', {
  181. id: this.model.form.id,
  182. resalePrice: price
  183. }, function(res) {
  184. this.f5();
  185. this.model.visible = false;
  186. }.bind(this));
  187. },
  188. // 刷新
  189. f5: function() {
  190. sa.ajax('/level-one-server/TbOrder/getList', sa.removeNull(this.p), function(res) {
  191. this.dataList = res.data; // 数据
  192. this.dataCount = res.dataCount; // 数据总数
  193. sa.f5TableHeight(); // 刷新表格高度
  194. }.bind(this));
  195. },
  196. // 查看银行回执
  197. getBank: function(data) {
  198. sa.showIframe('银行回执', 'tb-order-bank-list.html?tradeNo=' + data.tradeNo, '1300px', '90%');
  199. }
  200. },
  201. created: function() {
  202. this.f5();
  203. sa.onInputEnter();
  204. }
  205. })
  206. </script>
  207. </body>
  208. </html>