From e67b811c4601e7a68c2a980cab2982aebf44c60c Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 03 四月 2026 08:46:43 +0800
Subject: [PATCH] 减号要选择性的删除。每行都要有减号  完成 现在的“印刷数量”就是新版格式的“生产数量”,放在“生产要求”前面,跟生产要求一行  完成 消耗格子的宽度适当缩小点  完成

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx |  821 +++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 748 insertions(+), 73 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
index b1c5a10..02148c4 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;">
@@ -173,6 +173,7 @@
                                 <span id="spanOrderBillModeName" runat="server"></span>
                             </td>
                         </tr>
+                       
                         <tr>
                             <td class="ali03">
                                 澶囨敞锛�
@@ -189,48 +190,65 @@
                             <thead>
                                 <tr class="ForumName" style="display:none">
                                     <th colspan="12">
-                                        <b>绗�<span class=" AddCount red"><%#Container.ItemIndex + 1%></span>鐗�<input name="PSF_Forumsid" value="<%#Container.ItemIndex + 1%>" type="hidden" value_hide_psf_component="<%#Eval("PSF_Component")%>" value_hide_psf_pressesdesk="<%#Eval("PSF_PressesDesk")%>" value_hide_psf_printedcolorpositive="<%#Eval("PSF_PrintedColorPositive")%>" value_hide_psf_printedcolorrear="<%#Eval("PSF_PrintedColorRear")%>" value_hide_psf_typesetting="<%#Eval("PSF_Typesetting")%>" value_hide_psf_papersource="<%#Eval("PSF_PaperSource")%>" value_hide_psf_openspecifications="<%#Eval("PSF_OpenSpecifications")%>" value_hide_psf_selpapername="<%#Eval("PSF_PaperName")%>" value_hide_psf_selpaperspec="<%#Eval("PSF_MaterialSpecifications")%>" value_hide_psf_selplatetype="<%#Eval("PSF_PlateSource")%>" value_hide_psf_selctpspec="<%#Eval("PSF_CTPSpecType")%>" value_hide_psf_selfilmspec="<%#Eval("PSF_FilmType")%>" /></b>
+                                        <b>绗�<span class=" AddCount red"><%#Container.ItemIndex + 1%></span>鐗�<input name="PSF_Forumsid" value="<%#Container.ItemIndex + 1%>" type="hidden" value_hide_psf_component="<%#Eval("PSF_Component")%>" value_hide_psf_pressesdesk="<%#Eval("PSF_PressesDesk")%>" value_hide_psf_printedcolorpositive="<%#Eval("PSF_PrintedColorPositive")%>" value_hide_psf_printedcolorrear="<%#Eval("PSF_PrintedColorRear")%>" value_hide_psf_typesetting="<%#Eval("PSF_Typesetting")%>" value_hide_psf_fabantaoshu="<%#Eval("PSF_Fabantaoshu")%>"  value_hide_psf_papersource="<%#Eval("PSF_PaperSource")%>" value_hide_psf_openspecifications="<%#Eval("PSF_OpenSpecifications")%>" value_hide_psf_selpapername="<%#Eval("PSF_PaperName")%>" value_hide_psf_selpaperspec="<%#Eval("PSF_MaterialSpecifications")%>" value_hide_psf_selplatetype="<%#Eval("PSF_PlateSource")%>" value_hide_psf_selctpspec="<%#Eval("PSF_CTPSpecType")%>" value_hide_psf_selfilmspec="<%#Eval("PSF_FilmType")%>" /></b>
                                     </th>
                                 </tr>
                             </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鏁�
+                                <td rowspan="2"  >
+                                   <%=PrintTypeId=="7"?"鐗堟暟":"椤垫暟"  %>    
                                 </td>
-                                <td rowspan="2" colspan="2">
+                                <td rowspan="2"  >
                                     鍗板埛鏈哄彴
                                 </td>
-                                <td colspan="2"   >
-                                    <p name="PSF_yinse" value_openwidthspan="<%#Container.ItemIndex + 1%>">鍗拌壊</p>        
+                                <td colspan="3"   >
+                                    <p name="PSF_yinse" value_openwidthspan="<%#Container.ItemIndex + 1%>">鍗板埛瑕佹眰</p>        
                                 </td>
