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 @@ + + +
+ +