|
@@ -52,7 +52,7 @@
|
|
|
<el-option label="锁单中待支付" value="3"></el-option>
|
|
|
<el-option label="已完成" value="4"></el-option>
|
|
|
<el-option label="已取消" value="7"></el-option>
|
|
|
- </el-select>
|
|
|
+ </el-select>
|
|
|
</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>
|
|
@@ -66,23 +66,25 @@
|
|
|
<!--<sa-td type="selection"></sa-td>-->
|
|
|
<sa-td name="需求单号" prop="demandId" width="150px"></sa-td>
|
|
|
<sa-td name="货主" prop="shipperName" width="200px"></sa-td>
|
|
|
- <sa-td name="商品名称" prop="itemName" width="260px" align="left"></sa-td>
|
|
|
+ <sa-td name="商品名称" prop="itemName" width="260px" ></sa-td>
|
|
|
<!--<sa-td name="包装方式" prop="packingMethod" ></sa-td>
|
|
|
<sa-td name="商品数量" prop="quantity" ></sa-td>
|
|
|
<sa-td name="商品重量" prop="weight" ></sa-td>
|
|
|
<sa-td name="商品容积" prop="volume" ></sa-td>-->
|
|
|
- <sa-td name="起运地" prop="originAddress" align="left" width="320px"></sa-td>
|
|
|
- <sa-td name="目的地" prop="destAddress" align="left" width="320px"> </sa-td>
|
|
|
+ <sa-td name="起运地" prop="originAddress" width="320px"></sa-td>
|
|
|
+ <sa-td name="目的地" prop="destAddress" width="320px"> </sa-td>
|
|
|
<!--<sa-td name="起运地联系人" prop="originContact" width="140px" ></sa-td>
|
|
|
<sa-td name="目的地联系人" prop="destinationContact" width="140px"></sa-td>
|
|
|
<sa-td name="车辆类型" prop="vehicleType" ></sa-td>
|
|
|
<sa-td name="车辆轴数" prop="axleNumber" ></sa-td>
|
|
|
<sa-td name="载重上限" prop="loadCapacity" ></sa-td>-->
|
|
|
- <sa-td name="要求装货时间" prop="loadingTime" type="datetime" width="150px"></sa-td>
|
|
|
- <!--<sa-td name="要求发车时间" prop="departureTime" type="date" width="140px"></sa-td>-->
|
|
|
- <sa-td name="要求运达时间" prop="arrivalTime" type="datetime" width="150px"></sa-td>
|
|
|
- <sa-td name="运费(元)" prop="freightAmount" width="160px"></sa-td>
|
|
|
+ <sa-td name="运费(元)" prop="freightAmount" width="120px"></sa-td>
|
|
|
+ <sa-td name="服务费(元)" prop="serviceFee" width="120px"></sa-td>
|
|
|
+ <sa-td name="订单金额(元)" prop="amount" width="120px"></sa-td>
|
|
|
<sa-td name="状态" prop="status" type="enum" :jv="{0: '暂存', 1: '待接单', 2: '待确认', 3: '待支付', 4:'已完成', 7:'已取消', 9:'已删除'}" width="120px"></sa-td>
|
|
|
+ <!--<sa-td name="要求装货时间" prop="loadingTime" type="datetime" width="150px"></sa-td>-->
|
|
|
+ <!--<sa-td name="要求发车时间" prop="departureTime" type="date" width="140px"></sa-td>-->
|
|
|
+ <!--<sa-td name="要求运达时间" prop="arrivalTime" type="datetime" width="150px"></sa-td>-->
|
|
|
<sa-td name="创建时间" prop="createdAt" type="datetime" width="150px"></sa-td>
|
|
|
<!--<sa-td name="更新时间" prop="updatedAt" ></sa-td>-->
|
|
|
<el-table-column label="操作" fixed="right" width="180px">
|
|
@@ -102,34 +104,34 @@
|
|
|
<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: { // 查询参数
|
|
|
- demandId: '', // 货运需求单唯一标识,自增主键
|
|
|
+ p: { // 查询参数
|
|
|
+ demandId: '', // 货运需求单唯一标识,自增主键
|
|
|
shipperId: '', // 货主 ID,关联货主表
|
|
|
shipperName: '', // 货主
|
|
|
- itemName: '', // 商品名称
|
|
|
- packingMethod: '', // 商品包装方式
|
|
|
- destinationAddress: '', // 货物目标地址
|
|
|
- originContact: '', // 起运地联系人
|
|
|
- destinationContact: '', // 目的地联系人
|
|
|
- vehicleType: '', // 所需车辆类型
|
|
|
- status: '', // 货运需求单状态
|
|
|
+ itemName: '', // 商品名称
|
|
|
+ packingMethod: '', // 商品包装方式
|
|
|
+ destinationAddress: '', // 货物目标地址
|
|
|
+ originContact: '', // 起运地联系人
|
|
|
+ destinationContact: '', // 目的地联系人
|
|
|
+ vehicleType: '', // 所需车辆类型
|
|
|
+ status: '', // 货运需求单状态
|
|
|
deleteStatus: '1',
|
|
|
- createdAt: '', // 货运需求单创建时间
|
|
|
- updatedAt: '', // 货运需求单更新时间
|
|
|
- pageNo: 1, // 当前页
|
|
|
- pageSize: 10, // 页大小
|
|
|
- sortType: 0 // 排序方式
|
|
|
+ createdAt: '', // 货运需求单创建时间
|
|
|
+ updatedAt: '', // 货运需求单更新时间
|
|
|
+ pageNo: 1, // 当前页
|
|
|
+ pageSize: 10, // 页大小
|
|
|
+ sortType: 0 // 排序方式
|
|
|
},
|
|
|
orderStepTabs: [],
|
|
|
activeTab: 'all',
|
|
|
|
|
|
dataCount: 0,
|
|
|
- dataList: [], // 数据集合
|
|
|
+ dataList: [], // 数据集合
|
|
|
},
|
|
|
methods: {
|
|
|
handleTabClick(tab, event) {
|
|
@@ -148,8 +150,8 @@
|
|
|
|
|
|
sa.ajax('/transport-server/TbTransportDemand/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));
|
|
|
},
|
|
|
// 查看
|
|
@@ -168,7 +170,7 @@
|
|
|
this.get(selection[0]);
|
|
|
},
|
|
|
viewApply: function(data){
|
|
|
- sa.showIframe('货运申请单', 'tb-transport-demand-apply.html?demandId=' + data.demandId, '1050px', '70%');
|
|
|
+ sa.showIframe('货运申请单', 'tb-transport-demand-apply.html?demandId=' + data.demandId, '1200px', '80%');
|
|
|
},
|
|
|
// 修改
|
|
|
update: function(data) {
|
|
@@ -190,7 +192,7 @@
|
|
|
}
|
|
|
}.bind(this))
|
|
|
}.bind(this));
|
|
|
- },
|
|
|
+ },
|
|
|
// 删除
|
|
|
del: function(data) {
|
|
|
sa.confirm('确定要删除货运需求单['+ data.demandId +']吗?', function() {
|
|
@@ -207,18 +209,18 @@
|
|
|
},
|
|
|
// 批量删除
|
|
|
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/TbTransportDemand/deleteByIds', {ids: ids.join(',')}, function(res) {
|
|
|
sa.arrayDelete(this.dataList, selection);
|
|
|
sa.ok('删除成功');
|
|
|
- sa.f5TableHeight(); // 刷新表格高度
|
|
|
+ sa.f5TableHeight(); // 刷新表格高度
|
|
|
}.bind(this))
|
|
|
}.bind(this));
|
|
|
},
|