From 727ee25aeb5fcaf84e2cf009b2eacd3a86bcb3ca Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期四, 28 十一月 2024 12:55:23 +0800
Subject: [PATCH] 新增 环境检测方案,环境检测单
---
WebTM/views/模治具管理/模治具管理/Gy_SplitBarCode.html | 30 ++++++++++++++++++++++++++----
1 files changed, 26 insertions(+), 4 deletions(-)
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_SplitBarCode.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_SplitBarCode.html"
index c3d9bfb..ba669fa 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_SplitBarCode.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_SplitBarCode.html"
@@ -237,6 +237,26 @@
return true;
}
}
+ //#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
//#region 纭畾鎸夐挳
form.on('submit(ToolSure)', function (data) {//
@@ -306,8 +326,8 @@
{ type: 'checkbox', fixed: 'left' }
, { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe", width: 75 }
, { field: 'HBarCode', title: '鏉$爜缂栧彿', width: 200 }
- , { field: 'HQty', title: '鏉$爜鏁伴噺', width: 200 }
- , { field: 'HSplitNum', title: '鎷嗗垎鏁伴噺', width: 200, edit: 'text' }
+ , { field: 'HQty', title: '鏉$爜鏁伴噺', width: 200, totalRow: true }
+ , { field: 'HSplitNum', title: '鎷嗗垎鏁伴噺', width: 200, edit: 'text', totalRow: true }
, { field: 'HNumber', title: '鐗╂枡浠g爜', width: 200 }
, { field: 'HName', title: '鐗╂枡鍚嶇О', width: 200 }
, { field: 'HModel', title: '瑙勬牸鍨嬪彿', width: 200 }
@@ -319,6 +339,7 @@
, elem: '#mainTable'
, toolbar: '#toolbarDemo'
, page: false
+ , totalRow: true
, cellMinWidth: 75
, height: 'full-255'
, cols: [columns]
@@ -337,8 +358,8 @@
{ type: 'checkbox', fixed: 'left' }
, { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe", width: 75 }
, { field: 'HBarCode', title: '鏉$爜缂栧彿', width: 200 }
- , { field: 'HQty', title: '鏉$爜鏁伴噺', width: 200 }
- , { field: 'HSplitNum', title: '鎷嗗垎鏁伴噺', width: 200, edit: 'text' }
+ , { field: 'HQty', title: '鏉$爜鏁伴噺', width: 200, totalRow: true}
+ , { field: 'HSplitNum', title: '鎷嗗垎鏁伴噺', width: 200, edit: 'text', totalRow: true}
, { field: 'HNumber', title: '鐗╂枡浠g爜', width: 200 }
, { field: 'HName', title: '鐗╂枡鍚嶇О', width: 200 }
, { field: 'HModel', title: '瑙勬牸鍨嬪彿', width: 200 }
@@ -351,6 +372,7 @@
, elem: '#mainTable_New'
, toolbar: '#toolbarDemo_New'
, page: false
+ , totalRow: true
, cellMinWidth: 75
, height: 'full-255'
, cols: [columns]
--
Gitblit v1.9.1