From a3a8b2d5dbd0b4e17a8b8a9c0f2198a577fc31dc Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 28 十一月 2025 15:26:58 +0800
Subject: [PATCH] 在“数码印刷”后面增加“业务经理打印”、在最后面增加“补单”

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx |   78 ++++++++++++++++++++++++++++++++-------
 1 files changed, 64 insertions(+), 14 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
index 741390c..ed458ac 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("鍗曡壊");
@@ -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());
                                     } 
                                 }
                                
@@ -1386,7 +1429,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();
@@ -1486,6 +1529,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