| | |
| | | function get_BalanceQuery() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var ajaxLoad = layer.load(); |
| | | if (data.length != 1) { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | layer.close(ajaxLoad); |
| | | return |
| | | } |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Kf_SellOutBill/GetKf_CheckSellOutBill_BalanceQuery', |
| | | type: "GET", |
| | | data: { "user": sessionStorage["Czybm"], "HInterID": data[0]["hmainid"] }, |
| | | data: { "user": sessionStorage["HUserName"], "HInterID": data[0]["hmainid"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | |
| | | if(data1.data.HBack == 0){ |
| | | if(data1.data[0].HBack == 0){ |
| | | // ä½é¢å
è¶³ |
| | | layer.alert("客æ·ä½é¢å
è¶³!", { icon: 6 }); |
| | | }else { |
| | | // ä½é¢ä¸å
è¶³ |
| | | layer.alert(data1["HRemark"], { icon: 5 }); |
| | | layer.alert(data1.data[0]["HRemark"], { icon: 5 }); |
| | | } |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |