zzr99
2021-11-12 15113636be02f3f398e62ce1e8c7b2e9c1da7b43
新增器具档案初始化按钮新增采购入库记录
3个文件已修改
52 ■■■■ 已修改文件
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldMoveStockStepOutBill.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具仓库管理/Sc_MouldProdMoveBill.html 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/模治具管理/模治具管理/Gy_MouldFileList.html 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldMoveStockStepOutBill.html
@@ -277,7 +277,8 @@
                elem: '#mainTable1'
                , height: 500
                , page: true //开启分页
                , cols: [{ type: 'checkbox', fixed: 'left' }
                , cols: [[
                    { type: 'checkbox', fixed: 'left' }
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe", width: 100 }
                    , { field: '物料代码', title: '物料代码', edit: 'text', event: 'HMaterCode', width: 100 }
                    , { field: '物料名称', title: '物料名称', edit: 'text', width: 100 }
@@ -288,7 +289,7 @@
                    , { field: 'hscwhid', title: 'hscwhid', edit: 'text', width: 100, hide: true }
                    , { field: '调出仓库代码', title: '调出仓库代码', edit: 'text', event: 'HWHCode', width: 120 }
                    , { field: '调出仓库', title: '调出仓库', edit: 'text', width: 120 }
                    , { field: '表体备注', title: '备注', edit: 'text', width: 100 }]
                    , { field: '表体备注', title: '备注', edit: 'text', width: 100 }]]
                , limit: 500 //每页默认显示的数量
            };
            //判断是否新增
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldProdMoveBill.html
@@ -277,7 +277,7 @@
                , height: 500
                //,url: '/demo/table/user/' //数据接口
                , page: true //开启分页
                , cols: [
                , cols: [[
                    { type: 'checkbox', fixed: 'left' }
                    , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe", width: 100 }
                    , { field: '物料代码', title: '物料代码', edit: 'text', event: 'HMaterCode', width: 100 }
@@ -290,7 +290,7 @@
                    , { field: '调出仓库代码', title: '调出仓库代码', edit: 'text', event: 'HWHCode', width: 120 }
                    , { field: '调出仓库', title: '调出仓库', edit: 'text', width: 120 }
                    , { field: '表体备注', title: '备注', edit: 'text', width: 100 }
                ]
                ]]
                , limit: 500 //每页默认显示的数量
            };
            //判断是否新增
@@ -307,8 +307,6 @@
                    type: "GET",
                    data: { "sqlWhere": "and hmainid=" + hID },
                    success: function (result) {
                        //console.log(result);
                        //console.log('gouba' + result);
                        if (result.count == 1) {
                            option.data = result.list[0];
                            table.render(option);
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Gy_MouldFileList.html
@@ -56,10 +56,7 @@
                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeAudit"><i class="layui-icon layui-icon-circle"></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="get_Initialize"><i class="layui-icon layui-icon-share"></i>初始化</button>
                            </div>
                        </script>
                    </form>
@@ -119,6 +116,9 @@
                        break;
                    //退出按钮
                    case 'get_Exit': Pub_Close(2);
                        break;
                    //初始化按钮
                    case 'get_Initialize': get_Initialize();
                        break;
                };
            });
@@ -433,6 +433,39 @@
                $("#btnSearch").click();
            }
            //初始化
            function get_Initialize() {
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var HInterID = data[0].hmainid.toString();
                        $.ajax({
                            type: "GET",
                            url: GetWEBURL() + '/Gy_Material/InitializeProdInBill',
                            data: { "hmainid": HInterID, "user": sessionStorage["HUserName"] },
                            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.alert("接口请求失败!", { icon: 5 });
                            }
                        });
                    }
                else {
                    layer.msg('请选择一行数据删除!');
                }
            }
            //以上是layui模块
        });