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 1dbb8f6d..7ea4eee4 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 @@ -165,6 +165,34 @@ public class SalesEstimateController extends BaseController } + /** + * 新增BOM 销售估价-工程详情 + */ + @GetMapping("/engineeringAddDetail/{salesEstimateId}") + public String engineeringAddDetail(@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 + "/engineeringAddDetail"; + } + + + + /** + * 修改保存BOM 销售估价-工程详情 + */ + @RequiresPermissions("sales:estimate:engineeringAddDetail") + @Log(title = "销售估价", businessType = BusinessType.UPDATE) + @PostMapping("/engineeringAddDetail") + @ResponseBody + public AjaxResult engineeringAddDetailSave(@RequestBody SalesEstimate salesEstimate) + { + return toAjax(salesEstimateService.updateSalesEstimateSave(salesEstimate)); + } + + /** * 新增销售估价 销售估价详情数据集合展示 diff --git a/ruoyi-admin/src/main/resources/templates/sales/estimate/engineeringAddDetail.html b/ruoyi-admin/src/main/resources/templates/sales/estimate/engineeringAddDetail.html new file mode 100644 index 00000000..7ac6d26f --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/sales/estimate/engineeringAddDetail.html @@ -0,0 +1,426 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+
+ + % +
+
+
+ +
+ +
+ +
+
+ +
+

计算

+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+
+
+
+
+
+ + + + + + \ No newline at end of file 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 900bb687..afe1f3f7 100644 --- a/ruoyi-admin/src/main/resources/templates/sales/estimate/estimate.html +++ b/ruoyi-admin/src/main/resources/templates/sales/estimate/estimate.html @@ -69,6 +69,9 @@ var purchaseAddFlag = [[${@permission.hasPermi('sales:estimate:purchaseAdd')}]]; var ceoAddFlag = [[${@permission.hasPermi('sales:estimate:ceoAdd')}]]; var addDetailFlag = [[${@permission.hasPermi('sales:estimate:addDetail')}]]; + var engineeringAddDetailFlag = [[${@permission.hasPermi('sales:estimate:engineeringAddDetail')}]]; + + var estimateStatusDatas = [[${@dict.getType('estimate_status')}]]; var commonCurrencyDatas = [[${@dict.getType('sys_common_currency')}]]; @@ -170,6 +173,9 @@ if (row.estimateStatus != '1' && row.estimateStatus != '2' && row.estimateStatus != '3') { actions.push('详情 '); } + if (row.estimateStatus != '0' && row.estimateStatus != '2' && row.estimateStatus != '3') { + actions.push('详情 '); + } if(row.estimateStatus == '0'){ actions.push('添加BOM '); } @@ -196,7 +202,7 @@ //业务添加 详情 function addDetail(salesEstimateId){ var url = prefix + "/addDetail/" + salesEstimateId; - $.modal.open("添加详情", url); + $.modal.open("详情", url); } @@ -206,6 +212,13 @@ $.modal.open("添加BOM", url); } + //工程 添加BOM详情 + function engineeringAddDetail(salesEstimateId){ + var url = prefix + "/engineeringAddDetail/" + salesEstimateId; + $.modal.open("详情", url); + } + + //采购 添加采购成本 function purchaseAdd(salesEstimateId){ var url = prefix + "/purchaseAdd/" + salesEstimateId; diff --git a/ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAdd.html b/ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAdd.html index c30a1668..8f574887 100644 --- a/ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAdd.html +++ b/ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAdd.html @@ -1,7 +1,7 @@ - +