| | |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 120, sort: true } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', sort: true } |
| | | , { field: 'æè¦', title: 'æè¦', sort: true } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', sort: true, hide: true } |
| | | , { field: 'å票ç¼å·', title: 'å票ç¼å·', sort: true, hide: true } |
| | | , { field: '主表ä»åºID', title: '主表ä»åºID', width: 120, hide: true, sort: true } |
| | | , { field: '主表ä»åº', title: '主表ä»åº', width: 120, hide: true, sort: true } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', sort: true } |
| | | , { field: 'hsubid', title: 'hsubid', hide: true, sort: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', hide: true, sort: true } |
| | |
| | | var HSourceEntryID = data[0].æºååå
ç ; |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "Cg_POInStockBill/DeltetPOInStockBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": HInterID, "HsupId": HsupId, "HQty": HQty, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "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(); |
| | | }); |
| | | if (data[0].ç¶æ == "å建") { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "Cg_POInStockBill/DeltetPOInStockBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": HInterID, "HsupId": HsupId, "HQty": HQty, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "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 }); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }); |
| | | } else { |
| | | layer.msg('è¯¥æ¡æ°æ®ä¸æ¯åå»ºç¶æ,æ æ³å é¤ï¼'); |
| | | } |
| | | }) |
| | | } |
| | | else { |