| | |
| | | case 'btn-Delete': |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length == 0) { |
| | | layer.msg('è¯·éæ©è¦å é¤çæ°æ®ï¼'); |
| | | if (checkStatus.data.length == 0 || checkStatus.data.length > 300) { |
| | | layer.msg('è¯·éæ©è¦å é¤çæ°æ®,ä¸éä¸è¡æ°ä¸è½è¶
è¿300è¡ï¼'); |
| | | return; |
| | | } |
| | | var mainid = ""; |
| | | var BarCode = ""; |
| | | for (i = 0; i < data.length; i++) { |
| | | mainid += data[i].hmainid.toString() + ","; |
| | | BarCode += data[i].æ¡ç ç¼å·.toString() + ","; |
| | | } |
| | | |
| | | mainid = mainid.substring(0, mainid.length - 1) |
| | | var oData = JSON.stringify(mainid) + ";" + sessionStorage["HUserName"]; |
| | | BarCode = BarCode.substring(0, BarCode.length - 1) |
| | | |
| | | var oData = JSON.stringify(mainid) + ";" + sessionStorage["HUserName"] + ";" + JSON.stringify(BarCode); |
| | | |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |