Commit 5272ac7328307a94a6ab2acfcf95583faea2acd7
1 parent
6184e77d
删除入库单及时刷新表格
Showing
1 changed file
with
10 additions
and
0 deletions
src/main/resources/templates/receipt/receiptHeader/receiptHeader.html
@@ -764,6 +764,11 @@ | @@ -764,6 +764,11 @@ | ||
764 | var url = $.common.isEmpty(id) ? detailRemoveUrl : detailRemoveUrl.replace("{id}", id); | 764 | var url = $.common.isEmpty(id) ? detailRemoveUrl : detailRemoveUrl.replace("{id}", id); |
765 | var data = { "ids": id }; | 765 | var data = { "ids": id }; |
766 | $.operate.submit(url, "post", "json", data); | 766 | $.operate.submit(url, "post", "json", data); |
767 | + setTimeout(gotoindex,1000);//延时3秒执行页面跳转方法 | ||
768 | + function gotoindex() { | ||
769 | + loadDetail(); | ||
770 | + } | ||
771 | + | ||
767 | }); | 772 | }); |
768 | } | 773 | } |
769 | 774 | ||
@@ -782,6 +787,11 @@ | @@ -782,6 +787,11 @@ | ||
782 | } | 787 | } |
783 | var data = { "ids": ids.substring(0, ids.length-1) }; | 788 | var data = { "ids": ids.substring(0, ids.length-1) }; |
784 | $.operate.submit(url, "post", "json", data); | 789 | $.operate.submit(url, "post", "json", data); |
790 | + setTimeout(gotoindex,1000);//延时3秒执行页面跳转方法 | ||
791 | + function gotoindex() { | ||
792 | + loadDetail(); | ||
793 | + | ||
794 | + } | ||
785 | }); | 795 | }); |
786 | } | 796 | } |
787 | 797 |