123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>货运需求信息-详情</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <!-- 所有的 css js 资源 -->
- <link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
- <link rel="stylesheet" href="../../static/sa.css">
- <script src="../../static/kj/vue.min.js"></script>
- <script src="../../static/kj/element-ui/index.js"></script>
- <script src="../../static/kj/httpVueLoader.js"></script>
- <script src="../../static/kj/jquery.min.js"></script>
- <script src="../../static/kj/layer/layer.js"></script>
- <script src="../../static/sa.js"></script>
- <script src="../../static/kj/upload-util.js"></script>
- <style type="text/css">
- .c-panel .c-label{width: 8em;}
- .c-item .image-box-2{height: 90px;}
- table {
- font-family: arial, sans-serif;
- border-collapse: collapse;
- width: 100%;
- margin-top: 22px ;
- margin-left: auto;
- margin-right: auto;
- }
- th {
- border: 1px solid darkgray;
- text-align: left;
- width: 15%;
- height: 22px;
- padding: 8px;
- background-color: #dddddd;
- }
- td {
- border: 1px solid darkgray;
- text-align: left;
- padding: 8px;
- width: 35%;
- }
- </style>
- </head>
- <body>
- <div class="vue-box sbot" style="display: none;" :style="'display: block;'">
- <!-- ------- 内容部分 ------- -->
- <div class="s-body">
- <div class="c-panel">
- <el-form v-if="m">
- <table>
- <tr>
- <th>需求单号</th>
- <td>{{m.demandId}}</td>
- <th>下单时间</th>
- <td>{{m.createdAt}}</td>
- </tr>
- <tr>
- <th>货主名称</th>
- <td>{{m.shipperName}}</td>
- <th>货主用户</th>
- <td>{{m.appUser.name}} - {{m.appUser.phone}}</td>
- </tr>
- <tr>
- <th>商品名称</th>
- <td>{{m.itemName}}</td>
- <th>包装方式</th>
- <td>{{m.packingMethodName}}</td>
- </tr>
- <tr>
- <th>商品数量</th>
- <td>{{m.quantity}} 件</td>
- <th>商品重量</th>
- <td>{{m.weight}} 千克</td>
- </tr>
- <tr>
- <th>起运地</th>
- <td>{{m.originAddress}}</td>
- <th>起运地联系人</th>
- <td>{{m.originLinkman}} - {{m.originContact}}</td>
- </tr>
- <tr>
- <th>目的地</th>
- <td>{{m.destAddress}}</td>
- <th>目的地联系人</th>
- <td>{{m.destLinkman}} - {{m.destContact}}</td>
- </tr>
- <tr>
- <th>商品容积</th>
- <td>{{m.volume}} 方</td>
- <th>需求车辆类型</th>
- <td>{{m.vehicleTypeName}}</td>
- </tr>
- <tr>
- <th>需求车辆轴数</th>
- <td>{{m.axleNumber}} 轴</td>
- <th>需求车辆载重</th>
- <td>{{m.loadCapacity}} 吨</td>
- </tr>
- <tr>
- <th>装货时间</th>
- <td>{{m.loadingTime}}</td>
- <th>发车时间</th>
- <td>{{m.departureTime}}</td>
- </tr>
- <tr>
- <th>运达时间</th>
- <td>{{m.arrivalTime}}</td>
- <th>运费数额</th>
- <td>{{m.freightAmount}} 元</td>
- </tr>
- <tr>
- <th>服务费</th>
- <td>{{m.serviceFee}} 元</td>
- <th>订单金额</th>
- <td>{{m.amount}} 元</td>
- </tr>
- <tr>
- <th>当前状态</th>
- <td>
- <b v-if="m.status == 0">未发布</b>
- <b v-if="m.status == 1">已发布待接单</b>
- <b v-if="m.status == 2">已抢单,待确认</b>
- <b v-if="m.status == 3">已接单,待支付</b>
- <b v-if="m.status == 4">已完成</b>
- <b v-if="m.status == 7">已取消</b>
- </td>
- <th>更新时间</th>
- <td>{{m.updatedAt}}</td>
- </tr>
- </table>
- </el-form>
- </div>
- </div>
- <!-- ------- 底部按钮 ------- -->
- <div class="s-foot">
- <el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
- <el-button @click="sa.closeCurrIframe()">取消</el-button>
- </div>
- </div>
- <script>
- var app = new Vue({
- components: {
- "sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
- },
- el: '.vue-box',
- data: {
- id: sa.p('demandId', 0), // 获取数据ID
- m: null
- },
- methods: {
- },
- mounted: function() {
- sa.ajax('/transport-server/TbTransportDemand/getById?demandId=' + this.id, function(res) {
- this.m = res.data;
- if(res.data == null) {
- sa.alert('未能查找到 id=' + this.id + " 详细数据");
- }
- }.bind(this))
- }
- })
-
- </script>
- </body>
- </html>
|