-                                <td rowspan="2" colspan="2">
+                              <%--  <td rowspan="2" colspan="2">
                                     <p name="PSF_yinshufangshi" value_openwidthspan="<%#Container.ItemIndex + 1%>">鍗板埛鏂瑰紡</p>      
+                                </td>--%>
+                                 <td rowspan="2"   >
+                                    <p   class="lb lbCTPCount lbCTPCountc" value_ppwaerid="<%#Container.ItemIndex + 1%>">鏉挎潗瑙勬牸</p>     
                                 </td>
+                                <td  rowspan="2"  >
+                                  <p   class="lb lbCTPCount lbCTPCounta" value_ppwaerid="<%#Container.ItemIndex + 1%>">鏁伴噺锛堝紶锛�</p>     
+                                </td>
+                                     <td rowspan="2" >
+                                        鍙戠増濂楁暟
+                                    </td>
                                  
                             </tr>
                             <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6;"   >
+                                 
                                 <td>
-                                  <p name="PSF_yinsezheng" value_openwidthspan="<%#Container.ItemIndex + 1%>">姝�</p>      
+                                  <p name="PSF_yinsezheng" value_openwidthspan="<%#Container.ItemIndex + 1%>">姝i潰鑹叉暟</p>      
                                 </td>
                                 <td>
-                                 <p name="PSF_yinsebei" value_openwidthspan="<%#Container.ItemIndex + 1%>">鑳�</p>       
+                                 <p name="PSF_yinsebei" value_openwidthspan="<%#Container.ItemIndex + 1%>">鑳岄潰鑹叉暟</p>       
                                 </td>
+                                <td>
+                                        <p name="PSF_yinshufangshi" value_openwidthspan="<%#Container.ItemIndex + 1%>">鍗板埛鏂瑰紡</p>   
+                                    </td>
                             </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">
+                                <td  >
                                     <input type="text" class="  w80px  int " msg="璇峰~鍐欐暟瀛�" name="PSF_PNum" value="<%#Eval("PSF_PNum")%>" value_ppwaerid="<%#Container.ItemIndex + 1%>" />
                                 </td>
-                                <td colspan="2">
+                                <td  >
                                     <select keepdefaultstyle="true" class="  w120px" name="PSF_PressesDesk"    value_selspec="<%#Container.ItemIndex + 1%>">
                                         <%--<option value="">璇烽�夋嫨</option>--%>
                                         <%=PressesDeskHtml %>
@@ -257,11 +275,11 @@
                                         <option value="鍥�+涓�">鍥�+涓�</option>
                                     </select>
                                 </td>
-                                <td colspan="2">
+                                <td>
                                     <select keepdefaultstyle="true" class="" name="PSF_Typesetting" value_ppwaerid="<%#Container.ItemIndex + 1%>">
                                         <option value="鑷炕">鑷炕</option>
                                         <option value="婊氱炕">婊氱炕</option>
-                                        <option value="鎵f澘">鎵f澘</option>
+                                        <option value="鎵g増">鎵g増</option>
                                         <option value="鍗曢潰">鍗曢潰</option>
                                     </select>
 
@@ -271,6 +289,27 @@
                                       
                                     </select>
                                 </td>
+                                 <td>
+                                      <div class="xialapp" >
+                                    <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPSpecName lbCTPCount lbCTPCountb" name="CTPSpecName" value="<%#Eval("PSF_CTPSpecType")%>" style=" width: 80px" />
+                                          <div class="xialapbp" >
+                                <%=xialapr %>
+                            </div>
+                        </div>
+                                       </td>
+                                 <td>
+                                      <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPCount" name="CTPCount"  value="<%#Eval("PSF_CTPCount")%>" style=" width: 80px" />
+
+                                       </td>
+                                 <td>
+                                      <select keepdefaultstyle="true" class="" name="PSF_Fabantaoshu" value_ppwaerid="<%#Container.ItemIndex + 1%>">
+                                        <option value=""></option>
+                                        <option value="2">2</option>
+                                        <option value="3">3</option>
+                                        <option value="4">4</option>
+                                        <option value="5">5</option>
+                                    </select>
+                                       </td>
                                
                             </tr>
                             <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6; width: 100%" name="PSF_PrintedPaperTd"  value_selspec="<%#Container.ItemIndex + 1%>">
@@ -284,30 +323,30 @@
                                     绾稿紶瑙勬牸
                                 </td>
                                 <td colspan="3">
