From 176e74cbf392ded987a200845c423b965e05c4f3 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 28 八月 2025 08:50:51 +0800
Subject: [PATCH] 采购增加采购人
---
CY_ECommercePlatform/CY.WebForm/Pages/procurement/OutOfStorageEdit.aspx | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 52 insertions(+), 1 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/OutOfStorageEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/OutOfStorageEdit.aspx
index b5f9268..4f394f1 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/OutOfStorageEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/OutOfStorageEdit.aspx
@@ -43,7 +43,7 @@
渚涘簲鍟嗭細
</td>
<td>
- <select id="selSuppliers" runat="server" class="Sreq" datatextfield="Name" keepdefaultstyle="true" datavaluefield="Keyid" msg="渚涘簲鍟嗕笉鑳戒负绌�">
+ <select id="selSuppliers" runat="server" datatextfield="Name" keepdefaultstyle="true" datavaluefield="Keyid" msg="渚涘簲鍟嗕笉鑳戒负绌�" selinputhtml="True" class="Sreq w122px">
</select>
</td>
<td class="ali03 ">
@@ -106,6 +106,50 @@
</table>
</form>
<script type="text/javascript">
+
+
+ //涓篠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);
+ });
+ });
+ }
+
$(function () {
$("#dwCommity option").each(function (ii, vv) {
$(this).html($(this).html().replace(/[.]/g, " "));
@@ -175,7 +219,14 @@
$("#txtAllMoney").val(eda);
}
}
+
+
+ SelectAddSearch();
});
+
+
+
+
</script>
</body>
</html>
--
Gitblit v1.9.1