ch
2022-05-30 4eff3a8e16e844fd1d842a6b790ecb9e1878d4b1
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBill_Fast.html
@@ -686,23 +686,47 @@
            })
            //编辑
            //form.on('submit(cmdModify)', function () {//编辑
            //    var checkStatus = table.checkStatus('wl-table')
            //        , data = checkStatus.data;
            //    if (checkStatus.data.length === 1) {
            //        var HInterID = data[0].HInterID.toString();
            //        var HMaterID = data[0].HMaterID.toString();
            //        var HAuxPropID = data[0].HAuxPropID.toString();
            //        var HMTONo = data[0].HMTONo.toString();
            //        var HWhID = data[0].HWhID.toString();
            //        var HSPID = data[0].HSPID.toString();
            //        var HSCWHID = data[0].HSCWHID.toString();
            //        var HSCSPID = data[0].HSCSPID.toString();
            //        var HBatchNo = data[0].HBatchNo.toString();
            //        var HSourceInterID = data[0].HSourceInterID.toString();
            //        var HSourceEntryID = data[0].HSourceEntryID.toString();
            //        var HBillType = '1205';
            //        var HBarCode = data[0].HBarCode.toString();
            //    layer.open({
            //        type: 2
            //        , area: ['100%', '100%']
            //        , title: '明细列表'
            //        , shade: 0.6 //遮罩透明度
            //        , maxmin: true //允许全屏最小化
            //        , anim: 0 //0-6的动画形式,-1不开启
            //        , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?HInterID=' + HInterID + '&HMaterID = ' + HMaterID + '&HAuxPropID = ' + HAuxPropID + '& HMTONo = ' + HMTONo + '&HWhID = ' + HWhID + '&HSPID = ' + HSPID + '&HSCWHID = ' + HSCWHID + '&HSCSPID= ' + HSCSPID + '&HBatchNo= ' + HBatchNo + '&HSourceInterID= ' + HSourceInterID + '&HSourceEntryID= ' + HSourceEntryID + '&HBillType=  ' + HBillType + '&HBarCode=  ' + HBarCode + ''
            //            , 'yes']
            //        , resize: false
            //        , cancel: function () {
            //            //$(".layui-btn").removeClass("layui-btn-disabled");
            //        }
            //    })
            //    } else {
            //        layer.msg('请选择一行数据编辑!');
            //    }
            //})
            form.on('submit(cmdModify)', function () {//编辑
                //var sSubStr = table.cache['wl-table'];
                var checkStatus = table.checkStatus('wl-table')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var HInterID = data[0].HInterID.toString();
                    var HMaterID = data[0].HMaterID.toString();
                    var HAuxPropID = data[0].HAuxPropID.toString();
                    var HMTONo = data[0].HMTONo.toString();
                    var HWhID = data[0].HWhID.toString();
                    var HSPID = data[0].HSPID.toString();
                    var HSCWHID = data[0].HSCWHID.toString();
                    var HSCSPID = data[0].HSCSPID.toString();
                    var HBatchNo = data[0].HBatchNo.toString();
                    var HSourceInterID = data[0].HSourceInterID.toString();
                    var HSourceEntryID = data[0].HSourceEntryID.toString();
                    var HBillType = '1205';
                    var HBarCode = data[0].HBarCode.toString();
                //if (AllowLoadData(sSubStr) != false) {//非空验证
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
@@ -710,17 +734,46 @@
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?HInterID=' + HInterID + '&HMaterID = ' + HMaterID + '&HAuxPropID = ' + HAuxPropID + '& HMTONo = ' + HMTONo + '&HWhID = ' + HWhID + '&HSPID = ' + HSPID + '&HSCWHID = ' + HSCWHID + '&HSCSPID= ' + HSCSPID + '&HBatchNo= ' + HBatchNo + '&HSourceInterID= ' + HSourceInterID + '&HSourceEntryID= ' + HSourceEntryID + '&HBillType=  ' + HBillType + '&HBarCode=  ' + HBarCode + ''
                        , 'yes']
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?HInterID=' + data[0].HInterID + '&HMaterID =' + data[0].HMaterID + '&HBillType =' + data[0].HBillType, 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                    , end: function () {
                        //刷新页面,
                        //location.reload();
                        var sInterID = $("#HInterID").val()
                        table.render({
                            elem: '#wl-table'
                            //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
                            , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                            , toolbar: '#toolbarDemo'
                            , defaultToolbar: []
                            , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                            , cols: [[
                                { type: 'radio' }
                                , { field: 'HSNO', title: '序号', width: 60 }
                                , { field: 'HQty', title: '数量', width: 80 }
                                , { field: 'HQtyMust', title: '应发数量', width: 80 }
                                , { field: 'HMaterName', title: '物料名称', width: 90 }
                                , { field: 'HMaterNumber', title: '物料代码', width: 90 }
                                , { field: 'HMaterModel', title: '规格型号', width: 90 }
                                , { field: 'HSourceInterID', title: '源单主内码', width: 90 }
                                , { field: 'HSourceEntryID', title: '源单子内码', width: 90 }
                                , { field: 'HSourceBillNo', title: '源单单号', width: 90 }
                                , { field: 'HBatchNo', title: '批次', width: 90 }
                            ]]
                            // , data: [linterid]
                            // , page: true
                            , height: 500
                            , done: function () {
                                layer.closeAll("loading");
                            }
                        })
                    }
                })
                } else {
                    layer.msg('请选择一行数据编辑!');
                }
            })
                // }
            });
            //删除
            form.on('submit(cmdDelete)', function () {//删除
@@ -1218,6 +1271,7 @@
                                }
                                $("#HSumQtys").val(count);
                                $("#HBarCodeQtys").val(count1);
                                playSound1();
                            }
                            else {
                                // $("#verifycode").click();