From eb3b16ffa8bb359f2099599195d0f1c7bc13902e Mon Sep 17 00:00:00 2001 From: erdanergou Date: Wed, 8 Mar 2023 14:45:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E7=9B=98=E7=82=B9=E6=97=B6?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E7=89=A9=E6=96=99=E7=9B=98=E7=82=B9=E4=B8=8E?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E7=9B=98=E7=82=B9=E7=9A=84=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/js/lay-module/inputTag.js | 1 - .../templates/pages/post/selectManager.html | 18 +- .../pages/stockTaking/stockTaking.html | 669 ++++++++++++++---- .../pages/stockTaking/stockTaking.html | 669 ++++++++++++++---- 4 files changed, 1100 insertions(+), 257 deletions(-) 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 @@
+
+ +
+
    +
  • 物料盘点
  • +
  • 位置盘点
  • +
+
+
+ +