-                                    绾稿紶鏁伴噺锛堝紶锛�
+                                <p name="PSF_Zhizhangshuliang" value_selspecspan="<%#Container.ItemIndex + 1%>">绾稿紶鏁伴噺锛堝紶锛�</p>     
                                 </td>
                                 <td colspan="4">
-                                    寮�鏂欒鏍�
+                                  <p name="PSF_Kailiaoguige" value_selspecspan="<%#Container.ItemIndex + 1%>">寮�鏂欒鏍硷紙mm锛� </p>   
                                 </td>
                             </tr>
                             <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6;"  name="PSF_PrintedPaperTdtr"  value_selspec="<%#Container.ItemIndex + 1%>">
                                 <td>
-                                    绾稿紶鏁伴噺
+                                   <p name="PSF_Zhizhangshulianga" value_selspecspan="<%#Container.ItemIndex + 1%>">绾稿紶鏁伴噺</p>      
                                 </td>
                                 <td>
-                                    鍗板埛姝f暟
+                                  <p name="PSF_Yinshuazhengshu" value_selspecspan="<%#Container.ItemIndex + 1%>">鍗板埛姝f暟</p>       
                                 </td>
                                 <td>
-                                    娑堣��
+                                  <p name="PSF_Xiaohao" value_selspecspan="<%#Container.ItemIndex + 1%>">娑堣��</p>      
                                 </td>
                                 <td colspan="1" >
                                 <p name="PSF_OpenSpecificationsspan" value_selspecspan="<%#Container.ItemIndex + 1%>">寮�鏁�</p>    
                                 </td>
                                 <td>
-                                  瀹藉害(mm)        
+                                 <p name="PSF_Kuandu" value_selspecspan="<%#Container.ItemIndex + 1%>">瀹藉害</p>            
                                 </td>
                                 <td>
-                                   <p name="PSF_OpenWidthspan" value_openwidthspan="<%#Container.ItemIndex + 1%>">闀垮害(mm)</p>      
+                                   <p name="PSF_OpenWidthspan" value_openwidthspan="<%#Container.ItemIndex + 1%>">闀垮害</p>      
                                 </td>
                             </tr>
                             <tr name="PSF_PrintedPaperTdtrtr"  value_selspec="<%#Container.ItemIndex + 1%>">
@@ -339,7 +378,7 @@
                                     <input type="text" class="  w80px  int " msg="璇峰~鍐欐暟瀛�" name="PSF_PrintedPositive" value="<%#Eval("PSF_PrintedPositive")%>" value_positiveid="<%#Container.ItemIndex + 1%>" />
                                 </td>
                                 <td colspan="1">
-                                    <input type="text" class="  w80px  int " msg="璇峰~鍐欐暟瀛�" name="PSF_LastNum" value="<%#Eval("PSF_LastNum")%>" value_lastnumid="<%#Container.ItemIndex + 1%>" />
+                                    <input type="text" class="  w60px  int " msg="璇峰~鍐欐暟瀛�" name="PSF_LastNum" value="<%#Eval("PSF_LastNum")%>" value_lastnumid="<%#Container.ItemIndex + 1%>" />
                                 </td>
                                 <td colspan="1">
                                     <select keepdefaultstyle="true" class="  w80px" name="PSF_OpenSpecifications" value_selspec="<%#Container.ItemIndex + 1%>">
@@ -365,16 +404,16 @@
                                     <input type="text" class="  w80px  int " msg="璇峰~鍐欐暟瀛�" name="PSF_OpenLength" value="<%#(Eval("PSF_OpenLength") == null || Eval("PSF_OpenLength").ToString()=="0")?"":Eval("PSF_OpenLength").ToString()%>" value_ppwaerid='<%#Container.ItemIndex + 1%>' />
                                 </td>
                             </tr>
-                            <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6; width: 100%">
+                            <tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6; width: 100%;display: none;">
                                 <td style="display:none;">
                                     鐗堟潗绫诲瀷
                                 </td>
-                                <td colspan="2"  class="lb lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' >
+                                <%--<td colspan="2"  class="lb lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' >
                                     瑙勬牸
                                 </td>
                                 <td id="lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' class="lb lbCTPCount" colspan="3">
                                     CTP鏁伴噺锛堝紶锛�
