diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/SalesEstimateController.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/SalesEstimateController.java index 7ea4eee4..9b0e3083 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/SalesEstimateController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/SalesEstimateController.java @@ -274,6 +274,35 @@ public class SalesEstimateController extends BaseController } + + /** + * 新增采购成本 销售估价-采购详情 + */ + @GetMapping("/purchaseAddDetail/{salesEstimateId}") + public String purchaseAddDetail(@PathVariable("salesEstimateId") Long salesEstimateId, ModelMap map) + { + SalesEstimate salesEstimate = salesEstimateService.selectSalesEstimateById(salesEstimateId); + map.put("salesEstimate", salesEstimate); + SalesEstimateDetailVo salesEstimateDetailVo = salesEstimateService.getSalesEstimateDetailVo(); + map.put("salesEstimateDetailVo",salesEstimateDetailVo); + return prefix + "/purchaseAddDetail"; + } + + + + /** + * 修改保存销售估价-采购详情 + */ + @RequiresPermissions("sales:estimate:purchaseAddDetail") + @Log(title = "销售估价", businessType = BusinessType.UPDATE) + @PostMapping("/purchaseAddDetail") + @ResponseBody + public AjaxResult purchaseAddDetailSave(@RequestBody SalesEstimate salesEstimate) + { + return toAjax(salesEstimateService.purchaseAddSalesEstimate(salesEstimate)); + } + + /** * 新增经营成本 销售估价-总经理 */ diff --git a/ruoyi-admin/src/main/resources/templates/sales/estimate/estimate.html b/ruoyi-admin/src/main/resources/templates/sales/estimate/estimate.html index afe1f3f7..42c9f74d 100644 --- a/ruoyi-admin/src/main/resources/templates/sales/estimate/estimate.html +++ b/ruoyi-admin/src/main/resources/templates/sales/estimate/estimate.html @@ -70,7 +70,7 @@ var ceoAddFlag = [[${@permission.hasPermi('sales:estimate:ceoAdd')}]]; var addDetailFlag = [[${@permission.hasPermi('sales:estimate:addDetail')}]]; var engineeringAddDetailFlag = [[${@permission.hasPermi('sales:estimate:engineeringAddDetail')}]]; - + var purchaseAddDetailFlag = [[${@permission.hasPermi('sales:estimate:purchaseAddDetail')}]]; var estimateStatusDatas = [[${@dict.getType('estimate_status')}]]; @@ -176,6 +176,10 @@ if (row.estimateStatus != '0' && row.estimateStatus != '2' && row.estimateStatus != '3') { actions.push('详情 '); } + if (row.estimateStatus != '0' && row.estimateStatus != '1' && row.estimateStatus != '3') { + actions.push('详情 '); + } + if(row.estimateStatus == '0'){ actions.push('添加BOM '); } @@ -225,6 +229,12 @@ $.modal.open("采购成本", url); } + //采购 添加采购成本详情 + function purchaseAddDetail(salesEstimateId){ + var url = prefix + "/purchaseAddDetail/" + salesEstimateId; + $.modal.open("详情", url); + } + //总经理 添加成本 function ceoAdd(salesEstimateId){ var url = prefix + "/ceoAdd/" + salesEstimateId; diff --git a/ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAddDetail.html b/ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAddDetail.html new file mode 100644 index 00000000..083811b7 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAddDetail.html @@ -0,0 +1,426 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+
+ + % +
+
+
+ +
+ +
+ +
+
+ +
+

计算

+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+
+
+
+
+
+ + + + + + \ No newline at end of file