From e8a8276f66ef85bdd06b12d6852d62f5ce69f296 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 30 一月 2026 12:28:55 +0800
Subject: [PATCH] 生产施工单中,选“轮转印刷机”的时候,印刷方式改为只有“扣版”和“单面”两种,默认扣版
---
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx | 190 +++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 175 insertions(+), 15 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
index 741390c..e06b62a 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -75,7 +75,7 @@
</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;">
@@ -636,13 +636,29 @@
$("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("");
@@ -784,7 +800,16 @@
$("select[name='PSF_Typesetting']").live("change", function () {
var value_SelWaerId = $(this).attr("value_ppwaerid");
- if ($("select[name='PSF_PressesDesk'][value_selspec='" + value_SelWaerId + "']").val().indexOf('鍏紑') >= 0 || $("select[name='PSF_PressesDesk'][value_selspec='" + value_SelWaerId + "']").val().indexOf('榛戠櫧') >= 0) {
+ if ($("select[name='PSF_PressesDesk'][value_selspec='" + value_SelWaerId + "']").val().indexOf('鍏紑') >= 0 ) {
+ if ($("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").val() == "鎵g増" || $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val() == "鍙岃壊") {
+ $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("2");
+ } else {
+ $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("1");
+ }
+ }
+
+
+ if ( $("select[name='PSF_PressesDesk'][value_selspec='" + value_SelWaerId + "']").val().indexOf('榛戠櫧') >= 0) {
if ($("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").val() == "鎵g増") {
$("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("2");
} else {
@@ -802,6 +827,24 @@
});
+
+
+
+
+ $("select[name='PSF_PrintedColorPositive']").live("change", function () {
+ var value_SelWaerId = $(this).attr("value_selspec");
+ if ($("select[name='PSF_PressesDesk'][value_selspec='" + value_SelWaerId + "']").val().indexOf('鍏紑') >= 0) {
+ if ($("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").val() == "鎵g増" || $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val() == "鍙岃壊") {
+ $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("2");
+ } else {
+ $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("1");
+ }
+ }
+
+
+ });
+
+
$("select[name='PSF_PressesDesk']").live("change", function () {
var value_SelWaerId = $(this).attr("value_selspec");
@@ -1031,7 +1074,7 @@
//}
- 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("鍗曡壊");
@@ -1040,7 +1083,7 @@
$("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) {
@@ -1064,13 +1107,13 @@
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());
}
@@ -1080,15 +1123,15 @@
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());
}
}
@@ -1164,6 +1207,60 @@
$("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 + "']");
+
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.empty();
+
+ const newOptions = [
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ 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 + "']")
+
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.empty();
+
+ const newOptions = [
+ { value: '鑷炕', text: '鑷炕' },
+ { value: '婊氱炕', text: '婊氱炕' },
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml = '';
+ newOptions.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectElement.html(optionHtml); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
}
});
@@ -1386,7 +1483,7 @@
$("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();
@@ -1452,6 +1549,62 @@
$("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();
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.empty();
+
+ const newOptions = [
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ 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();
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.empty();
+
+ const newOptions = [
+ { value: '鑷炕', text: '鑷炕' },
+ { value: '婊氱炕', text: '婊氱炕' },
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml = '';
+ newOptions.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectElement.html(optionHtml); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+ selectElement.val(sssssss);
+ }
+
+
}
});
@@ -1486,6 +1639,13 @@
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");
+
+ }
});
--
Gitblit v1.9.1