From a0f5b334991dc50866918141919cc7c3822a6ae5 Mon Sep 17 00:00:00 2001 From: erdanergou Date: Thu, 1 Jun 2023 08:53:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E5=87=BA=E5=BA=93=E6=97=B6=E7=BB=84=E5=90=88=E5=87=BA=E5=BA=93?= =?UTF-8?q?=E6=97=B6=E4=BB=A3=E9=A2=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application-out.html | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/main/resources/templates/pages/applicationForStorageCenter/application-out.html b/src/main/resources/templates/pages/applicationForStorageCenter/application-out.html index 6aa2f3e2..65d54623 100644 --- a/src/main/resources/templates/pages/applicationForStorageCenter/application-out.html +++ b/src/main/resources/templates/pages/applicationForStorageCenter/application-out.html @@ -262,7 +262,8 @@
-
@@ -578,8 +579,8 @@ }); }; - $("#openCompanyAdminorg").on('click',selectPost); - $("#openCompanyAdminorgForGroup").on('click',selectPost); + $("#openCompanyAdminorg").on('click', selectPost); + $("#openCompanyAdminorgForGroup").on('click', selectPost); // 提交(物料出库) form.on('submit(formStep)', function (data) { @@ -609,7 +610,7 @@ } data.params = remove(data.params, Number(keyNumber)); } - /*$.ajax({ + $.ajax({ url: "/depositoryRecord/applicationOut", type: 'post', dataType: 'json', @@ -637,9 +638,9 @@ complete: function () { layer.close(this.layerIndex); } - });*/ + }); } - console.log(data) + return false; }); @@ -671,8 +672,7 @@ } data.params = remove(data.params, Number(keyNumber)); } - console.log(data) - /*$.ajax({ + $.ajax({ url: "/group/applicationOutForGroup", type: 'post', dataType: 'json', @@ -698,7 +698,7 @@ complete: function () { layer.close(this.layerIndex); } - });*/ + }); } }); @@ -710,19 +710,19 @@ let id = data.elem.id; if (isAgency) { // 如果开启了代领功能 - $("#agencyItem"+ id).show(); + $("#agencyItem" + id).show(); // 添加必填 - $("#agencyUid"+ id).attr("lay-verify", "required"); + $("#agencyUid" + id).attr("lay-verify", "required"); - $("#openCompanyAdminorg"+ id).off("click"); + $("#openCompanyAdminorg" + id).off("click"); } else { - $("#agencyItem"+ id).hide(); + $("#agencyItem" + id).hide(); // 删除必填 - $("#agencyUid"+ id).removeAttr("lay-verify"); + $("#agencyUid" + id).removeAttr("lay-verify"); - $("#openCompanyAdminorg"+ id).on('click',selectPost); + $("#openCompanyAdminorg" + id).on('click', selectPost); } }); @@ -1864,7 +1864,6 @@ }; - selectConstructionUnit = function (obj) { let id = obj.id; layer.open({ @@ -1980,7 +1979,7 @@ let id = obj.id; if (id.indexOf("ForGroup") !== -1) { id = "ForGroup"; - }else{ + } else { id = ''; } let name = obj.value;