From 3007002f79b9f234274a07c2490d0105f322c8e8 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 24 三月 2026 11:58:56 +0800
Subject: [PATCH] 提交

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx |  296 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 278 insertions(+), 18 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
index 474a4f6..d72b39b 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -175,6 +175,14 @@
                         </tr>
                         <tr>
                             <td class="ali03">
+                                鍗板埛鏁伴噺锛�
+                            </td>
+                            <td colspan="5">
+                                 <input type="text" id="txtOrderNum" class=" w120px int" min="0"  runat="server" />
+                            </td>
+                        </tr>
+                        <tr>
+                            <td class="ali03">
                                 澶囨敞锛�
                             </td>
                             <td colspan="5">
@@ -195,10 +203,10 @@
                             </thead>
                             <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6; width: 100%">
                                 <td rowspan="2" style="width: 195px;">
-                                    鏋勪欢
+                                 <%=PrintTypeId=="7"?"鎴愬搧灏哄":"鏋勪欢"  %>   
                                 </td>
                                 <td rowspan="2" colspan="2" >
-                                    P鏁�
+                                   <%=PrintTypeId=="7"?"鐗堟暟":"P鏁�"  %>    
                                 </td>
                                 <td rowspan="2" colspan="2">
                                     鍗板埛鏈哄彴
@@ -221,11 +229,15 @@
                             </tr>
                             <tr>
                                 <td>
-                                    <select keepdefaultstyle="true" class="" name="PSF_Component" value_ppwaerid="<%#Container.ItemIndex + 1%>">
-                                        <option value="" selected="selected">-鏃�-</option>
+                                    <select keepdefaultstyle="true" class="" name="PSF_Component" value_ppwaerid="<%#Container.ItemIndex + 1%>" <%=PrintTypeId=="7"?"style=\"display:none;\"":""  %>    >
+                                        <option value="">-鏃�-</option>
                                         <option value="灏侀潰">灏侀潰</option>
+                                        <option value="灏佸唴鍚堟嫾">灏佸唴鍚堟嫾</option>
+                                        <option value="澶氬崟鍚堟嫾">澶氬崟鍚堟嫾</option>
                                         <option value="鍐呴〉">鍐呴〉</option>
                                     </select>
+
+                                    <input type="text" class="  w120px " maxlength="50"   name="PSF_Chengpinchicun"  value_ppwaerid="<%#Container.ItemIndex + 1%>" value="<%#Eval("PSF_Component")%>" <%=PrintTypeId=="7"?"":"style=\"display:none;\""  %>  />
                                 </td>
                                 <td colspan="2">
                                     <input type="text" class="  w80px  int " msg="璇峰~鍐欐暟瀛�" name="PSF_PNum" value="<%#Eval("PSF_PNum")%>" value_ppwaerid="<%#Container.ItemIndex + 1%>" />
@@ -607,6 +619,7 @@
                 $("input[name='PSF_Qitadingdanhao']").last().attr("value_ppwaerid", value_id + 1);
                 $("select[name='PSF_Component']").last().attr("value_ppwaerid", value_id + 1);
                 $("input[name='PSF_PNum']").last().attr("value_ppwaerid", value_id + 1);
+                $("input[name='PSF_Chengpinchicun']").last().attr("value_ppwaerid", value_id + 1);
                 $(".tdCTPCount").last().attr("value_ppwaerid", value_id + 1);
                 $(".selCTPSpec").last().attr("value_ppwaerid", value_id + 1);
                 $(".selFilmSpec").last().attr("value_ppwaerid", value_id + 1);
