From e8a8276f66ef85bdd06b12d6852d62f5ce69f296 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 30 一月 2026 12:28:55 +0800
Subject: [PATCH] 生产施工单中,选“轮转印刷机”的时候,印刷方式改为只有“扣版”和“单面”两种,默认扣版
---
CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx | 220 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 212 insertions(+), 8 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx
index b3c2236..d6166fc 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx
@@ -77,6 +77,80 @@
$(this).parent().parent().find("input").val($(this).text());
$(".xialapb").hide();
});
+
+
+
+ var selmachine = document.getElementById('selPMS_Machine');
+
+ if (selmachine.value.indexOf('杞浆') >= 0) {
+ //var select = document.getElementById("PSF_Typesetting");
+ //var option = select.options[0]; // index鏄淇敼鐨刼ption鐨勭储寮�
+ //option.text = "鎵g増";
+ //option.value = "鎵g増";
+
+ //var option1 = select.options[1]; // index鏄淇敼鐨刼ption鐨勭储寮�
+ //option1.text = "鍗曢潰";
+ //option1.value = "鍗曢潰";
+ // 鑾峰彇select鍏冪礌
+
+ var selectElement = document.getElementById('PSF_Typesetting');
+
+ var sssssss = selectElement.value;
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.innerHTML = '';
+
+ const newOptions = [
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+ // 4. 鎵归噺鏂板option鍒皊elect涓紙2绉嶆柟娉曪紝鎸夐渶閫夋嫨锛�
+ // 鏂规硶1锛氬惊鐜垱寤篛ption瀵硅薄锛堟爣鍑咲OM鎿嶄綔锛屾帹鑽愶紝鍏煎鎬ф渶濂斤級
+ newOptions.forEach(option => {
+ // 鍒涘缓option鍏冪礌锛歯ew Option(鏄剧ず鏂囨湰, 瀹為檯鍊�)
+ const opt = new Option(option.text, option.value);
+ // 灏唎ption娣诲姞鍒皊elect涓�
+ selectElement.add(opt);
+ });
+
+ selectElement.value = sssssss;
+ } else {
+ //var select = document.getElementById("PSF_Typesetting");
+ //var option = select.options[0]; // index鏄淇敼鐨刼ption鐨勭储寮�
+ //option.text = "鎵g増";
+ //option.value = "鎵g増";
+
+ //var option1 = select.options[1]; // index鏄淇敼鐨刼ption鐨勭储寮�
+ //option1.text = "鍗曢潰";
+ //option1.value = "鍗曢潰";
+ // 鑾峰彇select鍏冪礌
+ var selectElement = document.getElementById('PSF_Typesetting');
+ var sssssss = selectElement.value;
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.innerHTML = '';
+
+ const newOptions = [
+ { value: '鑷炕', text: '鑷炕' },
+ { value: '婊氱炕', text: '婊氱炕' },
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+ // 4. 鎵归噺鏂板option鍒皊elect涓紙2绉嶆柟娉曪紝鎸夐渶閫夋嫨锛�
+ // 鏂规硶1锛氬惊鐜垱寤篛ption瀵硅薄锛堟爣鍑咲OM鎿嶄綔锛屾帹鑽愶紝鍏煎鎬ф渶濂斤級
+ newOptions.forEach(option => {
+ // 鍒涘缓option鍏冪礌锛歯ew Option(鏄剧ず鏂囨湰, 瀹為檯鍊�)
+ const opt = new Option(option.text, option.value);
+ // 灏唎ption娣诲姞鍒皊elect涓�
+ selectElement.add(opt);
+ });
+
+ selectElement.value = sssssss;
+ }
+
});
</script>
@@ -151,6 +225,56 @@
document.getElementById('PrintSizeName').value = "";
}
}
+
+
+ $("#PSF_Typesetting").live("change", function () {
+
+
+ if ($("#selPMS_Machine").val().indexOf('鍏紑') >= 0 ) {
+ if ($("#PSF_Typesetting").val() == "鎵g増" || $("#PMS_ChromaticNumber").val() == "2") {
+ $("#CTPCount").val("2");
+ } else {
+ $("#CTPCount").val("1");
+ }
+ }
+
+
+ if ( $("#selPMS_Machine").val().indexOf('榛戠櫧') >= 0) {
+ if ($("#PSF_Typesetting").val() == "鎵g増") {
+ $("#CTPCount").val("2");
+ } else {
+ $("#CTPCount").val("1");
+ }
+ }
+
+ if ($("#selPMS_Machine").val().indexOf('鍥涜壊') >= 0 || $("#selPMS_Machine").val().indexOf('鍏壊') >= 0) {
+ if ($("#PSF_Typesetting").val() == "鎵g増") {
+ $("#CTPCount").val("8");
+ } else {
+ $("#CTPCount").val("4");
+ }
+ }
+
+
+ });
+
+
+
+ $("#PMS_ChromaticNumber").live("change", function () {
+
+ if ($("#selPMS_Machine").val().indexOf('鍏紑') >= 0 ) {
+ if ($("#PSF_Typesetting").val() == "鎵g増" || $("#PMS_ChromaticNumber").val() == "2") {
+ $("#CTPCount").val("2");
+ } else {
+ $("#CTPCount").val("1");
+ }
+ }
+
+
+
+ });
+
+
/*
浜ゆ槗瀹㈡埛閫変腑鍊煎彂鐢熸敼鍙�
*/
@@ -161,26 +285,106 @@
if (sel.value.indexOf('鍏紑') >= 0) {
document.getElementById('PlateSpec').value = '395*460';
document.getElementById('PMS_ChromaticNumber').value = '1';
- /*document.getElementById('CTPCount').value = '8';*/
+ if ($("#PSF_Typesetting").val() == "鎵g増") {
+ $("#CTPCount").val("2");
+ } else {
+ $("#CTPCount").val("1");
+ }
- } else if (sel.value.indexOf('鍥涜壊') >= 0 ) {
+ } else if (sel.value.indexOf('鍥涜壊') >= 0) {
document.getElementById('PlateSpec').value = '770*1030';
document.getElementById('PMS_ChromaticNumber').value = '4';
- /* document.getElementById('CTPCount').value = '2';*/
+ if ($("#PSF_Typesetting").val() == "鎵g増") {
+ $("#CTPCount").val("8");
+ } else {
+ $("#CTPCount").val("4");
+ }
} else if (sel.value.indexOf('鍏壊') >= 0) {
document.getElementById('PlateSpec').value = '790*1030';
document.getElementById('PMS_ChromaticNumber').value = '4';
- /* document.getElementById('CTPCount').value = '2';*/
- } else if (sel.value.indexOf('榛戠櫧') >= 0 ) {
+ if ($("#PSF_Typesetting").val() == "鎵g増") {
+ $("#CTPCount").val("8");
+ } else {
+ $("#CTPCount").val("4");
+ }
+ } else if (sel.value.indexOf('榛戠櫧') >= 0) {
document.getElementById('PlateSpec').value = '760*920';
document.getElementById('PMS_ChromaticNumber').value = '1';
- /* document.getElementById('CTPCount').value = '2';*/
+ if ($("#PSF_Typesetting").val() == "鎵g増") {
+ $("#CTPCount").val("2");
+ } else {
+ $("#CTPCount").val("1");
+ }
} else if (sel.value.indexOf('杞浆') >= 0) {
document.getElementById('PlateSpec').value = '579*810';
document.getElementById('PMS_ChromaticNumber').value = '1';
- /* document.getElementById('CTPCount').value = '';*/
+ document.getElementById('CTPCount').value = '2';
+ } else {
+ document.getElementById('CTPCount').value = '';
}
+
+ if (sel.value.indexOf('杞浆') >= 0) {
+ //var select = document.getElementById("PSF_Typesetting");
+ //var option = select.options[0]; // index鏄淇敼鐨刼ption鐨勭储寮�
+ //option.text = "鎵g増";
+ //option.value = "鎵g増";
+
+ //var option1 = select.options[1]; // index鏄淇敼鐨刼ption鐨勭储寮�
+ //option1.text = "鍗曢潰";
+ //option1.value = "鍗曢潰";
+ // 鑾峰彇select鍏冪礌
+ var selectElement = document.getElementById('PSF_Typesetting');
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.innerHTML = '';
+
+ const newOptions = [
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+ // 4. 鎵归噺鏂板option鍒皊elect涓紙2绉嶆柟娉曪紝鎸夐渶閫夋嫨锛�
+ // 鏂规硶1锛氬惊鐜垱寤篛ption瀵硅薄锛堟爣鍑咲OM鎿嶄綔锛屾帹鑽愶紝鍏煎鎬ф渶濂斤級
+ newOptions.forEach(option => {
+ // 鍒涘缓option鍏冪礌锛歯ew Option(鏄剧ず鏂囨湰, 瀹為檯鍊�)
+ const opt = new Option(option.text, option.value);
+ // 灏唎ption娣诲姞鍒皊elect涓�
+ selectElement.add(opt);
+ });
+ } else {
+ //var select = document.getElementById("PSF_Typesetting");
+ //var option = select.options[0]; // index鏄淇敼鐨刼ption鐨勭储寮�
+ //option.text = "鎵g増";
+ //option.value = "鎵g増";
+
+ //var option1 = select.options[1]; // index鏄淇敼鐨刼ption鐨勭储寮�
+ //option1.text = "鍗曢潰";
+ //option1.value = "鍗曢潰";
+ // 鑾峰彇select鍏冪礌
+ var selectElement = document.getElementById('PSF_Typesetting');
+
+ // 娓呯┖鐜版湁鐨刼ption
+ selectElement.innerHTML = '';
+
+ const newOptions = [
+ { value: '鑷炕', text: '鑷炕' },
+ { value: '婊氱炕', text: '婊氱炕' },
+ { value: '鎵g増', text: '鎵g増' },
+ { value: '鍗曢潰', text: '鍗曢潰' }
+
+ ];
+
+ // 4. 鎵归噺鏂板option鍒皊elect涓紙2绉嶆柟娉曪紝鎸夐渶閫夋嫨锛�
+ // 鏂规硶1锛氬惊鐜垱寤篛ption瀵硅薄锛堟爣鍑咲OM鎿嶄綔锛屾帹鑽愶紝鍏煎鎬ф渶濂斤級
+ newOptions.forEach(option => {
+ // 鍒涘缓option鍏冪礌锛歯ew Option(鏄剧ず鏂囨湰, 瀹為檯鍊�)
+ const opt = new Option(option.text, option.value);
+ // 灏唎ption娣诲姞鍒皊elect涓�
+ selectElement.add(opt);
+ });
+ }
}
@@ -401,7 +605,7 @@
<select keepDefaultStyle="true" name="PSF_Typesetting" id="PSF_Typesetting" runat = "server" style="width:80px">
<option value="鑷炕">鑷炕</option>
<option value="婊氱炕">婊氱炕</option>
- <option value="鎵f澘">鎵f澘</option>
+ <option value="鎵g増">鎵g増</option>
<option value="鍗曢潰">鍗曢潰</option>
</select>
</td>
--
Gitblit v1.9.1