tb-order-info.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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="../../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 type="text/css">
  17. .c-panel .c-label{width: 8em;}
  18. table {
  19. font-family: arial, sans-serif;
  20. border-collapse: collapse;
  21. width: 90%;
  22. margin-top: 20px ;
  23. margin-left: auto;
  24. margin-right: auto;
  25. }
  26. th {
  27. border: 1px solid darkgray;
  28. text-align: left;
  29. height: 24px;
  30. padding: 8px;
  31. background-color: #dddddd;
  32. }
  33. td {
  34. border: 1px solid darkgray;
  35. text-align: left;
  36. padding: 8px;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  42. <!-- ------- 内容部分 ------- -->
  43. <div class="s-body">
  44. <div class="c-panel">
  45. <el-form v-if="m">
  46. <table>
  47. <tr>
  48. <th>预申报编号</th>
  49. <td>{{m.platSeqNo}}</td>
  50. <th>结算单号</th>
  51. <td>{{m.settleBillNo}}</td>
  52. </tr>
  53. <tr>
  54. <th>进出口预申报单号</th>
  55. <td>{{m.preIeportNo}}</td>
  56. <th>单证代码</th>
  57. <td>{{m.preNo}}</td>
  58. </tr>
  59. <tr>
  60. <th>订单号</th>
  61. <td>{{m.tradeNo}}</td>
  62. <th>买家</th>
  63. <td>{{m.buyUserName}}</td>
  64. </tr>
  65. <tr>
  66. <th>商家名称</th>
  67. <td>{{m.enterpriseName}}</td>
  68. <th>商品名称</th>
  69. <td>{{m.goodsNames}}</td>
  70. </tr>
  71. <tr>
  72. <th>总重量</th>
  73. <td>{{m.netWt}}</td>
  74. <th>总金额</th>
  75. <td>{{m.totalPrice}}</td>
  76. </tr>
  77. <tr>
  78. <th>车牌号</th>
  79. <td>{{m.veNo}}</td>
  80. <th>创建时间</th>
  81. <td>{{sa.forDate(m.createTime, 2)}}</td>
  82. </tr>
  83. </table>
  84. </el-form>
  85. </div>
  86. </div>
  87. <!-- ------- 底部按钮 ------- -->
  88. <div class="s-foot">
  89. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  90. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  91. </div>
  92. </div>
  93. <script>
  94. var app = new Vue({
  95. components: {
  96. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  97. },
  98. el: '.vue-box',
  99. data: {
  100. id: sa.p('id', 0), // 获取数据ID
  101. m: null
  102. },
  103. methods: {
  104. },
  105. mounted: function() {
  106. sa.ajax('/level-one-server/TbOrder/getById?id=' + this.id, function(res) {
  107. this.m = res.data;
  108. if(res.data == null) {
  109. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  110. }
  111. }.bind(this))
  112. }
  113. })
  114. </script>
  115. </body>
  116. </html>