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/AgSpecialOrderEdit.aspx | 30 +++++++++++++++++++++++++++---
1 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
index b1c5a10..d65a555 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -626,7 +626,7 @@
$("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();
+
if ($("select[name='PSF_Component']").first().val() == "灏侀潰") {
$("select[name='PSF_Component']").last().val("鍐呴〉");
@@ -640,6 +640,7 @@
$("input[name='PSF_LastNum']").last().last().val("");
// $("input[name='CTPSpecName']").last().val("");
$("input[name='CTPCount']").last().last().val("");
+ $("select[name='PSF_PressesDesk']").last().change();
});
@@ -770,6 +771,20 @@
}
});
+
+ $("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_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").val() == "鎵f澘") {
+ $("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");
if ($(this).val().indexOf('鍏紑') >= 0) {
@@ -805,7 +820,12 @@
$(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
$("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
- $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("1");
+ if ($("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").val() == "鎵f澘") {
+ $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("2");
+ } else {
+ $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("1");
+ }
+
}
else if ($(this).val().indexOf('鍥涜壊') >= 0) {
@@ -905,7 +925,11 @@
$(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
$("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
$("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("870");
- $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("2");
+ if ($("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").val() == "鎵f澘") {
+ $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("2");
+ } else {
+ $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("1");
+ }
}
else if ($(this).val().indexOf('杞浆') >= 0) {
$("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊");
--
Gitblit v1.9.1