From ae6e40362a745caef9ead36f81f38313fb8c2c66 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 12 五月 2025 16:54:46 +0800
Subject: [PATCH] 扣板:2张  双面机只有“扣板”是2张,其他是1张

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanweikaipiao.aspx |   61 +++++++++++++++++++++++++++---
 1 files changed, 54 insertions(+), 7 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanweikaipiao.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanweikaipiao.aspx
index 44edeb9..414a83d 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanweikaipiao.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanweikaipiao.aspx
@@ -115,12 +115,26 @@
 
         
         //鏌ョ湅瀹㈡埛璧勬枡
-        function Viewkaipiao(Keyid, SellerOrderId) {
-            window.open("/Pages/business/InvoicingOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, '', '');
+        function Viewkaipiao(Keyid, SellerOrderId, yongtu, supplierId) {
+
+            if (yongtu == "澶栧崗鍔犲伐璐�") {
+                if (supplierId.length > 10) {
+                    top.Dialog.open({ URL: "/Pages/business/WaixieOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, Title: "鏌ョ湅澶栧崗璁㈠崟", Width: 1080, Height: 650 });
+                } else {
+                    top.Dialog.open({ URL: "/Pages/business/InvoicingOrderPrint.aspx?Keyid=&SellerOrderId=" + SellerOrderId, Title: "鏌ョ湅璁㈠崟", Width: 1080, Height: 650 });
+                }
+
+            } else if (yongtu == "閲囪喘浠樻") {
+                top.Dialog.open({ URL: "/Pages/procurement/ProcurementListHTML.aspx?Keyid=" + SellerOrderId, Title: "鏌ョ湅閲囪喘璁㈠崟", Width: 1080, Height: 650 });
+            }
+
         }
         //鏌ョ湅
-        function onView(keyid) {
-            top.Dialog.open({ URL: "/Pages/procurement/SuppliersDetail.aspx?Keyid=" + keyid, Title: "鏌ョ湅渚涘簲鍟�", Width: 950, Height: 650 });
+        function onView(keyid, yongtu) {
+            if (yongtu != "鍏朵粬浠樻" && yongtu != "澶栧崗鍔犲伐璐�") {
+                top.Dialog.open({ URL: "/Pages/procurement/SuppliersDetail.aspx?Keyid=" + keyid, Title: "鏌ョ湅渚涘簲鍟�", Width: 950, Height: 650 });
+            }
+           
         }
 
  
@@ -177,7 +191,16 @@
                         <input id='txtCreatorName' runat="server" maxlength='50' />
                     </td>
                     
-                   
+                    <td class="ali03">
+                       浠樻鐢ㄩ�旓細
+                    </td>
+                    <td>
+                         <select keepdefaultstyle='true' id='selFukuanyongtu' runat="server" >
+                           <option value="">鍏ㄩ儴</option>
+                            <option value="澶栧崗鍔犲伐璐�">澶栧崗鍔犲伐璐�</option>
+                            <option value="鍏朵粬浠樻">鍏朵粬浠樻</option>
+                        </select>
+                    </td>
 
                     
                  
@@ -227,6 +250,15 @@
                             鏀舵鍗曚綅
                         </th>
                          <th style="text-align: center;" width="70">
+                           鎴峰悕
+                        </th>
+                         <th style="text-align: center;" width="70">
+                           寮�鎴疯
+                        </th>
+                         <th style="text-align: center;" width="70">
+                           璐﹀彿
+                        </th>
+                         <th style="text-align: center;" width="70">
                            浠樻鐢ㄩ��
                         </th>
                          <th width="60">
@@ -268,8 +300,23 @@
                                       
 
                                      
-                                    <a href='javascript:void(0)' title='鐐瑰嚮鏌ョ湅 <%#Eval("SupplierName").ToString()%> 璧勬枡' class='a_under' onclick='onView("<%#Eval("SupplierId")%>")'><%#Eval("SupplierName") %></a>
+                                    <a href='javascript:void(0)' title='鐐瑰嚮鏌ョ湅 <%#Eval("SupplierName").ToString()%> 璧勬枡' class='a_under' onclick='onView("<%#Eval("SupplierId")%>","<%#Eval("Fukuanyongtu")%>")'><%#Eval("SupplierName") %></a>
                                         
+                                </td>
+                                 <td style="text-align: center;">
+                                        <%#Eval("Huming")%>
+
+                                   
+                                </td>
+                                 <td style="text-align: center;">
+                                        <%#Eval("Bank")%>
+
+                                   
+                                </td>
+                                 <td style="text-align: center;">
+                                        <%#Eval("AccountID")%>
+
+                                   
                                 </td>
                                 <td style="text-align: center;">
                                         <%#Eval("Fukuanyongtu")%>
@@ -290,7 +337,7 @@
                                 
                                 <td>
                                     
-                                      <a href='javascript:void(0)' title='鏌ョ湅璁㈠崟' class='a_under' onclick='Viewkaipiao("<%#Eval("Keyid")%>","<%#Eval("DindanId")%>")'>  鏌ョ湅璁㈠崟   </a>
+                                      <%#Eval("Fukuanyongtu").ToString().Equals("鍏朵粬浠樻")?"":"<a href='javascript:void(0)' title='鏌ョ湅璁㈠崟' class='a_under' onclick='Viewkaipiao(\""+Eval("Keyid") +"\",\""+Eval("DindanId")+"\",\""+Eval("Fukuanyongtu")+"\",\""+Eval("SupplierId")+"\")'>   鏌ョ湅璁㈠崟   </a>" %> 
                                     
                                   
                                 </td>

--
Gitblit v1.9.1