yangle
2022-07-04 85318b37d7936a35636be6c91da5751c6521de8c
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBill_Fast.html
@@ -82,6 +82,7 @@
                                                <option value="整托扫码">整托扫码</option>
                                                <option value="单个拆码">单个拆码</option>
                                                <option value="反向拆码">反向拆码</option>
                                                <option value="整托删除">整托删除</option>
                                            </select>
                                        </div>
                                    </div>
@@ -285,7 +286,6 @@
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">提交</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">编辑</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">删除</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdSDelete">整托删除</button>
                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">退出</button>
                    </div>
                    <div id="" style="display:none;">
@@ -375,6 +375,7 @@
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe", width: 100 }
                    , { field: 'HQty', title: '数量', width: 150 }
                    , { field: 'HQtyMust', title: '应收数量', width: 150 }
                    , { field: 'HAuxQty', title: '辅助数量', width: 150 }
                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
@@ -504,6 +505,7 @@
                    , cols: [[
                        { type: 'radio' }
                        , { field: 'HQty', title: '数量', width: 150 }
                        , { field: 'HAuxQty', title: '辅助数量', width: 150 }
                        , { field: 'HQtyMust', title: '应收数量', width: 150 }
                        , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                        , { field: 'HMaterName', title: '物料名称', width: 150 }
@@ -696,8 +698,11 @@
            form.on('submit(Cancel)', function () {
                //sessionStorage["SourceFlag"] = false;
                parent.location.href = "../../../views/index.html"
                //parent.location.href = "../../../views/index.html"
                //window.close();//关闭当前页
                layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                    window.close();
                });
            })
            //编辑
@@ -722,7 +727,7 @@
            //        type: 2
            //        , area: ['100%', '100%']
            //        , title: '明细列表'
            //        , shade: 0.6 //遮罩透明度
            //        , shade: 0.6 //遮罩透明度wl-table
            //        , 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 + ''
@@ -769,6 +774,7 @@
                                { type: 'radio' }
                                , { field: 'HSNO', title: '序号', width: 60 }
                                , { field: 'HQty', title: '数量', width: 80 }
                                , { field: 'HAuxQty', title: '辅助数量', width: 80 }
                                , { field: 'HQtyMust', title: '应发数量', width: 80 }
                                , { field: 'HMaterName', title: '物料名称', width: 90 }
                                , { field: 'HMaterNumber', title: '物料代码', width: 90 }
@@ -822,7 +828,8 @@
                                   , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                                   , cols: [[
                                      { type: 'radio' }
                                    , { field: 'HQty', title: '数量', width: 80 }
                                       , { field: 'HQty', title: '数量', width: 80 }
                                       , { field: 'HAuxQty', title: '辅助数量', width: 80 }
                                    , { field: 'HQtyMust', title: '应收数量', width: 80 }
                                    , { field: 'HMaterNumber', title: '物料代码', width: 100 }
                                    , { field: 'HMaterName', title: '物料名称', width: 150 }
@@ -848,34 +855,6 @@
                   });
            });
            //整托删除 cmdSDelete
            form.on('submit(cmdSDelete)', function () {//删除
                var HBarCode = $('#HBarCode').val();
                var HInterID = $('#HInterID').val();
                if (HBarCode) {
                    layer.msg("条码不能为空", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
                $.ajax(
                    {
                        type: "Get",
                        url: GetWEBURL() + "/POStockInBillList/SellOutBillSDeleCode",
                        async: true,
                        data: { "HBarCode": HBarCode, "HInterID": HInterID },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                layer.msg(data.Message, { icon: 1, btn: ['确认'], time: 100000, title: "温馨提示" });
                            }
                            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: "温馨提示" });
                        }
                    });
            });
            //提交
            form.on('submit(Saver)', function (data) {//提交
@@ -1195,6 +1174,58 @@
                            }
                        });
                }
                else if (HScanStyle =="整托删除") {
                    var HBarCode = $('#HBarCode').val();
                    var HInterID = $('#HInterID').val();
                    if (HBarCode=="") {
                        layer.msg("整托删除条码不能为空", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return;
                    }
                    $.ajax(
                        {
                            type: "Get",
                            url: GetWEBURL() + "/POStockInBillList/SellOutBillSDeleCode",
                            async: true,
                            data: { "HBarCode": HBarCode, "HInterID": HInterID },
                            dataType: "json",
                            success: function (data) {
                                if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                    layer.msg(data.Message, { icon: 1, btn: ['确认'], time: 100000, title: "温馨提示" });
                                    table.render({
                                        elem: '#wl-table'
                                        , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                                        , cellMinWidth: 80
                                        , toolbar: '#toolbarDemo'
                                        , defaultToolbar: []
                                        , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                                        , cols: [[
                                            { type: 'radio' }
                                            , { field: 'HQty', title: '数量', width: 80 }
                                            , { field: 'HAuxQty', title: '辅助数量', width: 80 }
                                            , { field: 'HQtyMust', title: '应收数量', width: 80 }
                                            , { field: 'HMaterNumber', title: '物料代码', width: 100 }
                                            , { field: 'HMaterName', title: '物料名称', width: 150 }
                                            , { field: 'HMaterModel', title: '规格型号', width: 100 }
                                            , { field: 'HSourceInterID', title: '源单主内码', width: 100 }
                                            , { field: 'HSourceEntryID', title: '源单子内码', width: 100 }
                                            , { field: 'HSourceBillNo', title: '源单单号', width: 100 }
                                            , { field: 'HBatchNo', title: '批次', width: 100 }
                                            , { field: 'HAuxPropID', title: '辅助属性', width: 100 }
                                            , { field: 'HMTONo', title: '计划跟踪号', width: 100 }
                                            , { field: 'HWHID', title: 'ck', width: 100 }
                                        ]]
                                        //, height: 500
                                    })
                                }
                                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 == '') {
@@ -1295,6 +1326,7 @@
                                        { type: 'radio' }
                                        , { field: 'HSNO', title: '序号', width: 60 }
                                        , { field: 'HQty', title: '数量', width: 80 }
                                        , { field: 'HAuxQty', title: '辅助数量', width: 80 }
                                        , { field: 'HQtyMust', title: '应发数量', width: 80 }
                                        , { field: 'HMaterName', title: '物料名称', width: 90 }
                                        , { field: 'HMaterNumber', title: '物料代码', width: 90 }
@@ -1394,6 +1426,7 @@
                                    { type: 'radio' }
                                    , { field: 'HSNO', title: '序号', width: 60 }
                                    , { field: 'HQty', title: '数量', width: 80 }
                                    , { field: 'HAuxQty', title: '辅助数量', width: 80 }
                                    , { field: 'HQtyMust', title: '应发数量', width: 80 }
                                    , { field: 'HMaterName', title: '物料名称', width: 90 }
                                    , { field: 'HMaterNumber', title: '物料代码', width: 90 }