From 948975757cb1239637e38c02a19eac5e6ecb95eb Mon Sep 17 00:00:00 2001 From: yusijie <ysj@hz-kingdee.com> Date: 星期六, 02 十一月 2024 11:19:42 +0800 Subject: [PATCH] 打印弹窗缩小;批量选择即时库存生成条码;系统默认转工序不允许删除;添康到货确认模块只传入单据id --- WebTM/views/PublicPage/MaterialInfo.html | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/WebTM/views/PublicPage/MaterialInfo.html b/WebTM/views/PublicPage/MaterialInfo.html index 97009a0..8feafc5 100644 --- a/WebTM/views/PublicPage/MaterialInfo.html +++ b/WebTM/views/PublicPage/MaterialInfo.html @@ -99,7 +99,7 @@ , page: true , cellMinWidth: 90 , cols: [[ - { type: 'radio', fixed: 'left' } + { type: 'checkbox', fixed: 'left' } , { field: '鐗╂枡浠撳簱璧勬枡浠g爜', title: '鐗╂枡浠撳簱璧勬枡浠g爜', sort: true } , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', sort: true } , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О' } @@ -121,6 +121,27 @@ ]] }; + + //#region 鐐瑰嚮琛岄�変腑楂樹寒 + table.on('row(mainTable)', function (obj) { + //閫変腑琛屾敼鍙橀鑹� + var flag = !obj.tr.find(':checkbox:first').prop('checked'); + obj.tr.find(':checkbox').prop('checked', flag); + if (flag) { + obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //璁剧疆澶嶉�夋閫変腑鏍峰紡 + $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//鏀瑰彉褰撳墠tr鑳屾櫙棰滆壊鍜屽瓧浣撻鑹� + } else { + obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//鍙栨秷澶嶉�夋閫変腑鏍峰紡 + $(obj.tr.selector).attr({ "style": "background:" });//鍙栨秷褰撳墠tr棰滆壊 + } + //mainTable 涓鸿〃鏍糏D 娉ㄦ剰姝ゅ濡傛灉ID涓嶆纭皢瀵艰嚧浣犲湪鐩戝惉澶嶉�夋鏃惰幏鍙栦笉鍒颁綘閫夋嫨鐨勬暟鎹紝鍓嶉潰鐨勫彧鏄坊鍔犳垨鍒犻櫎閫変腑鏈�変腑鏍峰紡浠ュ強璁剧疆鑳屾櫙鑹诧紝瀛椾綋棰滆壊 + layui.each(table.cache.mainTable, function (i, l) { + if (obj.tr.index() == l.LAY_TABLE_INDEX) { + l.LAY_CHECKED = flag; + } + }); + }) + //#endregion var index = layer.load(0, { shade: false }); //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛� @@ -162,7 +183,7 @@ if (data1.count == 1) { option.data = data1.data; table.render(option); - layer.alert("鏌ヨ鎴愬姛", { icon: 1 }); + //layer.alert("鏌ヨ鎴愬姛", { icon: 1 }); } else { layer.alert(data1.code + data1.Message, { icon: 5 }); } -- Gitblit v1.9.1