| | |
| | | <label class="layui-form-label" style="width: 85px;">æ¯å¦è½¬å·¥åº</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 85px;"> |
| | | <select name=" HTProcessFlag" id="HTProcessFlag"> |
| | | <option value="0">å¦</option> |
| | | <option value="1">æ¯</option> |
| | | <option value="0">å¦</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | //导å
¥ ä¿åæ°æ® |
| | | form.on('submit(btnSave)', function (data) { |
| | | |
| | | if (table.cache["mainTable"] != null) { |
| | | set_AddNew(data); |
| | | } |
| | |
| | | //导å
¥(ä¿å) |
| | | function set_AddNew(data) { |
| | | |
| | | var num = []; |
| | | for (var i = 0; i < table.cache["mainTable"].length; i++) { |
| | | if (table.cache["mainTable"][i] != "") { |
| | | table.cache["mainTable"][i].LAY_TABLE_INDEX = i; |
| | | num.push(table.cache["mainTable"][i]) |
| | | } |
| | | } |
| | | //var num = []; |
| | | //for (var i = 0; i < table.cache["mainTable"].length; i++) { |
| | | // if (table.cache["mainTable"][i] != "") { |
| | | // table.cache["mainTable"][i].LAY_TABLE_INDEX = i; |
| | | // num.push(table.cache["mainTable"][i]) |
| | | // } |
| | | //} |
| | | data.field.HOrgID = sessionStorage["OrganizationID"];//ç»ç» |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(num); |
| | | var sSubStr = '1';//JSON.stringify(num) |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + sessionStorage["HUserName"]; |
| | | var index = layer.load(); |
| | | |
| | |
| | | if (data.count == 1) { |
| | | layer.close(index); |
| | | layer.msg(data.Message); |
| | | option.data = null; |
| | | table.render(option); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | |
| | | , toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , cellMinWidth: 120 |
| | | , height: 500 |
| | | , height: 400 |
| | | , cols: [columns] |
| | | , limit: Number.MAX_VALUE//é»è®¤æ¾ç¤ºå
¨é¨ |
| | | , done: function (res, curr, count) { |
| | | option.data = res.data; |
| | | //廿䏿æ¡å¤±ç¦äºä»¶å¦åå¨ä¸ææ¡éè¾å
¥å¼ |
| | |
| | | option2 = { |
| | | elem: '#mainTable2' |
| | | //, toolbar: '#toolbarDemo' |
| | | , page: true |
| | | , height: 300 |
| | | , page: false |
| | | , height: 500 |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , limit: Number.MAX_VALUE//é»è®¤æ¾ç¤ºå
¨é¨ |
| | | , cols: [[ |
| | | |
| | | { field: 'hsubid', title: 'hsubid', hide: true} |