From fead835ac26d5b10e56b02e83b5369ffb81615d0 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期二, 21 十一月 2023 16:54:10 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/order/order.js | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/static/js/order/order.js b/src/main/webapp/static/js/order/order.js index b4b43ba..f7e8888 100644 --- a/src/main/webapp/static/js/order/order.js +++ b/src/main/webapp/static/js/order/order.js @@ -1,4 +1,5 @@ var insTbCount = 0; +var tableCache2 = []; layui.config({ base: baseUrl + "/static/layui/lay/modules/" }).extend({ @@ -48,6 +49,7 @@ {type: 'numbers'}, {field: 'orderNo', title: '鍗曟嵁缂栧彿', templet: '#orderNoTpl'}, {field: 'docType$', align: 'center', title: '绫诲瀷', minWidth: 160, width: 160}, + {field: 'tkType', align: 'center', title: 'TK', minWidth: 160, width: 160,hide: true}, {align: 'center', title: '鏄庣粏', toolbar: '#tbLook', minWidth: 160, width: 160}, {field: 'createTime$', title: '鍒涘缓鏃堕棿', minWidth: 200, width: 200}, {field: 'settle$', align: 'center', title: '鐘舵��', templet: '#settleTpl', minWidth: 160, width: 160}, @@ -603,6 +605,7 @@ {field: 'anfme', title: '鏈ㄧ涓摐绠旀暟閲�', align: 'center', width: 90, style: 'font-weight: bold'}, {field: 'count', title: '鏈ㄧ涓摐绠旀暟閲�', align: 'center', width: 90, style: 'font-weight: bold'}, {field: 'locNo', title: '璐т綅', align: 'center', width: 100, templet: '#locNoTpl'}, + {field: 'tkType$', title: 'TK鏍囪', align: 'center', width: 100}, // {field: 'staNos', align: 'center', title: '鍑哄簱绔�', merge: ['locNo'], templet: '#tbBasicTbStaNos'}, // {type: 'checkbox', merge: ['locNo']}, ]], @@ -701,11 +704,13 @@ } ,yes: function(index, layero){ //鎸夐挳銆愰��搴撱�戠殑鍥炶皟 - pakout(tableCache, index); + pakout(tableCache2, index); + tableCache2 = [] } ,btn2: function(index, layero){ //鎸夐挳銆愮◢鍚庡鐞嗐�戠殑鍥炶皟 layer.close(index) + tableCache2 = [] //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴 } }); @@ -716,6 +721,11 @@ } } }) + + // 澶嶉�夋浜嬩欢 + table.on('checkbox(stoPreTab)', function(obj){ + tableCache2.push(obj.data) + }); } function pakout(tableCache, layerIndex) { -- Gitblit v1.9.1