-                                </td>
+                                </td>--%>
                                 <td id="lbPSSpec" value_ppwaerid='<%#Container.ItemIndex + 1%>' class="lb lbPSSpec" colspan="2" style="display: none">
                                     PS鐗堣鏍�
                                 </td>
@@ -384,7 +423,7 @@
                                 <td colspan="7">
                                 </td>
                             </tr>
-                            <tr>
+                            <tr style="display:none;">
                                 <td style="display:none;">
                                     <select keepdefaultstyle="true" value_selwaerid="<%#Container.ItemIndex + 1%>" name="selPlateType" id="selPlateType">
                                         <option value="鏈巶CTP">鏈巶CTP</option>
@@ -395,17 +434,12 @@
                                     <label class="Btnb CangKubtn_o" style="margin-left: 10px;">
                                         <input type="button" value_waerid="<%#Container.ItemIndex + 1%>" class="Btn FromWarehouseByBanCai" value="杩炴帴浠撳簱" id="BtnStorePlate" /></label><input type="hidden" value_ppwaerid="<%#Container.ItemIndex + 1%>" name="PSF_PaperId2" />
                                 </td>
-                                <td colspan="2"  class="lb lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' >
+                                <%--<td colspan="2"  class="lb lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' >
                                       <div class="xialapp" style="margin-left:32%;">
                                     <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPSpecName " name="CTPSpecName" id="PlateSpec" value="<%#Eval("PSF_CTPSpecType")%>" />
                                           <div class="xialapbp" >
                                 <%=xialapr %>
-                              <%--  <div class="xialapr">500</div>
-                                <div class="xialapr">1000</div>
-                                <div class="xialapr">2000</div>  
-                                <div class="xialapr">3000</div> 
-                                <div class="xialapr">5000</div> 
-                                <div class="xialapr">10000</div>--%>
+                             
                             </div>
                         </div>
                                     <select keepdefaultstyle="true" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="sel selCTPSpec" name="selCTPSpec" style="display: none; width: 80px" id="selCTPSpec">
@@ -419,7 +453,7 @@
                                 </td>
                                 <td id="tdCTPCount" runat="server" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="td tdCTPCount" colspan="3">
                                     <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPCount" name="CTPCount" id="CTPCount" value="<%#Eval("PSF_CTPCount")%>" />
-                                </td>
+                                </td>--%>
                                 <td id="tdPSSpec" style="display: none" runat="server" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="td tdPSSpec" colspan="2">
                                     <input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt PSF_PSBan" name="PSF_PSBan" style="width: 80px;" id="PSF_PSBan" value="<%#Eval("PSF_PSSpec")%>" />
                                     <label class="Btnb CangKubtn_o" style="margin-left: 10px;">
@@ -431,9 +465,17 @@
                                 <td colspan="7">
                                 </td>
                             </tr>
-                            <tr>
+                            <tr  class="PSF_Qitadingdanhao" value_ppwaerid='<%#Container.ItemIndex + 1%>'   style="display:none;">
                                 <td style="font-weight: bold; background-color: #E6E6E6;">
-                                    娉ㄦ剰浜嬮」锛�
+                                    鍏跺畠璁㈠崟鐨勮鍗曞彿锛�
+                                </td>
+                                <td colspan="12"  align="left" >
+                                   <input type="text"   name="PSF_Qitadingdanhao"  style="width: 50%;"   value_ppwaerid="<%#Container.ItemIndex + 1%>"value="<%#Eval("PSF_PaperName")%>" maxlength="50" /> 
+                                </td>
+                            </tr>
+                            <tr style=" display:none;">
+                                <td style="font-weight: bold; background-color: #E6E6E6;">
+                                    鐢熶骇瑕佹眰锛�
                                 </td>
                                 <td colspan="12">
                                     <textarea style="width: 96%; height: 40px; float: left;" name="PSF_Note"><%#Eval("PSF_Note")%></textarea>
@@ -451,18 +493,71 @@
                  <input type="button" class="Btn" value="绾稿紶閲囪喘"  onclick="zhizhangcaigou();" />
             </td>
         </tr>
-        <tr>
+         <tr >
             <td colspan="2">
                 <table class="tableStyle" style="width: 98%; margin: 5px auto;">
