From dcd7fcf596005d0c7cf66558bee97edf6c3b03a0 Mon Sep 17 00:00:00 2001
From: wang..123 <brook_w@163.com>
Date: 星期四, 10 三月 2022 18:12:09 +0800
Subject: [PATCH] #物料状态维护
---
src/main/webapp/static/js/locNormal/locNormal.js | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 60 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/static/js/locNormal/locNormal.js b/src/main/webapp/static/js/locNormal/locNormal.js
index fa7b34f..6746562 100644
--- a/src/main/webapp/static/js/locNormal/locNormal.js
+++ b/src/main/webapp/static/js/locNormal/locNormal.js
@@ -5,12 +5,14 @@
function getCol() {
var cols = [];
cols.push(
+ {type: 'checkbox', fixed: 'left'},
{field: 'anfme', align: 'center', title: '鏁伴噺', sort: true, edit: 'text'}
)
cols.push.apply(cols, locNormalCols);
cols.push(
{field: 'warehouse$', align: 'center', title: '搴撳尯'}
, {field: 'state$', align: 'center', title: '鍑哄叆搴撶姸鎬�', templet: '#locNormalState'}
+ ,{field: 'matStatus', align: 'center',title: '鐗╂枡鐘舵��', width: 100, templet: '#matStatus'}
, {field: 'modiUser$', align: 'center', title: '淇敼浜哄憳', hide: true}
, {field: 'modiTime$', align: 'center', title: '淇敼鏃堕棿', hide: true}
, {field: 'appeTime$', align: 'center', title: '鍒涘缓鏃堕棿', hide: true}
@@ -396,4 +398,62 @@
});
}
+var matStatusConfirm;
+function showMatStatus1() {
+ var layer = layui.layer;
+ var table = layui.table;
+ // 鑾峰彇閫変腑琛�
+ var checkStatus = table.checkStatus('locNormal');
+ // 閫夋嫨琛屾暟鎹�
+ var checkData = checkStatus.data;
+ if (checkData.length == 0) {
+ layer.msg("璇烽�夋嫨鏁版嵁");
+ return;
+ }
+ matStatusConfirm = layer.open({
+ type: 2,
+ title: '閫夋嫨鐗╂枡鐘舵��',
+ area: ['300px', '175px'],
+ content: '../pakStore/matStatus.html',
+ btn: ['纭畾'],
+ success: function (layero, index) {
+ // 鎴愬姛鎵撳紑寮圭獥
+ // tableReload(false);
+ },
+ yes: function (index, layero) {
+ // 瀛愰〉闈�
+ var matStatus = layero.find('iframe')[0].contentDocument;
+ // 瀛愰〉闈㈤�夋嫨鏁版嵁鐩戞帶
+ var forms = matStatus.forms;
+ var cho = forms[0][0].value;
+ // 鍏ュ弬鎷兼帴
+ if (checkData && checkData.length > 0) {
+ checkData.map(function (item) {
+ item.matStatus = cho;
+ });
+ }
+ param = {
+ list: checkData,
+ };
+ // 鏇存柊鐗╂枡鐘舵��
+ console.log('閫夋嫨鏁版嵁', checkData);
+ $.ajax({
+ url: baseUrl+"/locNormal/getAllLocDetlData",
+ headers: {'token': localStorage.getItem('token')},
+ data: JSON.stringify(param),
+ dataType:'json',
+ contentType:'application/json;charset=UTF-8',
+ method: 'POST',
+ success: function (res) {
+ console.log('杩斿洖鍊�', res);
+ // 鍏抽棴寮圭獥
+ layer.close(index);
+ // 琛ㄦ牸鏁版嵁閲嶇疆
+ tableReload(false);
+ }
+ });
+ }
+ });
+}
+
--
Gitblit v1.9.1