From df940b7e193dafde6651aecebb2e27c3eea1559a Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期六, 07 二月 2026 09:36:35 +0800
Subject: [PATCH] 机加工共用许可,更新许可定时任务错开
---
src/main/webapp/static/js/pakStore/pakStore.js | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/main/webapp/static/js/pakStore/pakStore.js b/src/main/webapp/static/js/pakStore/pakStore.js
index dd0f6cb..3f5f9ec 100644
--- a/src/main/webapp/static/js/pakStore/pakStore.js
+++ b/src/main/webapp/static/js/pakStore/pakStore.js
@@ -4,7 +4,7 @@
function getCol() {
var cols = [
{fixed: 'left', field: 'anfme', title: '鏁伴噺锛堝繀濉級', align: 'center', edit:'text', width: 120, style:'color: blue;font-weight: bold'},
- {field: 'batch', title: '搴忓垪鐮侊紙閫夊~锛�', align: 'center', edit:'text', width: 200, style:'color: block;font-weight: bold'}
+ {field: 'batch', title: '鎵瑰彿锛堥�夊~锛�', align: 'center', edit:'text', width: 200, style:'color: block;font-weight: bold'}
];
cols.push.apply(cols, matCols);
cols.push({fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width: 80})
@@ -79,16 +79,22 @@
return;
}
}
- let devpNo = $('#putSiteSelect').val();
+ let devpNo = $('#barcode').val();
if (isEmpty(devpNo)) {
- layer.msg("璇烽�夋嫨鍏ュ簱绔�", {icon: 2});
+ layer.msg("璇疯緭鍏ユ枡绠辩爜", {icon: 2});
return;
}
+ // 8 浣嶇函鏁板瓧鏍¢獙
+ if (!/^\d{8}$/.test(devpNo)) {
+ layer.msg("鏂欑鐮佸繀椤绘槸 8 浣嶇函鏁板瓧", { icon: 2 });
+ return;
+ }
+ console.log(matCodeData)
$.ajax({
url: baseUrl+"/full/store/put/start",
headers: {'token': localStorage.getItem('token')},
data: JSON.stringify({
- devpNo: Number(devpNo),
+ barcode: devpNo,
list: matCodeData
}),
contentType:'application/json;charset=UTF-8',
@@ -96,8 +102,9 @@
async: false,
success: function (res) {
if (res.code === 200){
- layer.msg("鍏ュ簱鍚姩鎴愬姛锛岀洰鏍囧簱浣嶏細" + res.data, {icon: 1});
+ layer.msg(res.msg, {icon: 1});
matCodeData = [];
+ $('#barcode').val("");
$('#focusMatByMat').val("");
tableIns.reload({data: matCodeData,done:function (res) { limit(); getInBound();}});
} else if (res.code === 403){
--
Gitblit v1.9.1