-                    <thead>
+                    <tbody>
+                        <tr>
+                             <td class="ali03 w70px " >
+                鍚庨亾宸ュ簭锛�
+                 </td>
+                            <td>
+                                 <table class="tableStyle" style="width: 98%; margin: 5px auto;">
+                                     <tbody>
+                                          <asp:Repeater ID="RepeaterHoudaoList" runat="server">
+                    <ItemTemplate>
+                                         <tr class="AddHoudao" value_id="<%#Container.ItemIndex + 1%>" >
+                                             <td>
+                        <select keepdefaultstyle="true"   class=" w70px" name="selHoudaogongxu" >
+                            <%#Eval("PSF_Houdaogongxu")%>
+                        </select>
+                    </td>
+
+                                              <td>
+                        鏁伴噺:<input type="text" name="txtShuliang" class=" w40px int" min="0" maxlength="50" value="<%#Eval("PSF_Shuliang")%>"/>
+                    </td>
+                                             <td>
+                        鍊嶆暟:<input type="text" name="txtBeishu" class=" w40px int" min="0" maxlength="50"  value="<%#Eval("PSF_Beishu")%>"/>
+                    </td>
+       <td>
+                        鏈洪暱:<input type="text" name="txtJichang" class=" w80px"  maxlength="50" value="<%#Eval("PSF_Jichang")%>"/>
+                    </td>
+                                              <td>
+                        
+                       瑕佹眰: <input type="text" name="txtYaoqiu" class=" noJ" maxlength="500" style="width: 405px;" value="<%#Eval("PSF_Yaoqiu")%>" />
+                         
+                    </td>
+                                               <td class="w70px " >
+                                 <a class="Btn AddHoudaos" value_id="<%#Container.ItemIndex + 1%>"  style="font-size:20px;" >+</a>&nbsp;&nbsp;  <a class="Btn CutHoudaos" value_id="<%#Container.ItemIndex + 1%>"  style="font-size:20px;" >-</a> 
+                 </td>
+                                              </tr>
+                          </ItemTemplate>
+                </asp:Repeater>
+                                         </tbody>
+                                     </table>
+                            </td>
+                           
+                        </tr>
+                    </tbody>
+                </table>
+            </td>
+        </tr>
+
+        <tr  style="display:none;">
+            <td colspan="2">
+                <table class="tableStyle" style="width: 98%; margin: 5px auto;">
+                    <%--<thead>
                         <tr>
                             <th>
                                 <b>鍚庨亾宸ュ簭</b>
                             </th>
                         </tr>
-                    </thead>
+                    </thead>--%>
                     <tbody>
                         <tr>
+                             <td class="ali03 w70px " >
+                鍚庨亾宸ュ簭锛�
+                 </td>
                             <td>
                                 <textarea style="width: 96%; height: 40px;" name="PSO_Work" runat="server" id="txtPSO_Work"></textarea>
                             </td>
@@ -474,17 +569,27 @@
         <tr>
             <td colspan="2">
                 <table class="tableStyle" style="width: 98%; margin: 5px auto;">
-                    <thead>
+                   <%-- <thead>
                         <tr>
                             <th>
                                 <b>澶囨敞</b>
                             </th>
                         </tr>
-                    </thead>
+                    </thead>--%>
                     <tbody>
-                        <tr>
+                         <tr>
+                            <td class="ali03 w70px">
+                                鍗板埛鏁伴噺锛�
+                            </td>
+                            <td  class=" w120px">
+                                 <input type="text" id="txtOrderNum" class=" w120px int" min="0"  runat="server" />
+                            </td>
+                        
+                            <td class="ali03 w70px " >
+                鐢熶骇瑕佹眰锛�
+                 </td>
                             <td>
-                                <textarea style="width: 96%; height: 40px;" name="PSO_Remarks" runat="server" id="txtPSO_Remarks"></textarea>
+                                <textarea style="width: 96%; height: 12px;" name="PSO_Remarks" runat="server" id="txtPSO_Remarks"></textarea>
                             </td>
                         </tr>
                     </tbody>
@@ -568,6 +673,15 @@
                 $("input[name='PSF_PrintedCount']").last().attr("value_ppwaerid", value_id + 1);
                 $("select[name='PSF_OpenSpecifications']").last().attr("value_selSpec", value_id + 1);
                 $("p[name='PSF_OpenSpecificationsspan']").last().attr("value_selspecspan", value_id + 1);
