| | |
| | | <input type="text" name="HBillerID" id="HBillerID" lay-verify="HBillerID" autocomplete="off" class="layui-input"> |
| | | <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input"> |
| | | <input type="hidden" name="HMakerID" id="HMakerID" lay-verify="HMakerID" value="0" autocomplete="off" class="layui-input" style="display : none"> |
| | | <input type="hidden" name="HSTOCKORGID" id="HSTOCKORGID" lay-verify="HSTOCKORGID" value="0" autocomplete="off" class="layui-input" style="display : none"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | $("#HMakerID").hide(); |
| | | $("#HBillerID").val(sessionStorage["HBillerID"]); |
| | | $("#HBillerID").hide(); |
| | | $("#HSTOCKORGID").val(sessionStorage["OrganizationID"]); |
| | | $("#HSTOCKORGID").hide(); |
| | | var HSourceFlag = sessionStorage["SourceFlag"]; |
| | | //é»è®¤å¸¦å
¥çä»åºï¼å¦æå¯ç¨ä»ä½åä»ä½ææï¼å¦ææ²¡æå¯ç¨åä»ä½ç°åº¦ new |
| | | |
| | |
| | | |
| | | //éåº |
| | | form.on('submit(Cancel)', function () { |
| | | sessionStorage["SourceFlag"] = false; |
| | | //parent.location.href = "../../../views/index.html" |
| | | //window.close();//å
³éå½å页 |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | window.close(); |
| | | }); |
| | | parent.location.href = "../../../views/index.html" |
| | | }) |
| | | //ç¼è¾ |
| | | form.on('submit(cmdModify)', function () { |
| | |
| | | url: GetWEBURL() + "/POStockInBill/get_CheckTypeByBarCode_Json", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | playSound1(); |
| | |
| | | $("#HSupID").val(result.data.hSupIDField); |
| | | //$("#HDeptName").val(result.data.HDept); |
| | | //$("#HDeptID").val(result.data.HDeptID); |
| | | $("#HSourceBillNo").val(result.data.hSourceBillNoField); |
| | | $("#HBillType").val(result.data.hSourceBillTypeField) |
| | | //$("#HSourceBillNo").val(result.data.hSourceBillNoField); |
| | | //$("#HBillType").val(result.data.hSourceBillTypeField) |
| | | HSourceFlag = true; |
| | | //è·åæºåç±»åãæºååå· |
| | | if (result.data.hSourceBillTypeField == "1102") { |
| | |
| | | var listOption = { |
| | | elem: '#wl-table' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , cellMinWidth: 90 |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HSNO', title: 'åºå·', width: 60 } |
| | | , { field: 'HQty', title: 'æ°é', width: 80 } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 80 } |
| | | , { field: 'HQty', title: 'æ°é', width: 80, totalRow: true } |
| | | , { field: 'HQtyMust', title: 'åºåæ°é', width: 80, totalRow: true} |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', width: 150 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', width: 150 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', width: 150 } |
| | |
| | | table.render({ |
| | | elem: '#wl-table' |
| | | , cellMinWidth: 80 |
| | | , totalRow: true |
| | | //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Webs_Json' |
| | | , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json' |
| | | //, toolbar: '#toolbarDemo' |
| | | , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' } |
| | | , cols: [[ |
| | | { type: 'radio' } |
| | | , { field: 'HQty', title: 'æ°é', sort: true, width: 100 } |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', sort: true, width: 100 } |
| | | , { field: 'HQty', title: 'æ°é', sort: true, width: 100, totalRow: true} |
| | | , { field: 'HQtyMust', title: 'åºæ¶æ°é', sort: true, width: 100, totalRow: true} |
| | | , { field: 'HMaterNumber', title: 'ç©æä»£ç ', sort: true, width: 200 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', sort: true, width: 200 } |
| | | , { field: 'HMaterModel', title: 'è§æ ¼åå·', sort: true, width: 200 } |
| | |
| | | , { field: 'HSourceEntryID', title: 'æºååå
ç ', sort: true, width: 200 } |
| | | , { field: 'HSourceBillNo', title: 'æºååå·', sort: true, width: 200 } |
| | | , { field: 'HBatchNo', title: 'æ¹æ¬¡' } |
| | | , { field: 'HPieceQty', title:'æ¡ç ä»¶æ°', width: 100 } |
| | | ]] |
| | | // , data: [linterid] |
| | | // , page: true |
| | |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | } |
| | | function AllowLoadData(sSubStr, bnt) { //é空éªè¯ |
| | | //æ°åæ£å(å
å«å°æ°) |
| | | var reg = /^\d+(\.\d+)?$/; |
| | | //if (reg.test($("#HQty").val()) == false || $("#HQty").val() == '') { |
| | | // layer.msg("æ°éå¿
须为æ°éæå°æ°", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if (reg.test($("#Qty_B").val()) == false || $("#Qty_B").val() == '') { |
| | | // layer.msg("æ°éå¿
须为æ°éæå°æ°", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // return false; |
| | | //} |
| | | //if ($("#HSourceBillNo").val() == '') { |
| | | // layer.msg("请å
æ«æºå!", { icon: 5 }); |
| | | // return false; |