|
|
@ -118,14 +118,15 @@ public class SalesEstimateController extends BaseController |
|
|
|
/** |
|
|
|
* 新增销售估价-业务详情 |
|
|
|
*/ |
|
|
|
@GetMapping("/addDetail") |
|
|
|
public String addDetail(ModelMap map) |
|
|
|
@GetMapping("/addDetail/{salesEstimateId}") |
|
|
|
public String addDetail(@PathVariable("salesEstimateId") Long salesEstimateId,ModelMap map) |
|
|
|
{ |
|
|
|
SalesEstimateDetailVo salesEstimateDetailVo = salesEstimateService.getSalesEstimateDetailVo(); |
|
|
|
map.put("salesEstimateDetailVo",salesEstimateDetailVo); |
|
|
|
SalesEstimate salesEstimate = salesEstimateService.selectSalesEstimateById(salesEstimateId); |
|
|
|
map.put("salesEstimate", salesEstimate); |
|
|
|
return prefix + "/addDetail"; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 新增保存销售估价-业务详情 |
|
|
|
*/ |
|
|
@ -133,7 +134,7 @@ public class SalesEstimateController extends BaseController |
|
|
|
@Log(title = "销售估价", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping("/addDetail") |
|
|
|
@ResponseBody |
|
|
|
public AjaxResult addDetailSave(@RequestBody SalesEstimate salesEstimate) |
|
|
|
public AjaxResult addDetailSave(SalesEstimate salesEstimate) |
|
|
|
{ |
|
|
|
return toAjax(salesEstimateService.updateSalesEstimateSave(salesEstimate)); |
|
|
|
} |
|
|
@ -187,7 +188,7 @@ public class SalesEstimateController extends BaseController |
|
|
|
@Log(title = "销售估价", businessType = BusinessType.UPDATE) |
|
|
|
@PostMapping("/engineeringAddDetail") |
|
|
|
@ResponseBody |
|
|
|
public AjaxResult engineeringAddDetailSave(@RequestBody SalesEstimate salesEstimate) |
|
|
|
public AjaxResult engineeringAddDetailSave(SalesEstimate salesEstimate) |
|
|
|
{ |
|
|
|
return toAjax(salesEstimateService.updateSalesEstimateSave(salesEstimate)); |
|
|
|
} |
|
|
@ -297,9 +298,9 @@ public class SalesEstimateController extends BaseController |
|
|
|
@Log(title = "销售估价", businessType = BusinessType.UPDATE) |
|
|
|
@PostMapping("/purchaseAddDetail") |
|
|
|
@ResponseBody |
|
|
|
public AjaxResult purchaseAddDetailSave(@RequestBody SalesEstimate salesEstimate) |
|
|
|
public AjaxResult purchaseAddDetailSave(SalesEstimate salesEstimate) |
|
|
|
{ |
|
|
|
return toAjax(salesEstimateService.purchaseAddSalesEstimate(salesEstimate)); |
|
|
|
return toAjax(salesEstimateService.updateSalesEstimateSave(salesEstimate)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|