From cf4b34c45f52ff8951d8eb1ff564c039593f4b31 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期五, 22 十一月 2024 08:45:35 +0800 Subject: [PATCH] 修改合办工单,专版工单格式,计划订单上传格式 --- CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx | 239 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 220 insertions(+), 19 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx index 44a655e..46c9dfc 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx +++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx @@ -5,6 +5,7 @@ <head runat="server"> <title>涓撶増鏂藉伐鍗�</title> <uc:CMSHead ID="CMSHead1" runat="server" /> + <link rel="stylesheet" type="text/css" href="../../Styles/base.css?v=1" /> <style type="text/css"> body { font-family: 寰蒋闆呴粦; } tr { line-height: 20px; } @@ -229,27 +230,27 @@ <input type="text" class=" w80px int " msg="璇峰~鍐欐暟瀛�" name="PSF_PNum" value="<%#Eval("PSF_PNum")%>" /> </td> <td colspan="2"> - <select keepdefaultstyle="true" class=" w120px" name="PSF_PressesDesk"> + <select keepdefaultstyle="true" class=" w120px" name="PSF_PressesDesk" value_selspec="<%#Container.ItemIndex + 1%>"> <%--<option value="">璇烽�夋嫨</option>--%> <%=PressesDeskHtml %> </select> </td> <td> - <select keepdefaultstyle="true" class="" name="PSF_PrintedColorPositive"> - <option value="鍗曡壊">鍗曡壊</option> + <select keepdefaultstyle="true" class="" name="PSF_PrintedColorPositive" value_selspec="<%#Container.ItemIndex + 1%>" > + <option value="鍗曡壊" selected="selected">鍗曡壊</option> <option value="鍙岃壊">鍙岃壊</option> <option value="涓夎壊">涓夎壊</option> - <option value="鍥涜壊" selected="selected">鍥涜壊</option> + <option value="鍥涜壊" >鍥涜壊</option> <option value="鍥�+涓�">鍥�+涓�</option> </select> </td> <td> <select keepdefaultstyle="true" class="" name="PSF_PrintedColorRear" value_ppwaerid="<%#Container.ItemIndex + 1%>"> <option value="0鑹�">0鑹�</option> - <option value="鍗曡壊">鍗曡壊</option> + <option value="鍗曡壊" selected="selected">鍗曡壊</option> <option value="鍙岃壊">鍙岃壊</option> <option value="涓夎壊">涓夎壊</option> - <option value="鍥涜壊" selected="selected">鍥涜壊</option> + <option value="鍥涜壊" >鍥涜壊</option> <option value="鍥�+涓�">鍥�+涓�</option> </select> </td> @@ -289,14 +290,14 @@ <td> 娑堣�� </td> - <td colspan="1"> - 寮�鏁� + <td colspan="1" > + <p name="PSF_OpenSpecificationsspan" value_selspecspan="<%#Container.ItemIndex + 1%>">寮�鏁�</p> </td> <td> - 瀹藉害(mm) + 瀹藉害(mm) </td> <td> - 闀垮害(mm) + <p name="PSF_OpenWidthspan" value_openwidthspan="<%#Container.ItemIndex + 1%>">闀垮害(mm)</p> </td> </tr> <tr> @@ -332,19 +333,30 @@ </td> <td colspan="1"> <select keepdefaultstyle="true" class=" w80px" name="PSF_OpenSpecifications" value_selspec="<%#Container.ItemIndex + 1%>"> - <%--<option value="">璇烽�夋嫨</option>--%> + <option value="">璇烽�夋嫨</option> <%=selCuttingPaperSpecHtml%> </select> </td> <td> <input type="text" class=" w80px int " msg="璇峰~鍐欐暟瀛�" name="PSF_OpenWidth" value="<%#(Eval("PSF_OpenWidth") == null || Eval("PSF_OpenWidth").ToString()=="0")?"":Eval("PSF_OpenWidth").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>' /> + + <div class="xialap" value_ppwaerid='<%#Container.ItemIndex + 1%>' style="display:none;" > + <input type="text" class=" w80px int " name="PSF_OpenWidthName" value="<%#(Eval("PSF_OpenWidth") == null || Eval("PSF_OpenWidth").ToString()=="0")?"":Eval("PSF_OpenWidth").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>' /> + <div class="xialapb" > + + <div class="xialapr">755</div> + <div class="xialapr">760</div> + <div class="xialapr">765</div> + <div class="xialapr">770</div> + </div> + </div> </td> <td> - <input type="text" class=" w80px int " msg="璇峰~鍐欐暟瀛�" name="PSF_OpenLength" value="<%#(Eval("PSF_OpenWidth") == null || Eval("PSF_OpenLength").ToString()=="0")?"":Eval("PSF_OpenLength").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>' /> + <input type="text" class=" w80px int " msg="璇峰~鍐欐暟瀛�" name="PSF_OpenLength" value="<%#(Eval("PSF_OpenLength") == null || Eval("PSF_OpenLength").ToString()=="0")?"":Eval("PSF_OpenLength").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>' /> </td> </tr> <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6; width: 100%"> - <td> + <td style="display:none;"> 鐗堟潗绫诲瀷 </td> <td colspan="2"> @@ -359,11 +371,11 @@ <td id="lbPSCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' class="lb lbPSCount" colspan="4" style="display: none"> PS鐗堟暟閲� </td> - <td colspan="6"> + <td colspan="7"> </td> </tr> <tr> - <td> + <td style="display:none;"> <select keepdefaultstyle="true" value_selwaerid="<%#Container.ItemIndex + 1%>" name="selPlateType" id="selPlateType"> <option value="鏈巶CTP">鏈巶CTP</option> <option value="鑷甫CTP">鑷甫CTP</option> @@ -373,8 +385,19 @@ <label class="Btnb CangKubtn_o" style="margin-left: 10px;"> <input type="button" value_waerid="<%#Container.ItemIndex + 1%>" class="Btn FromWarehouseByBanCai" value="杩炴帴浠撳簱" id="BtnStorePlate" /></label><input type="hidden" value_ppwaerid="<%#Container.ItemIndex + 1%>" name="PSF_PaperId2" /> </td> - <td colspan="2"> + <td colspan="2" > + <div class="xialapp" style="margin-left:32%;"> <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPSpecName " name="CTPSpecName" id="PlateSpec" value="<%#Eval("PSF_CTPSpecType")%>" /> + <div class="xialapbp" > + <%=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" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="sel selCTPSpec" name="selCTPSpec" style="display: none; width: 80px" id="selCTPSpec"> <option value="">璇烽�夋嫨</option> <%=selCTPSpecHtml %> @@ -395,7 +418,7 @@ <td id="tdPsCount" style="display: none" runat="server" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="td tdPsCount" colspan="4"> <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt PSCount" name="PSCount" style="width: 80px" id="PSCount" value="<%#Eval("PSF_PSCount")%>" /> </td> - <td colspan="6"> + <td colspan="7"> </td> </tr> <tr> @@ -511,6 +534,7 @@ var value_id = parseInt($(".AddTab").last().attr("value_id")); $(".AddTab").last().after($(".AddTab").last().clone(true)); $(".AddTab").last().attr("value_id", value_id + 1); + $(".xialap").last().attr("value_ppwaerid", value_id + 1); $(".AddTab span").last().text(value_id + 1); $(".FromWarehouse").last().attr("value_WaerId", value_id + 1); $("input[name='PSF_PaperId']").last().attr("value_PpWaerId", value_id + 1); @@ -532,9 +556,14 @@ $("input[name='PSF_LastNum']").last().attr("value_lastNumid", value_id + 1); $("input[name='PSF_PrintedCount']").last().attr("value_ppwaerid", value_id + 1); $("select[name='PSF_OpenSpecifications']").last().attr("value_selSpec", value_id + 1); + $("p[name='PSF_OpenSpecificationsspan']").last().attr("value_selspecspan", value_id + 1); + $("p[name='PSF_OpenWidthspan']").last().attr("value_openwidthspan", value_id + 1); $("select[name='PSF_PrintedColorRear']").last().attr("value_ppwaerid", value_id + 1); + $("select[name='PSF_PressesDesk']").last().attr("value_selspec", value_id + 1); + $("select[name='PSF_PrintedColorPositive']").last().attr("value_selspec", value_id + 1); $("select[name='PSF_Typesetting']").last().attr("value_ppwaerid", value_id + 1); $("input[name='PSF_OpenWidth']").last().attr("value_ppwaerid", value_id + 1); + $("input[name='PSF_OpenWidthName']").last().attr("value_ppwaerid", value_id + 1); $("input[name='PSF_OpenLength']").last().attr("value_ppwaerid", value_id + 1); $("select[name='selPlateType']").last().attr("value_selwaerid", value_id + 1); @@ -553,6 +582,8 @@ $("input[name='PSF_PaperId3']").last().attr("value_PpWaerId", value_id + 1); // $("select[name='PSF_OpenSpecifications']").last().val("灏忓叏寮�"); + //$("p[name='PSF_OpenSpecificationsspan']").last().text("寮�鏁�"); + //$("p[name='PSF_OpenWidthspan']").last().text("闀垮害(mm)"); $("select[name='PSF_OpenSpecifications']").last().change(); $("select[name='PSF_PrintedColorRear']").last().change(); @@ -562,6 +593,10 @@ $("select[name='selPlateType']").last().val("鏈巶CTP"); $("select[name='selPlateType']").last().change(); + $("select[name='PSF_OpenSpecifications']").last().val("8寮�"); + $("select[name='PSF_OpenSpecifications']").last().change(); + $("input[name='CTPSpecName']").last().val("395*460"); + $("select[name='PSF_PressesDesk']").last().change(); // $("select[name='PSF_Component']").last().val("鍐呴〉"); $("input[name='PSF_PNum']").last().val(""); @@ -570,9 +605,9 @@ $("input[name='PSF_PrintedCount']").last().val(""); $("input[name='PSF_PrintedPositive']").last().val(""); $("input[name='PSF_LastNum']").last().last().val(""); - $("input[name='CTPSpecName']").last().val(""); + // $("input[name='CTPSpecName']").last().val(""); $("input[name='CTPCount']").last().last().val(""); - + }); $(".CutForums").click(function () { @@ -687,6 +722,84 @@ } }); + $("select[name='PSF_PressesDesk']").live("change", function () { + var value_SelWaerId = $(this).attr("value_selspec"); + if ($(this).val().indexOf('鍏紑') >= 0) { + $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊"); + $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍗曡壊"); + $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("395*460"); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("8寮�"); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change(); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show(); + $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show(); + $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show(); + $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show(); + $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show(); + $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide(); + + + } + else if ($(this).val().indexOf('鍥涜壊') >= 0) { + $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍥涜壊"); + $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍥涜壊"); + $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("770*1030"); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("2寮�"); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change(); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show(); + $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show(); + $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show(); + $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show(); + $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show(); + $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide(); + } + else if ($(this).val().indexOf('鍏壊') >= 0) { + $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍥涜壊"); + $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍥涜壊"); + $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("790*1030"); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("2寮�"); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change(); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show(); + $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show(); + $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show(); + $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show(); + $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show(); + $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide(); + } + else if ($(this).val().indexOf('榛戠櫧') >= 0) { + $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊"); + $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍗曡壊"); + $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("760*920"); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("2寮�"); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change(); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show(); + $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show(); + $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show(); + $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show(); + $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show(); + $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide(); + } + else if ($(this).val().indexOf('杞浆') >= 0) { + $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊"); + $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍗曡壊"); + $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("578*810"); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val(""); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change(); + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide(); + $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755"); + + $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide(); + $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").hide(); + $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").hide(); + $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide(); + $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show(); + + + } + + + }); + + $("select[name='PSF_PrintedColorRear']").live("change", function () { var value_SelWaerId = $(this).attr("value_ppwaerid"); if ($(this).val() == "0鑹�") { @@ -726,6 +839,17 @@ $("select[name='selPlateType']").each(function (ii, vv) { $(vv).change(); }); + + $("select[name='PSF_OpenSpecifications']").each(function (ii, vv) { + var keyid = "<%=keyid %>"; + if (keyid != "") { + + } else { + $(vv).val("8寮�"); + + } + }); + $("select[name='PSF_OpenSpecifications']").each(function (ii, vv) { var keyid = "<%=keyid %>"; if (keyid != "") { @@ -734,6 +858,40 @@ $(vv).change(); } }); + + $("select[name='PSF_PressesDesk']").each(function (ii, vv) { + var keyid = "<%=keyid %>"; + if (keyid != "") { + var value_SelWaerId = $(this).attr("value_selspec"); + if ($(vv).val().indexOf('杞浆') >= 0) { + + $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide(); + + $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide(); + $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").hide(); + $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").hide(); + $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide(); + $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show(); + + + } + } + }); + + + + $("input[name='CTPSpecName']").each(function (ii, vv) { + var keyid = "<%=keyid %>"; + + if (keyid != "") { + + } else { + $(vv).val("395*460"); + } + }); + + + $(function () { $(".FromWarehouse").click(function () { @@ -753,6 +911,49 @@ }); }); + + $(".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(); + }); + + + + + + $(".xialapp").hover(function () { + $(this).find(".xialapbp").show(); + }, function () { + $(this).find(".xialapbp").hide(); + }); + + $(".xialaprp").hover(function () { + $(this).find(".xialapbp").show(); + $(this).removeClass("xialaprp").addClass("xialaprhp"); + }, function () { + $(this).removeClass("xialaprhp").addClass("xialaprp"); + $(this).find(".xialapbp").hide(); + }); + + $(".xialaprp").click(function () { + $(this).parent().parent().find("input").val($(this).text()); + $(".xialapbp").hide(); + }); + }); function CorrectText() { -- Gitblit v1.9.1