username@email.com
5 天以前 a1e963756360f8bd3938aa560b661d0400165c06
CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx
@@ -286,7 +286,7 @@
                        </div>
                                       </td>
                                 <td>
                                      <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPCount lbCTPCount" name="CTPCount"  value="<%#Eval("PSF_CTPCount")%>" style=" width: 80px" />
                                      <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPCount lbCTPCount int" name="CTPCount"  value="<%#Eval("PSF_CTPCount")%>" style=" width: 80px" />
                                       </td>
                                 <td>
@@ -414,7 +414,7 @@
                                <td colspan="7">
                                </td>
                            </tr>
                            <tr >
                            <tr style="display:none;" >
                                <td >
                                    <select keepdefaultstyle="true" value_selwaerid="<%#Container.ItemIndex + 1%>" name="selPlateType" id="selPlateType">
                                        <option value="本厂CTP">本厂CTP</option>
@@ -499,19 +499,22 @@
                    <ItemTemplate>
                                         <tr class="AddHoudao" value_id="<%#Container.ItemIndex + 1%>" >
                                             <td>
                        <select keepdefaultstyle="true"   class=" w70px" name="selHoudaogongxu" >
                        <select keepdefaultstyle="true"   class=" w70px" name="selHoudaogongxu" value_id="<%#Container.ItemIndex + 1%>"  >
                            <%#Eval("PSF_Houdaogongxu")%>
                        </select>
                    </td>
                                              <td>
                        数量:<input type="text" name="txtShuliang" class=" w40px int" min="0" maxlength="50" value="<%#Eval("PSF_Shuliang")%>"/>
                        数量:<input type="text" name="txtShuliang" class=" w40px int" min="0" maxlength="50" value="<%#Eval("PSF_Shuliang")%>"  value_id="<%#Container.ItemIndex + 1%>" />
                    </td>
                                             <td>
                        倍数:<input type="text" name="txtBeishu" class=" w40px int" min="0" maxlength="50"  value="<%#Eval("PSF_Beishu")%>"/>
                        倍数:<input type="text" name="txtBeishu" class=" w40px float" min="0" maxlength="50"  value="<%#Eval("PSF_Beishu")%>"  value_id="<%#Container.ItemIndex + 1%>" />
                    </td>
       <td>
                        机长:<input type="text" name="txtJichang" class=" w80px"  maxlength="50" value="<%#Eval("PSF_Jichang")%>"/>
                        机长:<%--<input type="text" name="txtJichang" class=" w80px"  maxlength="50" value="<%#Eval("PSF_Jichang")%>"/>--%>
             <select keepdefaultstyle="true"   class=" w70px" name="selJichang" value_id="<%#Container.ItemIndex + 1%>" >
                            <%#Eval("PSF_Jichang")%>
                        </select>
                    </td>
                                              <td>
                        
@@ -553,6 +556,9 @@
   
    </form>
     <script type="text/javascript">
         var jsonStr = '<%=shebeilist%>'
         var dataList = JSON.parse(jsonStr);
/*         alert(dataList.length);*/
         var value_WaerId = 0;
         $(function () {
@@ -695,7 +701,7 @@
                 $("select[name='PSF_OpenSpecifications']").last().val("8开");
                 $("select[name='PSF_OpenSpecifications']").last().change();
                 $("input[name='CTPSpecName']").last().val("395*460");
                 $("input[name='CTPSpecName']").last().val("460*395");
                 $("input[name='PSF_PNum']").last().val("");
                 if ($("select[name='PSF_Component']").first().val() == "封面") {
@@ -744,7 +750,10 @@
                 $(".AddHoudao").last().attr("value_id", value_id + 1);
                 $(".AddHoudaos").last().attr("value_id", value_id + 1);
                 $(".CutHoudaos").last().attr("value_id", value_id + 1);
                 $("select[name='selHoudaogongxu']").last().attr("value_id", value_id + 1);
                 $("select[name='selJichang']").last().attr("value_id", value_id + 1);
                 $("input[name='txtShuliang']").last().attr("value_id", value_id + 1);
                 $("input[name='txtBeishu']").last().attr("value_id", value_id + 1);
             });
@@ -752,9 +761,36 @@
                 var value_id = parseInt($(this).attr("value_id"));
                 var count = $('.AddHoudao').length;
                 if (count == 1) {
                     $("select[name='selHoudaogongxu'][value_id='" + value_id + "']").val("");
                     $("select[name='selJichang'][value_id='" + value_id + "']").val("");
                     $("input[name='txtShuliang'][value_id='" + value_id + "']").val("");
                     $("input[name='txtBeishu'][value_id='" + value_id + "']").val("");
                 } else {
                     $(".AddHoudao[value_id='" + value_id + "']").remove();
                 }
             });
             $("select[name='selHoudaogongxu']").live("change", function () {
                 var value_id = $(this).attr("value_id");
                 var selectId = $(this).val(); // 获取选中的值
                 // 清空第二个下拉框
                 $("select[name='selJichang'][value_id='" + value_id + "']").empty().append("<option value='0'>请选择</option>");
                 if (!selectId) return;
                 // ======================
                 // 关键:从集合里筛选数据!
                 // ======================
                 var filterData = dataList.filter(item =>
                     item.Name.includes(selectId)
                 );
                 // 填充到第二个下拉框
                 $.each(filterData, function (i, item) {
                     $("select[name='selJichang'][value_id='" + value_id + "']").append("<option value='" + item.Zerenren + "'>" + item.ZerenrenName + "</option>");
                 });
             });
            $("select[name='PSF_PaperSource']").live("change", function () {
@@ -1035,7 +1071,7 @@
                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");
                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("460*395");
                    $("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();
@@ -1077,7 +1113,7 @@
                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");
                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("1030*770");
                    $("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();
@@ -1115,7 +1151,7 @@
                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");
                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("1030*790");
                    $("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();
@@ -1154,7 +1190,7 @@
                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");
                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("920*760");
                    $("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();
@@ -1193,7 +1229,7 @@
                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");
                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("810*579");
                    $("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();
@@ -1268,7 +1304,7 @@
                    
                    $("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");
                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("460*395");
                    $("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 + "']").show();
@@ -1308,7 +1344,7 @@
                    $("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");
                    $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("460*395");
                    $("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 + "']").show();
@@ -1929,7 +1965,7 @@
                 if (keyid != "") {
                 } else {
                     $(vv).val("395*460");
                     $(vv).val("460*395");
                    
                }
            });