From d1b1d6703fda926f5b80682d64c26833338a1082 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 05 三月 2026 15:11:42 +0800
Subject: [PATCH] 20260305 施工单修改,报纸修改 20260305 送货管理默认显示逾期和明天
---
CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx | 165 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 164 insertions(+), 1 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgMergerOrderEdit.aspx
index a7a6d59..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>
@@ -154,8 +228,18 @@
$("#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 || $("#selPMS_Machine").val().indexOf('榛戠櫧') >= 0) {
+ if ( $("#selPMS_Machine").val().indexOf('榛戠櫧') >= 0) {
if ($("#PSF_Typesetting").val() == "鎵g増") {
$("#CTPCount").val("2");
} else {
@@ -173,6 +257,23 @@
});
+
+
+
+ $("#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");
+ }
+ }
+
+
+
+ });
+
/*
浜ゆ槗瀹㈡埛閫変腑鍊煎彂鐢熸敼鍙�
@@ -222,6 +323,68 @@
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);
+ });
+ }
}
--
Gitblit v1.9.1