|
@@ -48,16 +48,16 @@
|
|
|
<el-option label="已结算" value="7"></el-option>
|
|
|
<el-option label="退款中" value="11"></el-option>
|
|
|
<el-option label="已退款" value="12"></el-option>
|
|
|
- </el-select>
|
|
|
+ </el-select>
|
|
|
</sa-item>
|
|
|
<sa-item type="text" name="订单时间" v-model="p.createdAt" width="120px"></sa-item>-->
|
|
|
<el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
|
|
|
<el-button size="mini" type="info" @click="sa.f5()">重置</el-button>
|
|
|
</el-form>
|
|
|
-
|
|
|
+
|
|
|
<!-- ------------- 数据列表 ------------- -->
|
|
|
<el-table class="data-table" ref="data-table" :data="dataList" >
|
|
|
-
|
|
|
+ <sa-td type="index" name="序号"></sa-td>
|
|
|
<sa-td name="货运单号" prop="orderId" width="150px"></sa-td>
|
|
|
<sa-td name="需求单号" prop="demandId" width="150px"></sa-td>
|
|
|
<sa-td name="货主" prop="shipperName" width="180px"></sa-td>
|
|
@@ -76,7 +76,7 @@
|
|
|
<sa-td name="发车时间" prop="realDepartureTime" width="150px" type="datetime"></sa-td>
|
|
|
<sa-td name="运达时间" prop="realArrivalTime" type="datetime" width="150px"></sa-td>
|
|
|
<sa-td name="完成时间" prop="finishTime" type="datetime" width="150px"></sa-td>
|
|
|
-
|
|
|
+
|
|
|
<el-table-column label="操作" fixed="right" width="200px">
|
|
|
<template slot-scope="s">
|
|
|
<el-button class="c-btn" type="success" icon="el-icon-view" @click="get(s.row)">查看详情</el-button>
|
|
@@ -94,23 +94,23 @@
|
|
|
<script>
|
|
|
var app = new Vue({
|
|
|
components: {
|
|
|
- "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
|
|
|
- "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
|
|
|
+ "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
|
|
|
+ "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
|
|
|
},
|
|
|
el: '.vue-box',
|
|
|
data: {
|
|
|
- p: { // 查询参数
|
|
|
- orderId: '', // 货运订单号
|
|
|
- demandId: '', // 需求单号
|
|
|
+ p: { // 查询参数
|
|
|
+ orderId: '', // 货运订单号
|
|
|
+ demandId: '', // 需求单号
|
|
|
shipperName: '', // 货主名称
|
|
|
- driverName: '', // 司机姓名
|
|
|
- plateNo: '', // 接单车辆
|
|
|
- status: '', // 货运订单状态
|
|
|
- createdAt: '', // 货运订单创建时间
|
|
|
- refundStatus: '', // 退款状态,0未退款,1退款申请,2同意退款,3退款关闭
|
|
|
- pageNo: 1, // 当前页
|
|
|
- pageSize: 10, // 页大小
|
|
|
- sortType: 0 // 排序方式
|
|
|
+ driverName: '', // 司机姓名
|
|
|
+ plateNo: '', // 接单车辆
|
|
|
+ status: '', // 货运订单状态
|
|
|
+ createdAt: '', // 货运订单创建时间
|
|
|
+ refundStatus: '', // 退款状态,0未退款,1退款申请,2同意退款,3退款关闭
|
|
|
+ pageNo: 1, // 当前页
|
|
|
+ pageSize: 10, // 页大小
|
|
|
+ sortType: 0 // 排序方式
|
|
|
},
|
|
|
dataCount: 0,
|
|
|
dataList: [], // 数据集合
|
|
@@ -134,13 +134,13 @@
|
|
|
|
|
|
sa.ajax('/transport-server/TbTransportOrder/getList', sa.removeNull(this.p), function(res) {
|
|
|
this.dataList = res.data; // 数据
|
|
|
- this.dataCount = res.dataCount; // 数据总数
|
|
|
- sa.f5TableHeight(); // 刷新表格高度
|
|
|
+ this.dataCount = res.dataCount; // 数据总数
|
|
|
+ sa.f5TableHeight(); // 刷新表格高度
|
|
|
}.bind(this));
|
|
|
},
|
|
|
// 查看
|
|
|
get: function(data) {
|
|
|
- sa.showIframe('货运单详情', 'tb-transport-order-info.html?orderId=' + data.orderId, '1050px', '90%');
|
|
|
+ sa.showIframe('货运单详情', 'tb-transport-order-info.html?orderId=' + data.orderId, '1200px', '90%');
|
|
|
},
|
|
|
viewProcess: function(data){
|
|
|
sa.showIframe('货运单处理过程', 'tb-transport-order-process.html?orderId=' + data.orderId, '680px', '90%');
|
|
@@ -167,24 +167,24 @@
|
|
|
sa.ajax('/transport-server/TbTransportOrder/delete?id=' + data.orderId, function(res) {
|
|
|
sa.arrayDelete(this.dataList, data);
|
|
|
sa.ok('删除成功');
|
|
|
- sa.f5TableHeight(); // 刷新表格高度
|
|
|
+ sa.f5TableHeight(); // 刷新表格高度
|
|
|
}.bind(this))
|
|
|
}.bind(this));
|
|
|
},
|
|
|
// 批量删除
|
|
|
deleteByIds: function() {
|
|
|
- // 获取选中元素的id列表
|
|
|
+ // 获取选中元素的id列表
|
|
|
let selection = this.$refs['data-table'].selection;
|
|
|
let ids = sa.getArrayField(selection, 'id');
|
|
|
if(selection.length == 0) {
|
|
|
return sa.msg('请至少选择一条数据')
|
|
|
}
|
|
|
- // 提交删除
|
|
|
+ // 提交删除
|
|
|
sa.confirm('是否批量删除选中数据?此操作不可撤销', function() {
|
|
|
sa.ajax('/transport-server/TbTransportOrder/deleteByIds', {ids: ids.join(',')}, function(res) {
|
|
|
sa.arrayDelete(this.dataList, selection);
|
|
|
sa.ok('删除成功');
|
|
|
- sa.f5TableHeight(); // 刷新表格高度
|
|
|
+ sa.f5TableHeight(); // 刷新表格高度
|
|
|
}.bind(this))
|
|
|
}.bind(this));
|
|
|
},
|