|
|
@ -56,7 +56,8 @@ |
|
|
|
<option value="">请选择</option> |
|
|
|
</optgroup> |
|
|
|
<optgroup th:each="child: ${childList}" th:label="${child.name}"> |
|
|
|
<option th:each="childSon: ${child.children}" th:value="${childSon.code}" th:text="${#strings.concat(child.name,'-',childSon.name)}"></option> |
|
|
|
<option th:each="childSon: ${child.children}" |
|
|
|
th:value="${childSon.code}" th:text="${#strings.concat(child.name,'-',childSon.name)}"></option> |
|
|
|
</optgroup> |
|
|
|
</select> |
|
|
|
</div> |
|
|
@ -137,8 +138,8 @@ |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
<th:block th:include="include :: footer" /> |
|
|
|
<th:block th:include="include :: select2-js" /> |
|
|
|
<th:block th:include="include :: bootstrap-table-editable-js" /> |
|
|
|
<th:block th:include="include :: select2-js" /> |
|
|
|
<script th:src="@{/js/activiti.js}"></script> |
|
|
|
<script th:src="@{/ajax/libs/vue/vue.js}"></script> |
|
|
|
<script th:src="@{/ajax/libs/element-ui/element-ui.js}"></script> |
|
|
@ -157,11 +158,7 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
|
|
|
|
// 控制下拉框选中 |
|
|
|
var materialType = $("#materialType").val(); |
|
|
|
$("#selectMaterialType").val(materialType).trigger("change"); |
|
|
|
|
|
|
|
var that = this; |
|
|
|
// 页面渲染完成,可以执行需要的操作 |
|
|
|
console.log('页面已渲染完成'); |
|
|
@ -246,14 +243,13 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}) |
|
|
|
}); |
|
|
|
var prefix = ctx + "erp/bom"; |
|
|
|
$("#form-edit").validate({focusCleanup: true}); |
|
|
|
var materialType = $("#materialType").val(); |
|
|
|
$("#selectMaterialType").val(materialType); |
|
|
|
function submitHandler() { |
|
|
|
if ($.validate.form()) { |
|
|
|
$("#selectMaterialType").removeAttr("disabled"); |
|
|
|
$("#selectProcessMethod").removeAttr("disabled"); |
|
|
|
$("#selectUnit").removeAttr("disabled"); |
|
|
|
var materialType = $('#selectMaterialType').select2('val'); |
|
|
|
$('#materialType').val(materialType); |
|
|
|
if ($('textarea[name="comment"]').val()) { |
|
|
|