@@ -648,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") {
@@ -857,6 +886,110 @@
 
             $("select[name='PSF_PressesDesk']").live("change", function () {
                 var value_SelWaerId = $(this).attr("value_selspec");
+
+                if ($(this).val().indexOf('灏忔.') >= 0) {
+                    var selectPSF_PrintedColorPositive = $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']");
+
+
+                    // 娓呯┖鐜版湁鐨刼ption
+                    selectPSF_PrintedColorPositive.empty();
+
+                    const newOptions1 = [
+                        { value: '鍗曡壊', text: '鍗曡壊' },
+                        { value: '鍙岃壊', text: '鍙岃壊' },
+                        { value: '涓夎壊', text: '涓夎壊' },
+                        { value: '鍥涜壊', text: '鍥涜壊' },
+                    ];
+
+
+
+                    // 3. 鎵归噺鏂板option鍒皊elect涓�
+                    let optionHtml1 = '';
+                    newOptions1.forEach(item => {
+                        // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+                        optionHtml1 += `<option value="${item.value}">${item.text}</option>`;
+                    });
+                    selectPSF_PrintedColorPositive.html(optionHtml1); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+
+
+                    var selectPSF_PrintedColorRear = $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']");
+
+
+                    // 娓呯┖鐜版湁鐨刼ption
+                    selectPSF_PrintedColorRear.empty();
+
+                    const newOptions2 = [
+                        { value: '0鑹�', text: '0鑹�' },
+                        { value: '鍗曡壊', text: '鍗曡壊' },
+                        { value: '鍙岃壊', text: '鍙岃壊' },
+                        { value: '涓夎壊', text: '涓夎壊' },
+                        { value: '鍥涜壊', text: '鍥涜壊' },
+                    ];
+
+
+
+                    // 3. 鎵归噺鏂板option鍒皊elect涓�
+                    let optionHtml2 = '';
+                    newOptions2.forEach(item => {
+                        // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+                        optionHtml2 += `<option value="${item.value}">${item.text}</option>`;
+                    });
+                    selectPSF_PrintedColorRear.html(optionHtml2); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+                } else {
+                    var selectPSF_PrintedColorPositive = $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']");
+
+
+                    // 娓呯┖鐜版湁鐨刼ption
+                    selectPSF_PrintedColorPositive.empty();
+
+                    const newOptions1 = [
+                        { value: '鍗曡壊', text: '鍗曡壊' },
+                        { value: '鍙岃壊', text: '鍙岃壊' },
+                        { value: '涓夎壊', text: '涓夎壊' },
+                        { value: '鍥涜壊', text: '鍥涜壊' },
+                        { value: '鍥�+涓�', text: '鍥�+涓�' },
+                    ];
+
+
+
+                    // 3. 鎵归噺鏂板option鍒皊elect涓�
+                    let optionHtml1 = '';
+                    newOptions1.forEach(item => {
+                        // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+                        optionHtml1 += `<option value="${item.value}">${item.text}</option>`;
+                    });
+                    selectPSF_PrintedColorPositive.html(optionHtml1); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+
+
+                    var selectPSF_PrintedColorRear = $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']");
+
+
+                    // 娓呯┖鐜版湁鐨刼ption
+                    selectPSF_PrintedColorRear.empty();
+
+                    const newOptions2 = [
+                        { value: '0鑹�', text: '0鑹�' },
+                        { value: '鍗曡壊', text: '鍗曡壊' },
+                        { value: '鍙岃壊', text: '鍙岃壊' },
+                        { value: '涓夎壊', text: '涓夎壊' },
+                        { value: '鍥涜壊', text: '鍥涜壊' },
+                        { value: '鍥�+涓�', text: '鍥�+涓�' },
+                    ];
+
+
+
+                    // 3. 鎵归噺鏂板option鍒皊elect涓�
+                    let optionHtml2 = '';
+                    newOptions2.forEach(item => {
+                        // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+                        optionHtml2 += `<option value="${item.value}">${item.text}</option>`;
+                    });
+                    selectPSF_PrintedColorRear.html(optionHtml2); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+                }
+
+
                 if ($(this).val().indexOf('鍏紑') >= 0) {
                     $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊");
                     $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍗曡壊");
@@ -1034,13 +1167,13 @@
 
 
 
-                    $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").show();
+                    $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").hide();
 
                     $("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").show();
                     $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                     $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
 
-                    $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
+                    $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                     $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                     $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
 
@@ -1052,6 +1185,12 @@
                     $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                     $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("2");
+                    if ($(this).val().indexOf('灏忔.') >= 0) {
+                        $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍥涜壊");
+                        $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍥涜壊");
+                        $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("900*570");
+                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("8");
+                    }
                 }
                 // else if () {
                 //    //$("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
@@ -1243,7 +1382,6 @@
                         optionHtml += `<option value="${item.value}">${item.text}</option>`;
                     });
                     selectElement.html(optionHtml); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
-
                     $("p[name='PSF_Zhizhangshuliang'][value_selspecspan='" + value_SelWaerId + "']").hide();
                     $("p[name='PSF_Kailiaoguige'][value_selspecspan='" + value_SelWaerId + "']").hide();
                     $("p[name='PSF_Zhizhangshulianga'][value_selspecspan='" + value_SelWaerId + "']").hide();
@@ -1305,7 +1443,11 @@
 
 
                 }
-                  
+
+
+
+             
+
               });
             
 
@@ -1318,8 +1460,13 @@
 
             $("input[name='PSF_Forumsid']").each(function (ii, vv) {
                 var keyid = "<%=keyid %>";
+                if ("<%=PrintTypeId %>" == "7") {
+                    $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PressesDesk']").val("灏忔.鍟嗕笟杞浆鏈�");
+                    $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PressesDesk']").change();
+                }
                 if (keyid != "") {
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Component']").val($(vv).attr("value_hide_psf_component"));
+                    //$(vv).parent().parent().parent().parent().parent().find("input[name='PSF_Chengpinchicun']").val($(vv).attr("value_hide_psf_component"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PressesDesk']").val($(vv).attr("value_hide_psf_pressesdesk"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PrintedColorPositive']").val($(vv).attr("value_hide_psf_printedcolorpositive"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PrintedColorRear']").val($(vv).attr("value_hide_psf_printedcolorrear"));
@@ -1333,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();
                 }
             });
 
@@ -1507,13 +1664,13 @@
 
 
 
