From dfdd7980577e12e32fc9571f46f49385ac5edcdd Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期五, 14 二月 2025 12:51:29 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/matTurn/matTurn.js | 34 ++++------------------------------
1 files changed, 4 insertions(+), 30 deletions(-)
diff --git a/src/main/webapp/static/js/matTurn/matTurn.js b/src/main/webapp/static/js/matTurn/matTurn.js
index 60c3b72..60ca431 100644
--- a/src/main/webapp/static/js/matTurn/matTurn.js
+++ b/src/main/webapp/static/js/matTurn/matTurn.js
@@ -5,13 +5,13 @@
{
field: 'matnr',
align: 'center',
- title: '鍝佸彿',
+ title: '瑙勬牸',
edit: 'text',
width: 130,
style: 'color: blue;font-weight: bold'
}
, {field: 'maktx', align: 'center', title: '鍝佸悕'}
- , {field: 'specs', align: 'center', title: '鍝佸悕'}
+ , {field: 'specs', align: 'center', title: '鎺ュご'}
];
}
@@ -42,33 +42,6 @@
}
});
- // 椤甸潰淇敼
- table.on('edit(chooseData)', function (obj) {
- 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 (modify) {
- data[obj.field] = obj.value;
- }
- tableIns.reload({data: locDetlData});
- });
-
// 鐩戝惉澶村伐鍏锋爮浜嬩欢
table.on('toolbar(chooseData)', function (obj) {
switch (obj.event) {
@@ -78,13 +51,14 @@
} else {
var staNo = $("#staNoSelect").val();
if (staNo === "" || staNo === null){
- layer.msg("璇烽�夋嫨鐩爣鍝佸彿", {icon: 2});
+ layer.msg("璇烽�夋嫨鐩爣瑙勬牸", {icon: 2});
return;
}
let param = {
matId: staNo,
locDetls: locDetlData
}
+ console.log(param)
$.ajax({
url: baseUrl+"/mat/turn/over/out/start",
headers: {'token': localStorage.getItem('token')},
--
Gitblit v1.9.1