增加 表体网格功能,显示这个流转卡的进出站记录。列动态加载(进站单、委外接收、委外发出单)
3个文件已修改
240 ■■■■■ 已修改文件
WebTM/views/车间管理/委外工序发出单/Cj_StationEntrustInBill.html 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/车间管理/委外工序接收单/Cj_StationEntrustOutBill.html 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/车间管理/工序进站接收单/Cj_StationInBill.html 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/³µ¼ä¹ÜÀí/ίÍ⹤Ðò·¢³öµ¥/Cj_StationEntrustInBill.html
@@ -139,6 +139,7 @@
                                            <label class="layui-form-label">流转卡号</label>
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="HProcExchBillNo" id="HProcExchBillNo" style="background-color:#efefef4d;" readonly>
                                                <input type="hidden" class="layui-input" name="HProcExchHinteID" id="HProcExchHinteID">
                                            </div>
                                        </div>
                                        <div class="layui-col-xs4 layui-inline">
@@ -162,7 +163,7 @@
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label">流水号</label>
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="HProcNo" id="HProcNo">
                                                <input type="text" class="layui-input" name="HProcNo" id="HProcNo" placeholder="请键入后回车">
                                            </div>
                                        </div>
                                        <div class="layui-col-xs4 layui-inline">
@@ -390,6 +391,7 @@
                            </div>
                        </div>
                    </div>
                    <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                    <!--隐藏字段-->
                    <input type="hidden" name="lngBillKey" id="lngBillKey" value="0">
                    <input type="hidden" name="lngBillSubKey" id="lngBillSubKey" value="0">