-                        $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").show();
+                        $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").hide();
 
                         $("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").show();
                         $("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
                         $("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
 
-                        $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
+                        $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").hide();
                         $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
                         $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
 
@@ -1594,7 +1751,7 @@
                     }
 
 
-                    if ($(this).val().indexOf('杞浆') >= 0) {
+                    if ($(vv).val().indexOf('杞浆') >= 0) {
                         var selectElement = $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']");
                         var sssssss = selectElement.val();
 
@@ -1682,6 +1839,111 @@
                     }
                     
 
+
+                    if ($(vv).val().indexOf('灏忔.') >= 0) {
+                        var selectPSF_PrintedColorPositive = $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']");
+                        var sssssss = selectPSF_PrintedColorPositive.val();
+
+                        // 娓呯┖鐜版湁鐨刼ption
+                        selectPSF_PrintedColorPositive.empty();
+
+                        const newOptions1 = [
+                            { value: '鍗曡壊', text: '鍗曡壊' },
+                            { value: '鍙岃壊', text: '鍙岃壊' },
+                            { value: '涓夎壊', text: '涓夎壊' },
+                            { value: '鍥涜壊', text: '鍥涜壊' },
+                        ];
+
+
+
+                        // 3. 鎵归噺鏂板option鍒皊elect涓�
+                        let optionHtml1 = '';
+                        newOptions1.forEach(item => {
+                            // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+                            optionHtml1 += `<option value="${item.value}">${item.text}</option>`;
+                        });
+                        selectPSF_PrintedColorPositive.html(optionHtml1); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+                        selectPSF_PrintedColorPositive.val(sssssss);
+
+                        var selectPSF_PrintedColorRear = $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']");
+                        var ssssssss = selectPSF_PrintedColorRear.val();
+
+                        // 娓呯┖鐜版湁鐨刼ption
+                        selectPSF_PrintedColorRear.empty();
+
+                        const newOptions2 = [
+                            { value: '0鑹�', text: '0鑹�' },
+                            { value: '鍗曡壊', text: '鍗曡壊' },
+                            { value: '鍙岃壊', text: '鍙岃壊' },
+                            { value: '涓夎壊', text: '涓夎壊' },
+                            { value: '鍥涜壊', text: '鍥涜壊' },
+                        ];
+
+
+
+                        // 3. 鎵归噺鏂板option鍒皊elect涓�
+                        let optionHtml2 = '';
+                        newOptions2.forEach(item => {
+                            // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+                            optionHtml2 += `<option value="${item.value}">${item.text}</option>`;
+                        });
+                        selectPSF_PrintedColorRear.html(optionHtml2); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+                        selectPSF_PrintedColorRear.val(ssssssss);
+                    } else {
+                        var selectPSF_PrintedColorPositive = $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']");
+
+                        var sssssss = selectPSF_PrintedColorPositive.val();
+                        // 娓呯┖鐜版湁鐨刼ption
+                        selectPSF_PrintedColorPositive.empty();
+
+                        const newOptions1 = [
+                            { value: '鍗曡壊', text: '鍗曡壊' },
+                            { value: '鍙岃壊', text: '鍙岃壊' },
+                            { value: '涓夎壊', text: '涓夎壊' },
+                            { value: '鍥涜壊', text: '鍥涜壊' },
+                            { value: '鍥�+涓�', text: '鍥�+涓�' },
+                        ];
+
+
+
+                        // 3. 鎵归噺鏂板option鍒皊elect涓�
+                        let optionHtml1 = '';
+                        newOptions1.forEach(item => {
+                            // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+                            optionHtml1 += `<option value="${item.value}">${item.text}</option>`;
+                        });
+                        selectPSF_PrintedColorPositive.html(optionHtml1); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+                        selectPSF_PrintedColorPositive.val(sssssss);
+
+                        var selectPSF_PrintedColorRear = $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']");
+                        var ssssssss = selectPSF_PrintedColorRear.val();
+
+                        // 娓呯┖鐜版湁鐨刼ption
+                        selectPSF_PrintedColorRear.empty();
+
+                        const newOptions2 = [
+                            { value: '0鑹�', text: '0鑹�' },
+                            { value: '鍗曡壊', text: '鍗曡壊' },
+                            { value: '鍙岃壊', text: '鍙岃壊' },
+                            { value: '涓夎壊', text: '涓夎壊' },
+                            { value: '鍥涜壊', text: '鍥涜壊' },
+                            { value: '鍥�+涓�', text: '鍥�+涓�' },
+                        ];
+
+
+
+                        // 3. 鎵归噺鏂板option鍒皊elect涓�
+                        let optionHtml2 = '';
+                        newOptions2.forEach(item => {
+                            // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+                            optionHtml2 += `<option value="${item.value}">${item.text}</option>`;
+                        });
+                        selectPSF_PrintedColorRear.html(optionHtml2); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+                        selectPSF_PrintedColorRear.val(ssssssss);
+                    }
+
                  } 
              });
 
@@ -1693,7 +1955,10 @@
                  if (keyid != "") {
 
                  } else {
-                     $(vv).val("395*460");
+                     if ("<%=PrintTypeId %>" != "7") {
+                         $(vv).val("395*460");
+                     }
+                    
                 }
             });
            
@@ -1717,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