1
cwjbxqmz
2024-02-26 e03936ac966a76bf62780e7bba907e2778eb636e
WebTM/views/³µ¼ä¹ÜÀí/¹¤ÐòÁ÷ת¿¨/Sc_ProcessExchangeArrangement.html
@@ -308,6 +308,7 @@
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"], "OperationType": 2},
                    success: function (data1) {
                        if (data1.count == 1) {
                            var totalArray=["数量"]
                            var data = [];
                            var col = [];
                            //给空的数组赋值
@@ -320,6 +321,9 @@
                                // if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') {
                                if ($.inArray(data[i].name, titleData) > -1) {
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                                }
                                else if ($.inArray(data[i].name, totalArray) > -1) {
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
                                }
                                else {
                                    switch (data[i].Type) {
@@ -341,7 +345,8 @@
                                , cols: [col]
                                , data: data1.data
                                , height: 400
                                , page: true
                                 , page: true
                                 , totalRow: true
                                , limits: [50, 500, 5000, 50000]
                                 , limit: 50
                                 , cellMinWidth: 90
@@ -393,6 +398,7 @@
                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"], "OperationType": 1 },
                    success: function (data1) {
                        if (data1.count == 1) {
                            var totalArray = ["生成数量", "任务单数量", "计划数量", "流转卡数量", "开工余量天数", "开工余量固数", "上道固定天数", "加工单价", "加工费用金额", "拆分数量", "剩余数量", "不良品关联数量", "进站关联数量", "出站关联数量", "出站报废关联数量"];
                            var data = [];
                            var col = [];
                            //给空的数组赋值
@@ -406,9 +412,13 @@
                                if ($.inArray(data[i].name, titleData) > -1) {
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                                }
                                else if ($.inArray(data[i].name, totalArray) > -1) {
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
                                }
                                else {
                                    switch (data[i].Type) {
                                        //int
                                        case 'DateTime':
                                            col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 120 });
                                            break;
@@ -425,7 +435,8 @@
                                , cols: [col]
                                , data: data1.data
                                , height: 400
                                , page: true
                                 , page: true
                                 , totalRow: true
                                , limits: [50, 500, 5000, 50000]
                                , limit: 50
                                , cellMinWidth: 90