@@ -415,6 +417,9 @@
                , element = layui.element;
            //进入页面默认光标在条形码上
            $("#HBarCode").focus();
            //不需要显示的字段 å¯æ‰©å±•
            var titleData = [];
            /*固定代码,每张单据都要begin*/
            /* 1.无源单新增
@@ -598,11 +603,60 @@
                                "HGroup": data.班组,
                                "HDeptID": sessionStorage["HDeptID"],
                                "HDept": sessionStorage["HDept"],
                                "HProcExchHinteID": data.hmainid,
                                "HPRDOrg": data.组织
                            });
                            $("#HBarCode").attr("readonly", "readonly");//条形码只读
                            $("#HBarCode").css("background-color", "#efefef4d");
                            HProcExchBillNoFlag = true;
                            var HProcExchHinteID = $('#HProcExchHinteID').val();
                            //动态列
                            $.ajax({
                                url: GetWEBURL() + "/Cj_StationEntrustInBill/DisBillEntryList",
                                type: "GET",
                                data: { "HProcExchHinteID": HProcExchHinteID },
                                success: function (data1) {
                                    if (data1.count == 1) {
                                        var data = [];
                                        var col = [];
                                        //给空的数组赋值
                                        for (var key in data1.list) {
                                            data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                                        }
                                        //在列表左边添加勾选框
                                        col.push({ type: 'checkbox', fixed: 'left' });
                                        for (var i = 0; i < data.length; i++) {
                                            // if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') {
                                            if ($.inArray(data[i].name, titleData) > -1) {
                                                col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                                            }
                                            else {
                                                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 });
                                                        break;
                                                    default:
                                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
                                                }
                                            }
                                        }
                                    }
                                    option = {
                                        elem: '#mainTable',
                                        url: GetWEBURL() + "/Cj_StationEntrustInBill/DisBillEntryList",
                                        type: "GET",
                                        //, cellMinWidth: 80
                                        toolbar: '#toolbarDemo'
                                        , where: { HProcExchHinteID: HProcExchHinteID }
                                        , cols: [col]
                                        , height: 500
                                    }
                                    table.render(option)
                                }
                            })
                            layer.close(index);
                        }
                        else {
WebTM/views/³µ¼ä¹ÜÀí/ίÍ⹤Ðò½ÓÊÕµ¥/Cj_StationEntrustOutBill.html
@@ -145,7 +145,10 @@
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label">当前工序</label>
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="HProcName" id="HProcName" style="background-color:#efefef4d;" readonly>
                                                <input type="text" class="layui-input" name="HProcName" id="HProcName" style="float: left; width: 150px; background-color: #efefef4d;" readonly>
                                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="CurrPro-BT" id="SerialNum-BT" style="width: 40px; padding: 0 10px;">
                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                </button>
                                                <input type="hidden" name="HProcID" id="HProcID" value="0">
                                            </div>
                                        </div>
@@ -360,6 +363,7 @@
                            </div>
                        </div>
                    </div>
                    <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                    <!--隐藏字段-->
                    <input type="hidden" name="lngBillKey" id="lngBillKey">
                    <input type="hidden" name="lngBillSubKey" id="lngBillSubKey">
@@ -394,6 +398,9 @@
                , element = layui.element;
            //进入页面默认光标在条形码上
            $("#HBarCode").focus();
            //不需要显示的字段 å¯æ‰©å±•
            var titleData = [];
            /*固定代码,每张单据都要begin*/
            /* 1.无源单新增
@@ -687,6 +694,7 @@
                                "HGroup": data.班组,
                                "HDeptID": sessionStorage["HDeptID"],
                                "HDept": sessionStorage["HDept"],
                                "HProcExchHinteID": data.hmainid,
                                "HPRDOrg": data.组织
                            });
                            if ($("#eventType").val() === "Add") {
@@ -701,6 +709,54 @@
                            $("#HBarCode").attr("readonly", "readonly");//条形码只读
                            $("#HBarCode").css("background-color", "#efefef4d");
                            HProcExchBillNoFlag = true;
                            var HProcExchHinteID = $('#HProcExchHinteID').val();
                            //动态列
                            $.ajax({
                                url: GetWEBURL() + "/Cj_StationEntrustInBill/DisBillEntryList",
                                type: "GET",
                                data: { "HProcExchHinteID": HProcExchHinteID },
                                success: function (data1) {
                                    if (data1.count == 1) {
                                        var data = [];
                                        var col = [];
                                        //给空的数组赋值
                                        for (var key in data1.list) {
                                            data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                                        }
                                        //在列表左边添加勾选框
                                        col.push({ type: 'checkbox', fixed: 'left' });
                                        for (var i = 0; i < data.length; i++) {
                                            // if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') {
                                            if ($.inArray(data[i].name, titleData) > -1) {
                                                col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                                            }
                                            else {
                                                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 });
                                                        break;
                                                    default:
                                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
                                                }
                                            }
                                        }
                                    }
                                    option = {
                                        elem: '#mainTable',
                                        url: GetWEBURL() + "/Cj_StationEntrustInBill/DisBillEntryList",
                                        type: "GET",
                                        //, cellMinWidth: 80
                                        toolbar: '#toolbarDemo'
                                        , where: { HProcExchHinteID: HProcExchHinteID }
                                        , cols: [col]
                                        , height: 500
                                    }
                                    table.render(option)
                                }
                            })
                            layer.close(index);
                        }
                        else {
@@ -932,6 +988,23 @@
                })
            });
            //选择当前工序弹窗
            form.on('submit(CurrPro-BT)', function () {//选择当前工序
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
                    , title: '当前工序'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../Baseset/基础资料/Gy_ProcList.html', 'yes']
                    , resize: false
                    , cancel: function (index, layero) {
                    }
                })
                //layer.msg('禁止选择');
            });
            //#region æ–°å¢žæŒ‰é’®
            form.on('submit(set_AddNew)', function () {//提交
                layer.confirm('新增后页面数据将消失?', { icon: 3, title: '提示' }, function (index) {
@@ -991,6 +1064,11 @@
            $("#HSupName").val(obj[0].HName);
            $("#HSupID").val(obj[0].HItemID);
        }
        //返回工序
        function GetHProcValue(obj) {
            $("#HProcName").val(obj[0].工序);
            $("#HProcID").val(obj[0].HItemID);
        }
    </script>
</body>
WebTM/views/³µ¼ä¹ÜÀí/¹¤Ðò½øÕ¾½ÓÊÕµ¥/Cj_StationInBill.html
@@ -141,7 +141,10 @@
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label"><span style="color:red;">*</span>当前工序</label>
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="HProcName" id="HProcName" style="background-color:#efefef4d;" readonly>
                                                <input type="text" class="layui-input" name="HProcName" id="HProcName" style="float: left; width: 150px; background-color: #efefef4d;" readonly>
                                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="CurrPro-BT" id="SerialNum-BT" style="width: 40px; padding: 0 10px;">
                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                                </button>
                                                <input type="hidden" name="HProcID" id="HProcID" value="0">
                                            </div>
                                        </div>
@@ -156,7 +159,7 @@
                                        <div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label"><span style="color:red;">*</span>流水号</label>
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="HProcNo" id="HProcNo">
                                                <input type="text" class="layui-input" name="HProcNo" id="HProcNo" placeholder="请键入后回车">
                                            </div>
                                        </div>
                                        <div class="layui-col-xs4 layui-inline">
@@ -209,12 +212,12 @@
                                            </div>
                                        </div>
                                        <!--<div class="layui-col-xs4 layui-inline">
                                            <label class="layui-form-label"><span style="color:red;">*</span>工作中心</label>
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" name="HCenterName" id="HCenterName" style="background-color:#efefef4d;" readonly>
                                                <input type="hidden" name="HCenterID" id="HCenterID" value="0">
                                            </div>
                                        </div>-->
            <label class="layui-form-label"><span style="color:red;">*</span>工作中心</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" name="HCenterName" id="HCenterName" style="background-color:#efefef4d;" readonly>
                <input type="hidden" name="HCenterID" id="HCenterID" value="0">
            </div>
        </div>-->
                                    </div>
                                    <div class="layui-row">
                                        <div class="layui-col-xs8 layui-inline">
@@ -384,6 +387,7 @@
                            </div>
                        </div>
                    </div>
                    <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                    <!--隐藏字段-->
                    <input type="hidden" name="lngICMOEntryID" id="lngICMOEntryID">
                    <input type="hidden" name="lngBillKey" id="lngBillKey" value="0">
@@ -410,6 +414,10 @@
                , upload = layui.upload
                , element = layui.element;
            var params = get_UrlVars();
            //不需要显示的字段 å¯æ‰©å±•
            var titleData = [];
            if (typeof (params[params[0]]) == "undefined") {
                var OperationType = 1;//操作类型
                var closeType = 2;  //关闭类型
@@ -478,8 +486,6 @@
            //进入页面默认光标在条形码上
            $("#HBarCode").focus();
            //#region è§¦å‘事件:包括form.on(){}格式的所有点击事件、选择事件等
@@ -855,6 +861,61 @@
                            $("#HBarCode").attr("readonly", "readonly");//条形码只读
                            $("#HBarCode").css("background-color", "#efefef4d");
                            HProcExchBillNoFlag = true;
                            var HProcExchHinteID = $('#HProcExchHinteID').val();
                            //动态列
                            $.ajax({
                                url: GetWEBURL() + "/Cj_StationEntrustInBill/DisBillEntryList",
                                type: "GET",
                                data: { "HProcExchHinteID": HProcExchHinteID },
                                success: function (data1) {
                                    if (data1.count == 1) {
                                        var data = [];
                                        var col = [];
                                        //给空的数组赋值
                                        for (var key in data1.list) {
                                            data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                                        }
                                        //在列表左边添加勾选框
                                        col.push({ type: 'checkbox', fixed: 'left' });
                                        for (var i = 0; i < data.length; i++) {
                                            // if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') {
                                            if ($.inArray(data[i].name, titleData) > -1) {
                                                col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                                            }
                                            else {
                                                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 });
                                                        break;
                                                    default:
                                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
                                                }
                                            }
                                        }
                                    }
                                    option = {
                                        elem: '#mainTable',
                                        url: GetWEBURL() + "/Cj_StationEntrustInBill/DisBillEntryList",
                                        type: "GET",
                                        //, cellMinWidth: 80
                                        toolbar: '#toolbarDemo'
                                        , where: { HProcExchHinteID: HProcExchHinteID }
                                        , cols: [col]
                                        , height: 500
                                    }
                                    table.render(option)
                                }
                            })
                            //layer.close(index);
                            //set_InitGrid();
                            //table.render(option);
                            //刷新表格数据
                            //DisPlay_HideColumn();
                            layer.close(index);
                        }
                        else {
@@ -957,6 +1018,7 @@
            //选择生产资源弹窗
            form.on('submit(ProductionResources-BT)', function () {//生产资源
                console.log($('#HProcNo').val())
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
@@ -1024,6 +1086,23 @@
                    //, maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../Baseset/基础资料/Gy_WorkCenterList.html', 'yes']
                    , resize: false
                    , cancel: function (index, layero) {
                    }
                })
                //layer.msg('禁止选择');
            });
            //选择当前工序弹窗
            form.on('submit(CurrPro-BT)', function () {//选择当前工序
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
                    , title: '当前工序'
                    , shade: 0.6 //遮罩透明度
                    //, maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../Baseset/基础资料/Gy_ProcList.html', 'yes']
                    , resize: false
                    , cancel: function (index, layero) {
                    }
@@ -1103,6 +1182,11 @@
            $("#HCenterName").val(obj[0].工作中心);
            $("#HCenterID").val(obj[0].HItemID);
        }
        //返回当前工序
        function GetHProcValue(obj) {  //返回当前工序
            $("#HProcName").val(obj[0].工序);
            $("#HProcID").val(obj[0].HItemID);
        }
    </script>
</body>