+
+                $("p[name='PSF_Zhizhangshuliang']").last().attr("value_selspecspan", value_id + 1);
+                $("p[name='PSF_Kailiaoguige']").last().attr("value_selspecspan", value_id + 1);
+                $("p[name='PSF_Zhizhangshulianga']").last().attr("value_selspecspan", value_id + 1);
+                $("p[name='PSF_Yinshuazhengshu']").last().attr("value_selspecspan", value_id + 1);
+                $("p[name='PSF_Xiaohao']").last().attr("value_selspecspan", value_id + 1);
+                $("p[name='PSF_Kuandu']").last().attr("value_selspecspan", value_id + 1);
+
+
                 $("p[name='PSF_OpenWidthspan']").last().attr("value_openwidthspan", value_id + 1);
                 $("p[name='PSF_yinse']").last().attr("value_openwidthspan", value_id + 1);
                 $("p[name='PSF_yinsezheng']").last().attr("value_openwidthspan", value_id + 1);
@@ -577,6 +691,7 @@
                 $("select[name='PSF_PressesDesk']").last().attr("value_selspec", value_id + 1);
                 $("select[name='PSF_PrintedColorPositive']").last().attr("value_selspec", value_id + 1);
                 $("select[name='PSF_Typesetting']").last().attr("value_ppwaerid", value_id + 1);
+                $("select[name='PSF_Fabantaoshu']").last().attr("value_ppwaerid", value_id + 1);
                 $("input[name='PSF_OpenWidth']").last().attr("value_ppwaerid", value_id + 1);
                 $("input[name='PSF_OpenWidthName']").last().attr("value_ppwaerid", value_id + 1);
                 $("input[name='PSF_OpenLength']").last().attr("value_ppwaerid", value_id + 1);
@@ -586,8 +701,14 @@
                 $(".CTPSpecName").last().attr("value_ppwaerid", value_id + 1);
                 $(".CTPCount").last().attr("value_ppwaerid", value_id + 1);
                 $(".lbCTPCount").last().attr("value_ppwaerid", value_id + 1);
+                $(".lbCTPCounta").last().attr("value_ppwaerid", value_id + 1);
+                $(".lbCTPCountb").last().attr("value_ppwaerid", value_id + 1);
+                $(".lbCTPCountc").last().attr("value_ppwaerid", value_id + 1);
+                $(".PSF_Qitadingdanhao").last().attr("value_ppwaerid", value_id + 1);
+                $("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);
@@ -626,13 +747,45 @@
                 $("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();
+                $("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") {
+                        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("");
@@ -640,6 +793,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();
                 
             });
 
@@ -650,6 +804,28 @@
                     $(".AddTab").last().remove();
                 }
             });
+
+
+            $(".AddHoudaos").click(function () {
+                var value_id = parseInt($(".AddHoudao").last().attr("value_id"));
+                $(".AddHoudao").last().after($(".AddHoudao").last().clone(true));
+                $(".AddHoudao").last().attr("value_id", value_id + 1);
+                $(".AddHoudaos").last().attr("value_id", value_id + 1);
+                $(".CutHoudaos").last().attr("value_id", value_id + 1);
+                
+            });
+
+
+            $(".CutHoudaos").click(function () {
+                var value_id = parseInt($(this).attr("value_id"));
+                var count = $('.AddHoudao').length;
+                if (count == 1) {
+                } else {
+                    $(".AddHoudao[value_id='" + value_id + "']").remove();
+                }
+            });
+
+
 
             $("select[name='PSF_PaperSource']").live("change", function () {
                 var value_SelWaerId = $(this).attr("value_SelWaerId");
@@ -770,8 +946,161 @@
                 }
             });
 
+
+            $("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 ) {
+                    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 {
+                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("1");
+                    }
+                }
+
+                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() == "鎵g増") {
+                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("8");
+                    } else {
+                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("4");
+                    }
+                }
+
+            
+            });
+
+
+
+
+            $("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");
+
+                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("鍗曡壊");
@@ -804,8 +1133,14 @@
                     $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
 
                     $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
