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