From 06cca500d130751ffb880d860bd919ff58ddca3e Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 19 八月 2020 17:23:18 +0800 Subject: [PATCH] #入库通知档调整 --- src/main/webapp/static/js/waitPakin/waitPakin.js | 43 ++++++++++++++++++++++--------------------- 1 files changed, 22 insertions(+), 21 deletions(-) diff --git a/src/main/webapp/static/js/waitPakin/waitPakin.js b/src/main/webapp/static/js/waitPakin/waitPakin.js index 56bc909..7d87f3e 100644 --- a/src/main/webapp/static/js/waitPakin/waitPakin.js +++ b/src/main/webapp/static/js/waitPakin/waitPakin.js @@ -1,4 +1,25 @@ var pageCurr; +function getCol() { + var cols = [ + ]; + cols.push.apply(cols, detlCols); + cols.push({field: 'status', align: 'center',title: '鐘舵��', templet:function(row){ + var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='寰呭叆搴搢宸插惎鍔�' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'"; + if(row.status !== 'Y'){html += " checked ";} + html += ">"; + return html; + }} + ,{field: 'ioStatus', align: 'center',title: '鍏ュ嚭鐘舵��', templet:function(row){ + var html = "<input value='ioStatus' type='checkbox' lay-skin='switch' lay-text='鍏ュ簱|鍑哄簱' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'"; + if(row.ioStatus !== 'Y'){html += " checked ";} + html += ">"; + return html; + }} + ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide:true} + ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿', hide:true}) + return cols; +} + layui.use(['table','laydate', 'form'], function(){ var table = layui.table; var $ = layui.jquery; @@ -17,27 +38,7 @@ even: true, toolbar: '#toolbar', cellMinWidth: 50, - cols: [[ - // {type: 'checkbox'} -// ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} -// ,{field: 'id', align: 'center',title: '缂栧彿', sort: true} - {field: 'barcode', align: 'center',title: '鎵樼洏鐮�'} - ,{field: 'matnr', align: 'center',title: '鐗╂枡缂栫爜'} - ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'} - ,{field: 'anfme', align: 'center',title: '鏁伴噺'} - ,{field: 'unit', align: 'center',title: '鍗曚綅'} - ,{field: 'status', align: 'center',title: '鐘舵��', templet:function(row){ - var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='寰呭叆搴搢宸插惎鍔�' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'"; - if(row.status !== 'Y'){html += " checked ";} - html += ">"; - return html; - }} - ,{field: 'memo', align: 'center',title: '澶囨敞',hide: true} - ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿', hide: true} - ,{field: 'modiUser$', align: 'center',title: '淇敼浜哄憳', hide: true} - - // ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:150} - ]], + cols: [getCol()], request: { pageName: 'curr', pageSize: 'limit' -- Gitblit v1.9.1