From 1280aa7ceaeffcdcd52e3c0fd45c86f608f9f0cf Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 05 八月 2025 09:02:10 +0800
Subject: [PATCH] 20250804 供应商,新增采购,过滤供应商

---
 CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementADD.aspx |   60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 57 insertions(+), 3 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementADD.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementADD.aspx
index 11eb01e..cd9e28d 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementADD.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementADD.aspx
@@ -14,7 +14,7 @@
                 渚涘簲鍟嗭細
             </td>
             <td>
-                <select id="selSuppliers" runat="server" class=" w120px" datatextfield="Name" keepdefaultstyle="true" datavaluefield="Keyid" msg="璇烽�夋嫨渚涘簲鍟�">
+                <select id="selSuppliers" runat="server" class=" w120px" datatextfield="Name" keepdefaultstyle="true" datavaluefield="Keyid" msg="璇烽�夋嫨渚涘簲鍟�"  selinputhtml="True" >
                 </select>
             </td>
             <td class="ali03  w100px">
@@ -72,7 +72,7 @@
                 鍗曚环(鍏�)锛�
             </td>
             <td>
-                <input type="text" runat="server" class="req float w120px" id="txtPrice"  msg="璇峰~鍐欏崟浠�"/>
+                <input type="text" runat="server" class=" float w120px" id="txtPrice"  msg="璇峰~鍐欏崟浠�"/>
             </td>
             
         </tr>
@@ -89,11 +89,19 @@
                 閲戦(鍏�)锛�
             </td>
             <td>
-                <input type="text" runat="server" class="req float w120px" id="txtAllMoney"  msg="璇峰~鍐欓噾棰�"/>
+                <input type="text" runat="server" class=" float w120px" id="txtAllMoney"  msg="璇峰~鍐欓噾棰�"/>
             </td>
             <asp:Panel ID="tanDiv1" runat="server">
             </asp:Panel>
         </tr>
+         <tr>
+                    <td class="ali03">
+                        澶囨敞锛�
+                    </td>
+                    <td colspan="5">
+                        <textarea id="txtRemark" runat="server" style="width: 460px; height: 40px;"></textarea>
+                    </td>
+                </tr>
         <tr>
             <td colspan="6" align="center">
                 <asp:Button runat="server" Text="鎻愪氦" ID="btn_config" OnClick="btn_config_Click" />
@@ -107,7 +115,10 @@
                 $(this).html($(this).html().replace(/[.]/g, "&nbsp;&nbsp;"));
             });
 
+
             GetAllPrice();
+
+            SelectAddSearch();
 
             $("#txtPrice").blur(function () {
                 GetAllPrice();
@@ -177,6 +188,49 @@
                 }
             }
         });
+
+
+        //涓篠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);
+                });
+            });
+        }
     </script>
 </body>
 </html>

--
Gitblit v1.9.1