1
cwjbxqmz
2024-01-26 b742f00aac8e1e1bb628232383c35e67f4a41e4e
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Gy_MouldFileResume.html
@@ -9,6 +9,7 @@
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/soulTable.slim.js"></script>
    <style type="text/css">
        input.layui-input.layui-unselect {
            padding-right: 0;
@@ -130,7 +131,7 @@
            base: '../../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index', //主入口模块
        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate','soulTable'], function () {
            //#region å…¬å…±å˜é‡
            var $ = layui.$
                , admin = layui.admin
@@ -145,6 +146,7 @@
                , laypage = layui.laypage
                , laydate = layui.laydate
                , util = layui.util
                , soulTable = layui.soulTable
            //查询条件
            var sWhere = "";
            var option = [];
@@ -186,7 +188,7 @@
                var datas = obj.data; //获得当前行数据
                var linterid = datas.hmainid;
                $.ajax({
                    url: GetWEBURL() + 'Sb_EquipMaintainBill/Sb_EquipMaintainBillListProjectDetaiNew',
                    url: GetWEBURL() + 'Gy_EquipFileMain/Gy_MouldFileBillResumeDate',
                    type: "GET",
                    data: { "HInterID": linterid },
                    success: function (data1) {
@@ -195,6 +197,10 @@
                            table1.render(option1);
                            option2.data = data1.list[1];
                            table2.render(option2);
                            option3.data = data1.list[2];
                            table3.render(option3);
                            option4.data = data1.list[3];
                            table4.render(option4);
                        } else {
                            layer.alert("获取失败", { icon: 5 });
                        }
@@ -216,6 +222,9 @@
            //#region æ­¤é¡µé¢æ‰€æœ‰æ–¹æ³•
            function set_ClearBill() {
                $("#BenginHCreateDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//开始日期
                $("#EndHCreateDate").val(Format(new Date(), "yyyy-MM-dd"));//结束日期
                //初始化表格
                //初始化表格(主表)
                set_InitGrid();
                //初始化表格(子表1)
@@ -239,64 +248,67 @@
                    , cellMinWidth: 90
                    , limit: 50
                    , limits: [50, 500, 5000, 20000]
                    , done: function (res, curr, count) {
                        soulTable.render(this);
                    }
                    , cols: [[
                        { type: 'checkbox', fixed: 'left' }
                        , { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
                        , { field: '日期', title: '日期', templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '单据号', title: '单据号' }
                        , { field: '模具品类', title: '器具分类' }
                        , { field: '条码编号', title: '条码编号' }
                        , { field: '对应ERP物料编码', title: '物料编号' }
                        , { field: '模具编号', title: '器具编号' }
                        , { field: '模具名称', title: '器具名称' }
                        , { field: '模具型号', title: '器具型号' }
                        , { field: '模具状态', title: '器具状态' }
                        , { field: '对应ERP物料编码', title: '器具ERP物料' }
                        , { field: '直径', title: '直径' }
                        , { field: '辅助属性', title: '辅助属性' }
                        , { field: '辅助属性2', title: '辅助属性2' }
                        , { field: '图号', title: '图号' }
                        , { field: '生产产品型号', title: '生产产品型号' }
                        , { field: 'HUnitID', title: 'HUnitID', hide: true }
                        , { field: '计量单位', title: '计量单位' }
                        , { field: '出厂日期', title: '出厂日期', templet: "<div>{{d.出厂日期 ==null ?'':layui.util.toDateString(d.出厂日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '出厂编号', title: '出厂编号' }
                        , { field: '使用部门代码', title: '使用部门代码' }
                        , { field: '使用部门', title: '使用部门' }
                        , { field: 'HSupID', title: 'HSupID', hide: true }
                        , { field: '供应商代码', title: '供应商代码' }
                        , { field: '供应商', title: '供应商' }
                        , { field: 'HWhID', title: 'HWhID', hide: true }
                        , { field: '默认仓库', title: '默认仓库' }
                        , { field: 'HSPID', title: 'HSPID', hide: true }
                        , { 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: '制单日期', templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '审核人', title: '审核人' }
                        , { field: '审核日期', title: '审核日期', templet: "<div>{{d.审核日期 ==null ?'':layui.util.toDateString(d.审核日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '修改人', title: '修改人' }
                        , { field: '修改日期', title: '修改日期', templet: "<div>{{d.修改日期 ==null ?'':layui.util.toDateString(d.修改日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '关闭人', title: '关闭人' }
                        , { field: '关闭日期', title: '关闭日期', templet: "<div>{{d.关闭日期 ==null ?'':layui.util.toDateString(d.关闭日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: 'hbilltype', title: 'hbilltype', hide: true }
                        , { field: '单据类型', title: '单据类型', hide: true }
                        , { field: 'HMoudType', title: 'HMoudType', hide: true }
                        , { field: 'hsubid', title: 'hsubid', hide: true }
                        , { field: '日期', title: '日期', templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>", sort: true}
                        , { field: '单据号', title: '单据号', sort: true }
                        , { field: '模具品类', title: '器具分类', sort: true }
                        , { field: '条码编号', title: '条码编号', sort: true }
                        , { field: '对应ERP物料编码', title: '物料编号', sort: true }
                        , { field: '模具编号', title: '器具编号', sort: true }
                        , { field: '模具名称', title: '器具名称', sort: true }
                        , { field: '模具型号', title: '器具型号', sort: true }
                        , { field: '模具状态', title: '器具状态', sort: true }
                        , { field: '对应ERP物料编码', title: '器具ERP物料', sort: true }
                        , { field: '直径', title: '直径', sort: true }
                        , { field: '辅助属性', title: '辅助属性', sort: true }
                        , { field: '辅助属性2', title: '辅助属性2', sort: true }
                        , { field: '图号', title: '图号', sort: true }
                        , { field: '生产产品型号', title: '生产产品型号', sort: true }
                        , { field: 'HUnitID', title: 'HUnitID', hide: true, sort: true }
                        , { field: '计量单位', title: '计量单位', sort: true }
                        , { field: '出厂日期', title: '出厂日期', templet: "<div>{{d.出厂日期 ==null ?'':layui.util.toDateString(d.出厂日期, 'yyyy-MM-dd')}}</div>", sort: true }
                        , { field: '出厂编号', title: '出厂编号', sort: true }
                        , { field: '使用部门代码', title: '使用部门代码', sort: true }
                        , { field: '使用部门', title: '使用部门', sort: true }
                        , { field: 'HSupID', title: 'HSupID', hide: true, sort: true }
                        , { field: '供应商代码', title: '供应商代码', sort: true }
                        , { field: '供应商', title: '供应商', sort: true }
                        , { field: 'HWhID', title: 'HWhID', hide: true, sort: true }
                        , { field: '默认仓库', title: '默认仓库', sort: true }
                        , { field: 'HSPID', title: 'HSPID', hide: true, sort: true }
                        , { field: '默认仓位', title: '默认仓位', sort: true }
                        , { field: '版本', title: '版本', sort: true }
                        , { field: '当前仓库', title: '当前仓库', sort: true }
                        , { field: '当前仓位', title: '当前仓位', sort: true }
                        , { field: '虚拟仓类型', title: '虚拟仓类型', sort: true }
                        , { field: '虚拟仓', title: '虚拟仓', sort: true }
                        , { field: '当前模具规格', title: '当前器具规格', sort: true }
                        , { field: '初始模具规格', title: '初始器具规格', sort: true }
                        , { field: '当前设计寿命', title: '当前设计寿命', sort: true }
                        , { field: '初始设计寿命', title: '初始设计寿命', sort: true }
                        , { field: '使用寿命', title: '使用寿命', sort: true }
                        , { field: '剩余寿命', title: '剩余寿命', sort: true }
                        , { field: '已生产数量', title: '已生产数量', sort: true }
                        , { field: '已生产重量', title: '已生产重量', sort: true }
                        , { field: '备注', title: '备注', sort: true }
                        , { field: '关联数量', title: '关联数量', sort: true }
                        , { field: '制单人', title: '制单人', sort: true }
                        , { field: '制单日期', title: '制单日期', templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd')}}</div>", sort: true }
                        , { field: '审核人', title: '审核人', sort: true }
                        , { field: '审核日期', title: '审核日期', templet: "<div>{{d.审核日期 ==null ?'':layui.util.toDateString(d.审核日期, 'yyyy-MM-dd')}}</div>", sort: true }
                        , { field: '修改人', title: '修改人', sort: true }
                        , { field: '修改日期', title: '修改日期', templet: "<div>{{d.修改日期 ==null ?'':layui.util.toDateString(d.修改日期, 'yyyy-MM-dd')}}</div>", sort: true }
                        , { field: '关闭人', title: '关闭人', sort: true }
                        , { field: '关闭日期', title: '关闭日期', templet: "<div>{{d.关闭日期 ==null ?'':layui.util.toDateString(d.关闭日期, 'yyyy-MM-dd')}}</div>", sort: true }
                        , { field: 'hbilltype', title: 'hbilltype', hide: true, sort: true }
                        , { field: '单据类型', title: '单据类型', hide: true, sort: true }
                        , { field: 'HMoudType', title: 'HMoudType', hide: true, sort: true }
                        , { field: 'hsubid', title: 'hsubid', hide: true, sort: true }
                    ]]
                }
            }
@@ -313,21 +325,21 @@
                    , limits: [50, 500, 5000, 20000]
                    , cols: [[
                        //{ type: 'checkbox', fixed: 'left' }
                        , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                        , { field: 'HMaintainItemID', title: '日期', width: 200}
                        , { field: 'HMaintainItemNumber', title: '单据类型', width: 200 }
                        , { field: 'HMaintainItem', title: '单据号', width: 200 }
                        , { field: 'HMaintainPart', title: '器具分类', width: 200 }
                        , { field: 'HClaim', title: '器具条码', width: 200 }
                        , { field: 'HManagerID', title: '器具编码', width: 200, hide: true }
                        , { field: 'HManagerNumber', title: '器具名称', width: 200 }
                        , { field: 'HManagerNumber', title: '器具规格', width: 200 }
                        , { field: 'HManagerNumber', title: '器具型号', width: 200 }
                        , { field: 'HManagerNumber', title: '数量', width: 200 }
                        , { field: 'HManagerName', title: '仓库', width: 200 }
                        , { field: 'HRemark', title: '仓位', width: 200 }
                        , { field: 'HRemark', title: '调出仓库', width: 200 }
                        , { field: 'HRemark', title: '调出仓位', width: 200 }
                        , { templet: '#xuhao1', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                        , { field: '日期', title: '日期', width: 200}
                        , { field: '单据类型', title: '单据类型', width: 200 }
                        , { field: '单据号', title: '单据号', width: 200 }
                        , { field: '器具分类', title: '器具分类', width: 200 }
                        , { field: '器具条码', title: '器具条码', width: 200 }
                        , { field: '器具编码', title: '器具编码', width: 200 }
                        , { field: '器具名称', title: '器具名称', width: 200 }
                        , { field: '器具规格', title: '器具规格', width: 200 }
                        , { field: '器具型号', title: '器具型号', width: 200 }
                        , { field: '数量', title: '数量', width: 200 }
                        , { field: '仓库', title: '仓库', width: 200 }
                        , { field: '仓位', title: '仓位', width: 200 }
                        , { field: '调出仓库', title: '调出仓库', width: 200 }
                        , { field: '调出仓位', title: '调出仓位', width: 200 }
                        , { field: '制单人', title: '制单人' }
                        , { field: '制单日期', title: '制单日期', templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '审核人', title: '审核人' }
@@ -352,23 +364,23 @@
                    , limits: [50, 500, 5000, 20000]
                    , cols: [[
                        //{ type: 'checkbox', fixed: 'left' }
                        , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                        , { field: 'HMaintainItemID', title: '日期', width: 200 }
                        , { field: 'HMaintainItemNumber', title: '单据类型', width: 200 }
                        , { field: 'HMaintainItem', title: '单据号', width: 200 }
                        , { field: 'HMaintainItem', title: '产品代码', width: 200 }
                        , { field: 'HMaintainItem', title: '产品名称', width: 200 }
                        , { field: 'HMaintainItem', title: '规格型号', width: 200 }
                        , { field: 'HMaintainPart', title: '器具分类', width: 200 }
                        , { field: 'HClaim', title: '器具条码', width: 200 }
                        , { field: 'HManagerID', title: '器具编码', width: 200, hide: true }
                        , { field: 'HManagerNumber', title: '器具名称', width: 200 }
                        , { field: 'HManagerNumber', title: '器具规格', width: 200 }
                        , { field: 'HManagerNumber', title: '器具型号', width: 200 }
                        , { field: 'HManagerNumber', title: '生产数量', width: 200 }
                        , { field: 'HManagerNumber', title: '设计寿命', width: 200 }
                        , { field: 'HManagerNumber', title: '耗用寿命', width: 200 }
                        , { field: 'HManagerNumber', title: '剩余寿命', width: 200 }
                        , { templet: '#xuhao2', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                        , { field: '日期', title: '日期', width: 200 }
                        , { field: '单据类型', title: '单据类型', width: 200 }
                        , { field: '单据号', title: '单据号', width: 200 }
                        , { field: '产品代码', title: '产品代码', width: 200 }
                        , { field: '产品名称', title: '产品名称', width: 200 }
                        , { field: '规格型号', title: '规格型号', width: 200 }
                        , { field: '器具分类', title: '器具分类', width: 200 }
                        , { field: '器具条码', title: '器具条码', width: 200 }
                        , { field: '器具编码', title: '器具编码', width: 200, hide: true }
                        , { field: '器具名称', title: '器具名称', width: 200 }
                        , { field: '器具规格', title: '器具规格', width: 200 }
                        , { field: '器具型号', title: '器具型号', width: 200 }
                        , { field: '生产数量', title: '生产数量', width: 200 }
                        , { field: '设计寿命', title: '设计寿命', width: 200 }
                        , { field: '耗用寿命', title: '耗用寿命', width: 200 }
                        , { field: '剩余寿命', title: '剩余寿命', width: 200 }
                        , { field: '制单人', title: '制单人' }
                        , { field: '制单日期', title: '制单日期', templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '审核人', title: '审核人' }
@@ -393,16 +405,16 @@
                    , limits: [50, 500, 5000, 20000]
                    , cols: [[
                        //{ type: 'checkbox', fixed: 'left' }
                        , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                        , { field: 'HMaintainItemID', title: '日期', width: 200 }
                        , { field: 'HMaintainItemNumber', title: '单据类型', width: 200 }
                        , { field: 'HMaintainItem', title: '单据号', width: 200 }
                        , { field: 'HMaintainPart', title: '器具分类', width: 200 }
                        , { field: 'HClaim', title: '器具条码', width: 200 }
                        , { field: 'HManagerID', title: '器具编码', width: 200, hide: true }
                        , { field: 'HManagerNumber', title: '器具名称', width: 200 }
                        , { field: 'HManagerName', title: '器具规格', width: 200 }
                        , { field: 'HRemark', title: '器具型号', width: 200 }
                        , { templet: '#xuhao3', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                        , { field: '日期', title: '日期', width: 200 }
                        , { field: '单据类型', title: '单据类型', width: 200 }
                        , { field: '单据号', title: '单据号', width: 200 }
                        , { field: '器具分类', title: '器具分类', width: 200 }
                        , { field: '器具条码', title: '器具条码', width: 200 }
                        , { field: '器具编码', title: '器具编码', width: 200, hide: true }
                        , { field: '器具名称', title: '器具名称', width: 200 }
                        , { field: '器具规格', title: '器具规格', width: 200 }
                        , { field: '器具型号', title: '器具型号', width: 200 }
                        , { field: '制单人', title: '制单人' }
                        , { field: '制单日期', title: '制单日期', templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '审核人', title: '审核人' }
@@ -427,16 +439,16 @@
                    , limits: [50, 500, 5000, 20000]
                    , cols: [[
                        //{ type: 'checkbox', fixed: 'left' }
                        , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                        , { field: 'HMaintainItemID', title: '日期', width: 200 }
                        , { field: 'HMaintainItemNumber', title: '单据类型', width: 200 }
                        , { field: 'HMaintainItem', title: '单据号', width: 200 }
                        , { field: 'HMaintainPart', title: '器具分类', width: 200 }
                        , { field: 'HClaim', title: '器具条码', width: 200 }
                        , { field: 'HManagerID', title: '器具编码', width: 200, hide: true }
                        , { field: 'HManagerNumber', title: '器具名称', width: 200 }
                        , { field: 'HManagerName', title: '器具规格', width: 200 }
                        , { field: 'HRemark', title: '器具型号', width: 200 }
                        , { templet: '#xuhao4', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                        , { field: '日期', title: '日期', width: 200 }
                        , { field: '单据类型', title: '单据类型', width: 200 }
                        , { field: '单据号', title: '单据号', width: 200 }
                        , { field: '器具分类', title: '器具分类', width: 200 }
                        , { field: '器具条码', title: '器具条码', width: 200 }
                        , { field: '器具编码', title: '器具编码', width: 200, hide: true }
                        , { field: '器具名称', title: '器具名称', width: 200 }
                        , { field: '器具规格', title: '器具规格', width: 200 }
                        , { field: '器具型号', title: '器具型号', width: 200 }
                        , { field: '制单人', title: '制单人' }
                        , { field: '制单日期', title: '制单日期', templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '审核人', title: '审核人' }
@@ -508,7 +520,7 @@
                    sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + BenginHCreateDate + "'";
                }
                if (EndHCreateDate) {
                    sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + EndHCreateDate + "'";
                    sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + EndHCreateDate + "'";
                }
                get_Display(sWhere);
                sWhere = "";//调用接口后清空sWhere缓存
@@ -518,8 +530,8 @@
                //$("#HBillType").val("");//单据类型
                $("#HBillNo").val("");//单据号
                $("#HMouldType").val("");//设备类型
                $("#BenginHCreateDate").val("");//开始制单时间
                $("#EndHCreateDate").val("");//结束制单时间
                $("#BenginHCreateDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//开始日期
                $("#EndHCreateDate").val(Format(new Date(), "yyyy-MM-dd"));//结束日期
                sWhere = "";
                $("#btnSearch").click();
            }