From 958883d6f4dac68fcbbccadb4e7f87e963eee0e8 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期三, 09 七月 2025 12:32:40 +0800
Subject: [PATCH] 新增盘点提取库存后可以删除明细
---
zy-asrs-wms/src/main/webapp/static/js/mat/mat.js | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/zy-asrs-wms/src/main/webapp/static/js/mat/mat.js b/zy-asrs-wms/src/main/webapp/static/js/mat/mat.js
index f40461f..f47f21b 100644
--- a/zy-asrs-wms/src/main/webapp/static/js/mat/mat.js
+++ b/zy-asrs-wms/src/main/webapp/static/js/mat/mat.js
@@ -52,7 +52,7 @@
url: baseUrl+'/mat/page/auth',
page: true,
limit: 16,
- limits: [16, 30, 50, 100, 200, 500],
+ limits: [16, 30, 50, 100, 200, 500,1000,2000,10000,100000],
toolbar: '#toolbar',
cellMinWidth: 50,
height: 'full-105',
@@ -234,6 +234,36 @@
case 'edit':
showEditModel(data)
break;
+ case'sync':
+ case 'sync':
+ layer.confirm('纭鍚屾搴撳瓨锛�', function () {
+ notice.msg('姝e湪鍚屾搴撳瓨......', {icon: 4}); // 鍔犺浇鎻愮ず
+
+ $.ajax({
+ url: baseUrl + "/mat/sync",
+ method: 'POST',
+ contentType: 'application/json', // 姝g‘鐨凜ontent-Type浣嶇疆
+ headers: {
+ 'token': localStorage.getItem('token')
+ },
+ data: JSON.stringify(data),
+ success: function (res) {
+ notice.destroy(); // 绉婚櫎鈥滄鍦ㄥ悓姝モ�濇彁绀�
+
+ if (res.code === 200) {
+ layer.msg('鍚屾鎴愬姛 鉁�', {icon: 1}); // 鉁� 鎴愬姛鎻愮ず
+ $(".layui-laypage-btn")[0].click(); // 瑙﹀彂琛ㄦ牸鍒锋柊
+ } else {
+ layer.msg(res.msg || '鍚屾澶辫触 鉂�', {icon: 2}); // 鉂� 澶辫触鎻愮ず
+ }
+ },
+ error: function (xhr) {
+ notice.destroy();
+ layer.msg('璇锋眰澶辫触锛�' + (xhr.responseText || '鏈煡閿欒'), {icon: 2});
+ }
+ });
+ });
+ break;
}
});
--
Gitblit v1.9.1