+                    $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $("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() == "鎵g増") {
+                        $("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) {
@@ -837,8 +1172,14 @@
                     $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                     $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
+                    $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
-                    $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("4");
+                    //$("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("4");
+                    if ($("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").val() == "鎵g増") {
+                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("8");
+                    } else {
+                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("4");
+                    }
                 }
                 else if ($(this).val().indexOf('鍏壊') >= 0) {
                     $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍥涜壊");
@@ -870,8 +1211,14 @@
                     $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                     $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
+                    $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
-                    $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("4");
+                   // $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("4");
+                    if ($("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").val() == "鎵g増") {
+                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("8");
+                    } else {
+                        $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("4");
+                    }
                 }
                 else if ($(this).val().indexOf('榛戠櫧') >= 0) {
                     $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊");
@@ -903,9 +1250,14 @@
                     $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                     $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
+                    $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $("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() == "鎵g増") {
+                        $("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("鍗曡壊");
@@ -914,7 +1266,7 @@
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("");
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
                     $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
-                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
+                    $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
                     
                     $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
@@ -926,13 +1278,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();
 
@@ -941,8 +1293,15 @@
                     $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                     $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
+                    $(".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();
@@ -974,7 +1333,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("鍗曡壊");
@@ -983,7 +1342,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) {
 
@@ -1007,13 +1366,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());
                                     }
 
 
@@ -1023,15 +1382,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());
                                     } 
                                 }
                                
@@ -1046,6 +1405,7 @@
                     $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
 
                     $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").hide();
+                    $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("");
                     $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").hide();
@@ -1085,6 +1445,7 @@
                     $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
 
                     $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").hide();
+                    $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").show();
                     $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                     $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("");
                     $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").hide();
@@ -1106,7 +1467,98 @@
                     $("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锛屽畬鎴愭柊澧�
+                    $("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();
+                    $("p[name='PSF_Yinshuazhengshu'][value_selspecspan='" + value_SelWaerId + "']").hide();
+                    $("p[name='PSF_Xiaohao'][value_selspecspan='" + value_SelWaerId + "']").hide();
+                    $("p[name='PSF_Kuandu'][value_selspecspan='" + value_SelWaerId + "']").hide();
+                    $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
+                    $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").hide();
+                    $("input[name='PSF_PrintedCount'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+                    $("input[name='PSF_PrintedPositive'][value_positiveid='" + value_SelWaerId + "']").hide();
+                    $("input[name='PSF_LastNum'][value_lastnumid='" + value_SelWaerId + "']").hide();
+                    $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
+                    $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+                    $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+
+                   
+                }
+                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锛屽畬鎴愭柊澧�
+
+                    $("p[name='PSF_Zhizhangshuliang'][value_selspecspan='" + value_SelWaerId + "']").show();
+                    $("p[name='PSF_Kailiaoguige'][value_selspecspan='" + value_SelWaerId + "']").show();
+                    $("p[name='PSF_Zhizhangshulianga'][value_selspecspan='" + value_SelWaerId + "']").show();
+                    $("p[name='PSF_Yinshuazhengshu'][value_selspecspan='" + value_SelWaerId + "']").show();
+                    $("p[name='PSF_Xiaohao'][value_selspecspan='" + value_SelWaerId + "']").show();
+                    $("p[name='PSF_Kuandu'][value_selspecspan='" + value_SelWaerId + "']").show();
+                    $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
+                    $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
+                    $("input[name='PSF_PrintedCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
+                    $("input[name='PSF_PrintedPositive'][value_positiveid='" + value_SelWaerId + "']").show();
+                    $("input[name='PSF_LastNum'][value_lastnumid='" + value_SelWaerId + "']").show();
+                    $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
+                    $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
+                    $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
+
+                    if ($(this).val().indexOf('榛戠櫧') >= 0) {
+                        $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+                    }
+
+
+                }
+
+
+
+             
+
               });
             
 
@@ -1119,13 +1571,19 @@
 
             $("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"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Typesetting']").val($(vv).attr("value_hide_psf_typesetting"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Typesettinghide']").val($(vv).attr("value_hide_psf_typesetting"));
+                    $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Fabantaoshu']").val($(vv).attr("value_hide_psf_fabantaoshu"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PaperSource']").val($(vv).attr("value_hide_psf_papersource"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_OpenSpecifications']").val($(vv).attr("value_hide_psf_openspecifications"));
                     $(vv).parent().parent().parent().parent().parent().find("select[name='selPaperName']").val($(vv).attr("value_hide_psf_selPaperName"));
