diff --git a/src/main/resources/static/js/lay-module/inputTag.js b/src/main/resources/static/js/lay-module/inputTag.js index d6802997..88423caf 100644 --- a/src/main/resources/static/js/lay-module/inputTag.js +++ b/src/main/resources/static/js/lay-module/inputTag.js @@ -77,7 +77,6 @@ createItem() { var value = this.elem.val().trim(); - if (this.options.beforeCreate && typeof this.options.beforeCreate === 'function') { var modifiedValue = this.options.beforeCreate(this.copyData, value); if (typeof modifiedValue == 'string' && modifiedValue) { diff --git a/src/main/resources/templates/pages/post/selectManager.html b/src/main/resources/templates/pages/post/selectManager.html index 9c3912a6..bc29975c 100644 --- a/src/main/resources/templates/pages/post/selectManager.html +++ b/src/main/resources/templates/pages/post/selectManager.html @@ -26,18 +26,16 @@ if (data.children !== undefined) { return false; } - var name = $("#departmentManager", window.parent.document).val(); - var id = $("#departmentManagerId", window.parent.document).val(); - $("#departmentManager", window.parent.document).val(data.title); - // if (name === undefined || name === null || name === "") { - // } else { - // $("#departmentManager", window.parent.document).val(name + data.title); - // } - if (id === undefined || id === null || id === "") { - $("#departmentManagerId", window.parent.document).val(data.id + ","); + var idForMaterial = $("#departmentManagerIdForMaterial", window.parent.document).val(); + $("#departmentManagerForMaterial", window.parent.document).val(data.title); + $("#departmentManagerForLocation", window.parent.document).val(data.title); + if (idForMaterial === undefined || idForMaterial === null || idForMaterial === "") { + $("#departmentManagerIdForMaterial", window.parent.document).val(data.id + ","); + $("#departmentManagerIdForLocation", window.parent.document).val(data.id + ","); } else { - $("#departmentManagerId", window.parent.document).val(id + data.id + ","); + $("#departmentManagerIdForMaterial", window.parent.document).val(idForMaterial + data.id + ","); + $("#departmentManagerIdForLocation", window.parent.document).val(idForMaterial + data.id + ","); } var index = parent.layer.getFrameIndex(window.name); parent.layer.close(index); diff --git a/src/main/resources/templates/pages/stockTaking/stockTaking.html b/src/main/resources/templates/pages/stockTaking/stockTaking.html index b2292994..afd9eaf9 100644 --- a/src/main/resources/templates/pages/stockTaking/stockTaking.html +++ b/src/main/resources/templates/pages/stockTaking/stockTaking.html @@ -46,108 +46,211 @@
+
+ +
+
    +
  • 物料盘点
  • +
  • 位置盘点
  • +
+
+
+ +