From 9dec67fc7bd6064995d4f9fdc937d0cf9e592012 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 18 三月 2026 13:01:58 +0800
Subject: [PATCH] 20260318 除“书刊”、“画册”外,其他所有订单类型的“构件”和“P数”默认空白

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx |   37 ++++++++++++++++++++++++++++++-------
 1 files changed, 30 insertions(+), 7 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
index 03d4f6f..d72b39b 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -230,8 +230,10 @@
                             <tr>
                                 <td>
                                     <select keepdefaultstyle="true" class="" name="PSF_Component" value_ppwaerid="<%#Container.ItemIndex + 1%>" <%=PrintTypeId=="7"?"style=\"display:none;\"":""  %>    >
-                                        <option value="" selected="selected">-鏃�-</option>
+                                        <option value="">-鏃�-</option>
                                         <option value="灏侀潰">灏侀潰</option>
+                                        <option value="灏佸唴鍚堟嫾">灏佸唴鍚堟嫾</option>
+                                        <option value="澶氬崟鍚堟嫾">澶氬崟鍚堟嫾</option>
                                         <option value="鍐呴〉">鍐呴〉</option>
                                     </select>
 
@@ -659,6 +661,22 @@
                 $("input[name='PSF_PNum']").last().val("");
 
                 if ($("select[name='PSF_Component']").first().val() == "灏侀潰") {
+
+
+                    const newOptions = [
+                        { value: '澶氬崟鍚堟嫾', text: '澶氬崟鍚堟嫾' },
+                        { value: '鍐呴〉', text: '鍐呴〉' }
+
+                    ];
+
+                    // 3. 鎵归噺鏂板option鍒皊elect涓�
+                    let optionHtml = '';
+                    newOptions.forEach(item => {
+                        // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+                        optionHtml += `<option value="${item.value}">${item.text}</option>`;
+                    });
+                    $("select[name='PSF_Component']").last().html(optionHtml); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
                     $("select[name='PSF_Component']").last().val("鍐呴〉");
 
                     if ("<%=shukuanhuace %>" == "true") {
@@ -1462,6 +1480,16 @@
                     $(vv).parent().parent().parent().parent().parent().find("select[name='selCTPSpec']").val($(vv).attr("value_hide_psf_selCTPSpec"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='selFilmSpec']").val($(vv).attr("value_hide_psf_selFilmSpec"));
 
+                } else {
+                    if ("<%=shukuanhuace %>" == "true") {
+                        $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Component']").val("灏侀潰");
+                        $(vv).parent().parent().parent().parent().parent().find("input[name='PSF_PNum']").val("4");
+
+                    } else {
+                        $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Component']").val("");
+                        $(vv).parent().parent().parent().parent().parent().find("input[name='PSF_PNum']").val("");
+                    }
+                    $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Component']").change();
                 }
             });
 
@@ -1954,12 +1982,7 @@
                     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