From e8e3122fdc4844202fb9e05477d47139e47a8aae Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 12 十二月 2025 08:59:47 +0800
Subject: [PATCH] 作业本送货变二级菜单
---
CY_ECommercePlatform/CY.WebForm/js/business/Order.js | 421 +++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 412 insertions(+), 9 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/js/business/Order.js b/CY_ECommercePlatform/CY.WebForm/js/business/Order.js
index e1241fc..1e7ddd1 100644
--- a/CY_ECommercePlatform/CY.WebForm/js/business/Order.js
+++ b/CY_ECommercePlatform/CY.WebForm/js/business/Order.js
@@ -50,6 +50,28 @@
});
}
+
+
+/*
+纭鍙楃悊
+*/
+function ToSuodan(orderId, orderShowId) {
+
+
+ var msg ='纭閿佸崟璁㈠崟:' + orderShowId + '?';
+ top.Dialog.confirm(msg, function () {
+ CallServer({ Target: "SuodanOrder", id: orderId }, function (data, textStatus) {
+ if ('1' == data) {
+ alertMsg('鎿嶄綔鎴愬姛锛�');
+ RefreshDIVOpener(); //鍏抽棴椤甸潰
+ } else {
+ alertMsg('-1' == data ? '閿佸崟杩囩▼涓彂鐢熷紓甯革紝璇烽噸鏂板彈鐞嗭紒' : '閿佸崟澶辫触锛�');
+ //dialog.close();
+ }
+ });
+ });
+}
+
///鎵归噺鍙楃悊
function ToAllAccept() {
var commission = parseFloat(document.getElementById('txtCommission').value);
@@ -93,7 +115,7 @@
// html += '</p>';
// html += '<br/><div style=\'text-align:right;\' ><input type="button" class="button" value="鍙� 鐞�" onclick="DoAcceptAll(\'' + ids + '\')"/> <input type="button" class="button" value="鍙� 娑�" onclick="parent.dialog.close()"/></span></div>';
// dialog.open({ InnerHtml: html, Title: '鎵归噺纭鍙楃悊', Width: 400, Height: 100, Modal: false });
- var msg = !needPrice ? ('纭鎵归噺鍙楃悊鎵�閫�' + orderShowIds + '璁㈠崟?') : ('鍙楃悊鎵�閫夌嚎涓婅鍗曢渶瑕佹敮浠橈骏' + Float2(price) + '鏈嶅姟璐�,鏄惁纭鎵归噺鍙楃悊' + orderShowIds + '璁㈠崟锛�');
+ var msg = !needPrice ? ('纭鎵归噺鍙楃悊鎵�閫夎鍗�?') : ('鍙楃悊鎵�閫夌嚎涓婅鍗曢渶瑕佹敮浠橈骏' + Float2(price) + '鏈嶅姟璐�,鏄惁纭鎵归噺鍙楃悊璁㈠崟锛�');
top.Dialog.confirm(msg, function () {
DoAcceptAll(ids);
});
@@ -254,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) {
@@ -281,11 +335,16 @@
//姝f暟姝e垯琛ㄨ揪寮�
var reg1 = /^\d+(?=\.{0,1}\d+$|$)/;
+ if (sparam.dtypeId == 4 && sparam.orderState != '1' && sparam.orderState != '2') {
+ alertMsg('宸茬粡瀹夋帓鐢熶骇鐨勮鍗曚笉鑳芥挙閿�锛�'); txtTargetValue.focus(); return;
+ }
+
//鏈彈鐞�
if (sparam.orderState == '1') {
sparam.dtypeId = 4;
sparam.title = "鎾ゅ崟绠$悊";
}
+
parent.parent.parent.parent.parent.parent['ToSubmit'] =
function (domobj) {
@@ -382,13 +441,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' );
}
@@ -514,6 +576,8 @@
document.getElementById('tbFacing').style.display = 'none';
document.getElementById('selVerifyWay12').style.display = 'none';
document.getElementById('selVerifyWay21').style.display = 'none';
+ document.getElementById('selVerifyWay1234').style.display = 'none';
+ document.getElementById('selVerifyWay4321').style.display = 'none';
if (OldOrderId == "" || OldOrderId == "0") {
document.getElementById('txtDeliveryTime').value = "";
}
@@ -522,6 +586,7 @@
document.getElementById('txtDocumentName').value = document.getElementById('txtDocumentNameHide').value;
}
+
}
else {
document.getElementById('tbFacing').style.display = '';
@@ -529,7 +594,328 @@
document.getElementById('selVerifyWay21').style.display = '';
document.getElementById('selVerifyWay123').style.display = '';
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();
+ }
+
+
+
}
@@ -564,6 +950,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 + "浣滀笟鏈�";
@@ -631,4 +1018,20 @@
return verfy_form(document.forms[0]);
}
}
-function Save() { return ValidateForm(); }
\ No newline at end of file
+function Save() {
+
+ if (document.getElementById('printCount').value == "" || parseFloat(document.getElementById('printCount').value) <= 0) {
+ alert("璁㈠崟鏁伴噺涓�0,涓嶈兘淇濆瓨!");
+ return false;
+ }
+
+ if (document.getElementById('txtSumPrice').value == "" || parseFloat(document.getElementById('txtSumPrice').value) <= 0) {
+ if (!confirm("璁㈠崟鎬讳环涓�0锛屾槸鍚︾户缁繚瀛橈紵"))
+ return false;
+ }
+
+ if (document.getElementById('selPrintTypes').value == "37") {
+ WorkBookCountNum();
+ }
+ return ValidateForm();
+}
\ No newline at end of file
--
Gitblit v1.9.1