王 垚
2022-03-10 0a5f8549460f47342b670fe7137e2eb1469bc706
WebTM/views/Éú²ú¹ÜÀí/Éú²úÈÎÎñµ¥/Sc_ICMOBillList.html
@@ -50,6 +50,16 @@
                                </button>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">重置</button>
                                <div class="layui-inline">
                                    <label class="layui-form-label">单据号</label>
                                    <div class="layui-input-block">
                                        <input type="text" class="layui-input" name="HBillno2" id="HBillno2" style="width:190px;">
                                    </div>
                                </div>
                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">重新同步</button>
                                <div class="layui-colla-content">
                                    <div class="layui-inline">
                                        <div class="layui-inline">
@@ -127,6 +137,11 @@
                };
            });
            //重新同步按钮
            form.on('submit(btnResCnz)', function (data) {
                set_ResCnz();
            });
            //重置按钮
            form.on('submit(btnReSearch)', function (data) {
                set_ClearQuery();
@@ -162,32 +177,33 @@
                    , limits: [50, 500, 5000, 20000]
                    , cols: [[
                        { type: 'checkbox', fixed: 'left' }
                        //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 }
                        , { 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 }
                        , { field: '单据号', title: '单据号', sort: true, width: 170 }
                        , { field: '订单跟踪号', title: '订单跟踪号', width: 105 }
                        //, { field: 'HDeptID', title: 'HDeptID' }
                        , { field: 'HDeptID', title: 'HDeptID', hide: true}
                        , { field: '生产车间代码', title: '生产车间代码', width: 115 }
                        , { field: '生产车间', title: '生产车间', width: 115 }
                        //, { field: 'HMaterID', title: 'HMaterID' }
                        , { field: 'HMaterID', title: 'HMaterID' , hide: true}
                        , { field: '产品代码', title: '产品代码', width: 160 }
                        , { field: '产品名称', title: '产品名称', width: 160 }
                        , { field: '规格型号', title: '规格型号', width: 215 }
                        //, { field: 'hunitid', title: 'hunitid' }
                        , { field: 'hunitid', title: 'hunitid' , hide: true}
                        , { field: '计量单位代码', title: '计量单位代码', width: 115 }
                        , { field: '计量单位', title: '计量单位' }
                        //, { field: 'hempid', title: 'hempid' }
                        , { field: 'hempid', title: 'hempid' , hide: true}
                        , { field: '业务员代码', title: '业务员代码', width: 100 }
                        , { field: '业务员', title: '业务员' }
                        , { field: 'hcusid', title: 'hcusid' }
                        , { field: '客户代码', title: '客户代码' }
                        , { field: '客户', title: '客户' }
                        //, { field: 'HCenterID', title: 'HCenterID' }
                        , { field: 'HCenterID', title: 'HCenterID' , hide: true}
                        , { field: '工作中心代码', title: '工作中心代码' }
                        , { field: '工作中心', title: '工作中心' }
                        //, { field: 'hbomid', title: 'hbomid' }
                        , { field: 'hbomid', title: 'hbomid' , hide: true}
                        , { field: 'BOM单编码', title: 'BOM单编码' }
                        //, { field: 'HRoutingInterID', title: 'HRoutingInterID' }
                        , { field: 'HRoutingInterID', title: 'HRoutingInterID' , hide: true}
                        , { field: '工艺路线代码', title: '工艺路线代码' }
                        , { field: '工艺路线', title: '工艺路线' }
                        , { field: '计划开工日期', title: '计划开工日期' }
@@ -199,7 +215,7 @@
                        , { field: '关联数量', title: '关联数量' }
                        , { field: '未关联数量', title: '未关联数量' }
                        , { field: '表头备注', title: '表头备注' }
                        //, { field: 'hsubid', title: 'hsubid' }
                        , { field: 'hsubid', title: 'hsubid' , hide: true}
                        , { field: '源单单号', title: '源单单号' }
                        , { field: '源单主内码', title: '源单主内码' }
                        , { field: '源单子内码', title: '源单子内码' }
@@ -308,12 +324,13 @@
                    , data = checkStatus.data;
                if (data.length === 1) {
                    var linterid = data[0].hmainid.toString();
                    var HEntryID = data[0].HEntryID.toString();
                    layer.open({
                        type: 2
                        , area: ['100%', '100%']
                        , title: '工序流转卡-编辑'
                        , shift: 0//弹出动画
                        , content: '../../车间管理/工序流转卡/Sc_ProcessExchangeBill.html?OperationType=2&linterid=' + linterid + '&HSouceBillType=3772'
                        , content: '../../车间管理/工序流转卡/Sc_ProcessExchangeBill.html?OperationType=2&linterid=' + linterid + '&HEntryID=' + HEntryID+'&HSouceBillType=3772'
                    })
                } else {
                    layer.msg('请选择一行数据下推!');
@@ -359,6 +376,34 @@
                }
            }
            //重新同步按钮
            function set_ResCnz() {
                var HBillno2 = $('#HBillno2').val();
                $.ajax({
                    url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize',
                    type: "GET",
                    data: { "HBillNo": HBillno2, "HBillType": 3710 },
                    success: function (result) {
                        if (result.count == 1) {
                            layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
                                // å¾—到frame索引
                                var index = layer.getFrameIndex(window.name);
                                //关闭当前frame
                                layer.close(index);
                                //修改为功后刷新界面
                                window.location.reload();
                            });
                        } else {
                            layer.alert(result.code + result.Message, { icon: 5 });
                        }
                    }, error: function () {
                        layer.close(wait);
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
            }
            //#endregion
            //laydate.render({
            //    elem: '#HDate'