@ -75,6 +75,13 @@
< select name = "processMethod" class = "form-control m-b" th:with = "type=${@dict.getType('processMethod')}" required >
< option th:each = "dict : ${type}" th:text = "${dict.dictLabel}" th:value = "${dict.dictValue}" > < / option >
< / select >
< div id = "weiwai" hidden >
< label class = "col-sm-3 control-label" > 委外工序:< / label >
< div class = "col-sm-8" >
< a class = "btn btn-primary" onclick = "insertRowWai()" > 添加委外工序< / a >
< / div >
< table class = "bootstrap-table-sub-2" > < / table >
< / div >
< / div >
< / div >
< div class = "form-group" >
@ -253,6 +260,11 @@
}
function insertRowWai() {
var html = '< tr > < td > < input type = "text" name = "weiwai" class = "form-control" required > < / td > < td > < a class = "btn btn-danger" onclick = "removeRowWai(this)" > 删除< / a > < / td > < / tr > ';
$(".bootstrap-table-sub-2").append(html);
}
< / script >
< / body >