| | |
| | | |
| | | //ä»åºåæ |
| | | form.on('submit(Ckfl)', function () { |
| | | |
| | | get_Ckfl(); |
| | | }) |
| | | |
| | | //è¡å
äºä»¶ |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , height: 400 |
| | | , height: 420 |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | |
| | | option1 = { |
| | | elem: '#mainTable1' |
| | | //, toolbar: '#toolbarDemo' |
| | | , height: 350 |
| | | , height: 420 |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | |
| | | return vars; |
| | | } |
| | | |
| | | //ä»åºåæ |
| | | function get_Ckfl() { |
| | | if (table.cache['mainTable1'].length == 0) { |
| | | return layer.msg("æ æ°æ®,æ æ³åæ!"); |
| | | } |
| | | else { |
| | | layer.confirm("ç¡®å®è¦é
éçæè°æ¨å", { |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index) { |
| | | $('#Ckfl').addClass("layui-btn-disabled").attr("disabled", true); //ä»åºåææé®ç¦æ¢ |
| | | layer.close(index); |
| | | |
| | | var sMainStr = JSON.stringify(table.cache['mainTable1']) + ";" + sessionStorage["HUserName"] + ";" + $("#HInterID").val() + ";" + $("#HRemark").val();//sessionStorage["HUserName"] |
| | | |
| | | $.ajax( |
| | | { |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Sc_ComplementGoods/JIT_SendGoodsBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | async: true, |
| | | data: { "msg": sMainStr }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable)); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | error: function (err) { |
| | | layer.alert("é误:" + err, { icon: 5 }); |
| | | console.log("Reason" + sMainStr); |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | }); |