From ae6e40362a745caef9ead36f81f38313fb8c2c66 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 12 五月 2025 16:54:46 +0800 Subject: [PATCH] 扣板:2张 双面机只有“扣板”是2张,其他是1张 --- CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx | 111 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 99 insertions(+), 12 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx index 3c6c658..822f6fc 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx +++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx @@ -5,7 +5,9 @@ <head runat="server"> <title>鍚堢増鏂藉伐鍗�</title> <uc:CMSHead ID="CMSHead1" runat="server" /> + <link rel="stylesheet" type="text/css" href="../../Styles/base.css" /> <script type="text/javascript"> + $(function () { $("input[name='PMS_PaperPositive']").blur(function () { var PMS_PaperCount = parseInt($("input[name='PMS_PaperCount']").val()); @@ -55,6 +57,27 @@ $("#PMS_PaperSource").change(); $("#selPlateType").change(); + + + $(".xialap").hover(function () { + $(this).find(".xialapb").show(); + }, function () { + $(this).find(".xialapb").hide(); + }); + + $(".xialapr").hover(function () { + $(this).find(".xialapb").show(); + $(this).removeClass("xialapr").addClass("xialaprh"); + }, function () { + $(this).removeClass("xialaprh").addClass("xialapr"); + $(this).find(".xialapb").hide(); + }); + + $(".xialapr").click(function () { + $(this).parent().parent().find("input").val($(this).text()); + $(".xialapb").hide(); + }); + }); </script> <script type="text/javascript"> @@ -127,7 +150,42 @@ { document.getElementById('PrintSizeName').value = ""; } - } + } + /* +浜ゆ槗瀹㈡埛閫変腑鍊煎彂鐢熸敼鍙� +*/ + function custormerChange(sel) { + if (window.isDataLoading) { + return; + } + if (sel.value.indexOf('鍏紑') >= 0) { + document.getElementById('PlateSpec').value = '395*460'; + document.getElementById('PMS_ChromaticNumber').value = '1'; + document.getElementById('CTPCount').value = '1'; + + } else if (sel.value.indexOf('鍥涜壊') >= 0) { + document.getElementById('PlateSpec').value = '770*1030'; + document.getElementById('PMS_ChromaticNumber').value = '4'; + document.getElementById('CTPCount').value = '4'; + } else if (sel.value.indexOf('鍏壊') >= 0) { + document.getElementById('PlateSpec').value = '790*1030'; + document.getElementById('PMS_ChromaticNumber').value = '4'; + document.getElementById('CTPCount').value = '4'; + } else if (sel.value.indexOf('榛戠櫧') >= 0) { + document.getElementById('PlateSpec').value = '760*920'; + document.getElementById('PMS_ChromaticNumber').value = '1'; + document.getElementById('CTPCount').value = '2'; + } else if (sel.value.indexOf('杞浆') >= 0) { + document.getElementById('PlateSpec').value = '579*810'; + document.getElementById('PMS_ChromaticNumber').value = '1'; + document.getElementById('CTPCount').value = '2'; + } else { + document.getElementById('CTPCount').value = ''; + } + + + + } </script> </head> <body> @@ -239,7 +297,7 @@ </td> <td> <%--<input type="text" name="PO_Requirement" class=" noJ" style="width: 300px;" value="<%#Eval("PrintDemandAfterWorksDemand") %>" />--%> - <input type="text" name="PO_Requirement" class=" noJ" style="width: 405px;" /> + <input type="text" name="PO_Requirement" class=" noJ" maxlength="500" style="width: 405px;" value="<%#Eval("PrintDemandAfterWorksDemand")%>" /> <%--<%#Eval("m_InquiryCommonModel.PrintDemand")%><%#Eval("m_InquiryCommonModel.AfterWorksDemand")%>--%> </td> </tr> @@ -329,7 +387,7 @@ 鍗板埛鏈哄彴锛� </td> <td> - <select keepDefaultStyle="true" name="PMS_Machine" id="selPMS_Machine" runat="server" style=" width:80px;"> + <select keepDefaultStyle="true" name="PMS_Machine" id="selPMS_Machine" runat="server" style=" width:80px;" onchange='custormerChange(this)'> <option value="">璇烽�夋嫨</option> <option value="1寮�鏈�">1寮�鏈�</option> <option value="2寮�鏈�">2寮�鏈�</option> @@ -386,22 +444,41 @@ </td> </tr> <tr> - <td class="ali03 w70px "> - 鐗堟潗绫诲瀷锛� + <td class="ali03 w70px " style="display:none;"> + <%-- 鐗堟潗绫诲瀷锛�--%> </td> - <td> - <select keepDefaultStyle="true" name="selPlateType" onchange='PlateChange(this)' runat = "server" id="selPlateType" style=" width:80px;"> + <td style="display:none;"> + <select keepDefaultStyle="true" name="selPlateType" onchange='PlateChange(this)' runat = "server" id="selPlateType" style=" width:80px;display:none;"> <option selected="selected" value="1">鏈巶CTP</option> <option value="0">鑷甫CTP</option> <option value="2">鑷甫鑿叉灄</option> <option value="3">鏈巶鑿叉灄</option> - </select><label class="Btnb CangKubtn_o" style="margin-left: 2px;"><input type="button" class="Btn FromWarehouseByBanCai" value="杩炴帴浠撳簱" id="BtnStorePlate" /></label><input type="hidden" runat="server" name="PSF_PaperId" id="PSF_PaperId2" /> + </select><label class="Btnb CangKubtn_o" style="margin-left: 2px;display:none;"><input type="button" class="Btn FromWarehouseByBanCai" value="杩炴帴浠撳簱" id="BtnStorePlate" /></label><input type="hidden" runat="server" name="PSF_PaperId" id="PSF_PaperId2" /> </td> <td class="ali03 w70px "> 瑙勬牸锛� </td> <td> - <input type="text" class="noJ " name="CTPSpecName" style="width:80px" id="PlateSpec" runat = "server"/> + + <%-- <input type="text" class="noJ " name="CTPSpecName" style="width:80px" id="PlateSpec" runat = "server"/>--%> + <%-- <select keepDefaultStyle="true" name="CTPSpecName" id="PlateSpec" runat="server" style="width:80px" > + + </select> --%> + + <div class="xialap"> + <input type="text" class="noJ " name="CTPSpecName" style="width:80px" id="PlateSpec" runat = "server"/> + <div class="xialapb" > + <%=xialapr %> + <%-- <div class="xialapr">500</div> + <div class="xialapr">1000</div> + <div class="xialapr">2000</div> + <div class="xialapr">3000</div> + <div class="xialapr">5000</div> + <div class="xialapr">10000</div>--%> + </div> + </div> + + <select keepDefaultStyle="true" name="selCTPSpec" runat="server" style="display:none;width:80px" id="selCTPSpec" runat = "server"></select> <select keepDefaultStyle="true" name="selFilmSpec" runat="server" style="display:none;width:80px" id="selFilmSpec" runat = "server"></select> </td> @@ -426,7 +503,7 @@ <td id="tdPsCount" style="display:none" runat="server"> <input type="text" class="noJ PS_o" name="PSCount" style="width:80px" id="PSCount" runat = "server" /> </td> - <td id="tdBlank" colspan = "4"> + <td id="tdBlank" colspan = "6"> </td> </tr> @@ -438,10 +515,10 @@ <input type="text" class="date" name="PMS_CompletionTime" style=" width:140px;" runat = "server" id ="PMS_CompletionTime"/> </td> <td class="ali03 w70px "> - 閲戦锛� + <%-- 閲戦锛�--%> </td> <td> - <input type="text" class="float req " min="0" name="PMS_TotalPrice" style="width:80px" runat = "server" id="PMS_TotalPrice" /> + <input type="text" class="float req " min="0" name="PMS_TotalPrice" style="width:80px;display:none;" runat = "server" id="PMS_TotalPrice" value="0" /> </td> <td colspan="6"> </td> @@ -457,6 +534,8 @@ <tr> <td style="text-align: center;" colspan="10"> <asp:Button ID="btn_submit" runat="server" Text="鎻愪氦" OnClick="btn_Submit_form" OnClientClick="CorrectText();" /> + + <input type="button" class="Btn" value="绾稿紶閲囪喘" onclick="zhizhangcaigou();" /> </td> </tr> </tbody> @@ -508,6 +587,14 @@ top.Dialog.open({ URL: "/Pages/business/AgConWarehouse.aspx?CommidityType=鐗堟潗&&value_pparid=" + value_pparid, Width: 1000, Height: 650, Title: "閫夋嫨璐у搧鍙傛暟" }); }); }); + + + //绾稿紶閲囪喘 + function zhizhangcaigou() { + + top.Dialog.open({ URL: "/Pages/procurement/ProcurementADD.aspx", Title: "绾稿紶閲囪喘", Width: 1100, Height: 700 }); + + } </script> </body> </html> -- Gitblit v1.9.1