From b86ddc47a991fff0bf98bab992f70affbbb12efc Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Fri, 9 Aug 2024 09:54:40 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E9=94=80=E5=94=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=20=E9=94=80=E5=94=AE=E4=BC=B0=E4=BB=B7=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=B7=BB=E5=8A=A0=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=20=E9=94=80=E5=94=AE=E4=BC=B0=E4=BB=B7=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=87=87=E8=B4=AD=E6=B7=BB=E5=8A=A0=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=89=93=E5=BC=80?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=B7=BB=E5=8A=A0=E8=AF=A6=E6=83=85js?= =?UTF-8?q?=E6=96=B9=E6=B3=95=20=E9=94=80=E5=94=AE=E4=BC=B0=E4=BB=B7Contro?= =?UTF-8?q?ller=E5=B1=82=EF=BC=9A=E6=96=B0=E5=A2=9E=E9=94=80=E5=94=AE?= =?UTF-8?q?=E4=BC=B0=E4=BB=B7-=E9=87=87=E8=B4=AD=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E6=8E=A5=E5=8F=A3=EF=BC=9B=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E9=94=80=E5=94=AE=E4=BC=B0=E4=BB=B7-?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AF=A6=E6=83=85=E5=90=8E=E7=AB=AF=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/SalesEstimateController.java | 29 ++ .../templates/sales/estimate/estimate.html | 12 +- .../sales/estimate/purchaseAddDetail.html | 426 ++++++++++++++++++ 3 files changed, 466 insertions(+), 1 deletion(-) create mode 100644 ruoyi-admin/src/main/resources/templates/sales/estimate/purchaseAddDetail.html 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