From 5782e6fb084441dcf26db0b1aaf33e39204142b8 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 15 四月 2025 08:52:33 +0800
Subject: [PATCH] 20250220设计订单菜单   会员菜单下     设计管理  12            会员菜单下     设计管理  01   会员菜单下     设计管理下     设计记件   /Pages/business/ShejijijianList.aspx   05  会员菜单下     设计管理下     新增订单   /Pages/business/ShejiOrderEdit.aspx   01  会员菜单下     设计管理下     订单管理   /Pages/business/ShejiOrderList.aspx   02

---
 CY_ECommercePlatform/CY.WebForm/js/business/Order.js |  378 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 370 insertions(+), 8 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/js/business/Order.js b/CY_ECommercePlatform/CY.WebForm/js/business/Order.js
index df309d1..13e4417 100644
--- a/CY_ECommercePlatform/CY.WebForm/js/business/Order.js
+++ b/CY_ECommercePlatform/CY.WebForm/js/business/Order.js
@@ -276,6 +276,38 @@
     }
 }
 
+
+
+
+/*
+鎵归噺瀹屽伐
+*/
+function ToDeliverWork(operateFn, validateFn) {
+    var ids = '';
+    var cks = $("input[name='ckId']:checked");
+    if (cks.length == 0) { alertMsg('娌℃湁閫変腑浠讳綍椤癸紒'); return; } else { }
+    var isCan = true;
+    cks.each(function (ii, vv) {
+        var ckVal = $(this).val();
+        var ckValJson = eval('(' + ckVal + ')');
+        //        if (parseInt(ckValJson.orderType) < 1 && ckValJson.orderState == 1) {
+        //            isCan = false;
+        //            return false;
+        //        }
+        if (ckValJson.orderState == 1 || ckValJson.orderState <= 0) {
+            isCan = false;
+            return false;
+        }
+        ids = ids + ',' + $(vv).attr("value_keyid");
+    });
+    if (isCan) {
+        dialog.open({ URL: "/Pages/business/DeliverWork.aspx?ids=" + ids, Title: '瀹屽伐', Height: 600, Width: 680 });
+    }
+    else {
+        alertMsg("鎵�閫夎鍗曟湭鍙楃悊锛屾垨宸插喕缁擄紝鎴栬�呭凡缁堟锛屾垨宸插畬鎴愶紝涓嶈兘鎿嶄綔瀹屽伐锛�");
+    }
+}
+
 function SendToServer(sparam) {
 
     CallServer(sparam, function (data, textStatus) {
@@ -404,13 +436,16 @@
         }
         else {
             if (DeliveryOrderId == null || DeliveryOrderId == "" || DeliveryOrderId == "00000000-0000-0000-0000-000000000000") {
-                var r = confirm("鏄惁瀹夋帓閫佽揣?");
-                if (r == true) {
-                    OpenWindowByUrl('/Pages/business/PrintAwbOrder.aspx?ids=' + ids + '&buyerid=' + tobjs[0]['buyerId'] + '&orderId=' + orderId + '&shifouDelivery=1' );
-                }
-                else {
-                    OpenWindowByUrl('/Pages/business/PrintAwbOrder.aspx?ids=' + ids + '&buyerid=' + tobjs[0]['buyerId'] + '&orderId=' + orderId + '&shifouDelivery=2'  );
-                }
+                var url = "/Pages/business/DeliverPlanShifou.aspx?ids=" + ids + '&buyerid=' + tobjs[0]['buyerId'] + '&orderId=' + orderId;
+                top.Dialog.open({ URL: url, Title: "閫佽揣鏃ユ湡", Height: 300, Width: 680 });
+
+                //var r = confirm("鏄惁瀹夋帓閫佽揣?");
+                //if (r == true) {
+                //    OpenWindowByUrl('/Pages/business/PrintAwbOrder.aspx?ids=' + ids + '&buyerid=' + tobjs[0]['buyerId'] + '&orderId=' + orderId + '&shifouDelivery=1' );
+                //}
+                //else {
+                //    OpenWindowByUrl('/Pages/business/PrintAwbOrder.aspx?ids=' + ids + '&buyerid=' + tobjs[0]['buyerId'] + '&orderId=' + orderId + '&shifouDelivery=2'  );
+                //}
             } else {
                 OpenWindowByUrl('/Pages/business/PrintAwbOrder.aspx?ids=' + ids + '&buyerid=' + tobjs[0]['buyerId'] + '&orderId=' + orderId + '&shifouDelivery=2' );
             }
@@ -546,6 +581,7 @@
             document.getElementById('txtDocumentName').value = document.getElementById('txtDocumentNameHide').value;
         }
        
+      
     }
     else {
         document.getElementById('tbFacing').style.display = '';
@@ -555,7 +591,326 @@
         document.getElementById('selVerifyWay321').style.display = '';
         document.getElementById('selVerifyWay1234').style.display = '';
         document.getElementById('selVerifyWay4321').style.display = '';
+       
     }
+
+    if (sel.value == 37 || sel.value == 38) {
+        $("#Duiyinghetongbianhao").hide();
+    } else {
+        $("#Duiyinghetongbianhao").show();
+    }
+
+
+
+    if (sel.value == 29) {
+        $("#BlackAndWhite29").show();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    if (sel.value == 29) {
+        $("#BlackAndWhite29").show();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 6) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").show();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 15) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").show();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 14) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").show();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 27) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").show();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 21) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").show();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 7) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").show();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 38) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").show();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 20) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").show();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 16) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").show();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 22) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").show();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 39) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").show();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 23) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").show();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 25) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").show();
+        $("#Packet26").hide();
+        $("#Qita1111").hide();
+    }
+    else if (sel.value == 26) {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").show();
+        $("#Qita1111").hide();
+    }
+    else {
+        $("#BlackAndWhite29").hide();
+        $("#Book6").hide();
+        $("#PictureAlbumNew15").hide();
+        $("#DMInquiry14").hide();
+        $("#ReceiptDocument27").hide();
+        $("#Envelop21").hide();
+        $("#NewsPaper7").hide();
+        $("#Shijuan38").hide();
+        $("#Adhesive20").hide();
+        $("#Reticule16").hide();
+        $("#Note22").hide();
+        $("#GongWenZhi39").hide();
+        $("#Calendary23").hide();
+        $("#DeskCalendar25").hide();
+        $("#Packet26").hide();
+        $("#Qita1111").show();
+    }
+
+
+
 }
 
 
@@ -590,6 +945,7 @@
                 document.getElementById('selBusinessManagers').value = jobj.BusinessManagerId;
                 document.getElementById('txtContact').value = jobj.BusinessManagers;
                 document.getElementById('txtPhone').value = jobj.CompanyPhone;
+                document.getElementById('txtPrintPackDeliveryRequir').value = jobj.Note;
                 var aaaaaaaaaselPrintTypes = document.getElementById('selPrintTypes').value;
                 if (aaaaaaaaaselPrintTypes == "37") {
                     document.getElementById('txtDocumentName').value = jobj.CompanyName + "浣滀笟鏈�";
@@ -657,4 +1013,10 @@
         return verfy_form(document.forms[0]);
     }
 }
-function Save() { return ValidateForm(); }
\ No newline at end of file
+function Save() {
+    if (document.getElementById('txtSumPrice').value == "" || parseFloat(document.getElementById('txtSumPrice').value) <= 0) {
+        if (!confirm("璁㈠崟鎬讳环涓�0锛屾槸鍚︾户缁繚瀛橈紵"))
+            return false;
+    }
+    return ValidateForm();
+}
\ No newline at end of file

--
Gitblit v1.9.1