From a0b3492010949e0d044892b9bb6456b51ae0d458 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期日, 26 一月 2025 12:14:19 +0800
Subject: [PATCH] 从“专版工单”发起生成的“纸张采购”中增加显示“印件名称”
---
CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx | 69 +++++++++++++++++++++++++++++++---
1 files changed, 63 insertions(+), 6 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
index a84ccae..cc42ebc 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/AgSpecialOrderEdit.aspx
@@ -369,7 +369,7 @@
<td style="display:none;">
鐗堟潗绫诲瀷
</td>
- <td colspan="2">
+ <td colspan="2" class="lb lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' >
瑙勬牸
</td>
<td id="lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' class="lb lbCTPCount" colspan="3">
@@ -395,7 +395,7 @@
<label class="Btnb CangKubtn_o" style="margin-left: 10px;">
<input type="button" value_waerid="<%#Container.ItemIndex + 1%>" class="Btn FromWarehouseByBanCai" value="杩炴帴浠撳簱" id="BtnStorePlate" /></label><input type="hidden" value_ppwaerid="<%#Container.ItemIndex + 1%>" name="PSF_PaperId2" />
</td>
- <td colspan="2" >
+ <td colspan="2" class="lb lbCTPCount" value_ppwaerid='<%#Container.ItemIndex + 1%>' >
<div class="xialapp" style="margin-left:32%;">
<input type="text" value_ppwaerid="<%#Container.ItemIndex + 1%>" class="txt CTPSpecName " name="CTPSpecName" id="PlateSpec" value="<%#Eval("PSF_CTPSpecType")%>" />
<div class="xialapbp" >
@@ -901,7 +901,7 @@
$("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
$(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
$("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
- $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
+ $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("870");
}
else if ($(this).val().indexOf('杞浆') >= 0) {
$("select[name='PSF_PrintedColorPositive'][value_selspec='" + value_SelWaerId + "']").val("鍗曡壊");
@@ -974,9 +974,66 @@
$("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("395*460");
- $("select[name='PSF_OpenSpecifications'][value_selspec='" + value_SelWaerId + "']").val("4寮�");
+ $("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 + "']").show();
+
+ if ($("#spanOrderPrintDemand").html() != "") {
+ var sss = $("#spanOrderPrintDemand").html().split('锛�');
+ if (sss != null) {
+
+ for (var i = 0; i < sss.length; i++) {
+ var sfdsdfdf = sss[i].split('锛�');
+
+
+
+
+ if (sfdsdfdf[0].indexOf('(') >= 0 && sfdsdfdf[0].indexOf(')') >= 0) {
+
+
+ // 鍋囪瑕佹埅鍙栫殑瀛楃涓蹭负str锛屽紑濮嬪瓧绗︿覆涓簊tart锛岀粨鏉熷瓧绗︿覆涓篹nd
+ var startIndex = sfdsdfdf[0].indexOf('(') + 1;
+ var endIndex = sfdsdfdf[0].indexOf(')');
+ var substr = sfdsdfdf[0].slice(startIndex, endIndex);
+
+
+ var ssssaaa = substr;
+
+ 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", ""));
+ } 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", ""));
+ }
+
+
+
+ } 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", ""));
+ } 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", ""));
+ }
+ }
+
+ }
+ }
+ }
+
$("p[name='PSF_OpenSpecificationsspan'][value_selspecspan='" + value_SelWaerId + "']").show();
$("p[name='PSF_OpenWidthspan'][value_openwidthspan='" + value_SelWaerId + "']").show();
$("input[name='PSF_OpenLength'][value_ppwaerid='" + value_SelWaerId + "']").show();
@@ -1186,7 +1243,7 @@
$("select[name='PSF_Typesettinghide'][value_ppwaerid='" + value_SelWaerId + "']").hide();
$(".lbCTPCount[value_ppwaerid='" + value_SelWaerId + "']").show();
$("input[name='CTPCount'][value_ppwaerid='" + value_SelWaerId + "']").show();
- $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("755");
+ $("input[name='PSF_OpenWidthName'][value_ppwaerid='" + value_SelWaerId + "']").val("870");
}
else if ($(vv).val().indexOf('杞浆') >= 0) {
@@ -1372,7 +1429,7 @@
//绾稿紶閲囪喘
function zhizhangcaigou() {
- top.Dialog.open({ URL: "/Pages/procurement/ProcurementADD.aspx", Title: "绾稿紶閲囪喘", Width: 1100, Height: 700 });
+ top.Dialog.open({ URL: "/Pages/procurement/ProcurementADD.aspx?orderIdstrrrr=<%=orderIdstrrrr %>", Title: "绾稿紶閲囪喘", Width: 1100, Height: 700 });
}
</script>
--
Gitblit v1.9.1