子单订单详情
This commit is contained in:
parent
ba8a37c77d
commit
c3540575ab
|
|
@ -172,6 +172,13 @@ public class OrderDetailController extends BaseController {
|
|||
detail.setGoods(good);
|
||||
detail.setGoodsWorker(workerMap.get(good.getWorkerId()));
|
||||
}
|
||||
// 地址信息
|
||||
CustomerAddress customerAddress = addressService.selectByCustomerAddressId(orderMaster.getAddressId());
|
||||
if(customerAddress != null){
|
||||
detail.setAddressName(customerAddress.getName());
|
||||
detail.setAddressPhone(customerAddress.getPhone());
|
||||
detail.setAddress(customerAddress.getAddress());
|
||||
}
|
||||
}
|
||||
FinancialDetail fd = financialDetailMap.get(detail.getId());
|
||||
if (fd != null) {
|
||||
|
|
|
|||
|
|
@ -100,14 +100,16 @@
|
|||
field: 'goods',
|
||||
title: '订单信息',
|
||||
formatter: function (value, row) {
|
||||
return '<div style="display:flex">'
|
||||
+ '<img decoding="async" src="' + value.goodsImgUrl + '" width="120" height="120" />'
|
||||
return '<div style="display:flex;justify-content: center;align-items: center;">'
|
||||
+ '<img decoding="async" src="' + value.goodsImgUrl + '" width="100" height="100" />'
|
||||
+ '<div>'
|
||||
+ '<small> 订单编号:' + row.code + '<small/> <br>'
|
||||
+ '<h4> ' + value.goodsName + '<h4/>'
|
||||
+ '<small> ' + value.goodsDesc + '</small> <br>'
|
||||
+ '<small> 创建时间:' + row.createTime + '</small> <br>'
|
||||
+ '<small> 消费者:' + row.customerName + row.customerPhone + '</small> <br>'
|
||||
// + '<small> ' + value.goodsDesc + '</small> <br>'
|
||||
+ '<small> 联系人:' + row.addressName + '</small> <br>'
|
||||
+ '<small> 联系电话:' + row.addressPhone + '</small> <br>'
|
||||
+ '<small> 联系地址:' + row.address + '</small> <br>'
|
||||
+ '<small> 下单时间:' + row.createTime + '</small> <br>'
|
||||
+ '<small> 预约时间:' + row.expectTimeStart + ' - ' + row.expectTimeEnd + '</small> <br>'
|
||||
+ '<small> 总金额:' + row.financialMasterMoney + '元 应得金额:' + row.financialDetailMoney + '元</small> <br>'
|
||||
+ '</div>'
|
||||
|
|
@ -122,34 +124,6 @@
|
|||
return $.table.selectDictLabel(orderStatus, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'orderType',
|
||||
title: '订单类型',
|
||||
align: 'center',
|
||||
formatter: function (value, row, index) {
|
||||
return $.table.selectDictLabel(orderTypes, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'payType',
|
||||
title: '付款类型',
|
||||
align: 'center',
|
||||
formatter: function (value, row, index) {
|
||||
return $.table.selectDictLabel(payTypes, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'payStatus',
|
||||
title: '付款状态',
|
||||
align: 'center',
|
||||
formatter: function (value, row, index) {
|
||||
return $.table.selectDictLabel(payStatus, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'payTime',
|
||||
title: '付款时间'
|
||||
},
|
||||
{
|
||||
field: 'worker',
|
||||
title: '接单信息',
|
||||
|
|
@ -180,6 +154,33 @@
|
|||
// + row.id + '\')"><i class="fa fa-edit"></i>详情</a> ');
|
||||
// return actions.join('');
|
||||
// }
|
||||
},{
|
||||
field: 'orderType',
|
||||
title: '订单类型',
|
||||
align: 'center',
|
||||
formatter: function (value, row, index) {
|
||||
return $.table.selectDictLabel(orderTypes, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'payType',
|
||||
title: '付款类型',
|
||||
align: 'center',
|
||||
formatter: function (value, row, index) {
|
||||
return $.table.selectDictLabel(payTypes, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'payStatus',
|
||||
title: '付款状态',
|
||||
align: 'center',
|
||||
formatter: function (value, row, index) {
|
||||
return $.table.selectDictLabel(payStatus, value);
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'payTime',
|
||||
title: '付款时间'
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
|
|
|
|||
|
|
@ -45,6 +45,12 @@ public class OrderDetail extends BaseEntity {
|
|||
|
||||
@Excel(name = "消费者电话", cellType = Excel.ColumnType.STRING)
|
||||
private String customerPhone;
|
||||
|
||||
private String addressPhone;
|
||||
|
||||
private String addressName;
|
||||
|
||||
private String address;
|
||||
|
||||
@Excel(name = "订单类型", cellType = Excel.ColumnType.NUMERIC)
|
||||
private Integer orderType;
|
||||
|
|
|
|||
Loading…
Reference in New Issue