机具领料逻辑修改

This commit is contained in:
liang.chao 2026-02-02 15:57:30 +08:00
parent 06b3398dd7
commit b75dd3ff91
1 changed files with 12 additions and 2 deletions

View File

@ -723,14 +723,24 @@ function templateDownload() {
*/
function importData() {
// 1. 校验领料时间(与其他操作逻辑保持一致)
if (applyDate !== today) {
/* if (applyDate !== today) {
layer.alert('领料时间不是今天,不允许进行批量导入操作', {
skin: 'layui-layer-molv',
closeBtn: 0
});
return;
}
}*/
var hasConfirmed = currentResults.some(function(item) {
return item.isSure == 1 || item.isSure == "1";
});
if (hasConfirmed) {
layer.alert('存在已确认的领料记录,不允许批量导入!', {
skin: 'layui-layer-molv',
closeBtn: 0
});
return; // 阻止导入
}
// 2. 弹出文件选择层使用layui/layer实现美观的文件上传界面
layer.open({
type: 1,