yangle
2022-09-07 d9ccb1dfdb438225014b0b95d642a4e2a0c3736b
WebTM/views/Éú²ú¹ÜÀí/Èռƻ®±¨±í/ReportPODemandPlanBillList.html
@@ -77,7 +77,7 @@
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row" style="margin-top:10px;">
                                    <div class="layui-row" style="margin: 10px 0 10px;">
                                        <div class="layui-inline">
                                            <label class="layui-form-label" style="width: 85px;">采购订单号</label>
                                            <div class="layui-input-block" style="margin-left: 120px;">
@@ -168,7 +168,7 @@
            //初始化表格
            set_InitGrid();
            //快速过滤
            //get_FastQuery(1);
            get_FastQuery(1);
        }
        //#endregion
@@ -180,29 +180,29 @@
            var MM = myDate.getMonth() + 1;
            var dd = myDate.getDate();
            var SumMonth = 31; //动态两月之差 new Date(yyyy, MM, 0).getDate()
            var MonthCount = new Date(yyyy, MM-1, 0).getDate();
        
            columns.push({ type: 'checkbox', fixed: 'left' });
            columns.push({ field: '单据号', title: '采购组织' });
            columns.push({ field: '销售订单号', title: '物料名称' });
            columns.push({ field: '销售订单号', title: '物料规格' });
            columns.push({ field: '销售订单号', title: '供应商' });
            columns.push({ field: '销售订单号', title: '合计' });
            columns.push({ field: '销售订单号', title: '采购订单号' });
            columns.push({ field: '销售订单号', title: '需求单号' });
            columns.push({ field: '销售订单号', title: '摘要' });
            columns.push({ field: '销售订单号', title: '备注' });
            columns.push({ field: '销售订单号', title: '采购员' });
            columns.push({ field: '销售订单号', title: '物料编码' });
            columns.push({ field: '销售订单号', title: '计量单位' });
            columns.push({ field: '销售订单号', title: '提料拖期数量' });
            for (var i = 0; i <= (SumMonth - dd); i++) {
                columns.push({ field: Format(yyyy + '/' + (MM - 1) + '/' + (dd + i), 'yyyy-MM-dd'), title: Format(yyyy + '/' + (MM - 1) + '/' + (dd + i), 'MM.dd'), edit: 'text', width: 70 })//0
            columns.push({ field: '组织', title: '采购组织' });
            columns.push({ field: '物料名称', title: '物料名称' });
            columns.push({ field: '规格型号', title: '物料规格' });
            columns.push({ field: '供应商', title: '供应商' });
            columns.push({ field: 'FSUMQTY', title: '合计' });
            columns.push({ field: 'HPOOrderBillNo', title: '采购订单号' });
            columns.push({ field: 'HSeOrderBillNo', title: '需求单号' });
            columns.push({ field: 'HPOOrderBillRemark', title: '摘要' });
            columns.push({ field: 'HPOOrderBillNote', title: '备注' });
            columns.push({ field: '采购员', title: '采购员' });
            columns.push({ field: '物料代码', title: '物料编码' });
            columns.push({ field: '计量单位名称', title: '计量单位' });
            columns.push({ field: 'TQSUM', title: '提料拖期数量' });
            for (var i = 1; i <= (MonthCount - dd); i++) {
                columns.push({ field: Format(yyyy + '/' + (MM - 1) + '/' + (dd + i), 'yyyy-MM-dd'), title: Format(yyyy + '/' + (MM - 1) + '/' + (dd + i), 'MM.dd'), width: 70 })//0
            }
            for (var i = 1; i < dd; i++) {
                columns.push({ field: Format(yyyy + '/' + MM + '/' + i, 'yyyy-MM-dd'), title: Format(yyyy + '/' + MM + '/' + i, 'MM.dd'), edit: 'text', width: 70 })//0
            for (var i = 1; i <= (SumMonth - MonthCount + dd); i++) {
                columns.push({ field: Format(yyyy + '/' + MM + '/' + i, 'yyyy-MM-dd'), title: Format(yyyy + '/' + MM + '/' + i, 'MM.dd'), width: 70 })//0
            }
            columns.push({ field: 'hmainid', title: '提料计划合计' });
            columns.push({ field: '', title: '提料计划合计' });
            option = {
                elem: '#mainTable'
@@ -215,7 +215,6 @@
                , loading: false
                , cols: [columns]
            };
            table.render(option);
        }
        //#endregion