From a001acc104e149c73f375638e1ba8224d0d28462 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 16 七月 2025 11:24:49 +0800 Subject: [PATCH] 采购数据 货品名称和类型反了,调下顺序 完成 --- CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx | 61 ++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 1 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx index d4d37c9..437e783 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx +++ b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx @@ -35,6 +35,48 @@ + //涓篠elect鏂板杩囨护鍔熻兘 + function SelectAddSearch() { + $("select[SelInputHtml='True']").each(function (i, v) { + $(this).unbind("blur"); + var old = $(this).html(); + var oldObject = $(this).clone(); + var sign = "selectS" + i; + $(v).attr("sign", sign); + + var inputClass = "input_" + sign; + var html = "<span style='margin-left:10px'>杩囨护锛�</span><input type='text' class='" + inputClass + "' style='width:80px;height:18px;line-height:18px;'/>";//<span onclick='showCustomer()' style=\"padding-left:10px;\" class=\"a_under\">鏂板渚涘簲鍟�</span> + $(v).after(html); + $("." + inputClass).blur(function () { + var nowval = $(this).val().trim(); + var output = ""; + if (nowval == "" || nowval == null) { + output = old; + } else { + output += "<option value=''>璇烽�夋嫨</option>"; + var valueArr = new Array(); + oldObject.find("option").each(function (ii, vv) { + + var value = $.trim($(vv).attr("value")); + var text = $.trim($(vv).text()); + + if (text.indexOf(nowval) >= 0) + valueArr.push(value + "|||" + text); + }); + for (var ss in valueArr) { + var s = valueArr[ss]; + if (s.split("|||").length == 2) { + var value1 = s.split("|||")[0]; + var text1 = s.split("|||")[1]; + output += "<option value='" + value1 + "'>" + text1 + "</option>"; + } + } + } + $(v).html(output); + }); + }); + } + /* 纭鎵归噺寮�绁ㄧ敵璇� */ @@ -100,6 +142,11 @@ var url = "/Pages/business/Caigoufukuanshenqing.aspx?id=" + orderId + "&&orderno=" + orderno; top.Dialog.open({ URL: url, Title: "閲囪喘浠樻鐢宠", Height: 600, Width: 580 }); } + $(function () { + + + SelectAddSearch(); + }); </script> </head> <body> @@ -118,7 +165,7 @@ 渚涘簲鍟嗭細 </td> <td> - <select id="selSuppliers" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true' class="Sreq w122px"> + <select id="selSuppliers" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true' selinputhtml="True" class="Sreq w122px"> </select> </td> <td class="ali03 "> @@ -230,6 +277,9 @@ <th> 鍗曚环 </th> + <th> + 鍚ㄤ环 + </th> <th> 鏁伴噺 </th> @@ -244,6 +294,9 @@ </th> <th> 瀛樻斁浠撳簱 + </th> + <th> + 澶囨敞 </th> <th> 閲囪喘鏃堕棿 @@ -286,6 +339,9 @@ <td> <%#Eval("Price", "{0:F2}")%> </td> + <td> + <%#Eval("tanPrice", "{0:F2}")%> + </td> <td> <%#Eval("Quantity", "{0:F0}")%> </td> @@ -299,6 +355,9 @@ <%#Eval("PurchaseStatus")%> </td> <td> + <%#Eval("WarehouseName")%> + </td> + <td> <%#Eval("Remark")%> </td> <td> -- Gitblit v1.9.1