| | |
| | | |
| | | //éåº |
| | | 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 } |