From 01e44ad191f1a9756640d0baec00987009281ecf Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期二, 20 八月 2024 13:44:27 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/pakStore/stockOut.js | 43 ++++++++++++++++++++++++-------------------
1 files changed, 24 insertions(+), 19 deletions(-)
diff --git a/src/main/webapp/static/js/pakStore/stockOut.js b/src/main/webapp/static/js/pakStore/stockOut.js
index dc21d99..b009a7b 100644
--- a/src/main/webapp/static/js/pakStore/stockOut.js
+++ b/src/main/webapp/static/js/pakStore/stockOut.js
@@ -1,9 +1,10 @@
var locDetlLayerIdx;
var locDetlData = [];
+var admin;
function getCol() {
var cols = [
- {field: 'count', align: 'center',title: '鍑哄簱鏁伴噺', edit:'text', width: 130, style:'color: blue;font-weight: bold'}
- ,{field: 'anfme', align: 'center',title: '搴撳瓨鏁伴噺'}
+ // {field: 'count', align: 'center',title: '鍑哄簱鏁伴噺', edit:'text', width: 130, style:'color: blue;font-weight: bold'},
+ {field: 'anfme', align: 'center',title: '鏁伴噺'}
,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
];
arrRemove(detlCols, 'field', 'anfme');
@@ -19,7 +20,7 @@
var $ = layui.jquery;
var layer = layui.layer;
var form = layui.form;
- var admin = layui.admin;
+ admin = layui.admin;
tableIns = table.render({
elem: '#chooseData',
@@ -28,6 +29,7 @@
even: true,
toolbar: '#toolbar',
cellMinWidth: 50,
+ limit: 500,
cols: [getCol()],
done: function(res, curr, count) {
limit();
@@ -40,22 +42,22 @@
let index = obj.tr.attr("data-index");
let data = locDetlData[index];
let modify = true;
- if (obj.field === 'count'){
- let vle = Number(obj.value);
- if (isNaN(vle)) {
- layer.msg("璇疯緭鍏ユ暟瀛�", {icon: 2});
- modify = false;
- } else {
- if (vle <= 0) {
- layer.msg("鏁伴噺蹇呴』澶т簬闆�", {icon: 2});
- modify = false;
- }
- if (vle > Number(data.anfme)) {
- layer.msg("鍑哄簱鏁伴噺涓嶅緱澶т簬搴撳瓨鏁伴噺", {icon: 2});
- modify = false;
- }
- }
- }
+ // if (obj.field === 'count'){
+ // let vle = Number(obj.value);
+ // if (isNaN(vle)) {
+ // layer.msg("璇疯緭鍏ユ暟瀛�", {icon: 2});
+ // modify = false;
+ // } else {
+ // if (vle <= 0) {
+ // layer.msg("鏁伴噺蹇呴』澶т簬闆�", {icon: 2});
+ // modify = false;
+ // }
+ // if (vle > Number(data.anfme)) {
+ // layer.msg("鍑哄簱鏁伴噺涓嶅緱澶т簬搴撳瓨鏁伴噺", {icon: 2});
+ // modify = false;
+ // }
+ // }
+ // }
if (modify) {
data[obj.field] = obj.value;
}
@@ -137,6 +139,7 @@
$(document).on('click','#mat-query', function () {
+ let loadIndex = layer.msg('璇锋眰涓�...', {icon: 16, shade: 0.01, time: false});
locDetlLayerIdx = layer.open({
type: 2,
title: false,
@@ -146,6 +149,7 @@
shadeClose: true,
content: 'locDetlQuery.html',
success: function(layero, index){
+ layer.close(loadIndex);
}
});
})
@@ -172,3 +176,4 @@
tableIns.reload({data: locDetlData});
layer.close(locDetlLayerIdx);
}
+
--
Gitblit v1.9.1