tb-orders-info.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>二级市场订单表-详情</title>
  5. <meta http-equiv="Content-Type" content="text/html; 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="https://unpkg.com/element-ui@2.13.0/lib/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. <script src="../../static/kj/upload-util.js"></script>
  17. <style type="text/css">
  18. .c-panel .c-label{width: 8em;}
  19. table {
  20. font-family: arial, sans-serif;
  21. border-collapse: collapse;
  22. width: 90%;
  23. margin-top: 20px ;
  24. margin-left: auto;
  25. margin-right: auto;
  26. }
  27. th {
  28. border: 1px solid darkgray;
  29. text-align: left;
  30. height: 24px;
  31. padding: 8px;
  32. background-color: #dddddd;
  33. }
  34. td {
  35. border: 1px solid darkgray;
  36. text-align: left;
  37. padding: 8px;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  43. <!-- ------- 内容部分 ------- -->
  44. <div class="s-body">
  45. <div class="c-panel">
  46. <el-form v-if="m">
  47. <table>
  48. <tr>
  49. <th>订单编号</th>
  50. <td>{{m.orderNo}}</td>
  51. <th>商品名称</th>
  52. <td>{{m.goodsName}}</td>
  53. </tr>
  54. <tr>
  55. <th>商品来源</th>
  56. <td>{{m.goodsFrom}}</td>
  57. <th>互市区</th>
  58. <td>{{m.tradeAreaName}}</td>
  59. </tr>
  60. <tr>
  61. <th>买家</th>
  62. <td>{{m.purchaserName}}</td>
  63. <th>转售金额</th>
  64. <td>{{m.resalePrice}}</td>
  65. </tr>
  66. <tr>
  67. <th>车牌号</th>
  68. <td>{{m.veNo}}</td>
  69. <th>订单状态</th>
  70. <td>
  71. <b v-if="m.orderFinish == 1">已完成</b>
  72. <b v-if="m.orderFinish == 0">未完成</b>
  73. </td>
  74. </tr>
  75. </table>
  76. </el-form>
  77. </div>
  78. </div>
  79. <!-- ------- 底部按钮 ------- -->
  80. <div class="s-foot">
  81. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  82. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  83. </div>
  84. </div>
  85. <script>
  86. var app = new Vue({
  87. components: {
  88. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  89. },
  90. el: '.vue-box',
  91. data: {
  92. id: sa.p('id', 0), // 获取数据ID
  93. m: null
  94. },
  95. methods: {
  96. },
  97. mounted: function() {
  98. sa.ajax('/level-two-server/TbOrders/getById?id=' + this.id, function(res) {
  99. this.m = res.data;
  100. if(res.data == null) {
  101. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  102. }
  103. }.bind(this))
  104. }
  105. })
  106. </script>
  107. </body>
  108. </html>