yusijie
2023-11-07 71faf0845365a3605dcac015d93bebc06aba976f
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldScrapInBillList.html
@@ -15,6 +15,7 @@
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script src="../../../layuiadmin/PubCustom.js"></script>
    <script src="../../../layuiadmin/zgqCustom/zgqCustom.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.$
@@ -142,6 +143,7 @@
                , laypage = layui.laypage
                , laydate = layui.laydate
                , util = layui.util
                , soulTable = layui.soulTable
            //查询条件
            var sWhere = "";
            var option = [];
@@ -209,76 +211,76 @@
                $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
                var columns = [
                    { type: 'checkbox', fixed: 'left', totalRowText: '合计' }
                    , { field: 'hmainid', title: '单据ID', width: 200, hide: true }
                    , { field: 'hmainid', title: '单据ID', width: 200, hide: true ,sort:true}
                    , { field: '日期', title: '日期', width: 200, sort: true, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>" }
                    , { field: '单据号', title: '单据号', width: 200, sort: true }
                    , { field: '单据类型', title: '单据类型', width: 200 }
                    , { field: '物料代码', title: '物料代码', width: 110 }
                    , { field: 'HManagerID', title: 'HManagerID', width: 200, hide: true }
                    , { field: '负责人代码', title: '负责人代码', width: 200 }
                    , { field: '负责人名称', title: '负责人名称', width: 200 }
                    , { field: 'HWHID', title: 'HWHID', width: 200, hide: true }
                    , { field: '仓库代码', title: '仓库代码', width: 200 }
                    , { field: '仓库名称', title: '仓库名称', width: 200 }
                    , { field: 'HSecManagerID', title: 'HSecManagerID', width: 200, hide: true }
                    , { field: '验收员代码', title: '验收员代码', width: 200 }
                    , { field: '验收员名称', title: '验收员名称', width: 200 }
                    , { field: 'HKeeperID', title: 'HKeeperID', width: 200, hide: true }
                    , { field: '保管员代码', title: '保管员代码', width: 200 }
                    , { field: '保管员名称', title: '保管员名称', width: 200 }
                    , { field: '库存组织', title: '库存组织', width: 125 }
                    , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true }
                    , { field: '部门代码', title: '部门代码', width: 200 }
                    , { field: '部门名称', title: '部门名称', width: 200 }
                    , { field: 'HSupTypeID', title: 'HSupTypeID', width: 200, hide: true }
                    , { field: '往来类型名称', title: '往来类型', width: 200 }
                    , { field: 'HSupID', title: 'HSupID', width: 200, hide: true }
                    , { field: '往来单位', title: '往来单位', width: 200 }
                    , { field: '摘要', title: '摘要', width: 200 }
                    , { field: '内部单据号', title: '内部单据号', width: 200 }
                    , { field: '备注', title: '备注', width: 200 }
                    , { field: 'hsubid', title: 'hsubid', width: 200, hide: true }
                    , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true }
                    , { field: '模具代码', title: '器具代码', width: 200 }
                    , { field: '模具名称', title: '器具名称', width: 200 }
                    , { field: 'HPropertyID', title: 'HPropertyID', width: 200, hide: true }
                    , { field: '辅助属性代码', title: '辅助属性代码', width: 200 }
                    , { field: '辅助属性名称', title: '辅助属性名称', width: 200 }
                    , { field: 'HSecUnitID', title: 'HSecUnitID', width: 200, hide: true }
                    , { field: '辅助计量单位代码', title: '辅助计量单位代码', width: 200 }
                    , { field: '辅助计量单位名称', title: '辅助计量单位名称', width: 200 }
                    , { field: '换算率', title: '换算率', width: 200 }
                    , { field: '批次', title: '批次', width: 200 }
                    , { field: '实收数量', title: '实收数量', width: 200, totalRow: true }
                    , { field: '单价', title: '单价', width: 200 }
                    , { field: '金额', title: '金额', width: 200, totalRow: true }
                    , { field: '设计寿命', title: '设计寿命', width: 200 }
                    , { field: '使用寿命', title: '使用寿命', width: 200 }
                    , { field: '剩余寿命', title: '剩余寿命', width: 200 }
                    , { field: 'HWHID1', title: 'HWHID1', width: 200, hide: true }
                    , { field: '收料仓库代码', title: '收料仓库代码', width: 200 }
                    , { field: '收料仓库名称', title: '收料仓库名称', width: 200 }
                    , { field: 'HSPID', title: 'HSPID', width: 200, hide: true }
                    , { field: '仓位代码', title: '仓位代码', width: 200 }
                    , { field: '仓位名称', title: '仓位名称', width: 200 }
                    , { field: '子备注', title: '子备注', width: 200 }
                    , { field: '制单人', title: '制单人', width: 200 }
                    , { field: '制单日期', title: '制单日期', width: 200, templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                    , { field: '审核人', title: '审核人', width: 200 }
                    , { field: '审核日期', title: '审核日期', width: 200, templet: "<div>{{d.审核日期 ==null ? '':layui.util.toDateString(d.审核日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                    , { field: '修改人', title: '修改人', width: 200 }
                    , { field: '修改日期', title: '修改日期', width: 200, templet: "<div>{{d.修改日期 ==null ?'':layui.util.toDateString(d.修改日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                    , { field: '关闭人', title: '关闭人', width: 200 }
                    , { field: '关闭日期', title: '关闭日期', width: 200, templet: "<div>{{d.关闭日期 ==null ?'':layui.util.toDateString(d.关闭日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                    , { field: '作废人', title: '作废人', width: 200 }
                    , { field: '作废日期', title: '作废日期', width: 200, templet: "<div>{{d.作废日期 ==null ?'':layui.util.toDateString(d.作废日期, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
                    , { field: '关联数量', title: '关联数量', width: 200 }
                    , { field: '行关闭人', title: '行关闭人', width: 200 }
                    , { field: '关闭类型', title: '关闭类型', width: 200 }
                    , { field: '源单主内码', title: '源单主内码', width: 200, hide: true }
                    , { field: '源单子内码', title: '源单子内码', width: 200, hide: true }
                    , { field: '源单单号', title: '源单单号', width: 200 }
                    , { field: '源单类型', title: '源单类型', width: 200 }
                    , { field: '单据类型', title: '单据类型', width: 200, sort: true }
                    , { field: '物料代码', title: '物料代码', width: 110, sort: true }
                    , { field: 'HManagerID', title: 'HManagerID', width: 200, hide: true, sort: true }
                    , { field: '负责人代码', title: '负责人代码', width: 200, sort: true }
                    , { field: '负责人名称', title: '负责人名称', width: 200, sort: true }
                    , { field: 'HWHID', title: 'HWHID', width: 200, hide: true, sort: true }
                    , { field: '仓库代码', title: '仓库代码', width: 200, sort: true }
                    , { field: '仓库名称', title: '仓库名称', width: 200, sort: true }
                    , { field: 'HSecManagerID', title: 'HSecManagerID', width: 200, hide: true, sort: true }
                    , { field: '验收员代码', title: '验收员代码', width: 200, sort: true }
                    , { field: '验收员名称', title: '验收员名称', width: 200, sort: true }
                    , { field: 'HKeeperID', title: 'HKeeperID', width: 200, hide: true, sort: true }
                    , { field: '保管员代码', title: '保管员代码', width: 200, sort: true }
                    , { field: '保管员名称', title: '保管员名称', width: 200, sort: true }
                    , { field: '库存组织', title: '库存组织', width: 125, sort: true }
                    , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true, sort: true }
                    , { field: '部门代码', title: '部门代码', width: 200, sort: true }
                    , { field: '部门名称', title: '部门名称', width: 200, sort: true }
                    , { field: 'HSupTypeID', title: 'HSupTypeID', width: 200, hide: true, sort: true }
                    , { field: '往来类型名称', title: '往来类型', width: 200, sort: true }
                    , { field: 'HSupID', title: 'HSupID', width: 200, hide: true, sort: true }
                    , { field: '往来单位', title: '往来单位', width: 200, sort: true }
                    , { field: '摘要', title: '摘要', width: 200, sort: true }
                    , { field: '内部单据号', title: '内部单据号', width: 200, sort: true }
                    , { field: '备注', title: '备注', width: 200, sort: true }
                    , { field: 'hsubid', title: 'hsubid', width: 200, hide: true, sort: true }
                    , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true, sort: true }
                    , { field: '模具代码', title: '器具代码', width: 200, sort: true }
                    , { field: '模具名称', title: '器具名称', width: 200, sort: true }
                    , { field: 'HPropertyID', title: 'HPropertyID', width: 200, hide: true, sort: true }
                    , { field: '辅助属性代码', title: '辅助属性代码', width: 200, sort: true }
                    , { field: '辅助属性名称', title: '辅助属性名称', width: 200, sort: true }
                    , { field: 'HSecUnitID', title: 'HSecUnitID', width: 200, hide: true, sort: true }
                    , { field: '辅助计量单位代码', title: '辅助计量单位代码', width: 200, sort: true }
                    , { field: '辅助计量单位名称', title: '辅助计量单位名称', width: 200, sort: true }
                    , { field: '换算率', title: '换算率', width: 200, sort: true }
                    , { field: '批次', title: '批次', width: 200, sort: true }
                    , { field: '实收数量', title: '实收数量', width: 200, totalRow: true, sort: true }
                    , { field: '单价', title: '单价', width: 200, sort: true }
                    , { field: '金额', title: '金额', width: 200, totalRow: true, sort: true }
                    , { field: '设计寿命', title: '设计寿命', width: 200, sort: true }
                    , { field: '使用寿命', title: '使用寿命', width: 200, sort: true }
                    , { field: '剩余寿命', title: '剩余寿命', width: 200, sort: true }
                    , { field: 'HWHID1', title: 'HWHID1', width: 200, hide: true, sort: true }
                    , { field: '收料仓库代码', title: '收料仓库代码', width: 200, sort: true }
                    , { field: '收料仓库名称', title: '收料仓库名称', width: 200, sort: true }
                    , { field: 'HSPID', title: 'HSPID', width: 200, hide: true, sort: true }
                    , { field: '仓位代码', title: '仓位代码', width: 200, sort: true }
                    , { field: '仓位名称', title: '仓位名称', width: 200, sort: true }
                    , { field: '子备注', title: '子备注', width: 200, sort: true }
                    , { field: '制单人', title: '制单人', width: 200, sort: true }
                    , { field: '制单日期', title: '制单日期', width: 200, templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
                    , { field: '审核人', title: '审核人', width: 200, sort: true }
                    , { field: '审核日期', title: '审核日期', width: 200, templet: "<div>{{d.审核日期 ==null ? '':layui.util.toDateString(d.审核日期, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
                    , { field: '修改人', title: '修改人', width: 200, sort: true }
                    , { field: '修改日期', title: '修改日期', width: 200, templet: "<div>{{d.修改日期 ==null ?'':layui.util.toDateString(d.修改日期, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
                    , { field: '关闭人', title: '关闭人', width: 200, sort: true }
                    , { field: '关闭日期', title: '关闭日期', width: 200, templet: "<div>{{d.关闭日期 ==null ?'':layui.util.toDateString(d.关闭日期, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
                    , { field: '作废人', title: '作废人', width: 200, sort: true }
                    , { field: '作废日期', title: '作废日期', width: 200, templet: "<div>{{d.作废日期 ==null ?'':layui.util.toDateString(d.作废日期, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
                    , { field: '关联数量', title: '关联数量', width: 200, sort: true }
                    , { field: '行关闭人', title: '行关闭人', width: 200, sort: true }
                    , { field: '关闭类型', title: '关闭类型', width: 200, sort: true }
                    , { field: '源单主内码', title: '源单主内码', width: 200, hide: true, sort: true }
                    , { field: '源单子内码', title: '源单子内码', width: 200, hide: true, sort: true }
                    , { field: '源单单号', title: '源单单号', width: 200, sort: true }
                    , { field: '源单类型', title: '源单类型', width: 200, sort: true }
                ];
                option = {
                    elem: '#mainTable'
@@ -291,7 +293,7 @@
                    , cols: [columns]
                    , limits: [50, 500, 5000, 20000]
                    , done: function (res, curr, count) {
                        soulTable.render(this);
                    }
                };
                //设置列宽