| | |
| | | if (option.cols[0][i]["field"] == "HQty") { |
| | | option.cols[0][i]["edit"] = false; |
| | | } |
| | | if (option.cols[0][i]["field"] == "HMoney") { |
| | | option.cols[0][i]["edit"] = false; |
| | | } |
| | | //if (option.cols[0][i]["field"] == "HMoney") { |
| | | // option.cols[0][i]["edit"] = false; |
| | | //} |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | //#region æå° |
| | | function get_PrintReport() { |
| | | if (linterid == null || linterid == "") { |
| | | linterid = $("#HInterID").val(); |
| | | } |
| | | //if (linterid == null || linterid == "") { |
| | | // linterid = $("#HInterID").val(); |
| | | //} |
| | | var HInterID = $("#HInterID").val(); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + linterid.toString() + '&MyMsg=' + linterid.toString() + '&Type=HPOInStockBillByID', 'yes'] |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + HInterID.toString() + '&MyMsg=' + linterid.toString() + '&Type=HPOInStockBillByID', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | |
| | | if (openType == "HTask") { |
| | | sWhere += " and LEN(ä»»å¡ç±»å«ä»£ç ) = 1 " |
| | | } else if (typeof (number) != "undefined") { |
| | | sWhere += " and ä»»å¡ç±»å«ä»£ç LIKE '" + number + "%'"; |
| | | sWhere += " and ä»»å¡ç±»å«ä»£ç LIKE '" + number + "%'" + "and ä»»å¡ç±»å«ä»£ç <> '" + number + "'"; |
| | | } |
| | | |
| | | } |
| | |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_SaveBill">ä¿å</button> |
| | | <button type="button" id="check-btn" 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="Exit">éåº</button> |
| | | </div> |
| | | </div> |
| | |
| | | form.on('submit(set_SaveBill)', function (data) { |
| | | set_SaveBill(data); |
| | | }); |
| | | //#region å®¡æ ¸æé® |
| | | form.on('submit(set_CheckBill)', function (data) { |
| | | set_CheckBill(1); |
| | | }); |
| | | //#endregion |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | |
| | | , { field: 'HMoney', title: 'éé¢', width: 100, edit: 'text', totalRow: true } |
| | | |
| | | , { field: 'HWHID ', title: 'HWHID ', width: 100, hide: true } |
| | | , { field: 'æ¶æä»åº', title: 'æ¶æä»åº', width: 100, edit: 'text', event: "HWHID" }//f7 |
| | | , { field: 'æ¶æä»åº', title: 'åæä»åº', width: 100, edit: 'text', event: "HWHID" }//f7 |
| | | , { field: 'HSPID', title: 'HSPID', width: 100, hide: true } |
| | | , { field: 'HSPGroupID', title: 'HSPGroupID', width: 100, hide: true } |
| | | , { field: 'ä»ä½åç§°', title: 'ä»ä½åç§°', width: 100, edit: 'text', event: "HSPID" }//f7 |
| | |
| | | } |
| | | }); |
| | | |
| | | //å®¡æ ¸ [1 å®¡æ ¸ã2 åå®¡æ ¸] |
| | | function set_CheckBill(num) { |
| | | var HInterID = $("#HInterID").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Kf_OtherOutBill/CheckKf_OtherOutBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": num, "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); |
| | | }); |
| | | $('#check-btn').addClass("layui-btn-disabled").attr("disabled", true);// ç¦ç¨å®¡æ ¸æé® |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | //#region ä¿åæ¹æ³ |
| | |
| | | <div class="layui-card-header"> |
| | | <div class="layui-btn-group"> |
| | | <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="set_SaveBill">ä¿å</button> |
| | | <button type="button" id="check-btn" 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="Exit">éåº</button> |
| | | </div> |
| | | </div> |
| | |
| | | set_SaveBill(data); |
| | | }); |
| | | |
| | | //#region å®¡æ ¸æé® |
| | | form.on('submit(set_CheckBill)', function (data) { |
| | | set_CheckBill(1); |
| | | }); |
| | | //#endregion |
| | | |
| | | //è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | //å®¡æ ¸ [1 å®¡æ ¸ã2 åå®¡æ ¸] |
| | | function set_CheckBill(num) { |
| | | var HInterID = $("#HInterID").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Kf_OtherInBill/CheckKf_OtherInBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": num, "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); |
| | | }); |
| | | $('#check-btn').addClass("layui-btn-disabled").attr("disabled", true);// ç¦ç¨å®¡æ ¸æé® |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#region ä¿åæ¹æ³ |
| | | function set_SaveBill(data) { |
| | |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 150, style: 'background-color:#efefef4d;' } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100, style: 'background-color:#efefef4d;'} |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 100, hide: true } |
| | | , { field: '计éåä½', title: '计éåä½', width: 100, edit: 'text', event: "HUnitID" }//f7 |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', width: 150, edit: 'text', totalRow: true} |
| | | , { field: '计éåä½', title: '计éåä½', width: 100, event: "HUnitID" }//f7 |
| | | , { 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 } |