|
|
@ -77,6 +77,14 @@ public class SysMakeOrderController extends BaseController |
|
|
|
public String bmps(@PathVariable("id") Long id, ModelMap mmap) |
|
|
|
{ |
|
|
|
SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id); |
|
|
|
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo()); |
|
|
|
if(StringUtils.isNotNull(sysSalesOrder)){ |
|
|
|
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType()); |
|
|
|
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers()); |
|
|
|
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName()); |
|
|
|
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode()); |
|
|
|
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber()); |
|
|
|
} |
|
|
|
mmap.put("sysMakeOrder", sysMakeOrder); |
|
|
|
return prefix + "/bmps"; |
|
|
|
} |
|
|
@ -89,6 +97,14 @@ public class SysMakeOrderController extends BaseController |
|
|
|
{ |
|
|
|
mmap.put("currentUser", ShiroUtils.getSysUser()); |
|
|
|
SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id); |
|
|
|
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo()); |
|
|
|
if(StringUtils.isNotNull(sysSalesOrder)){ |
|
|
|
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType()); |
|
|
|
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers()); |
|
|
|
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName()); |
|
|
|
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode()); |
|
|
|
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber()); |
|
|
|
} |
|
|
|
mmap.put("sysMakeOrder", sysMakeOrder); |
|
|
|
return prefix + "/bmzgqr"; |
|
|
|
} |
|
|
@ -101,6 +117,14 @@ public class SysMakeOrderController extends BaseController |
|
|
|
{ |
|
|
|
mmap.put("currentUser", ShiroUtils.getSysUser()); |
|
|
|
SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id); |
|
|
|
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo()); |
|
|
|
if(StringUtils.isNotNull(sysSalesOrder)){ |
|
|
|
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType()); |
|
|
|
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers()); |
|
|
|
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName()); |
|
|
|
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode()); |
|
|
|
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber()); |
|
|
|
} |
|
|
|
mmap.put("sysMakeOrder", sysMakeOrder); |
|
|
|
return prefix + "/gcsh"; |
|
|
|
} |
|
|
@ -116,6 +140,10 @@ public class SysMakeOrderController extends BaseController |
|
|
|
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo()); |
|
|
|
if(StringUtils.isNotNull(sysSalesOrder)){ |
|
|
|
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType()); |
|
|
|
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers()); |
|
|
|
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName()); |
|
|
|
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode()); |
|
|
|
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber()); |
|
|
|
} |
|
|
|
mmap.put("sysMakeOrder", sysMakeOrder); |
|
|
|
return prefix + "/addPick"; |
|
|
@ -132,6 +160,10 @@ public class SysMakeOrderController extends BaseController |
|
|
|
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo()); |
|
|
|
if(StringUtils.isNotNull(sysSalesOrder)){ |
|
|
|
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType()); |
|
|
|
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers()); |
|
|
|
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName()); |
|
|
|
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode()); |
|
|
|
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber()); |
|
|
|
} |
|
|
|
mmap.put("sysMakeOrder", sysMakeOrder); |
|
|
|
return prefix + "/addProcessInbound"; |
|
|
@ -145,6 +177,14 @@ public class SysMakeOrderController extends BaseController |
|
|
|
{ |
|
|
|
mmap.put("currentUser", ShiroUtils.getSysUser()); |
|
|
|
SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id); |
|
|
|
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo()); |
|
|
|
if(StringUtils.isNotNull(sysSalesOrder)){ |
|
|
|
sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType()); |
|
|
|
sysMakeOrder.setSalesman(sysSalesOrder.getBusinessMembers()); |
|
|
|
sysMakeOrder.setCustomerName(sysSalesOrder.getEnterpriseName()); |
|
|
|
sysMakeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode()); |
|
|
|
sysMakeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber()); |
|
|
|
} |
|
|
|
mmap.put("sysMakeOrder", sysMakeOrder); |
|
|
|
return prefix + "/addProduceInbound"; |
|
|
|
} |
|
|
@ -220,13 +260,27 @@ public class SysMakeOrderController extends BaseController |
|
|
|
@RequiresPermissions("system:makeorder:list") |
|
|
|
@PostMapping("/list") |
|
|
|
@ResponseBody |
|
|
|
public TableDataInfo list(SysMakeOrder sysMakeOrder) |
|
|
|
public TableDataInfo list(SysMakeOrder sysMakeOrder) throws RuntimeException,NumberFormatException |
|
|
|
{ |
|
|
|
SysUser sysUser = ShiroUtils.getSysUser(); |
|
|
|
String deptNumber = sysUser.getDept().getDeptNumber(); |
|
|
|
sysMakeOrder.setDeptNumber(deptNumber); |
|
|
|
startPage(); |
|
|
|
List<SysMakeOrder> list = sysMakeOrderService.selectSysMakeOrderList(sysMakeOrder); |
|
|
|
for(SysMakeOrder makeOrder:list){ |
|
|
|
if(StringUtils.isNotNull(makeOrder.getSaleNo())){ |
|
|
|
SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(makeOrder.getSaleNo()); |
|
|
|
if(StringUtils.isNotNull(sysSalesOrder)){ |
|
|
|
makeOrder.setOrderType(sysSalesOrder.getSalesOrderType()); |
|
|
|
makeOrder.setSalesman(sysSalesOrder.getBusinessMembers()); |
|
|
|
makeOrder.setCustomerName(sysSalesOrder.getEnterpriseName()); |
|
|
|
makeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode()); |
|
|
|
makeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber()); |
|
|
|
makeOrder.setMaterial(String.valueOf(sysSalesOrder.getMaterialSum())); |
|
|
|
makeOrder.setMaterialSum(sysSalesOrder.getEnterpriseSum()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return getDataTable(list); |
|
|
|
} |
|
|
|
|
|
|
|