修改地址
This commit is contained in:
@ -327,6 +327,7 @@ public class OrderApi {
|
||||
if (order.getStatus().equals(1) || order.getStatus().equals(2)) {
|
||||
order.setAddressId(addressId);
|
||||
order.setOrderAddress(address.getAddressProvince() + address.getAddressCity() + address.getAddressArea() + address.getAddressDetailed());
|
||||
orderService.updateById(order);
|
||||
return ResultUtil.success("地址修改成功");
|
||||
}
|
||||
order.setPendingApprovalAddressId(addressId);
|
||||
|
@ -294,7 +294,7 @@
|
||||
sort: true
|
||||
},
|
||||
{
|
||||
fixed: 'right', align: 'center', width: 320, title: '操作', templet: function (item) {
|
||||
fixed: 'right', align: 'center', width: 360, title: '操作', templet: function (item) {
|
||||
if (item.status != 4 && item.orderPick == 2 && item.pendingApprovalAddressId) {
|
||||
return '<button class="layui-btn layui-btn-sm" lay-event="editAddress">修改地址</button><button class="layui-btn layui-btn-sm" lay-event="edit">详情</button><button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="del">删除</button><button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="updateAddress">处理地址修改申请</button>';
|
||||
} else if (item.status == 2 && item.orderPick == 2) {
|
||||
|
Reference in New Issue
Block a user