1
llj
2025-07-29 267a41edcbb3b0313d87829b32e531df5fde0772
WebTM/views/WMSɨÂëÄ£¿é/²É¹ºÈë¿â/Kf_POStockInBackBillList_PDA.html
@@ -37,30 +37,26 @@
                            </div>
                            <!--已上传列表-->
                            <div class="layui-tab-item">
                                <div class="layui-form-item" style="padding: 0px; margin: 0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs2">
                                <div class="layui-form-item" style="padding: 10px; margin: 0px">
                                    <div class="layui-row" style="margin-top: -10px;">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">单据号</label>
                                        </div>
                                        <div class="layui-col-xs10">
                                        <div class="layui-col-xs9">
                                            <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
                                        </div>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-xs2">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">源单单号</label>
                                        </div>
                                        <div class="layui-col-xs10">
                                        <div class="layui-col-xs9">
                                            <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
                                        </div>
                                    </div>
                                    <div class="layui-row" style="margin-top: 10px; margin-bottom: 10px;">
                                        <div class="layui-col-xs6">
                                            <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdQuery" class="layui-btn" id="cmdQuery">查询</button>
                                        </div>
                                        <div class="layui-col-xs4">
                                            <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdRescind" class="layui-btn" id="cmdRescind">撤销</button>
                                        </div>
                                    <div class="layui-row" style="margin-top: 10px; margin-bottom: 10px; float: right;">
                                        <button type="button" lay-submit="" lay-filter="cmdQuery" class="layui-btn" id="cmdQuery">查询</button>
                                        <button type="button" lay-submit="" lay-filter="cmdRescind" class="layui-btn" id="cmdRescind">撤销</button>
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-xs12">
@@ -73,16 +69,16 @@
                        </div>
                    </div>
                    <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
                        <div class="layui-col-xs2">
                        <div class="layui-col-xs2" style="margin-left:0px">
                            <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdModify" class="layui-btn" id="cmdModify">编辑</button>
                        </div>
                        <div class="layui-col-xs2">
                        <div class="layui-col-xs2" style="margin-left:5px">
                            <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdDelete" class="layui-btn" id="cmdDelete">删除</button>
                        </div>
                        <div class="layui-col-xs2">
                        <div class="layui-col-xs2" style="margin-left:5px">
                            <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdRefresh" class="layui-btn" id="cmdRefresh">刷新</button>
                        </div>
                        <div class="layui-col-xs2">
                        <div class="layui-col-xs2" style="margin-left:5px">
                            <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdCancel" class="layui-btn" id="cmdCancel">退出</button>
                        </div>
                    </div>
@@ -123,6 +119,7 @@
        var Uploadedoption = [];   //已上传列表
        var columns = "";
        var Uploadedcolumns = "";
        var MvarReportTitle = "采购退料单缓存列表";
        var HModName = "Kf_POStockInBackBillList_PDA";
        var ModRightName = "CE_POStockInBack";    //模块权限参数
        var titleData = [];     //不需要显示的字段
@@ -152,7 +149,7 @@
                    }
                    else {
                        layer.msg(d.Message, {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () { parent.location.href = "../../../views/index_Mobile.html"; });
                    }
                },
@@ -273,12 +270,12 @@
                            })
                        }
                        else {
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    },
                    complete: function (XHR, TS) { XHR = null },//回收资源
                    error: function (err) {
                        layer.msg("错误" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        layer.msg("错误" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                    }
                });
            }
@@ -303,7 +300,7 @@
                            type: "Get",
                            url: GetWEBURL() + "/WEBSController/set_DelPonderationBillMain_Temp_Json",
                            async: false,    //async用于控制(false)同步和(true)异步,默认的是true,即请求默认的是异步请求
                            data: { "HInterID": data[0].HInterID, "HBillType": HBillType },
                            data: { "HInterID": data[0].HInterID, "HBillNo": data[0].单据号, "HBillType": HBillType, "HMaker": HMaker, "HStockOrgID": HStockOrgID, "MvarReportTitle": MvarReportTitle },
                            dataType: "json",
                            success: function (data) {
                                if (data.count == 1) {
@@ -314,12 +311,12 @@
                                }
                                else {
                                    playSound();
                                    layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                    layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                                }
                            },
                            complete: function (XHR, TS) { XHR = null },//回收资源
                            error: function (err) {
                                layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                        });
                    layer.closeAll("loading");
@@ -373,14 +370,14 @@
                                switch (data[i].Type) {
                                    //int
                                    case 'DateTime':
                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 150 });
                                        col.push({ field: data[i].id, title: data[i].name, align: 'left', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 120 });
                                        break;
                                    default:
                                    if (data[i].name == '单据号' || data[i].name == '组织' || data[i].name == '源单单号' || data[i].name == '单据内码') {
                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', width: 150 });
                                        col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 150 });
                                    } else {
                                        col.push({ field: data[i].id, title: data[i].name, align: 'center' });
                                        col.push({ field: data[i].id, title: data[i].name, align: 'left' });
                                    }
                                }
                            }
@@ -404,7 +401,7 @@
                        listOption.data = data;
                        //listOption.totalRow = true;
                        table.render(listOption);
                        //layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        //layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                    }
                },
                complete: function (XHR, TS) { XHR = null }//回收资源
@@ -467,15 +464,15 @@
                                switch (data[i].Type) {
                                    //int
                                    case 'DateTime':
                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
                                        col.push({ field: data[i].id, title: data[i].name, align: 'left', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 120 });
                                        break;
                                    default:
                                        if (data[i].name == '数量') {
                                            col.push({ field: data[i].id, title: data[i].name, align: 'center', width: 80 });
                                        } else {
                                            col.push({ field: data[i].id, title: data[i].name, align: 'center', width: 150 });
                                        }
                                    if (data[i].name == '数量') {
                                        col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 80 });
                                    } else {
                                        col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 150 });
                                    }
                                }
                            }
                        }
@@ -501,7 +498,7 @@
                        Uploadedoption.data = data;
                        //Uploadedoption.totalRow = true;
                        table.render(Uploadedoption);
                        //layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        //layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                    }
                },
                complete: function (XHR, TS) { XHR = null }//回收资源
@@ -521,9 +518,9 @@
                $.ajax(
                    {
                        type: "Get",
                        url: GetWEBURL() + "/WEBSController/DeleteICStockBillAndWMS_Json",
                        url: GetWEBURL() + "/WEBSController/set_DeleteICStockBillAndWMS_Json",
                        async: false,    //async用于控制(false)同步和(true)异步,默认的是true,即请求默认的是异步请求
                        data: { "HInterID": data[0].HInterID, "HBillNo": data[0].单据号, "HBillType": HBillType },
                        data: { "HInterID": data[0].HInterID, "HBillNo": data[0].单据号, "HBillType": HBillType, "HMaker": HMaker, "MvarReportTitle": MvarReportTitle },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) {
@@ -537,12 +534,12 @@
                            }
                            else {
                                playSound();
                                layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                        },
                        complete: function (XHR, TS) { XHR = null },//回收资源
                        error: function (err) {
                            layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    });
                layer.closeAll("loading");