From acfdd0f92eb7dedbd9a8210294656e773fcfc86a Mon Sep 17 00:00:00 2001 From: erdanergou Date: Thu, 6 Apr 2023 08:24:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E6=9F=A5=E8=AF=A2=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E7=94=B3=E8=AF=B7=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/depository/Inventory-view.html | 60 ++--- .../depository/Inventory-view_mobile.html | 232 ++++++++++++++++++ .../material/selectDepositoryByCard.html | 4 +- 3 files changed, 257 insertions(+), 39 deletions(-) create mode 100644 src/main/resources/templates/pages/depository/Inventory-view_mobile.html diff --git a/src/main/resources/templates/pages/depository/Inventory-view.html b/src/main/resources/templates/pages/depository/Inventory-view.html index 47aa90aa..05210a85 100644 --- a/src/main/resources/templates/pages/depository/Inventory-view.html +++ b/src/main/resources/templates/pages/depository/Inventory-view.html @@ -190,49 +190,33 @@ }); applicationOut = function () { - $.ajax({ - url: "/material/temporaryValue", - type: "post", - dataType: 'json', - data: JSON.stringify({"id": $("#id").val(),"type":"Out"}), - contentType: "application/json;charset=utf-8", - success: function (d) { - miniTab.openNewTabByIframeNew({ - href: "/application_Out_temporaryValue", - title: "出库申请" - }); - - } + var index = layer.open({ + title: '出库申请', + type: 2, + shade: 0.2, + maxmin: true, + shadeClose: true, + area: ['100%', '100%'], + content: '/application_out_back?code=' + $("#code").val() + "&depositoryId=" + $("#depositoryId").val() + }); + $(window).on("resize", function () { + layer.full(index); }); return false; }; applicationIn = function () { - // var index = layer.open({ - // title: '入库申请', - // type: 2, - // shade: 0.2, - // maxmin: true, - // shadeClose: true, - // area: ['100%', '100%'], - // content: '/application_in_back?mid=' + $("#id").val() + "&depositoryId=" + $("#depositoryId").val() - // }); - // $(window).on("resize", function () { - // layer.full(index); - // }); - $.ajax({ - url: "/material/temporaryValue", - type: "post", - dataType: 'json', - data: JSON.stringify({"id": $("#id").val(),"type":"In"}), - contentType: "application/json;charset=utf-8", - success: function (d) { - miniTab.openNewTabByIframeNew({ - href: "/application_In_temporaryValue", - title: "入库申请" - }); - - } + var index = layer.open({ + title: '入库申请', + type: 2, + shade: 0.2, + maxmin: true, + shadeClose: true, + area: ['100%', '100%'], + content: '/application_in_back?mid=' + $("#id").val() + "&depositoryId=" + $("#depositoryId").val() + }); + $(window).on("resize", function () { + layer.full(index); }); return false; } diff --git a/src/main/resources/templates/pages/depository/Inventory-view_mobile.html b/src/main/resources/templates/pages/depository/Inventory-view_mobile.html new file mode 100644 index 00000000..9bd0d891 --- /dev/null +++ b/src/main/resources/templates/pages/depository/Inventory-view_mobile.html @@ -0,0 +1,232 @@ + + + + + 分步表单 + + + + + + + + + + + + +
+ + +
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + +
+
+
+ + + + + + + \ No newline at end of file diff --git a/target/classes/templates/pages/material/selectDepositoryByCard.html b/target/classes/templates/pages/material/selectDepositoryByCard.html index 11ce984e..2305cdff 100644 --- a/target/classes/templates/pages/material/selectDepositoryByCard.html +++ b/target/classes/templates/pages/material/selectDepositoryByCard.html @@ -53,10 +53,13 @@ // 物料查询跳转入库 depositoryChildren = windowParent.childNodes[15]; } + console.log(windowParent.childNodes) + console.log(depositoryChildren) }else{ depositoryChildren = windowParent.childNodes[11]; } + var depositoryItem = depositoryChildren.childNodes[3].childNodes[1].childNodes; var depositoryName = depositoryItem[1]; var depositoryId = depositoryItem[3]; @@ -77,7 +80,6 @@ depositoryName.value = d.data.dname +"-"+ obj.data.title; } }); - depositoryId.value = did[0]; placeId.value = did[1]; }