| | |
| | | |
| | | var sBillType = '1203'; |
| | | var col = []; |
| | | var option = {} |
| | | //卿å è½½æºåç±»åå表 new |
| | | |
| | | //å è½½æºåç±»å |
| | |
| | | , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HInterID', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', width: 80 } |
| | | , { field: 'HMaker', title: 'å¶å人', width: 100 } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', width: 100 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', width: 100 } |
| | | , { field: 'HRedBlueFlag', title: '红èå', width: 100 } |
| | | , { field: 'HSourceBillType', title: 'æºåç±»å', width: 100 } |
| | | , { field: 'åæ®å
ç ', title: 'åæ®å
ç ', width: 80 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 80 } |
| | | , { field: 'å¶å人', title: 'å¶å人', width: 100 } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 100 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 100 } |
| | | , { field: '红èå', title: '红èå', width: 100 } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', width: 100 } |
| | | ]] |
| | | , height: 500 |
| | | , done: function () { |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | table.render(option); |
| | | //å·²ä¸ä¼ å表 |
| | | table.render({ |
| | | elem: '#yd-table' |
| | |
| | | form.on('submit(cmdRescind)', function () { |
| | | var checkStatus = table.checkStatus('yd-table'); |
| | | var checkStatus2 = table.checkStatus('sy-table'); |
| | | var checkStatus3 = table.checkStatus('dj-table'); |
| | | var data = ""; |
| | | if (checkStatus.data.length != 0) { |
| | | data = checkStatus.data; |
| | | } else if (checkStatus2.data.length != 0) { |
| | | data = checkStatus2.data; |
| | | } else { |
| | | } else if (checkStatus3.data.length != 0) { |
| | | data = checkStatus3.data; |
| | | }else { |
| | | return layer.msg("è¯·éæ©ä¸æ¡æ°æ®"); |
| | | } |
| | | var sInterID = data[0].HInterID |
| | | var sBillNo = data[0].HBillNo |
| | | var sInterID = data[0].HInterID == 'undefined' ? data[0].åæ®å
ç : data[0].HInterID; |
| | | var sBillNo = data[0].HBillNo == 'undefined' ? data[0].åæ®å· : data[0].HBillNo; |
| | | var sBillType = '1203' |
| | | $.ajax( |
| | | { |
| | |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | time: 2000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | |
| | | var checkStatus = table.checkStatus('dj-table') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var sInterID = data[0].HInterID |
| | | var sInterID = data[0].HInterID == 'undefined' ? data[0].åæ®å
ç : data[0].HInterID; |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax( |
| | |
| | | } |
| | | } |
| | | |
| | | //卿æ¾ç¤ºåå |
| | | table.render({ |
| | | option = { |
| | | elem: '#dj-table' |
| | | , cols: [col] |
| | | , data: data1.data |
| | |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | }); |
| | | }; |
| | | |
| | | //卿æ¾ç¤ºåå |
| | | table.render(option); |
| | | |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | //å·æ°æç»é¡µç¾ |
| | | table.render({ |
| | | elem: '#mx-table' |