From 21a248a0cf76b6f05fcaac6f90975ef15ab607a1 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 18 十二月 2024 09:24:10 +0800 Subject: [PATCH] 公文纸,试卷 --- CY_ECommercePlatform/CY.WebForm/js/Inquiry/Inquiry.js | 50 ++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 38 insertions(+), 12 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/js/Inquiry/Inquiry.js b/CY_ECommercePlatform/CY.WebForm/js/Inquiry/Inquiry.js index f75347b..828999a 100644 --- a/CY_ECommercePlatform/CY.WebForm/js/Inquiry/Inquiry.js +++ b/CY_ECommercePlatform/CY.WebForm/js/Inquiry/Inquiry.js @@ -127,6 +127,14 @@ case "37": $("#divInquiry").load("/Pages/front/WorkBook.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack); break; + //璇曞嵎 + case "38": + $("#divInquiry").load("/Pages/front/Shijuan.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack); + break; + //鍏枃绾� + case "39": + $("#divInquiry").load("/Pages/front/GongWenZhi.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack); + break; //鏀舵嵁鑱斿崟 case "27": $("#divInquiry").load("/Pages/front/ReceiptDocument.aspx", { "PrintTypeId": printTypeId }, ExcuteCallBack); @@ -228,14 +236,14 @@ var minValue = $("#hidWorkBookPageNum").attr("minValue"); var newValue = parseInt(hidValue) + 1; if (newValue > maxValue) { - alertMsg("浣滀笟鏈柊澧炰笉鑳借秴杩�30涓紒"); + alertMsg("鏂板涓嶈兘瓒呰繃30涓紒"); return; } $("#WorkBooka" + newValue + "").show(); $("#hidWorkBookPageNum").val(newValue); if (newValue != maxValue) { var value = newValue + 1; - $("#WorkBookAdd").val("浣滀笟鏈�" + value); + $("#WorkBookAdd").val(" " + value +" " ); } $("#WorkBookNamea" + newValue + "").val((parseInt($("#WorkBookNamea" + hidValue + "").val())+1)); $("#WorkBookSizea" + newValue + "").val($("#WorkBookSizea" + hidValue + "").val()); @@ -366,7 +374,7 @@ if (dataJsonStr == null || dataJsonStr == "") return; var dataJson = eval('(' + dataJsonStr + ')'); - if (dataJson.PrintTypeId == "-1" || dataJson.PrintTypeId == -1) { + if (dataJson.PrintTypeId == "-1" || dataJson.PrintTypeId == -1 ) { $("[name='printSizeName']").val(dataJson.PrintSizeName); $("[name='printCount']").val(dataJson.PrintCount); $("[name='ysUnit']").val(dataJson.Unit); @@ -1316,16 +1324,16 @@ $("#thickness").val(dataJson.Thickness); $("#pageNum").val(dataJson.PageNum); } - + $("[name='printMode']").each( - function () { - if ($(this).val() == dataJson.PrintMode) { - $(this).attr("checked", true); - $(this).click(); - } + function () { + if ($(this).val() == dataJson.PrintMode) { + $(this).attr("checked", true); + $(this).click(); } - ); + } + ); if (dataJson.IsDefinedSize == 1) { $("[name='paperSize']").val("-1"); @@ -1349,7 +1357,7 @@ $("[name='pNameMP']").val(dataJson.PaperMP); $("[name='paper0']").val(dataJson.PaperId); if (dataJson.PrintMode == 0) { - if (dataJson.PaperMP && dataJson.PaperMP != "" && $("#hidPrintTypeId").val() !="29") { + if (dataJson.PaperMP && dataJson.PaperMP != "" && $("#hidPrintTypeId").val() != "29") { PaperSelect($("[name='pNameMP']").val(), $("#hidPrintTypeId").val(), 0); } else { @@ -1395,6 +1403,14 @@ $("[name='sjType']").change(); $("[name='RopeTypeId']").val(dataJson.RopeTypeId); var afterWorkArry = dataJson.AfterWorkList; + if (printTypeId == 39) { + $("[name='works']").each( + function () { + $(this).attr("checked", false); + } + ); + } + if (afterWorkArry.length > 0) { for (var i = 0; i < afterWorkArry.length; i++) { $("[name='works']").each( @@ -1452,6 +1468,11 @@ } } } + } + if (printTypeId == 39) { + + $("#pageNumsbs").val(dataJson.pageNumsbs); + } //鍙板巻 if (printTypeId == 25) { @@ -1774,7 +1795,7 @@ return; } - if (printTypeId == 32 || printTypeId == 31) { + if (printTypeId == 32 || printTypeId == 31 || printTypeId == 38 ) { $("#printCount").attr("readonly", false); return; } @@ -2028,6 +2049,11 @@ $("#printCount").attr("readonly", false); return; } + if (printTypeId == "39") { + $("#printCount").attr("readonly", false); + $("#paper0").attr("disabled", false); + return; + } $("[id*='paper'][id!=paperSize]").val(3); $("[id*='paper'][id!=paperSize]").attr("disabled", true); $("[id*='brand']").attr("disabled", true); -- Gitblit v1.9.1