From a7e05ebe00fdcb649c012e5afc4a42a8d631e824 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 02 四月 2025 08:38:24 +0800 Subject: [PATCH] 删除客户管理查询条件中的“客户编号” 完成 新增订单---黑白印件 的后道工序最右边增加一个“口 竖式”,同前面套号、压痕一样,默认不勾选,是竖式的业务经理自己下单时勾选 完成提交外协付款申请时,增加上传审批证明的上传图片功能,可以添加多张图片;查询列表中增加“付款状态:全部、已付款、未付款”查询条件,默认全部;“完工状态”改为默认未完工 完成请示批复----付款申请 中也要向上面的需求一样,增加上传审批证明的上传图片功能,可以添加多张图片 完成在“请示批复”中进行“批复”操作的时候要能查看上传的审批图片 完成包装要求”要显示在打印的订单中 完成包装要求”要显示在打印的订单中 完成收据联单的新增订单中,纸张选无碳纸时,不显示“品牌”、“克重”,在联数的后面增加颜色选择:“颜色:上白下红”(匹配联数)订单管理中的“订单状态”删除,删除后新增两个状态:“完工状态:全部、未完工、已完工”和“送货状态:全部、已送货、未送货” 完成请示批复中默认“未批复” 完成请示批复中默认“未批复” 完成 --- CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanshenqing.aspx | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 114 insertions(+), 5 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanshenqing.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanshenqing.aspx index 724fd36..7a4456a 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanshenqing.aspx +++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/Waixiefukuanshenqing.aspx @@ -12,25 +12,61 @@ <tr> <td class="ali03">鏀舵鍗曚綅锛�</td> - <td> <select keepdefaultstyle='true' id='selSuppliers' runat="server" datatextfield='Name' datavaluefield='Keyid' onchange='custormerChange(this)' class='Sreq' sign="" selinputhtml="True" style=" width:183px;" > - </select></td> + <td> <%--<select keepdefaultstyle='true' id='selSuppliers' runat="server" datatextfield='Name' datavaluefield='Keyid' onchange='custormerChange(this)' class='Sreq' sign="" selinputhtml="True" style=" width:183px;" > + </select>--%> + <input id='txtSupplierName' runat="server" maxlength='50' placeholder="璇疯緭鍏ユ敹娆惧崟浣�" style="width:200px;" readonly="readonly" /> + <input type="hidden" id='selSuppliersss' runat="server" /> + </td> </tr> <tr> <td class="ali03">閲戦锛�</td> - <td> <input id='txtZengjianmoney' runat="server" maxlength='18' onblur="validateAmount(event)" placeholder="璇疯緭鍏ラ噾棰�" /></td> + <td> <input id='txtZengjianmoney' runat="server" maxlength='18' onblur="validateAmount(event)" placeholder="璇疯緭鍏ラ噾棰�" readonly="readonly" /></td> + </tr> + <tr> + <td class="ali03">鎴峰悕锛�</td> + <td> <input id='txtHuming' runat="server" maxlength='50' placeholder="璇疯緭鍏ユ埛鍚�" style="width:200px;" /></td> </tr> <tr> <td class="ali03">寮�鎴疯锛�</td> - <td> <input id='txtBank' runat="server" maxlength='50' placeholder="璇疯緭鍏ュ紑鎴疯" /></td> + <td> <input id='txtBank' runat="server" maxlength='50' placeholder="璇疯緭鍏ュ紑鎴疯" style="width:200px;" /></td> </tr> <tr> <td class="ali03">璐﹀彿锛�</td> - <td> <input id='txtAccountID' runat="server" maxlength='50' placeholder="璇疯緭鍏ヨ处鍙�" /></td> + <td> <input id='txtAccountID' runat="server" maxlength='50' placeholder="璇疯緭鍏ヨ处鍙�" style="width:200px;" /></td> </tr> <tr> <td class="ali03">璁㈠崟锛�</td> <td> <span id="ordernos" runat="server" ></span></td> </tr> + <tr style="display:none;"> + <td class="ali03">璁㈠崟閲戦锛�</td> + <td> <span id="ordernjine" runat="server" ></span></td> + </tr> + <tr> + <td class="ali03 w100px"> + 瀹℃壒璇佹槑锛� + </td> + <td> + <input type="file" id="file1" name="__hetongFile" keepdefaultstyle="true" runat="server" text="璇烽�夋嫨鏂囦欢" /> + <input type="button" value="涓婁紶鍥剧墖" onclick="checkSelFile();" /> + </td> + + </tr> + <tr class="AddTab" style="display:none;" > + <td class="ali03 w100px"> + + </td> + <td> + <input type="hidden" name="HideKeyidFapiao" value="0" /> + <input type="hidden" name="HideAttachmentFapiao" value="" /> + <a title="鏌ョ湅鍥剧墖" name="HrefAttachmentFapiao" target="view_window" href="0"> + 鍥剧墖 + </a> + <a name="shanchuAttachmentFapiao" href="#" onclick="deletefujian(this);" > + X + </a> + </td> + </tr> <tr> <td colspan="2"></td> </tr> @@ -62,9 +98,16 @@ if (jobj != '-2') { document.getElementById('txtBank').value = jobj.Bank; document.getElementById('txtAccountID').value = jobj.AccountID; + if (jobj.Huming == "") { + document.getElementById('txtHuming').value = jobj.Name; + } else { + document.getElementById('txtHuming').value = jobj.Huming; + } + } else { document.getElementById('txtBank').value = ""; document.getElementById('txtAccountID').value = ""; + document.getElementById('txtHuming').value = ""; } @@ -136,5 +179,71 @@ alert('璇疯緭鍏ユ湁鏁堢殑姝h礋閲戦锛屼緥濡� 45.67'); } } + + + + //鏌ョ湅 + function checkSelFile() { + + var oFile = document.getElementById('file1'); + if (oFile.value == "") { + alertMsg('娌℃湁閫夋嫨鏂囦欢'); + return; + + } + + + + var formData = new FormData(); + formData.append('file', oFile.files[0]); // this.files[0]鏄枃浠跺璞� + + + $.ajax({ + url: 'https://yocaisim.51zhengcai.com/api/UpFile/UpdateFile', // 鏇挎崲涓轰綘鐨勬湇鍔″櫒绔偣 + type: 'POST', + data: formData, + contentType: false, + processData: false, + async: false, // 璁剧疆涓哄悓姝� + success: function (response) { + console.log('File uploaded successfully:', response); + if (response.code == 1) { + + $(".AddTab").last().after($(".AddTab").last().clone(true)); + $(".AddTab").last().show(); + $("input[name='HideKeyidFapiao']").last().val(""); + $("input[name='HideAttachmentFapiao']").last().val(response.data); + $('a[name="HrefAttachmentFapiao"]').last().attr("href", response.data); + $('a[name="HrefAttachmentFapiao"]').last().html('<img src="' + response.data+'" width="20" height="20" />'); + alertMsg('涓婁紶鎴愬姛'); + } else { + alertMsg('涓婁紶澶辫触'); + } + + + }, + error: function (xhr, status, error) { + console.error('File upload failed:', status, error); + alertMsg('涓婁紶澶辫触'); + } + }); + + + + + + + + + } + + + + + function deletefujian(obj) { + if (confirm("鏄惁鍒犻櫎閫変腑鏁版嵁锛�")) { + $(obj).parent().parent().remove() + } + } </script> </html> -- Gitblit v1.9.1