管道请购单列表,导出及发送报价单去除不采购物品,添加查看请购单

This commit is contained in:
suncz
2024-05-31 12:58:24 +08:00
parent 0fff58c990
commit 7faf64dba2
3 changed files with 31 additions and 11 deletions

View File

@@ -27,6 +27,9 @@
<!-- </shiro:hasPermission>-->
<a class="btn" href="javascript:exportExcel('/admin/purchaseApplyOrder/export.html')">导出</a>
<th:block th:if="${!supplier}">
<a class="btn "
onclick="checkAll()">批量查看请购单
</a>
<a class="btn activeBtn "
onclick="exportAll()">批量导出报价单
</a>
@@ -279,6 +282,20 @@
});
}
function checkAll() {
var selectedIds = $(".tableWrap").selectedIds();
if (selectedIds.length < 1) {
Dialog.error("至少勾选1项");
return
}
var ids = ""
for (var i = 0; i < selectedIds.length; i++) {
ids += Number(selectedIds[i]) + ","
}
ids.substring(0, ids.length - 1)
window.open("/admin/purchaseApplyOrder/exportSupplierSingleAll.html?ids=" + ids + "&type=check")
}
function exportAll() {
var selectedIds = $(".tableWrap").selectedIds();
if (selectedIds.length < 1) {
@@ -290,7 +307,7 @@
ids += Number(selectedIds[i]) + ","
}
ids.substring(0, ids.length - 1)
window.open("/admin/purchaseApplyOrder/exportSupplierSingleAll.html?ids=" + ids)
window.open("/admin/purchaseApplyOrder/exportSupplierSingleAll.html?ids=" + ids + "&type=export")
}
function sendAll() {
@@ -307,7 +324,7 @@
Dialog.waiting("发送中,请稍等");
$.ajax({
type: "POST",
url: "purchaseApplyOrder/sendSupplierAll.html",
url: "purchaseApplyOrder/sendSupplierAll.html?type=export",
data: {
ids: ids
},