From b06233aa71b70f7a30ff382ae1ba19c29b134d7c Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期五, 28 十一月 2025 15:41:51 +0800
Subject: [PATCH] #库存调整完成
---
src/main/webapp/static/js/adjustOrder/adjustOrder.js | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/static/js/adjustOrder/adjustOrder.js b/src/main/webapp/static/js/adjustOrder/adjustOrder.js
index cff3f3e..70ba874 100644
--- a/src/main/webapp/static/js/adjustOrder/adjustOrder.js
+++ b/src/main/webapp/static/js/adjustOrder/adjustOrder.js
@@ -95,7 +95,7 @@
if (layEvent === 'edit') {
showEditModel(data);
}else if (layEvent === 'adjust') {
- pakoutPreview(data.id);
+ adjustComplete(data.id);
}else if (layEvent === 'export') {
export1(data.id);
}else if (layEvent === 'del') {
@@ -451,10 +451,10 @@
}
- function pakoutPreview(id) {
+ function adjustComplete(id) {
let loadIndex = layer.load(2);
$.ajax({
- url: baseUrl + "/checkOrder/preview/auth",
+ url: baseUrl + "/adjustOrder/complete/auth",
headers: {'token': localStorage.getItem('token')},
data: {
orderId: id
@@ -462,10 +462,13 @@
method: 'POST',
success: function (res) {
if (res.code === 200){
-
+ layer.close(loadIndex);
+ layer.msg(res.msg, {icon: 1});
+ insTb.reload({where: null});
} else if (res.code === 403){
top.location.href = baseUrl+"/";
} else {
+ layer.close(loadIndex);
layer.msg(res.msg, {icon: 2})
}
}
--
Gitblit v1.9.1