From b4a8d50e3d97fc9e893b554a60134e4eceb012eb Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 05 一月 2026 08:58:08 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/locNormal/locNormalIn.js | 42 +++++++++++++++++++++++++++++++++++-------
1 files changed, 35 insertions(+), 7 deletions(-)
diff --git a/src/main/webapp/static/js/locNormal/locNormalIn.js b/src/main/webapp/static/js/locNormal/locNormalIn.js
index 88d3563..abf35fb 100644
--- a/src/main/webapp/static/js/locNormal/locNormalIn.js
+++ b/src/main/webapp/static/js/locNormal/locNormalIn.js
@@ -15,12 +15,17 @@
style: 'color: blue;font-weight: bold'
}
];
- locNormalCols.map(function (item) {
- if (item.field === 'supplier' || item.field === 'mnemonic') {
- item.edit = 'text';
- }
- })
- cols.push.apply(cols, locNormalCols);
+ var locNormalColsSelf = [
+ {field: 'mnemonic', align: 'center',title: '鐢熶骇鍗曞彿', edit: 'text'}
+ ,{field: 'supplier', align: 'center',title: '閫氱煡鍗曞彿', edit: 'text'}
+ ,{field: 'matnr', align: 'center',title: '鐗╂枡缂栫爜'}
+ ,{field: 'maktx', align: 'center',title: '鐗╂枡鍚嶇О', width: 400}
+ ,{field: 'lgnum', align: 'center',title: '瑙勬牸'}
+ ,{field: 'type', align: 'center',title: '鐗╂枡绫诲埆'}
+ ,{field: 'brand', align: 'center',title: '鍝佺墝', hide: true}
+ ,{field: 'altme', align: 'center',title: '鍗曚綅', hide: true}
+ ];
+ cols.push.apply(cols, locNormalColsSelf);
// cols.push({field: 'matStatus', title: '鐗╂枡鐘舵��', align: 'center', width: 120, templet: '#matStatus'});
cols.push({fixed: 'right', title: '鎿嶄綔', align: 'center', toolbar: '#operate', width: 80});
return cols;
@@ -54,6 +59,9 @@
if (obj.field === 'anfme') {
updateMatCodeData(obj.data.matnr, Number(obj.value), obj.data.index);
}
+ if (obj.field === 'supplier' || obj.field === 'mnemonic') {
+ updateMatCodeData2(obj.data.matnr, obj.value, obj.data.index, obj.field);
+ }
});
// 鐩戝惉澶村伐鍏锋爮浜嬩欢
@@ -77,6 +85,14 @@
layer.msg("鏁伴噺涓嶈兘涓洪浂");
return;
}
+ if (matCodeData[i].mnemonic == null || matCodeData[i].mnemonic == '' || matCodeData[i].mnemonic == undefined) {
+ layer.msg("璇疯緭鍏ョ敓浜у崟鍙�");
+ return;
+ }
+ // if (matCodeData[i].supplier == null || matCodeData[i].supplier == '' || matCodeData[i].supplier == undefined) {
+ // layer.msg("璇疯緭鍏ラ�氱煡鍗曞彿");
+ // return;
+ // }
}
// 鍒ゆ柇搴撳尯鏄惁涓虹┖
var warehouse = $('#putSiteSelect').val();
@@ -163,11 +179,23 @@
});
}
+ function updateMatCodeData2(matnr, value, index, field) {
+ for (var i = 0; i < matCodeData.length; i++) {
+ if (matCodeData[i]["matnr"] === matnr && matCodeData[i]["index"] === index) {
+ matCodeData[i][field] = value;
+ }
+ }
+
+ tableIns.reload({
+ data: matCodeData,
+ });
+ }
+
// 鑾峰彇鍙敤鍏ュ簱绔欑偣
function getInBound() {
// 鑾峰彇浠撳簱涓嬫媺
$.ajax({
- url: baseUrl + "/locArea/queryAll/auth",
+ url: baseUrl + "/locArea/query/allArea",
headers: {'token': localStorage.getItem('token')},
method: 'POST',
success: function (res) {
--
Gitblit v1.9.1