| | |
| | | </td> |
| | | <td> |
| | | <%-- <span id="spanOrderDeliveryTime" runat="server"></span>--%> |
| | | <input id='txtDeliveryTime' class='date req' runat="server" /> |
| | | <input id='txtDeliveryTime' class='date' runat="server" /> |
| | | </td> |
| | | </tr> |
| | | <tr style=" display:none;"> |
| | |
| | | $("select[name='PSF_OpenSpecifications']").last().val("8开"); |
| | | $("select[name='PSF_OpenSpecifications']").last().change(); |
| | | $("input[name='CTPSpecName']").last().val("395*460"); |
| | | |
| | | $("input[name='PSF_PNum']").last().val(""); |
| | | |
| | | if ($("select[name='PSF_Component']").first().val() == "封面") { |
| | | $("select[name='PSF_Component']").last().val("内页"); |
| | | |
| | | if ("<%=shukuanhuace %>" == "true") { |
| | | if (value_id == 1) { |
| | | $("input[name='PSF_PNum']").last().val("<%=shukuanhuaceneiye1 %>"); |
| | | } else if (value_id == 2) { |
| | | $("input[name='PSF_PNum']").last().val("<%=shukuanhuaceneiye2 %>"); |
| | | } else if (value_id == 3) { |
| | | $("input[name='PSF_PNum']").last().val("<%=shukuanhuaceneiye3 %>"); |
| | | } else if (value_id == 4) { |
| | | $("input[name='PSF_PNum']").last().val("<%=shukuanhuaceneiye4 %>"); |
| | | } else if (value_id == 5) { |
| | | $("input[name='PSF_PNum']").last().val("<%=shukuanhuaceneiye5 %>"); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | $("input[name='PSF_PNum']").last().val(""); |
| | | |
| | | $("input[name='PSF_PaperName']").last().val(""); |
| | | $("input[name='PSF_MaterialSpecifications']").last().val(""); |
| | | $("input[name='PSF_PrintedCount']").last().val(""); |
| | |
| | | |
| | | |
| | | //} |
| | | else if ($(this).val().indexOf('直接修切') >= 0 || $(this).val().indexOf('数码') >= 0) { |
| | | else if ($(this).val().indexOf('直接修切') >= 0 || $(this).val().indexOf('数码') >= 0 || $(this).val().indexOf('补单') >= 0 ) { |
| | | |
| | | $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("单色"); |
| | | $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("单色"); |
| | |
| | | $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change(); |
| | | $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show(); |
| | | |
| | | if ($("#spanOrderPrintDemand").html() != "") { |
| | | if ($("#spanOrderPrintDemand").html() != "" && $("#spanOrderPrintDemand").html().indexOf("table") < 0) { |
| | | var sss = $("#spanOrderPrintDemand").html().split(';'); |
| | | if (sss != null) { |
| | | |
| | |
| | | if (ssssaaa.indexOf('×') >= 0) { |
| | | |
| | | var dfdfdf = ssssaaa.split('×'); |
| | | $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm","")); |
| | | $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "")); |
| | | $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", "").trim()); |
| | | $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "").trim()); |
| | | } else if (ssssaaa.indexOf('*') >= 0) { |
| | | |
| | | var dfdfdf = ssssaaa.split('*'); |
| | | $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", "")); |
| | | $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "")); |
| | | $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", "").trim()); |
| | | $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "").trim()); |
| | | } |
| | | |
| | | |
| | |
| | | var sfdsdfdf = sss[i].split(','); |
| | | |
| | | var dfdfdf = sfdsdfdf[0].split('×'); |
| | | $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", "")); |
| | | $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "")); |
| | | $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", "").trim()); |
| | | $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "").trim()); |
| | | } else if (sss[i].indexOf('*') >= 0) { |
| | | |
| | | var sfdsdfdf = sss[i].split(','); |
| | | |
| | | var dfdfdf = sfdsdfdf[0].split('*'); |
| | | $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", "")); |
| | | $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "")); |
| | | $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", "").trim()); |
| | | $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "").trim()); |
| | | } |
| | | } |
| | | |
| | |
| | | $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").hide(); |
| | | $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide(); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | if ($(this).val().indexOf('轮转') >= 0) { |
| | | var selectElement = $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']"); |
| | | |
| | | |
| | | // 清空现有的option |
| | | selectElement.empty(); |
| | | |
| | | const newOptions = [ |
| | | { value: '扣版', text: '扣版' }, |
| | | { value: '单面', text: '单面' } |
| | | |
| | | ]; |
| | | |
| | | |
| | | |
| | | // 3. 批量新增option到select中 |
| | | let optionHtml = ''; |
| | | newOptions.forEach(item => { |
| | | // 拼接option标签,直接赋值即可 |
| | | optionHtml += `<option value="${item.value}">${item.text}</option>`; |
| | | }); |
| | | selectElement.html(optionHtml); // 赋值到select,完成新增 |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | else { |
| | | var selectElement = $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']") |
| | | |
| | | |
| | | // 清空现有的option |
| | | selectElement.empty(); |
| | | |
| | | const newOptions = [ |
| | | { value: '自翻', text: '自翻' }, |
| | | { value: '滚翻', text: '滚翻' }, |
| | | { value: '扣版', text: '扣版' }, |
| | | { value: '单面', text: '单面' } |
| | | |
| | | ]; |
| | | |
| | | // 3. 批量新增option到select中 |
| | | let optionHtml = ''; |
| | | newOptions.forEach(item => { |
| | | // 拼接option标签,直接赋值即可 |
| | | optionHtml += `<option value="${item.value}">${item.text}</option>`; |
| | | }); |
| | | selectElement.html(optionHtml); // 赋值到select,完成新增 |
| | | } |
| | | |
| | | }); |
| | |
| | | $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show(); |
| | | } |
| | | |
| | | else if ($(vv).val().indexOf('直接修切') >= 0 || $(vv).val().indexOf('数码') >= 0) { |
| | | else if ($(vv).val().indexOf('直接修切') >= 0 || $(vv).val().indexOf('数码') >= 0 || $(this).val().indexOf('补单') >= 0 ) { |
| | | |
| | | |
| | | $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show(); |
| | |
| | | $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide(); |
| | | |
| | | } |
| | | |
| | | |
| | | if ($(this).val().indexOf('轮转') >= 0) { |
| | | var selectElement = $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']"); |
| | | var sssssss = selectElement.val(); |
| | | |
| | | // 清空现有的option |
| | | selectElement.empty(); |
| | | |
| | | const newOptions = [ |
| | | { value: '扣版', text: '扣版' }, |
| | | { value: '单面', text: '单面' } |
| | | |
| | | ]; |
| | | |
| | | |
| | | |
| | | // 3. 批量新增option到select中 |
| | | let optionHtml = ''; |
| | | newOptions.forEach(item => { |
| | | // 拼接option标签,直接赋值即可 |
| | | optionHtml += `<option value="${item.value}">${item.text}</option>`; |
| | | }); |
| | | selectElement.html(optionHtml); // 赋值到select,完成新增 |
| | | |
| | | |
| | | selectElement.val(sssssss); |
| | | |
| | | } |
| | | else { |
| | | var selectElement = $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']") |
| | | var sssssss = selectElement.val(); |
| | | |
| | | // 清空现有的option |
| | | selectElement.empty(); |
| | | |
| | | const newOptions = [ |
| | | { value: '自翻', text: '自翻' }, |
| | | { value: '滚翻', text: '滚翻' }, |
| | | { value: '扣版', text: '扣版' }, |
| | | { value: '单面', text: '单面' } |
| | | |
| | | ]; |
| | | |
| | | // 3. 批量新增option到select中 |
| | | let optionHtml = ''; |
| | | newOptions.forEach(item => { |
| | | // 拼接option标签,直接赋值即可 |
| | | optionHtml += `<option value="${item.value}">${item.text}</option>`; |
| | | }); |
| | | selectElement.html(optionHtml); // 赋值到select,完成新增 |
| | | |
| | | selectElement.val(sssssss); |
| | | } |
| | | |
| | | |
| | | } |
| | | }); |
| | | |
| | |
| | | var value_pparid = "3"; |
| | | top.Dialog.open({ URL: "/Pages/business/AgConWarehouse.aspx?CommidityType=版材&&value_pparid=" + value_pparid, Width: 1000, Height: 650, Title: "选择货品参数" }); |
| | | }); |
| | | |
| | | |
| | | if ("<%=shukuanhuace %>" == "true") { |
| | | $("select[name='PSF_Component']").first().val("封面"); |
| | | $("input[name='PSF_PNum']").first().val("4"); |
| | | |
| | | } |
| | | }); |
| | | |
| | | |