| | |
| | | }); |
| | | //#endregion |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | $('#HProcExchBillNo').on('keydown', function (event) { |
| | | var HBarCode = $('#HProcExchBillNo').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode) { |
| | | layer.msg("æµè½¬å¡å·ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | get_FastQuery(); |
| | | } |
| | | }); |
| | | |
| | | table.on('row(mainTable)', function (obj) { |
| | | //éä¸è¡æ¹åé¢è² |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 120 }); |
| | | break; |
| | | |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 120 }); |
| | | } |
| | |
| | | , height: 400 |
| | | , page: true |
| | | , limits: [50, 500, 5000, 50000] |
| | | , limit: 50 |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , cellMinWidth: 90 |
| | | , done: function (res, curr, count) { |
| | | //resä¸ºè¡¨æ ¼çæææ°æ®ï¼curr为å½å页ç ï¼countä¸ºæ°æ®æ»æ¡æ° |
| | | //é忬页ææè¡¨æ ¼æ°æ®çå¼ï¼ä¾æ¬¡å¤ææ¯å¦ä¸ºç©ºé²ä¸ç¶æï¼è¥ä¸æ¯åéè¿data-indexæ¹åè¯¥è¡æ ·å¼ |
| | | //è¿éitemåindexåå«å¯¹åºæ¯è¡çæ°æ®ådata-indexç´¢å¼å¼ |
| | | res.data.forEach(function (item, index) { |
| | | // console.log(item); |
| | | //è¿éçentity_status_id ä¸ºè¡¨æ ¼æ°æ®ä¸çä¸åæ°æ®ï¼ç¨äºå¤æç¹å®è¡ |
| | | if (item.产ååç§° != null) { |
| | | //ç¦ç¨å¤éæ¡ï¼è®¾ç½®ä¸å¯é䏿 è¯ï¼å°è¯¥è¡è®¾ç½®ä¸ºé´å½±è² |
| | | var tr = $(".layui-table tr[data-index=" + index + "]"); |
| | | var td = tr.children('td'); //è·åtr䏿æçtd |
| | | td.eq(3).css("background-color", "#cf" + (9 - parseInt(index / 2)) + "6" + (2 + parseInt(index / 2)) + "" + (9 - index)); |
| | | // tr.find("input[type='checkbox']").next().addClass('layui-btn-disabled'); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | table.render(option); |
| | | |