ch
2022-01-02 7271757d8a07b55b51adc7b88d6f2dfa302e8b40
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBill_Fast.html
@@ -807,7 +807,12 @@
            //扫条码-直接调webservice
            $('#HBarCode').on('keydown', function (event) {
                var sBarCode = $('#HBarCode').val()//条码
                var sOldBarCode = $('#HBarCode').val()
                var HDeleteFlag = sOldBarCode.substring(0, 1);
                var sBarCode = sOldBarCode.slice(1);
                //var sBarCode = $('#HBarCode').val()//条码
                var sInterID = $("#HInterID").val()//单据号ID
                var sBillType = '1205'
                var sBillNo = $("#HBillNo").val()//单据号
@@ -818,11 +823,69 @@
                //var SourceFlag = sessionStorage["SourceFlag"];
                var sSourceBillNo = $("#HSourceBillNo").val();//源单号
                var sHBillType = $("#HBillType").val()  //源单类型-发货通知单:1402,销售订单1401
                var sBillType = '1205'
                if (sQty == "") {
                    sQty = 0;
                }
                if (event.keyCode == 13) {
                    if (HDeleteFlag == "*") {
                        if (sBarCode != "") {
                            $('#HBarCode').val("");
                        }
                        $.ajax(
                            {
                                type: "Get",
                                url: GetWEBURL() + "/ProductIn/Delete_Json",
                                async: true,
                                data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": sBillType, "HBarCode": sBarCode },
                                dataType: "json",
                                success: function (data) {
                                    if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                        table.render({
                                            elem: '#wl-table'
                                            // , url: 'http://61.130.49.162:9090/WMSAPI///OtherInStockBill/DisBillEntryList_Webs_Json'
                                            , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                                            , toolbar: '#toolbarDemo'
                                            , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                                            , cols: [[
                                                { type: 'radio' }
                                                , { field: 'HQty', title: '数量', width: 150 }
                                                , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                                , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                                , { field: 'HMaterName', title: '物料名称', width: 150 }
                                                , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                                , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                                , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                                , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                                , { field: 'HBatchNo', title: '批次', width: 150 }
                                                , { field: 'HInterID', title: '单据ID', width: 150, hide: true }
                                                , { field: 'HBilltype', title: '单据类型', width: 150, hide: true }
                                                , { field: 'Hbarcode', title: '条码编号', width: 150, hide: true }
                                                , { field: 'HSCWHID', title: '调出仓库ID', width: 150, hide: true }
                                                , { field: 'HSCSPID', title: '调出仓位ID', width: 150, hide: true }
                                                , { field: 'HAuxPropID', title: '辅助属性ID', width: 150, hide: true }
                                                , { field: 'HMTONo', title: 'MTO号', width: 150, hide: true }
                                                , { field: 'HMaterID', title: '物料ID', width: 150, hide: true }
                                            ]]
                                            // , data: [linterid]
                                            // , page: true
                                            //, height: 500
                                            , done: function () {
                                                layer.closeAll("loading");
                                            }
                                        })
                                    }
                                    else {
                                        layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                    }
                                },
                                error: function (err) {
                                    layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                }
                            });
                    }
                    else {
                        var sBarCode = $('#HBarCode').val()
                    if (sBarCode == '') {
                        layer.msg("条码为空,不能扫描!", { icon: 5, btn: ['确定'], time: 100000, offset: 't' });
                        return false;
@@ -955,6 +1018,7 @@
                        }
                    });
                }
                }
            });
            $('#HStockPlaceName').on('keydown', function (event) {      //扫仓位