From ceed56137f8165ff9ac3ce473385572d4c9c80d2 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 07 十一月 2023 14:37:56 +0800
Subject: [PATCH] #平库上架
---
src/main/webapp/static/js/manLocDetl/manLocDetl.js | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/static/js/manLocDetl/manLocDetl.js b/src/main/webapp/static/js/manLocDetl/manLocDetl.js
index c907781..405073b 100644
--- a/src/main/webapp/static/js/manLocDetl/manLocDetl.js
+++ b/src/main/webapp/static/js/manLocDetl/manLocDetl.js
@@ -6,9 +6,9 @@
,{field: 'maktx', align: 'center',title: '鍟嗗搧鍚嶇О', sort:true}
,{field: 'orderNo', align: 'center',title: '鍗曟嵁缂栧彿', hide: true}
,{field: 'specs', align: 'center',title: '瑙勬牸'}
- ,{field: 'weight', align: 'center',title: '搴撲綅鎬婚噸閲�', hide: false}
+ ,{field: 'weight', align: 'center',title: '搴撲綅鎬婚噸閲�', hide: true}
- ,{field: 'batch', align: 'center',title: '鎵瑰彿', width: 300, sort:true, hide: true}
+ ,{field: 'batch', align: 'center',title: '鎵瑰彿', sort:true}
,{field: 'anfme', align: 'center',title: '鏁伴噺'}
,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
,{field: 'model', align: 'center',title: '浠g爜', hide: true}
@@ -41,6 +41,7 @@
// cols.push.apply(cols, detlCols);
cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳',hide: true}
+ // ,{field: 'stockFreeze', align: 'center',title: '搴撳瓨鍐荤粨', templet: '#stockFreezeTpl'}
,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
)
return cols;
@@ -85,6 +86,8 @@
if (res.code === 403) {
top.location.href = baseUrl+"/";
}
+ tableData = table.cache.locDetl;
+ console.log(tableData);
pageCurr=curr;
limit();
form.on('checkbox(tableCheckbox)', function (data) {
@@ -467,6 +470,19 @@
elem: '#appeTime\\$',
type: 'datetime'
});
+ //搴撳瓨鍐荤粨鐩戝惉
+ form.on('switch(stockFreezeSwitch)', function (obj) {
+ let index = obj.othis.parents('tr').attr("data-index");
+ let data = tableData[index];
+ data[this.stockFreeze] = obj.elem.checked?1:0;
+ http.post(baseUrl + "/manlocDetl/updateStockFreeze/auth", {
+ locNo: data.locNo,
+ matnr: data.matnr,
+ stockFreeze: data[this.stockFreeze]
+ }, function (res) {
+ layer.msg(res.msg, {icon: 1});
+ });
+ })
});
--
Gitblit v1.9.1