| | |
| | | //#region æ¾ç¤ºç©æåè¡¨ä¿¡æ¯ |
| | | |
| | | function DisBillEntryList() { |
| | | layer.load(3) |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + '/WEBSController/GetSourceBillList_Json', |
| | | async: true, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBillType": HBillType, "HSourceBillType": HSourceBillType, "HStockOrgID": HStockOrgID, "HSourceBillNo": HSourceBillNo, "HMater": HMater, "HCustom": HCustom }, |
| | | success: function (result) { |
| | | var data = []; |
| | | var col = []; |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = []; |
| | | var col = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in result.list) { |
| | | //卿è·åå表ææåå |
| | |
| | | table.render(listOption); |
| | | } |
| | | else { |
| | | listOption.cols = [columns]; |
| | | listOption.data = result.data; |
| | | table.cache['dj-table'] = null; //æ¸
ç©ºè¡¨æ ¼ç¼åæ°æ® |
| | | listOption.cols = [[ |
| | | { field: 'æ¥æ', title: 'æ¥æ', width: 100 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 100 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 100 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 100 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 100 } |
| | | ]]; |
| | | listOption.data = data; |
| | | table.render(listOption); |
| | | //layer.msg(result.Message); |
| | | //layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | layer.closeAll("loading"); |
| | | } |
| | | |
| | | //#endregion |