From a961ca32f736027331319d94837f84507ac81df5 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 20 十二月 2024 12:37:34 +0800
Subject: [PATCH] 提交

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx |   36 ++++++++++++++++++++++++++++++++----
 1 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
index 30d6ea5..b610db5 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -221,14 +221,14 @@
                             </tr>
                             <tr>
                                 <td>
-                                    <select keepdefaultstyle="true" class="" name="PSF_Component">
+                                    <select keepdefaultstyle="true" class="" name="PSF_Component" value_ppwaerid="<%#Container.ItemIndex + 1%>">
                                         <option value="" selected="selected">-鏃�-</option>
                                         <option value="灏侀潰">灏侀潰</option>
                                         <option value="鍐呴〉">鍐呴〉</option>
                                     </select>
                                 </td>
                                 <td colspan="2">
-                                    <input type="text" class="  w80px  int " msg="璇峰~鍐欐暟瀛�" name="PSF_PNum" value="<%#Eval("PSF_PNum")%>" />
+                                    <input type="text" class="  w80px  int " msg="璇峰~鍐欐暟瀛�" name="PSF_PNum" value="<%#Eval("PSF_PNum")%>" value_ppwaerid="<%#Container.ItemIndex + 1%>" />
                                 </td>
                                 <td colspan="2">
                                     <select keepdefaultstyle="true" class="  w120px" name="PSF_PressesDesk"    value_selspec="<%#Container.ItemIndex + 1%>">
@@ -447,7 +447,8 @@
         <tr>
             <td colspan="2" align="center">
                 <input type="button" class="Btn AddForums" value="娣诲姞鐗堥潰" />
-                <input type="button" class="Btn CutForums" value="鍑忓皯鐗堥潰" />
+                <input type="button" class="Btn CutForums" value="鍑忓皯鐗堥潰" />  &nbsp; &nbsp; &nbsp; &nbsp;
+                 <input type="button" class="Btn" value="绾稿紶閲囪喘"  onclick="zhizhangcaigou();" />
             </td>
         </tr>
         <tr>
@@ -584,6 +585,8 @@
                 $(".CTPSpecName").last().attr("value_ppwaerid", value_id + 1);
                 $(".CTPCount").last().attr("value_ppwaerid", value_id + 1);
                 $(".lbCTPCount").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);
                 $(".tdCTPCount").last().attr("value_ppwaerid", value_id + 1);
                 $(".selCTPSpec").last().attr("value_ppwaerid", value_id + 1);
                 $(".selFilmSpec").last().attr("value_ppwaerid", value_id + 1);
@@ -624,7 +627,10 @@
                 $("input[name='CTPSpecName']").last().val("395*460");
                 $("select[name='PSF_PressesDesk']").last().change();
 
-                //                $("select[name='PSF_Component']").last().val("鍐呴〉");
+                if ($("select[name='PSF_Component']").first().val() == "灏侀潰") {
+                    $("select[name='PSF_Component']").last().val("鍐呴〉");
+                }
+                
                 $("input[name='PSF_PNum']").last().val("");
                 $("input[name='PSF_PaperName']").last().val("");
                 $("input[name='PSF_MaterialSpecifications']").last().val("");
@@ -663,6 +669,21 @@
                     $(".SelPaperSpec[value_ppwaerid='" + value_SelWaerId + "']").show();
                 }
             });
+
+
+            $("select[name='PSF_Component']").live("change", function () {
+                var value_SelWaerId = $(this).attr("value_ppwaerid");
+
+                if ($(this).val() == "灏侀潰") {
+                    $("input[name='PSF_PNum'][value_ppwaerid='" + value_SelWaerId + "']").val("4");
+
+                  
+
+                } else {
+                    $("input[name='PSF_PNum'][value_ppwaerid='" + value_SelWaerId + "']").val("");
+                }
+            });
+
 
             $("select[name='selPlateType']").live("change", function () {
                 var value_SelWaerId = $(this).attr("value_selwaerid");
@@ -1149,6 +1170,13 @@
             }
 
         }
+
+        //绾稿紶閲囪喘
+        function zhizhangcaigou() {
+             
+            top.Dialog.open({ URL: "/Pages/procurement/ProcurementADD.aspx", Title: "绾稿紶閲囪喘", Width: 1100, Height: 700 });
+            
+        }
     </script>
 </body>
 </html>

--
Gitblit v1.9.1