| | |
| | | elem: '#mainTable1' |
| | | , height: 500 |
| | | , page: true //å¼å¯å页 |
| | | , cols: [{ type: 'checkbox', fixed: 'left' } |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterCode', width: 100 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', edit: 'text', width: 100 } |
| | |
| | | , { field: 'hscwhid', title: 'hscwhid', edit: 'text', width: 100, hide: true } |
| | | , { field: 'è°åºä»åºä»£ç ', title: 'è°åºä»åºä»£ç ', edit: 'text', event: 'HWHCode', width: 120 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', edit: 'text', width: 120 } |
| | | , { field: '表ä½å¤æ³¨', title: '夿³¨', edit: 'text', width: 100 }] |
| | | , { field: '表ä½å¤æ³¨', title: '夿³¨', edit: 'text', width: 100 }]] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | }; |
| | | //夿æ¯å¦æ°å¢ |
| | |
| | | , height: 500 |
| | | //,url: '/demo/table/user/' //æ°æ®æ¥å£ |
| | | , page: true //å¼å¯å页 |
| | | , cols: [ |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterCode', width: 100 } |
| | |
| | | , { field: 'è°åºä»åºä»£ç ', title: 'è°åºä»åºä»£ç ', edit: 'text', event: 'HWHCode', width: 120 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', edit: 'text', width: 120 } |
| | | , { field: '表ä½å¤æ³¨', title: '夿³¨', edit: 'text', width: 100 } |
| | | ] |
| | | ]] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | | }; |
| | | //夿æ¯å¦æ°å¢ |
| | |
| | | type: "GET", |
| | | data: { "sqlWhere": "and hmainid=" + hID }, |
| | | success: function (result) { |
| | | //console.log(result); |
| | | //console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | | option.data = result.list[0]; |
| | | table.render(option); |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | |
| | | |
| | | |
| | | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Initialize"><i class="layui-icon layui-icon-share"></i>åå§å</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | break; |
| | | //éåºæé® |
| | | case 'get_Exit': Pub_Close(2); |
| | | break; |
| | | //åå§åæé® |
| | | case 'get_Initialize': get_Initialize(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | $("#btnSearch").click(); |
| | | } |
| | | |
| | | //åå§å |
| | | function get_Initialize() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].hmainid.toString(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + '/Gy_Material/InitializeProdInBill', |
| | | data: { "hmainid": HInterID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | } |
| | | //以䏿¯layui模å |
| | | }); |
| | | |