From fe4f494d66a2049583d3ff427e431d5b88fa4eeb Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 12 三月 2026 08:45:44 +0800
Subject: [PATCH] 20260306 合版工单改成和专版工单一样界面
---
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx | 509 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 478 insertions(+), 31 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
index 7277fc1..03d4f6f 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -75,7 +75,7 @@
</td>
<td>
<%-- <span id="spanOrderDeliveryTime" runat="server"></span>--%>
- <input id='txtDeliveryTime' class='date req' runat="server" />
+ <input id='txtDeliveryTime' class='date' runat="server" />
</td>
</tr>
<tr style=" display:none;">
@@ -175,6 +175,14 @@
</tr>
<tr>
<td class="ali03">
+ 鍗板埛鏁伴噺锛�
+ </td>
+ <td colspan="5">
+ <input type="text" id="txtOrderNum" class=" w120px int" min="0" runat="server" />
+ </td>
+ </tr>
+ <tr>
+ <td class="ali03">
澶囨敞锛�
</td>
<td colspan="5">
@@ -195,10 +203,10 @@
</thead>
<tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6; width: 100%">
<td rowspan="2" style="width: 195px;">
- 鏋勪欢
+ <%=PrintTypeId=="7"?"鎴愬搧灏哄":"鏋勪欢" %>
</td>
<td rowspan="2" colspan="2" >
- P鏁�
+ <%=PrintTypeId=="7"?"鐗堟暟":"P鏁�" %>
</td>
<td rowspan="2" colspan="2">
鍗板埛鏈哄彴
@@ -221,11 +229,13 @@
</tr>
<tr>
<td>
- <select keepdefaultstyle="true" class="" name="PSF_Component" value_ppwaerid="<%#Container.ItemIndex + 1%>">
+ <select keepdefaultstyle="true" class="" name="PSF_Component" value_ppwaerid="<%#Container.ItemIndex + 1%>" <%=PrintTypeId=="7"?"style=\"display:none;\"":"" %> >
<option value="" selected="selected">-鏃�-</option>
<option value="灏侀潰">灏侀潰</option>
<option value="鍐呴〉">鍐呴〉</option>
</select>
+
+ <input type="text" class=" w120px " maxlength="50" name="PSF_Chengpinchicun" value_ppwaerid="<%#Container.ItemIndex + 1%>" value="<%#Eval("PSF_Component")%>" <%=PrintTypeId=="7"?"":"style=\"display:none;\"" %> />
</td>
<td colspan="2">
<input type="text" class=" w80px int " msg="璇峰~鍐欐暟瀛�" name="PSF_PNum" value="<%#Eval("PSF_PNum")%>" value_ppwaerid="<%#Container.ItemIndex + 1%>" />
@@ -284,27 +294,27 @@
绾稿紶瑙勬牸
</td>
<td colspan="3">
- 绾稿紶鏁伴噺锛堝紶锛�
+ <p name="PSF_Zhizhangshuliang" value_selspecspan="<%#Container.ItemIndex + 1%>">绾稿紶鏁伴噺锛堝紶锛�</p>
</td>
<td colspan="4">
- 寮�鏂欒鏍�
+ <p name="PSF_Kailiaoguige" value_selspecspan="<%#Container.ItemIndex + 1%>">寮�鏂欒鏍�</p>
</td>
</tr>
<tr class=" price_tabbg" style="font-weight: bold; background-color: #E6E6E6;" name="PSF_PrintedPaperTdtr" value_selspec="<%#Container.ItemIndex + 1%>">
<td>
- 绾稿紶鏁伴噺
+ <p name="PSF_Zhizhangshulianga" value_selspecspan="<%#Container.ItemIndex + 1%>">绾稿紶鏁伴噺</p>
</td>
<td>
- 鍗板埛姝f暟
+ <p name="PSF_Yinshuazhengshu" value_selspecspan="<%#Container.ItemIndex + 1%>">鍗板埛姝f暟</p>
</td>
<td>
- 娑堣��
+ <p name="PSF_Xiaohao" value_selspecspan="<%#Container.ItemIndex + 1%>">娑堣��</p>
</td>
<td colspan="1" >
<p name="PSF_OpenSpecificationsspan" value_selspecspan="<%#Container.ItemIndex + 1%>">寮�鏁�</p>
</td>
<td>
- 瀹藉害(mm)
+ <p name="PSF_Kuandu" value_selspecspan="<%#Container.ItemIndex + 1%>">瀹藉害(mm) </p>
</td>
<td>
<p name="PSF_OpenWidthspan" value_openwidthspan="<%#Container.ItemIndex + 1%>">闀垮害(mm)</p>
@@ -576,6 +586,15 @@
$("input[name='PSF_PrintedCount']").last().attr("value_ppwaerid", value_id + 1);
$("select[name='PSF_OpenSpecifications']").last().attr("value_selSpec", value_id + 1);
$("p[name='PSF_OpenSpecificationsspan']").last().attr("value_selspecspan", value_id + 1);
+
+ $("p[name='PSF_Zhizhangshuliang']").last().attr("value_selspecspan", value_id + 1);
+ $("p[name='PSF_Kailiaoguige']").last().attr("value_selspecspan", value_id + 1);
+ $("p[name='PSF_Zhizhangshulianga']").last().attr("value_selspecspan", value_id + 1);
+ $("p[name='PSF_Yinshuazhengshu']").last().attr("value_selspecspan", value_id + 1);
+ $("p[name='PSF_Xiaohao']").last().attr("value_selspecspan", value_id + 1);
+ $("p[name='PSF_Kuandu']").last().attr("value_selspecspan", value_id + 1);
+
+
$("p[name='PSF_OpenWidthspan']").last().attr("value_openwidthspan", value_id + 1);
$("p[name='PSF_yinse']").last().attr("value_openwidthspan", value_id + 1);
$("p[name='PSF_yinsezheng']").last().attr("value_openwidthspan", value_id + 1);
@@ -598,6 +617,7 @@
$("input[name='PSF_Qitadingdanhao']").last().attr("value_ppwaerid", value_id + 1);
$("select[name='PSF_Component']").last().attr("value_ppwaerid", value_id + 1);
$("input[name='PSF_PNum']").last().attr("value_ppwaerid", value_id + 1);
+ $("input[name='PSF_Chengpinchicun']").last().attr("value_ppwaerid", value_id + 1);
$(".tdCTPCount").last().attr("value_ppwaerid", value_id + 1);
$(".selCTPSpec").last().attr("value_ppwaerid", value_id + 1);
$(".selFilmSpec").last().attr("value_ppwaerid", value_id + 1);
@@ -636,13 +656,29 @@
$("select[name='PSF_OpenSpecifications']").last().val("8寮�");
$("select[name='PSF_OpenSpecifications']").last().change();
$("input[name='CTPSpecName']").last().val("395*460");
-
+ $("input[name='PSF_PNum']").last().val("");
if ($("select[name='PSF_Component']").first().val() == "灏侀潰") {
$("select[name='PSF_Component']").last().val("鍐呴〉");
+
+ if ("<%=shukuanhuace %>" == "true") {
+ if (value_id == 1) {
+ $("input[name='PSF_PNum']").last().val("<%=shukuanhuaceneiye1 %>");
+ } else if (value_id == 2) {
+ $("input[name='PSF_PNum']").last().val("<%=shukuanhuaceneiye2 %>");
+ } else if (value_id == 3) {
+ $("input[name='PSF_PNum']").last().val("<%=shukuanhuaceneiye3 %>");
+ } else if (value_id == 4) {
+ $("input[name='PSF_PNum']").last().val("<%=shukuanhuaceneiye4 %>");
+ } else if (value_id == 5) {
+ $("input[name='PSF_PNum']").last().val("<%=shukuanhuaceneiye5 %>");
+ }
+
+
+ }
}
- $("input[name='PSF_PNum']").last().val("");
+
$("input[name='PSF_PaperName']").last().val("");
$("input[name='PSF_MaterialSpecifications']").last().val("");
$("input[name='PSF_PrintedCount']").last().val("");
@@ -832,6 +868,110 @@
$("select[name='PSF_PressesDesk']").live("change", function () {
var value_SelWaerId = $(this).attr("value_selspec");
+
+ if ($(this).val().indexOf('灏忔.') >= 0) {
+ var selectPSF_PrintedColorPositive = $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']");
+
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectPSF_PrintedColorPositive.empty();
+
+ const newOptions1 = [
+ { value: '鍗曡壊', text: '鍗曡壊' },
+ { value: '鍙岃壊', text: '鍙岃壊' },
+ { value: '涓夎壊', text: '涓夎壊' },
+ { value: '鍥涜壊', text: '鍥涜壊' },
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml1 = '';
+ newOptions1.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml1 += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectPSF_PrintedColorPositive.html(optionHtml1); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+
+
+ var selectPSF_PrintedColorRear = $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']");
+
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectPSF_PrintedColorRear.empty();
+
+ const newOptions2 = [
+ { value: '0鑹�', text: '0鑹�' },
+ { value: '鍗曡壊', text: '鍗曡壊' },
+ { value: '鍙岃壊', text: '鍙岃壊' },
+ { value: '涓夎壊', text: '涓夎壊' },
+ { value: '鍥涜壊', text: '鍥涜壊' },
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml2 = '';
+ newOptions2.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml2 += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectPSF_PrintedColorRear.html(optionHtml2); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+ } else {
+ var selectPSF_PrintedColorPositive = $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']");
+
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectPSF_PrintedColorPositive.empty();
+
+ const newOptions1 = [
+ { value: '鍗曡壊', text: '鍗曡壊' },
+ { value: '鍙岃壊', text: '鍙岃壊' },
+ { value: '涓夎壊', text: '涓夎壊' },
+ { value: '鍥涜壊', text: '鍥涜壊' },
+ { value: '鍥�+涓�', text: '鍥�+涓�' },
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml1 = '';
+ newOptions1.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml1 += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectPSF_PrintedColorPositive.html(optionHtml1); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+
+
+ var selectPSF_PrintedColorRear = $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']");
+
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectPSF_PrintedColorRear.empty();
+
+ const newOptions2 = [
+ { value: '0鑹�', text: '0鑹�' },
+ { value: '鍗曡壊', text: '鍗曡壊' },
+ { value: '鍙岃壊', text: '鍙岃壊' },
+ { value: '涓夎壊', text: '涓夎壊' },
+ { value: '鍥涜壊', text: '鍥涜壊' },
+ { value: '鍥�+涓�', text: '鍥�+涓�' },
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml2 = '';
+ newOptions2.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml2 += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectPSF_PrintedColorRear.html(optionHtml2); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+ }
+
+
if ($(this).val().indexOf('鍏紑') >= 0) {
$("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊");
$("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍗曡壊");
@@ -997,7 +1137,7 @@
$("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("");
$("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
$("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
- $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
+ $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
$("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
$("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
@@ -1009,13 +1149,13 @@
- $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").show();
+ $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").hide();
$("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").show();
$("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
$("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
- $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").hide();
$("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
$("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
@@ -1027,6 +1167,12 @@
$(".PSF_Qitadingdanhao[value_ppwaerid='" + value_SelWaerId + "']").hide();
$("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
$("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("2");
+ if ($(this).val().indexOf('灏忔.') >= 0) {
+ $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍥涜壊");
+ $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍥涜壊");
+ $("input[name='CTPSpecName'][value_ppwaerid='" + value_SelWaerId + "']").val("900*570");
+ $("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").val("8");
+ }
}
// else if () {
// //$("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
@@ -1058,7 +1204,7 @@
//}
- else if ($(this).val().indexOf('鐩存帴淇垏') >= 0 || $(this).val().indexOf('鏁扮爜') >= 0) {
+ else if ($(this).val().indexOf('鐩存帴淇垏') >= 0 || $(this).val().indexOf('鏁扮爜') >= 0 || $(this).val().indexOf('琛ュ崟') >= 0 ) {
$("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊");
$("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").val("鍗曡壊");
@@ -1067,7 +1213,7 @@
$("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").change();
$("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
- if ($("#spanOrderPrintDemand").html() != "") {
+ if ($("#spanOrderPrintDemand").html() != "" && $("#spanOrderPrintDemand").html().indexOf("table") < 0) {
var sss = $("#spanOrderPrintDemand").html().split('锛�');
if (sss != null) {
@@ -1091,13 +1237,13 @@
if (ssssaaa.indexOf('脳') >= 0) {
var dfdfdf = ssssaaa.split('脳');
- $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm",""));
- $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", ""));
+ $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", "").trim());
+ $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "").trim());
} else if (ssssaaa.indexOf('*') >= 0) {
var dfdfdf = ssssaaa.split('*');
- $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", ""));
- $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", ""));
+ $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", "").trim());
+ $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "").trim());
}
@@ -1107,15 +1253,15 @@
var sfdsdfdf = sss[i].split('锛�');
var dfdfdf = sfdsdfdf[0].split('脳');
- $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", ""));
- $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", ""));
+ $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", "").trim());
+ $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "").trim());
} else if (sss[i].indexOf('*') >= 0) {
var sfdsdfdf = sss[i].split('锛�');
var dfdfdf = sfdsdfdf[0].split('*');
- $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", ""));
- $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", ""));
+ $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[0].replace("mm", "").trim());
+ $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").val(dfdfdf[1].replace("mm", "").trim());
}
}
@@ -1192,7 +1338,98 @@
$("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
}
-
+
+
+
+
+ if ($(this).val().indexOf('杞浆') >= 0) {
+ var selectElement = $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']");
+
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.empty();
+
+ const newOptions = [
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml = '';
+ newOptions.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectElement.html(optionHtml); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+ $("p[name='PSF_Zhizhangshuliang'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_Kailiaoguige'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_Zhizhangshulianga'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_Yinshuazhengshu'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_Xiaohao'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_Kuandu'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").hide();
+ $("input[name='PSF_PrintedCount'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+ $("input[name='PSF_PrintedPositive'][value_positiveid='" + value_SelWaerId + "']").hide();
+ $("input[name='PSF_LastNum'][value_lastnumid='" + value_SelWaerId + "']").hide();
+ $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
+ $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+ $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+
+
+ }
+ else {
+ var selectElement = $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']")
+
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.empty();
+
+ const newOptions = [
+ { value: '鑷炕', text: '鑷炕' },
+ { value: '婊氱炕', text: '婊氱炕' },
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml = '';
+ newOptions.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectElement.html(optionHtml); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+ $("p[name='PSF_Zhizhangshuliang'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_Kailiaoguige'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_Zhizhangshulianga'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_Yinshuazhengshu'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_Xiaohao'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_Kuandu'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
+ $("input[name='PSF_PrintedCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
+ $("input[name='PSF_PrintedPositive'][value_positiveid='" + value_SelWaerId + "']").show();
+ $("input[name='PSF_LastNum'][value_lastnumid='" + value_SelWaerId + "']").show();
+ $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
+ $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
+ $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
+
+ if ($(this).val().indexOf('榛戠櫧') >= 0) {
+ $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+ }
+
+
+ }
+
+
+
+
+
});
@@ -1205,8 +1442,13 @@
$("input[name='PSF_Forumsid']").each(function (ii, vv) {
var keyid = "<%=keyid %>";
+ if ("<%=PrintTypeId %>" == "7") {
+ $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PressesDesk']").val("灏忔.鍟嗕笟杞浆鏈�");
+ $(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PressesDesk']").change();
+ }
if (keyid != "") {
$(vv).parent().parent().parent().parent().parent().find("select[name='PSF_Component']").val($(vv).attr("value_hide_psf_component"));
+ //$(vv).parent().parent().parent().parent().parent().find("input[name='PSF_Chengpinchicun']").val($(vv).attr("value_hide_psf_component"));
$(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PressesDesk']").val($(vv).attr("value_hide_psf_pressesdesk"));
$(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PrintedColorPositive']").val($(vv).attr("value_hide_psf_printedcolorpositive"));
$(vv).parent().parent().parent().parent().parent().find("select[name='PSF_PrintedColorRear']").val($(vv).attr("value_hide_psf_printedcolorrear"));
@@ -1382,7 +1624,7 @@
else if ($(vv).val().indexOf('杞浆') >= 0) {
$("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
- $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").show();
+ $(".xialap[value_ppwaerid='" + value_SelWaerId + "']").hide();
// $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
$("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
@@ -1394,13 +1636,13 @@
- $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").show();
+ $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']").hide();
$("p[name='PSF_yinse'][value_openwidthspan='" + value_SelWaerId + "']").show();
$("p[name='PSF_yinsezheng'][value_openwidthspan='" + value_SelWaerId + "']").show();
$("p[name='PSF_yinsebei'][value_openwidthspan='" + value_SelWaerId + "']").show();
- $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_yinshufangshi'][value_openwidthspan='" + value_SelWaerId + "']").hide();
$("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']").show();
$("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").show();
@@ -1413,7 +1655,7 @@
$("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
}
- else if ($(vv).val().indexOf('鐩存帴淇垏') >= 0 || $(vv).val().indexOf('鏁扮爜') >= 0) {
+ else if ($(vv).val().indexOf('鐩存帴淇垏') >= 0 || $(vv).val().indexOf('鏁扮爜') >= 0 || $(this).val().indexOf('琛ュ崟') >= 0 ) {
$("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
@@ -1479,6 +1721,201 @@
$("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
}
+
+
+ if ($(vv).val().indexOf('杞浆') >= 0) {
+ var selectElement = $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']");
+ var sssssss = selectElement.val();
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.empty();
+
+ const newOptions = [
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml = '';
+ newOptions.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectElement.html(optionHtml); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+
+ selectElement.val(sssssss);
+
+ $("p[name='PSF_Zhizhangshuliang'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_Kailiaoguige'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_Zhizhangshulianga'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_Yinshuazhengshu'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_Xiaohao'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_Kuandu'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").hide();
+ $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").hide();
+ $("input[name='PSF_PrintedCount'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+ $("input[name='PSF_PrintedPositive'][value_positiveid='" + value_SelWaerId + "']").hide();
+ $("input[name='PSF_LastNum'][value_lastnumid='" + value_SelWaerId + "']").hide();
+ $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").hide();
+ $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+ $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+
+ }
+ else {
+ var selectElement = $("select[name='PSF_Typesetting'][value_ppwaerid='" + value_SelWaerId + "']")
+ var sssssss = selectElement.val();
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.empty();
+
+ const newOptions = [
+ { value: '鑷炕', text: '鑷炕' },
+ { value: '婊氱炕', text: '婊氱炕' },
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml = '';
+ newOptions.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectElement.html(optionHtml); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+ selectElement.val(sssssss);
+
+ $("p[name='PSF_Zhizhangshuliang'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_Kailiaoguige'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_Zhizhangshulianga'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_Yinshuazhengshu'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_Xiaohao'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_Kuandu'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
+ $("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
+ $("input[name='PSF_PrintedCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
+ $("input[name='PSF_PrintedPositive'][value_positiveid='" + value_SelWaerId + "']").show();
+ $("input[name='PSF_LastNum'][value_lastnumid='" + value_SelWaerId + "']").show();
+ $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").show();
+ $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").show();
+ $("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
+
+ if ($(this).val().indexOf('榛戠櫧') >= 0) {
+ $("input[name='PSF_OpenWidth'][value_ppwaerid='" + value_SelWaerId + "']").hide();
+ }
+ }
+
+
+
+ if ($(vv).val().indexOf('灏忔.') >= 0) {
+ var selectPSF_PrintedColorPositive = $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']");
+ var sssssss = selectPSF_PrintedColorPositive.val();
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectPSF_PrintedColorPositive.empty();
+
+ const newOptions1 = [
+ { value: '鍗曡壊', text: '鍗曡壊' },
+ { value: '鍙岃壊', text: '鍙岃壊' },
+ { value: '涓夎壊', text: '涓夎壊' },
+ { value: '鍥涜壊', text: '鍥涜壊' },
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml1 = '';
+ newOptions1.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml1 += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectPSF_PrintedColorPositive.html(optionHtml1); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+ selectPSF_PrintedColorPositive.val(sssssss);
+
+ var selectPSF_PrintedColorRear = $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']");
+ var ssssssss = selectPSF_PrintedColorRear.val();
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectPSF_PrintedColorRear.empty();
+
+ const newOptions2 = [
+ { value: '0鑹�', text: '0鑹�' },
+ { value: '鍗曡壊', text: '鍗曡壊' },
+ { value: '鍙岃壊', text: '鍙岃壊' },
+ { value: '涓夎壊', text: '涓夎壊' },
+ { value: '鍥涜壊', text: '鍥涜壊' },
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml2 = '';
+ newOptions2.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml2 += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectPSF_PrintedColorRear.html(optionHtml2); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+ selectPSF_PrintedColorRear.val(ssssssss);
+ } else {
+ var selectPSF_PrintedColorPositive = $("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']");
+
+ var sssssss = selectPSF_PrintedColorPositive.val();
+ // 娓呯┖鐜版湁鐨刼ption
+ selectPSF_PrintedColorPositive.empty();
+
+ const newOptions1 = [
+ { value: '鍗曡壊', text: '鍗曡壊' },
+ { value: '鍙岃壊', text: '鍙岃壊' },
+ { value: '涓夎壊', text: '涓夎壊' },
+ { value: '鍥涜壊', text: '鍥涜壊' },
+ { value: '鍥�+涓�', text: '鍥�+涓�' },
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml1 = '';
+ newOptions1.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml1 += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectPSF_PrintedColorPositive.html(optionHtml1); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+
+ selectPSF_PrintedColorPositive.val(sssssss);
+
+ var selectPSF_PrintedColorRear = $("select[name='PSF_PrintedColorRear'][value_ppwaerid='" + value_SelWaerId + "']");
+ var ssssssss = selectPSF_PrintedColorRear.val();
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectPSF_PrintedColorRear.empty();
+
+ const newOptions2 = [
+ { value: '0鑹�', text: '0鑹�' },
+ { value: '鍗曡壊', text: '鍗曡壊' },
+ { value: '鍙岃壊', text: '鍙岃壊' },
+ { value: '涓夎壊', text: '涓夎壊' },
+ { value: '鍥涜壊', text: '鍥涜壊' },
+ { value: '鍥�+涓�', text: '鍥�+涓�' },
+ ];
+
+
+
+ // 3. 鎵归噺鏂板option鍒皊elect涓�
+ let optionHtml2 = '';
+ newOptions2.forEach(item => {
+ // 鎷兼帴option鏍囩锛岀洿鎺ヨ祴鍊煎嵆鍙�
+ optionHtml2 += `<option value="${item.value}">${item.text}</option>`;
+ });
+ selectPSF_PrintedColorRear.html(optionHtml2); // 璧嬪�煎埌select锛屽畬鎴愭柊澧�
+ selectPSF_PrintedColorRear.val(ssssssss);
+ }
+
}
});
@@ -1490,7 +1927,10 @@
if (keyid != "") {
} else {
- $(vv).val("395*460");
+ if ("<%=PrintTypeId %>" != "7") {
+ $(vv).val("395*460");
+ }
+
}
});
@@ -1513,6 +1953,13 @@
var value_pparid = "3";
top.Dialog.open({ URL: "/Pages/business/AgConWarehouse.aspx?CommidityType=鐗堟潗&&value_pparid=" + value_pparid, Width: 1000, Height: 650, Title: "閫夋嫨璐у搧鍙傛暟" });
});
+
+
+ if ("<%=shukuanhuace %>" == "true") {
+ $("select[name='PSF_Component']").first().val("灏侀潰");
+ $("input[name='PSF_PNum']").first().val("4");
+
+ }
});
--
Gitblit v1.9.1