From 64bbcaefc8edc5519c4ff41b71a4a485a20daa8c Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 03 九月 2025 09:29:51 +0800 Subject: [PATCH] 采购付款申请增加填写申请主题 --- CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx | 78 +++++++++++++++++++++++++++++++++++++- 1 files changed, 75 insertions(+), 3 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx index d4d37c9..0648178 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx +++ b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx @@ -8,7 +8,7 @@ <script type="text/javascript"> //娣诲姞 function addModel() { - dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid='0'", Title: "鏂板閲囪喘", Width: 650, Height: 250 }); + dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid='0'", Title: "鏂板閲囪喘", Width: 800, Height: 250 }); } //鎵撳嵃閲囪喘淇℃伅 @@ -23,7 +23,7 @@ //淇敼 function onEdit(keyid) { - dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid=" + keyid, Title: "淇敼閲囪喘淇℃伅", Width: 650, Height: 250 }); + dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid=" + keyid, Title: "淇敼閲囪喘淇℃伅", Width: 800, Height: 250 }); } //鍒犻櫎 @@ -34,6 +34,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="w122px"> </select> </td> <td class="ali03 "> @@ -230,6 +277,9 @@ <th> 鍗曚环 </th> + <th> + 鍚ㄤ环 + </th> <th> 鏁伴噺 </th> @@ -245,8 +295,14 @@ <th> 瀛樻斁浠撳簱 </th> + <th> + 澶囨敞 + </th> <th> 閲囪喘鏃堕棿 + </th> + <th> + 閲囪喘浜� </th> <th width="150"> 鎿嶄綔 @@ -286,6 +342,9 @@ <td> <%#Eval("Price", "{0:F2}")%> </td> + <td> + <%#Eval("tanPrice", "{0:F2}")%> + </td> <td> <%#Eval("Quantity", "{0:F0}")%> </td> @@ -299,10 +358,16 @@ <%#Eval("PurchaseStatus")%> </td> <td> + <%#Eval("WarehouseName")%> + </td> + <td> <%#Eval("Remark")%> </td> <td> <%#Eval("PurchaseTime")%> + </td> + <td> + <%#Eval("Caigouren")%> </td> <td class="Operate"> <span menu_member_case_id="case_onView" menu_member_case_name="鏌ョ湅" onclick="onView(<%#Eval("Keyid")%>)">鏌ョ湅</span> <span menu_member_case_id="case_onEdit" menu_member_case_name="淇敼" onclick="onEdit('<%#Eval("Keyid")%>')">淇敼</span> <span menu_member_case_id="case_onDelete" menu_member_case_name="鍒犻櫎" onclick="onDelete(<%#Eval("Keyid")%>)">鍒犻櫎</span> @@ -315,6 +380,13 @@ </asp:Repeater> <div id="page"> <uc:UCPager ID="UCPager1" runat="server" /> + <select keepdefaultstyle='true' id='ddlPageSize' runat="server" style="float:right;margin-top:10px;" > + <option value="25">25鏉�/椤�</option> + <option value="50">50鏉�/椤�</option> + <option value="100">100鏉�/椤�</option> + <option value="200">200鏉�/椤�</option> + </select> + <div style="height:100px;"></div> </div> </div> </div> -- Gitblit v1.9.1