From 7091b34ff8b67a6f5eb975a97529874689373788 Mon Sep 17 00:00:00 2001 From: "kuang.yife" Date: Sat, 25 Feb 2023 14:04:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E7=89=88=E4=B8=8A=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/goods/GoodsStandardController.java | 5 +++++ .../main/resources/templates/goods/goods/goods.html | 8 ++++++++ .../templates/goods/standard/addTemplate.html | 10 ++++++++++ 3 files changed, 23 insertions(+) create mode 100644 ghy-admin/src/main/resources/templates/goods/standard/addTemplate.html diff --git a/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsStandardController.java b/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsStandardController.java index f04590d4..2940d218 100644 --- a/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsStandardController.java +++ b/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsStandardController.java @@ -22,6 +22,11 @@ public class GoodsStandardController extends BaseController { @Resource private GoodsStandardService goodsStandardService; + + @GetMapping("/addTemplate") + public String addTemplate(ModelMap modelMap){ + return PREFIX + "/addTemplate"; + } @RequiresPermissions("goods:standard:view") @GetMapping public String goodsStandard(Long goodsId, ModelMap mmap) { diff --git a/ghy-admin/src/main/resources/templates/goods/goods/goods.html b/ghy-admin/src/main/resources/templates/goods/goods/goods.html index 20997f47..7bdde38b 100644 --- a/ghy-admin/src/main/resources/templates/goods/goods/goods.html +++ b/ghy-admin/src/main/resources/templates/goods/goods/goods.html @@ -34,6 +34,9 @@ 新增 + + 模版发单 + @@ -135,6 +138,11 @@ $.operate.post(prefix + "/status?goodsId=" + goodsId + "&status=" + 1); } + function addTemplate(){ + var url = "goods/standard/addTemplate"; + $.modal.openTab("模版添加", url, true); + } + \ No newline at end of file diff --git a/ghy-admin/src/main/resources/templates/goods/standard/addTemplate.html b/ghy-admin/src/main/resources/templates/goods/standard/addTemplate.html new file mode 100644 index 00000000..566549bd --- /dev/null +++ b/ghy-admin/src/main/resources/templates/goods/standard/addTemplate.html @@ -0,0 +1,10 @@ + + + + + Title + + + + + \ No newline at end of file