tb-transport-demand-info.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. .c-item .image-box-2{height: 90px;}
  20. table {
  21. font-family: arial, sans-serif;
  22. border-collapse: collapse;
  23. width: 100%;
  24. margin-top: 22px ;
  25. margin-left: auto;
  26. margin-right: auto;
  27. }
  28. th {
  29. border: 1px solid darkgray;
  30. text-align: left;
  31. width: 15%;
  32. height: 22px;
  33. padding: 8px;
  34. background-color: #dddddd;
  35. }
  36. td {
  37. border: 1px solid darkgray;
  38. text-align: left;
  39. padding: 8px;
  40. width: 35%;
  41. }
  42. </style>
  43. </head>
  44. <body>
  45. <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
  46. <!-- ------- 内容部分 ------- -->
  47. <div class="s-body">
  48. <div class="c-panel">
  49. <el-form v-if="m">
  50. <table>
  51. <tr>
  52. <th>需求单号</th>
  53. <td>{{m.demandId}}</td>
  54. <th>下单时间</th>
  55. <td>{{m.createdAt}}</td>
  56. </tr>
  57. <tr>
  58. <th>货主名称</th>
  59. <td>{{m.shipperName}}</td>
  60. <th>货主用户</th>
  61. <td>{{m.appUser.name}} - {{m.appUser.phone}}</td>
  62. </tr>
  63. <tr>
  64. <th>商品名称</th>
  65. <td>{{m.itemName}}</td>
  66. <th>包装方式</th>
  67. <td>{{m.packingMethodName}}</td>
  68. </tr>
  69. <tr>
  70. <th>商品数量</th>
  71. <td>{{m.quantity}} 件</td>
  72. <th>商品重量</th>
  73. <td>{{m.weight}} 千克</td>
  74. </tr>
  75. <tr>
  76. <th>起运地</th>
  77. <td>{{m.originAddress}}</td>
  78. <th>起运地联系人</th>
  79. <td>{{m.originLinkman}} - {{m.originContact}}</td>
  80. </tr>
  81. <tr>
  82. <th>目的地</th>
  83. <td>{{m.destAddress}}</td>
  84. <th>目的地联系人</th>
  85. <td>{{m.destLinkman}} - {{m.destContact}}</td>
  86. </tr>
  87. <tr>
  88. <th>商品容积</th>
  89. <td>{{m.volume}} 方</td>
  90. <th>需求车辆类型</th>
  91. <td>{{m.vehicleTypeName}}</td>
  92. </tr>
  93. <tr>
  94. <th>需求车辆轴数</th>
  95. <td>{{m.axleNumber}} 轴</td>
  96. <th>需求车辆载重</th>
  97. <td>{{m.loadCapacity}} 吨</td>
  98. </tr>
  99. <tr>
  100. <th>装货时间</th>
  101. <td>{{m.loadingTime}}</td>
  102. <th>发车时间</th>
  103. <td>{{m.departureTime}}</td>
  104. </tr>
  105. <tr>
  106. <th>运达时间</th>
  107. <td>{{m.arrivalTime}}</td>
  108. <th>运费数额</th>
  109. <td>{{m.freightAmount}} 元</td>
  110. </tr>
  111. <tr>
  112. <th>服务费</th>
  113. <td>{{m.serviceFee}} 元</td>
  114. <th>订单金额</th>
  115. <td>{{m.amount}} 元</td>
  116. </tr>
  117. <tr>
  118. <th>当前状态</th>
  119. <td>
  120. <b v-if="m.status == 0">未发布</b>
  121. <b v-if="m.status == 1">已发布待接单</b>
  122. <b v-if="m.status == 2">已抢单,待确认</b>
  123. <b v-if="m.status == 3">已接单,待支付</b>
  124. <b v-if="m.status == 4">已完成</b>
  125. <b v-if="m.status == 7">已取消</b>
  126. </td>
  127. <th>更新时间</th>
  128. <td>{{m.updatedAt}}</td>
  129. </tr>
  130. </table>
  131. </el-form>
  132. </div>
  133. </div>
  134. <!-- ------- 底部按钮 ------- -->
  135. <div class="s-foot">
  136. <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
  137. <el-button @click="sa.closeCurrIframe()">取消</el-button>
  138. </div>
  139. </div>
  140. <script>
  141. var app = new Vue({
  142. components: {
  143. "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
  144. },
  145. el: '.vue-box',
  146. data: {
  147. id: sa.p('demandId', 0), // 获取数据ID
  148. m: null
  149. },
  150. methods: {
  151. },
  152. mounted: function() {
  153. sa.ajax('/transport-server/TbTransportDemand/getById?demandId=' + this.id, function(res) {
  154. this.m = res.data;
  155. if(res.data == null) {
  156. sa.alert('未能查找到 id=' + this.id + " 详细数据");
  157. }
  158. }.bind(this))
  159. }
  160. })
  161. </script>
  162. </body>
  163. </html>