1
cwjbxqmz
2024-01-26 b742f00aac8e1e1bb628232383c35e67f4a41e4e
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξֿ߲â¹ÜÀí/Sc_MouldProdInBillList.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>
</head>
<body>
    <div class="layui-fluid">
@@ -132,7 +133,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
@@ -143,6 +144,7 @@
                , laypage = layui.laypage
                , laydate = layui.laydate
                , util = layui.util
                , soulTable = layui.soulTable
            //查询条件
            var sWhere = "";
            var option = [];
@@ -210,66 +212,66 @@
                $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
                var columns = [
                    { type: 'checkbox', fixed: 'left', totalRowText: '合计' }
                    , { field: 'hmainid', title: '单据ID', width: 200, hide: true }
                    , { field: '日期', title: '日期', width: 125, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>" }
                    , { field: '单据号', title: '单据号', width: 200, sort: true }
                    , { field: 'HBillType', title: '单据类型', width: 200, hide: true }
                    , { field: '物料代码', title: '物料代码', width: 110 }
                    , { field: 'HMaterID', title: 'HMaterID', 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, 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: '库存组织', title: '库存组织', width: 125 }
                    , { field: 'HWHID', title: 'HWHID', width: 200, hide: true }
                    , { field: '收料仓库代码', title: '仓库代码', width: 200 }
                    , { field: '收料仓库', title: '仓库名称', width: 200 }
                    , { field: 'HSPID', 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: '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: '红蓝单标记', title: '红蓝单标记', width: 200 }
                    , { field: 'hsubid', title: 'hsubid', width: 200, hide: true }
                    , { 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 }
                    , { field: 'hmainid', title: '单据ID', width: 200, hide: true, sort: true }
                    , { field: '日期', title: '日期', width: 125, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>", sort: true }
                    , { field: '单据号', title: '单据号', width: 200, sort: true, sort: true }
                    , { field: 'HBillType', title: '单据类型', width: 200, hide: true, sort: true }
                    , { field: '物料代码', title: '物料代码', width: 110, 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: '规格型号', title: '规格型号', width: 200, sort: true }
                    , { field: '批次', title: '批次', width: 200, sort: true }
                    , { field: '应收数量', title: '应收数量', width: 200, totalRow: true, 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: '库存组织', title: '库存组织', width: 125, 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: 'HSPID', 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: '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: '红蓝单标记', title: '红蓝单标记', width: 200, sort: true }
                    , { field: 'hsubid', title: 'hsubid', width: 200, hide: true, 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 }
                    , { field: '关联数量', title: '关联数量', width: 200, sort: true }
                ];
                option = {
                    elem: '#mainTable'
@@ -282,7 +284,7 @@
                    , cols: [columns]
                    , limits: [50, 500, 5000, 20000]
                    , done: function (res, curr, count) {
                        soulTable.render(this);
                    }
                };
                //设置列宽
@@ -465,7 +467,7 @@
                    var InterID = data[0].hmainid.toString();
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "Sc_MouldProdInHouseBill/AuditMouldProdInHouseBill", //方法所在页面和方法名
                        url: GetWEBURL() + "/Sc_MouldProdInHouseBill/AuditMouldProdInHouseBills", //方法所在页面和方法名
                        data: { "HInterID": InterID, "user": sessionStorage["HUserName"], "flag":1 },
                        success: function (result) {
                            if (result.count == 1) {
@@ -498,7 +500,7 @@
                    var InterID = data[0].hmainid.toString();
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "Sc_MouldProdInHouseBill/AuditMouldProdInHouseBill", //方法所在页面和方法名
                        url: GetWEBURL() + "Sc_MouldProdInHouseBill/AuditMouldProdInHouseBills", //方法所在页面和方法名
                        data: { "HInterID": InterID, "user": sessionStorage["HUserName"], "flag": 2 },
                        success: function (result) {
                            if (result.count == 1) {