yangle
2022-09-06 8b2aacd9782c5a11c10eb959ebe2793a832af334
WebTM/views/³µ¼ä¹ÜÀí/¹¤ÐòÁ÷ת¿¨/Sc_ProcessExchangeIssueBillList.html
@@ -92,6 +92,7 @@
                        <script type="text/html" id="toolbarDemo">
                            <div class="layui-btn-container">
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Issue"><i class="layui-icon layui-icon-file-b"></i>下达</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-file-b"></i>编辑</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>刷新</button>
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>退出</button>
                                <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_StationOut"><i class="layui-icon layui-icon-form"></i>工序出站汇报单</button>-->
@@ -152,6 +153,9 @@
                        break;
                    //编辑
                    case 'set_ShowBill': set_ShowBill();
                        break;
                    //下达
                    case 'set_Issue': set_Issue();
                        break;
                    //删除
                    case 'set_DeleteBill': set_DeleteBill();
@@ -292,7 +296,9 @@
                    , limits: [50, 500, 5000, 20000]
                    , cols: [[
                        { type: 'checkbox', fixed: 'left' }
                        , { field: 'hmainid', title: 'hmainid', width: 90, hide: true}
                        , { field: 'hmainid', title: 'hmainid', width: 90, hide: true }
                        , { field: 'HEntryID', title: 'HEntryID', width: 90, hide: true }
                        , { field: '下达状态', title: '下达状态' }
                        , { field: '打印次数', title: '打印次数' }
                        , { field: '类型', title: '类型' }
                        , {
@@ -305,10 +311,10 @@
                        }
                        , { field: '订单跟踪号', title: '订单跟踪号', width: 120 }
                        , { field: '单据号', title: '单据号', width: 190 }
                        , { field: 'hicmointerid', title: 'hicmointerid', width: 80, hide: true}
                        , { field: 'hicmointerid', title: 'hicmointerid', width: 80, hide: true }
                        , { field: '任务单号', title: '任务单号', width: 140 }
                        , { field: 'HWorkShopID', title: 'HWorkShopID', width: 80, hide: true}
                        , { field: 'HDeptID', title: 'HDeptID', width: 80, hide: true}
                        , { field: 'HWorkShopID', title: 'HWorkShopID', width: 80, hide: true }
                        , { field: 'HDeptID', title: 'HDeptID', width: 80, hide: true }
                        , { field: '生产车间代码', title: '生产车间代码', width: 115 }
                        , { field: '生产车间', title: '生产车间' }
                        , { field: '流水号', title: '流水号' }
@@ -317,17 +323,17 @@
                        , { field: '工序名称', title: '工序名称' }
                        , { field: '流转卡数量', title: '流转卡数量', width: 100 }
                        , { field: '委外标记', title: '委外标记' }
                        , { field: 'HMaterID', title: 'HMaterID', width: 80, hide: true}
                        , { field: 'HMaterID', title: 'HMaterID', width: 80, hide: true }
                        , { field: '子件代码', title: '子件代码' }
                        , { field: '子件名称', title: '子件名称' }
                        , { field: '子件规格', title: '子件规格' }
                        , { field: '批号', title: '批号' }
                        , { field: '原料批次号', title: '原料批次号' }
                        , { field: 'HMaterID2', title: 'HMaterID2', width: 80, hide: true}
                        , { field: 'HMaterID2', title: 'HMaterID2', width: 80, hide: true }
                        , { field: '产品代码', title: '产品代码' }
                        , { field: '产品名称', title: '产品名称' }
                        , { field: '规格型号', title: '规格型号' }
                        , { field: 'HUnitID', title: 'HUnitID', width: 80, hide: true}
                        , { field: 'HUnitID', title: 'HUnitID', width: 80, hide: true }
                        , { field: '单位代码', title: '单位代码' }
                        , { field: '单位', title: '单位' }
                        , { field: '设备模具代码', title: '设备模具代码' }
@@ -349,8 +355,8 @@
                        , { field: '关闭日期', title: '关闭日期' }
                        , { field: '作废人', title: '作废人' }
                        , { field: '作废日期', title: '作废日期' }
                        , { field: 'HBillType', title: 'HBillType', width: 80, hide: true}
                        , { field: 'hsubid', title: 'hsubid', width: 80, hide: true}
                        , { field: 'HBillType', title: 'HBillType', width: 80, hide: true }
                        , { field: 'hsubid', title: 'hsubid', width: 80, hide: true }
                        , { field: '拆分数量', title: '拆分数量' }
                        , { field: '源单客户编码', title: '源单客户编码', width: 80 }
                        , { field: '包装标识', title: '包装标识', width: 80 }
@@ -363,10 +369,10 @@
            function get_Display(sWhere) {
                sWhere += " and HPRDORGID=" + sessionStorage["OrganizationID"] + " ";
                var ajaxLoad = layer.load();
                $.ajax({
                $.ajax({
                    url: GetWEBURL() + '/LEMS/MES_Sc_ProcessExchangeIssueBillList_Json',
                    type: "GET",
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]},
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
@@ -381,7 +387,7 @@
                        layer.close(ajaxLoad);
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
                });
                DisPlay_HideColumn();
            }
@@ -501,7 +507,7 @@
                $.ajax({
                    url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList',
                    type: "GET",
                    data: { "HModName": HModName+"_Sec", "user": sessionStorage["HUserName"] },
                    data: { "HModName": HModName + "_Sec", "user": sessionStorage["HUserName"] },
                    success: function (data1) {
                        if (data1.data.length != 0) {
@@ -613,6 +619,31 @@
            }
            //#endregion
            //#region ä¸‹è¾¾
            function set_Issue() {
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 0) {
                    layer.msg('请选择需要下达的数据!');
                    return;
                }
                var linterid = "";
                for (var i = 0; i < data.length; i++) {
                    linterid += data[i].hmainid + "-" + data[i].HEntryID + ",";
                }
                linterid = linterid.substring(0, linterid.length - 1);
                //if (AllowLoadData(sSubStr) != false) {//非空验证
                layer.open({
                    type: 2
                    //, area: ['30%', '40%']
                    , area: ['100%', '100%']
                    , title: '工序列表-下达'
                    , shift: 0//弹出动画
                    , content: '../工序流转卡/Sc_ProcessExchangeIssue.html?linterid=' + linterid
                })
            }
            //#endregion
            //删除
            function set_DeleteBill() {
                var checkStatus = table.checkStatus('mainTable')
@@ -711,7 +742,7 @@
                            , content: '../../车间管理/工序出站汇报单/Cj_StationOutBill.html?OperationType=2&HBillNo=' + HBillNo + '&HProcNo=' + HProcNo
                        })
                    }
                } else {
                    layer.msg('请选择一行数据下推!');
                }