@@ -1134,6 +1592,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();
                 }
             });
 
@@ -1202,6 +1670,7 @@
                         $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
 
                         $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
+                        $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
 
                     }
@@ -1230,6 +1699,7 @@
                         $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                         $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
+                        $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                     }
                     else if ($(vv).val().indexOf('鍏壊') >= 0) {
@@ -1258,6 +1728,7 @@
                         $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                         $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
+                        $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
                     }
                     else if ($(vv).val().indexOf('榛戠櫧') >= 0) {
@@ -1286,14 +1757,15 @@
                         $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                         $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
+                        $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
-                        $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("870");
+                       // $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("870");
                     }
                     else if ($(vv).val().indexOf('杞浆') >= 0) {
            
                         $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
-                        $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
-                        $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
+                        $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
+                       // $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
 
                         $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
                         $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").hide();
@@ -1304,13 +1776,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();
 
@@ -1319,10 +1791,11 @@
                         $("tr[name='PSF_PrintedPaperTdtrtr'][value_selspec='" + value_SelWaerId + "']").show();
                         $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
+                        $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $("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();
@@ -1333,6 +1806,7 @@
                         $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
 
                         $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").hide();
+                        $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").hide();
 
@@ -1366,6 +1840,7 @@
                         $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
 
                         $(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").hide();
+                        $(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").show();
                         $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").hide();
                         $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").hide();
 
@@ -1386,6 +1861,201 @@
                         $("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
 
                     }
+
+
+                    if ($(vv).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);
+
+                        $("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();
+                        $("p[name='PSF_Yinshuazhengshu'][value_selspecspan='" + value_SelWaerId + "']").hide();
+                        $("p[name='PSF_Xiaohao'][value_selspecspan='" + value_SelWaerId + "']").hide();
+                        $("p[name='PSF_Kuandu'][value_selspecspan='" + value_SelWaerId + "']").hide();
+                        $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
+                        $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").hide();
+                        $("input[name='PSF_PrintedCount'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+                        $("input[name='PSF_PrintedPositive'][value_positiveid='" + value_SelWaerId + "']").hide();
+                        $("input[name='PSF_LastNum'][value_lastnumid='" + value_SelWaerId + "']").hide();
+                        $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
+                        $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+                        $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+
+                    }
+                    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);
+
+                        $("p[name='PSF_Zhizhangshuliang'][value_selspecspan='" + value_SelWaerId + "']").show();
+                        $("p[name='PSF_Kailiaoguige'][value_selspecspan='" + value_SelWaerId + "']").show();
+                        $("p[name='PSF_Zhizhangshulianga'][value_selspecspan='" + value_SelWaerId + "']").show();
+                        $("p[name='PSF_Yinshuazhengshu'][value_selspecspan='" + value_SelWaerId + "']").show();
+                        $("p[name='PSF_Xiaohao'][value_selspecspan='" + value_SelWaerId + "']").show();
+                        $("p[name='PSF_Kuandu'][value_selspecspan='" + value_SelWaerId + "']").show();
+                        $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
+                        $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
+                        $("input[name='PSF_PrintedCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
+                        $("input[name='PSF_PrintedPositive'][value_positiveid='" + value_SelWaerId + "']").show();
+                        $("input[name='PSF_LastNum'][value_lastnumid='" + value_SelWaerId + "']").show();
+                        $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
+                        $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
+                        $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
+
+                        if ($(this).val().indexOf('榛戠櫧') >= 0) {
+                            $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+                        }
+                    }
+                    
+
+
+                    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);
+                    }
+
                  } 
              });
 
@@ -1397,7 +2067,10 @@
                  if (keyid != "") {
 
                  } else {
-                     $(vv).val("395*460");
+                     if ("<%=PrintTypeId %>" != "7") {
+                         $(vv).val("395*460");
+                     }
+                    
                 }
             });
            
@@ -1420,6 +2093,8 @@
                     var value_pparid = "3";
                     top.Dialog.open({ URL: "/Pages/business/AgConWarehouse.aspx?CommidityType=鐗堟潗&&value_pparid=" + value_pparid, Width: 1000, Height: 650, Title: "閫夋嫨璐у搧鍙傛暟" });
                 });
+
+               
             });
 
 

--
Gitblit v1.9.1