| | |
| | | <form class="layui-form" lay-filter="component-form-group" action=""> |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="set_AddNew" id="set_AddNew">æ°å¢</button> |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_CheckBill">å®¡æ ¸</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_SelectMainBill">éæ´å</button>--> |
| | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "1201"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | var HPageTitle = get_PageTitle(HModuleType) || $("h1").html(); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | | //#endregion |
| | | |
| | |
| | | form.on('submit(Cancel)', function () { |
| | | Pub_Close(1); |
| | | }) |
| | | |
| | | //#region æ°å¢ |
| | | form.on('submit(set_AddNew)', function (data) { |
| | | const url = new URL(location.href); |
| | | url.searchParams.set('OperationType', '1'); // ä¿®æ¹ææ·»å åæ° |
| | | url.searchParams.set('linterid', '0'); // ä¿®æ¹ææ·»å åæ° |
| | | location.href = url.toString(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æé® |
| | | form.on('submit(set_CheckBill)', function (data) { |
| | |
| | | |
| | | //#region æå° |
| | | function get_PrintReport() { |
| | | var temp = $("#HInterID").val(); |
| | | if (typeof (temp) != "undefined" && temp != null && temp != "") { |
| | | linterid = temp; |
| | | } |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100, style: 'background-color:#efefef4d;'} |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 100, hide: true } |
| | | , { field: '计éåä½', title: '计éåä½', width: 100, event: "HUnitID" }//f7 |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150, edit: 'text', totalRow: true} |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150, totalRow: true} |
| | | , { field: 'HQty', title: '宿¶æ°é', width: 150, edit: 'text', totalRow: true} |
| | | , { field: 'HPrice', title: 'åä»·', width: 100 } |
| | | , { field: 'HMoney', title: 'éé¢', width: 100, totalRow: true } |
| | |
| | | //æ¥è¯¢æ£éªæ¹æ¡åæ¯å¦åå¨ |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "Kf_POStockInBill/cx", |
| | | url: GetWEBURL() + "/Kf_POStockInBill/cx", |
| | | type: "GET", |
| | | data: { |
| | | "HInterID": linterid |