模版上架

This commit is contained in:
kuang.yife 2023-02-25 14:04:21 +08:00
parent 3828b23df5
commit 7091b34ff8
3 changed files with 23 additions and 0 deletions

View File

@ -22,6 +22,11 @@ public class GoodsStandardController extends BaseController {
@Resource @Resource
private GoodsStandardService goodsStandardService; private GoodsStandardService goodsStandardService;
@GetMapping("/addTemplate")
public String addTemplate(ModelMap modelMap){
return PREFIX + "/addTemplate";
}
@RequiresPermissions("goods:standard:view") @RequiresPermissions("goods:standard:view")
@GetMapping @GetMapping
public String goodsStandard(Long goodsId, ModelMap mmap) { public String goodsStandard(Long goodsId, ModelMap mmap) {

View File

@ -34,6 +34,9 @@
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="goods:goods:add"> <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="goods:goods:add">
<i class="fa fa-plus"></i> 新增 <i class="fa fa-plus"></i> 新增
</a> </a>
<a class="btn btn-success" onclick="addTemplate()" shiro:hasPermission="goods:goods:add">
<i class="fa fa-plus"></i> 模版发单
</a>
<!-- <a class="btn btn-primary" onclick="$.operate.edit()" shiro:hasPermission="goods:goods:edit">--> <!-- <a class="btn btn-primary" onclick="$.operate.edit()" shiro:hasPermission="goods:goods:edit">-->
<!-- <i class="fa fa-edit"></i> 修改--> <!-- <i class="fa fa-edit"></i> 修改-->
<!-- </a>--> <!-- </a>-->
@ -135,6 +138,11 @@
$.operate.post(prefix + "/status?goodsId=" + goodsId + "&status=" + 1); $.operate.post(prefix + "/status?goodsId=" + goodsId + "&status=" + 1);
} }
function addTemplate(){
var url = "goods/standard/addTemplate";
$.modal.openTab("模版添加", url, true);
}
</script> </script>
</body> </body>
</html> </html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>