Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
| | |
| | | , { field: 'Hunitid', title: 'Hunitid', width: 200, hide: true } |
| | | //, { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 125 } |
| | | //, { field: '计éåä½', title: '计éåä½', width: 125 } |
| | | , { field: 'HWHSonID', title: 'HWHSonID', width: 200, hide: true } |
| | | //, { field: 'åæä»åºä»£ç ', title: 'åæä»åºä»£ç ', width: 125 } |
| | | //, { field: 'åæä»åº', title: 'åæä»åº', width: 125 } |
| | | , { field: 'æ¶æä»åºID', title: 'æ¶æä»åºID', width: 200, hide: true } |
| | | , { field: 'æ¶æä»åºä»£ç ', title: 'æ¶æä»åºä»£ç ', width: 125 } |
| | | , { field: 'æ¶æä»åº', title: 'æ¶æä»åº', width: 125 } |
| | | , { field: 'HSPID', title: 'HSPID', width: 200, hide: true } |
| | | , { field: 'ä»ä½ä»£ç ', title: 'ä»ä½ä»£ç ', width: 125 } |
| | | , { field: 'ä»ä½', title: 'ä»ä½', width: 125 } |
| | |
| | | , { field: 'Hunitid', title: 'Hunitid', width: 200, hide: true } |
| | | //, { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 125 } |
| | | //, { field: '计éåä½', title: '计éåä½', width: 125 } |
| | | , { field: 'HWHSonID', title: 'HWHSonID', width: 200, hide: true } |
| | | , { field: 'åæä»åºä»£ç ', title: 'åæä»åºä»£ç ', width: 125 } |
| | | , { field: 'åæä»åº', title: 'åæä»åº', width: 125 } |
| | | , { field: 'æ¶æä»åºID', title: 'æ¶æä»åºID', width: 200, hide: true } |
| | | , { field: 'æ¶æä»åºä»£ç ', title: 'æ¶æä»åºä»£ç ', width: 125 } |
| | | , { field: 'æ¶æä»åº', title: 'æ¶æä»åº', width: 125 } |
| | | , { field: 'HSPID', title: 'HSPID', width: 200, hide: true } |
| | | , { field: 'ä»ä½ä»£ç ', title: 'ä»ä½ä»£ç ', width: 125 } |
| | | , { field: 'ä»ä½', title: 'ä»ä½', width: 125 } |
| | |
| | | var pageIndex = 1;//å½å页ç å¼ |
| | | |
| | | //#region è¿å
¥é¡µé¢æ¢å è½½ |
| | | //åå§å表åæä»¶ |
| | | set_InitFrom(); |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | set_ClearBill(sWhere); |
| | | //#endregion |
| | | |
| | | |
| | |
| | | get_FastQuery(); |
| | | }); |
| | | |
| | | //åå§å表å |
| | | function set_InitFrom() { |
| | | laydate.render({ |
| | | elem: '#HDate' |
| | | }); |
| | | } |
| | | //åå§åçé¢ |
| | | function set_ClearBill() { |
| | | function set_ClearBill(sWhere) { |
| | | resultTableHead = []; //æ¸
空表头åï¼é²æ¢é夿¸²æ |
| | | //åå§æ¥è¯¢ |
| | | get_Display(sWhere); |
| | | |
| | | } |
| | | //å è½½ç½æ ¼ |
| | | function get_Display(sWhere) { |
| | |
| | | }); |
| | | } |
| | | //åå§åè¡¨æ ¼ |
| | | function set_InitGrid() { |
| | | function set_InitGrid(sWhere) { |
| | | //å¡«å
è¡¨æ ¼å¤´æ°ç» |
| | | var data = resultTableHead; |
| | | cols_arr[0] = []; |
| | |
| | | table.render({ |
| | | elem: '#mainTable', |
| | | url: GetWEBURL() + '/Sc_PackUnionBill/Get_PackUnionBillList', |
| | | toolbar: '#toolbarDemo', |
| | | title: 'ç»æåå表', |
| | | cols: cols_arr, //å¡«å
è¡¨æ ¼å¤´æ°æ®, |
| | | id: 'mainTable', //è¡¨æ ¼id |
| | |
| | | layer.close(layer.index); //è¿åæ°æ®å
³éloading |
| | | } |
| | | }); |
| | | } |
| | | //å é¤ |
| | | function set_DeleteBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Sc_PackUnionBill/set_DeleteBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "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 }); |
| | | } |
| | | layer.close(wait); |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | } |
| | | //å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | |
| | | $("#HMaterNumber").val(""); |
| | | $("#HMaterName").val(""); |
| | | $("#HMakerMan").val(""); |
| | | sWhere = " "; |
| | | get_FastQuery(); |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | } |
| | | //å·æ° |
| | | function set_Refresh() { |