From 176106cf1be8bb0dfd9921180b26d7cc9efb7a3d Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 16 十二月 2024 08:52:39 +0800
Subject: [PATCH] 外协付款申请功能

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx |   51 +++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 49 insertions(+), 2 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx
index 846f031..0d285cb 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx
@@ -97,6 +97,16 @@
             }
            
         }
+        //鏀跺叆纭
+        function ViewShouru(personId, shenqingleixing) {
+            if (shenqingleixing == "璁㈠崟寮�绁�") {
+                top.Dialog.open({ URL: "/Pages/financial/InvoicingShouruqueren.aspx?id=" + personId, Title: "璁㈠崟纭鏀跺叆", Width: 600, Height: 800 });
+            } else {
+                top.Dialog.open({ URL: "/Pages/financial/DepositsCustomershouruqueren.aspx?Keyid=" + personId, Title: "瀹㈡埛棰勪粯娆剧‘璁ゆ敹鍏�", Width: 900, Height: 680 });
+            }
+
+        }
+        
         
         //鍥炴
         function ViewFukuan(personId) {
@@ -111,6 +121,40 @@
         //鏌ョ湅瀹㈡埛璧勬枡
         function View(personId) {
             top.Dialog.open({ URL: "/Pages/business/CorporateClientsDetail.aspx?Keyid=" + personId, Title: "鏌ョ湅瀹㈡埛", Width: 900, Height: 580 });
+        }
+
+
+        /*
+纭鍙楃悊
+*/
+        function ToAccept(orderId) {
+            
+
+             
+
+           
+            top.Dialog.confirm('纭鎾ゅ洖鐢宠?', function () {
+                DoAccept(orderId);
+            });
+        }
+
+
+        /*
+澶勭悊鍙楃悊璁㈠崟
+*/
+        var DoAccept = function (orderId) {
+
+            window.submitUrl = "/Pages/business/InvoicingConfirm.aspx"; //璁剧疆褰撳墠椤电殑鎻愪氦璺緞
+
+            CallServer({ Target: "AcceptOrder", id: orderId }, function (data, textStatus) {
+                if ('1' == data) {
+                    alertMsg('鎿嶄綔鎴愬姛锛�');
+                    RefreshDIVOpener();   //鍏抽棴椤甸潰
+                } else {
+                    alertMsg(data);
+                    //dialog.close();
+                }
+            });
         }
 
  
@@ -286,7 +330,7 @@
                          <th width="60">
                            寮�绁ㄧ姸鎬�
                         </th>
-                         <th width="120">
+                         <th width="180">
                           鎿嶄綔
 
                         </th>
@@ -369,7 +413,10 @@
                                       
                                          <a href='javascript:void(0)' title='浠樻鐧昏' class='a_under' onclick='ViewFukuan("<%#Eval("Keyid")%>")'> 浠樻鐧昏    </a>  &nbsp;&nbsp;&nbsp;
                                       <a href='javascript:void(0)' title='鍌' class='a_under' onclick='ViewCuishou("<%#Eval("Keyid")%>")'> 鍌    </a> &nbsp;&nbsp;&nbsp;
-                                     <a href='javascript:void(0)' title='鏀舵' class='a_under' onclick='ViewShoukuan("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 鏀舵    </a>
+                                     <a href='javascript:void(0)' title='鏀舵' class='a_under' onclick='ViewShoukuan("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 鏀舵    </a> &nbsp;&nbsp;&nbsp;
+                                       <a href='javascript:void(0)' title='鏀舵' class='a_under' onclick='ViewShouru("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 鏀跺叆纭    </a> &nbsp;&nbsp;&nbsp;
+
+                                      <a href='javascript:void(0)' title='鎾ゅ洖' class='a_under' onclick='ToAccept("<%#Eval("Keyid")%>")'> 鎾ゅ洖    </a>
                                 </td>
                                 
                             </tr>

--
Gitblit v1.9.1