ch
2022-05-30 5b57f37713ebad9ec15f02f3d9770015a21cb65f
修改了 供应商按照组织过滤   生产订单列表显示功能
4个文件已修改
188 ■■■■ 已修改文件
WebTM/views/Baseset/基础资料/Gy_SupplierList.html 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/生产任务单/Sc_ICMOBillList.html 142 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/车间管理/委外工序发出单/Cj_StationEntrustInBill.html 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/车间管理/委外工序接收单/Cj_StationEntrustOutBill.html 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_SupplierList.html
@@ -35,6 +35,20 @@
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script>
        function getUrlVars() {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for (var i = 0; i < hashes.length; i++) {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        }
        var params = getUrlVars();
        var HOtherOrgID = params[params[0]];
        layui.use(['table', 'form', 'layer'], function () {
            var table = layui.table
            , form = layui.form
@@ -67,17 +81,20 @@
              , page: true
            });
            ///加载显示数据
            function RoadQuery(Where) {
            function RoadQuery(Where, HOrgID) {
                var Value = Where;
                if (Value == null) {
                    Value = '';
                }
                if (HOrgID == null) {
                    HOrgID = 0;
                }
                $.ajax({
                    type: "get",
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetSupplierList_Json",
                    url: GetWEBURL() + "/Web/GetSupplierList_Json",
                    async: true,
                    data: { "Supplier": Value },
                    data: { "Supplier": Value, "HOrgID": HOtherOrgID },
                    //data: { "Value": Value },
                    success: function (result) {
                        ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
WebTM/views/Éú²ú¹ÜÀí/Éú²úÈÎÎñµ¥/Sc_ICMOBillList.html
@@ -225,6 +225,87 @@
            //#endregion
            option_YQN = {
                elem: '#mainTable'
                , toolbar: '#toolbarDemo'
                , height: 'full-50'
                , page: true
                , cellMinWidth: 90
                , limit: 50
                , limits: [50, 500, 5000, 20000]
                , cols: [[
                    { type: 'checkbox', fixed: 'left' }
                    , { field: 'hmainid', title: 'hmainid', sort: true, width: 165, hide: true }
                    , { field: 'HEntryID', title: 'HEntryID', sort: true, width: 165, hide: true }
                    , { field: '日期', title: '日期', sort: true, width: 120, hide: true }
                    , { field: '销售订单日期', title: '销售订单日期', sort: true, width: 120, hide: true }
                    , { field: '单据号', title: '单据号', sort: true, width: 170, hide: true }
                    , { field: '销售订单日期', title: '销售订单日期', sort: true, width: 200 }
                    , { field: '销售订单编号', title: '销售订单编号', sort: true, width: 200 }
                    , { field: '销售物料名称', title: '销售物料名称', sort: true, width: 200 }
                    , { field: '包装方式', title: '包装方式', sort: true, width: 150 }
                    , { field: '销售数量', title: '销售数量', sort: true, width: 150 }
                    , { field: '销售订单联系人', title: '销售订单联系人', sort: true, width: 150 }
                    , { field: '业务状态', title: '业务状态', sort: true, width: 150 }
                    , { field: '订单跟踪号', title: '订单跟踪号', sort: true, width: 120, hide: true }
                    , { field: 'HDeptID', title: 'HDeptID', hide: true }
                    , { field: '生产车间代码', title: '生产车间代码', width: 115, hide: true }
                    , { field: '生产车间', title: '生产车间', width: 115, hide: true }
                    , { field: 'HMaterID', title: 'HMaterID', hide: true }
                    , { field: '产品代码', title: '产品代码', width: 160, hide: true }
                    , { field: '产品名称', title: '产品名称', width: 160, hide: true }
                    , { field: '规格型号', title: '规格型号', width: 215, hide: true }
                    , { field: 'hunitid', title: 'hunitid', hide: true }
                    , { field: '计量单位代码', title: '计量单位代码', width: 115, hide: true }
                    , { field: '计量单位', title: '计量单位', hide: true }
                    , { field: 'hempid', title: 'hempid', hide: true }
                    , { field: '业务员代码', title: '业务员代码', width: 100, hide: true }
                    , { field: '业务员', title: '业务员', hide: true }
                    , { field: 'hcusid', title: 'hcusid', hide: true }
                    , { field: '客户代码', title: '客户代码', hide: true }
                    , { field: '客户', title: '客户', hide: true }
                    , { field: 'HCenterID', title: 'HCenterID', hide: true }
                    , { field: '工作中心代码', title: '工作中心代码', hide: true }
                    , { field: '工作中心', title: '工作中心', hide: true }
                    , { field: 'hbomid', title: 'hbomid', hide: true }
                    , { field: 'BOM单编码', title: 'BOM单编码', hide: true }
                    , { field: 'HRoutingInterID', title: 'HRoutingInterID', hide: true }
                    , { field: '工艺路线代码', title: '工艺路线代码', hide: true }
                    , { field: '工艺路线', title: '工艺路线', hide: true }
                    , { field: '计划开工日期', title: '计划开工日期', hide: true }
                    , { field: '计划完工日期', title: '计划完工日期', hide: true }
                    , { field: '最迟开工日期', title: '最迟开工日期', hide: true }
                    , { field: '最迟完工日期', title: '最迟完工日期', hide: true }
                    , { field: '齐套数量', title: '齐套数量', hide: true }
                    , { field: '计划生产数量', title: '计划生产数量', hide: true }
                    , { field: '关联数量', title: '关联数量', hide: true }
                    , { field: '未关联数量', title: '未关联数量', hide: true }
                    , { field: '表头备注', title: '表头备注', hide: true }
                    , { field: 'hsubid', title: 'hsubid', hide: true }
                    , { field: '源单单号', title: '源单单号', hide: true }
                    , { field: '源单主内码', title: '源单主内码', hide: true }
                    , { field: '源单子内码', title: '源单子内码', hide: true }
                    , { field: '制单人', title: '制单人', hide: true }
                    , { field: '制单日期', title: '制单日期', hide: true }
                    , { field: '审核人', title: '审核人', hide: true }
                    , { field: '审核日期', title: '审核日期', hide: true }
                    , { field: '修改人', title: '修改人', hide: true }
                    , { field: '修改日期', title: '修改日期', hide: true }
                    , { field: '关闭人', title: '关闭人', hide: true }
                    , { field: '关闭日期', title: '关闭日期', hide: true }
                    , { field: '作废人', title: '作废人', hide: true }
                    , { field: '作废日期', title: '作废日期', hide: true }
                    , { field: '行关闭人', title: '行关闭人', hide: true }
                    , { field: '关闭类型', title: '关闭类型', hide: true }
                    , { field: '单据类型', title: '单据类型', hide: true }
                    , { field: '计划跟踪号', title: '计划跟踪号', hide: true }
                ]]
            };
            function set_InitGrid() {
                $("#HDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
                $("#HDate1").val(Format(new Date(), "yyyy-MM-dd"));
@@ -240,11 +321,36 @@
                        { type: 'checkbox', fixed: 'left' }
                        , { field: 'hmainid', title: 'hmainid', sort: true, width: 165, hide: true }
                        , { field: 'HEntryID', title: 'HEntryID', sort: true, width: 165, hide: true }
                        , { field: '日期', title: '日期', sort: true, width: 120, hide: true }
                        , { field: '单据号', title: '单据号', sort: true, width: 170 }
                        , { field: '日期', title: '日期' }
                        , { field: '产品代码', title: '产品代码', width: 160 }
                        , { field: '产品名称', title: '产品名称', width: 160 }
                        , { field: '规格型号', title: '规格型号', width: 215 }
                        , { field: '生产车间代码', title: '生产车间代码', width: 115 }
                        , { field: '生产车间', title: '生产车间', width: 115 }
                        , { field: '计量单位代码', title: '计量单位代码', width: 115 }
                        , { field: '计量单位', title: '计量单位' }
                        , { field: '计划开工日期', title: '计划开工日期' }
                        , { field: '计划完工日期', title: '计划完工日期' }
                        , { field: '最迟开工日期', title: '最迟开工日期' }
                        , { field: '最迟完工日期', title: '最迟完工日期' }
                        , { field: '齐套数量', title: '齐套数量' }
                        , { field: '计划生产数量', title: '计划生产数量' }
                        , { field: '关联数量', title: '关联数量' }
                        , { field: '未关联数量', title: '未关联数量' }
                        , { field: '表头备注', title: '表头备注' }
                        , { field: '制单人', title: '制单人' }
                        , { field: '制单日期', title: '制单日期' }
                        , { field: '审核人', title: '审核人' }
                        , { field: '审核日期', title: '审核日期' }
                        , { field: '修改人', title: '修改人' }
                        , { field: '修改日期', title: '修改日期' }
                        , { field: '关闭人', title: '关闭人' }
                        , { field: '关闭日期', title: '关闭日期' }
                        , { field: '作废人', title: '作废人', hide: true }
                        , { field: '作废日期', title: '作废日期', hide: true }
                        , { field: '销售订单日期', title: '销售订单日期', sort: true, width: 120, hide: true }
                        , { field: '单据号', title: '单据号', sort: true, width: 170, hide: true }
                        , { field: '销售订单日期', title: '销售订单日期', sort: true, width: 200 }
                        , { field: '销售订单编号', title: '销售订单编号', sort: true, width: 200 }
                        , { field: '销售物料名称', title: '销售物料名称', sort: true, width: 200 }
@@ -252,19 +358,10 @@
                        , { field: '销售数量', title: '销售数量', sort: true, width: 150 }
                        , { field: '销售订单联系人', title: '销售订单联系人', sort: true, width: 150 }
                        , { field: '业务状态', title: '业务状态', sort: true, width: 150 }
                        , { field: '订单跟踪号', title: '订单跟踪号', sort: true, width: 120, hide: true }
                        , { field: 'HDeptID', title: 'HDeptID', hide: true}
                        , { field: '生产车间代码', title: '生产车间代码', width: 115, hide: true }
                        , { field: '生产车间', title: '生产车间', width: 115, hide: true}
                        , { field: 'HMaterID', title: 'HMaterID', hide: true }
                        , { field: '产品代码', title: '产品代码', width: 160, hide: true}
                        , { field: '产品名称', title: '产品名称', width: 160, hide: true}
                        , { field: '规格型号', title: '规格型号', width: 215, hide: true}
                        , { field: 'hunitid', title: 'hunitid', hide: true }
                        , { field: '计量单位代码', title: '计量单位代码', width: 115, hide: true}
                        , { field: '计量单位', title: '计量单位', hide: true}
                        , { field: 'hempid', title: 'hempid' , hide: true}
                        , { field: '业务员代码', title: '业务员代码', width: 100, hide: true}
                        , { field: '业务员', title: '业务员', hide: true}
@@ -279,29 +376,10 @@
                        , { field: 'HRoutingInterID', title: 'HRoutingInterID' , hide: true}
                        , { field: '工艺路线代码', title: '工艺路线代码', hide: true }
                        , { field: '工艺路线', title: '工艺路线', hide: true}
                        , { field: '计划开工日期', title: '计划开工日期', hide: true}
                        , { field: '计划完工日期', title: '计划完工日期', hide: true}
                        , { field: '最迟开工日期', title: '最迟开工日期', hide: true}
                        , { field: '最迟完工日期', title: '最迟完工日期', hide: true}
                        , { field: '齐套数量', title: '齐套数量', hide: true}
                        , { field: '计划生产数量', title: '计划生产数量', hide: true }
                        , { field: '关联数量', title: '关联数量', hide: true}
                        , { field: '未关联数量', title: '未关联数量', hide: true}
                        , { field: '表头备注', title: '表头备注', hide: true}
                        , { field: 'hsubid', title: 'hsubid' , hide: true}
                        , { field: '源单单号', title: '源单单号', hide: true}
                        , { field: '源单主内码', title: '源单主内码', hide: true}
                        , { field: '源单子内码', title: '源单子内码', hide: true}
                        , { field: '制单人', title: '制单人', hide: true}
                        , { field: '制单日期', title: '制单日期', hide: true }
                        , { field: '审核人', title: '审核人', hide: true }
                        , { field: '审核日期', title: '审核日期', hide: true}
                        , { field: '修改人', title: '修改人', hide: true }
                        , { field: '修改日期', title: '修改日期', hide: true}
                        , { field: '关闭人', title: '关闭人', hide: true}
                        , { field: '关闭日期', title: '关闭日期', hide: true }
                        , { field: '作废人', title: '作废人', hide: true}
                        , { field: '作废日期', title: '作废日期', hide: true }
                        , { field: '行关闭人', title: '行关闭人', hide: true}
                        , { field: '关闭类型', title: '关闭类型', hide: true}
                        , { field: '单据类型', title: '单据类型', hide: true}
WebTM/views/³µ¼ä¹ÜÀí/ίÍ⹤Ðò·¢³öµ¥/Cj_StationEntrustInBill.html
@@ -728,6 +728,7 @@
            //选择供应商
            form.on('submit(HSupID-BT)', function () {
                var HStockInOrgID = sessionStorage["OrganizationID"];
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
@@ -735,7 +736,7 @@
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../Baseset/基础资料/Gy_SupplierList.html', 'yes']
                    , content: ['../../Baseset/基础资料/Gy_SupplierList.html?HOrgID=' + HStockInOrgID + '', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
@@ -743,6 +744,8 @@
                })
            });
            //选择产品
            form.on('submit(HMateriaID-BT)', function () {//选择产品
                layer.open({
WebTM/views/³µ¼ä¹ÜÀí/ίÍ⹤Ðò½ÓÊÕµ¥/Cj_StationEntrustOutBill.html
@@ -889,8 +889,26 @@
            }
            //#endregion
            ////选择供应商
            //form.on('submit(HSupID-BT)', function () {
            //    layer.open({
            //        type: 2
            //        , area: ['80%', '80%']
            //        , title: '供应商列表'
            //        , shade: 0.6 //遮罩透明度
            //        , maxmin: true //允许全屏最小化
            //        , anim: 0 //0-6的动画形式,-1不开启
            //        , content: ['../../Baseset/基础资料/Gy_SupplierList.html', 'yes']
            //        , resize: false
            //        , cancel: function () {
            //            //$(".layui-btn").removeClass("layui-btn-disabled");
            //        }
            //    })
            //});
            //选择供应商
            form.on('submit(HSupID-BT)', function () {
                var HStockInOrgID = sessionStorage["OrganizationID"];
                layer.open({
                    type: 2
                    , area: ['80%', '80%']
@@ -898,7 +916,7 @@
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../Baseset/基础资料/Gy_SupplierList.html', 'yes']
                    , content: ['../../Baseset/基础资料/Gy_SupplierList.html?HOrgID=' + HStockInOrgID + '', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");