From 3db92120cdf7b7d936b534475032fcf654c41876 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期二, 26 三月 2024 17:06:18 +0800
Subject: [PATCH] 增加合计行

---
 WebTM/views/车间管理/报表分析/Kf_ProdProcessEntryReport_DyeColor.html |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/Kf_ProdProcessEntryReport_DyeColor.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/Kf_ProdProcessEntryReport_DyeColor.html"
index 57f32c7..a9b50f9 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/Kf_ProdProcessEntryReport_DyeColor.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/Kf_ProdProcessEntryReport_DyeColor.html"
@@ -339,12 +339,12 @@
                     url: GetWEBURL() + "/ProdProcessEntryReport/ProdProcessEntryReport_DyeColor",
                     type: "GET",
                     async: false,
-                    data: { "sWhere": sWhere,"sProcessNo":''},
+                    data: { "sWhere": sWhere, "sProcessNo": '', "user": sessionStorage["HUserName"] },
                     //async: false,
                     success: function (data1) {
 
                         if (data1.count == 1) {
-
+                            var totalArray = ["鐢熶骇浠诲姟鍗曟暟閲�", "鐧藉澂鍙戝竷"];
                             var data = [];
                             var col = [];
                             //缁欑┖鐨勬暟缁勮祴鍊�
@@ -357,6 +357,9 @@
                             for (var i = 0; i < data.length; i++) {
                                 if ($.inArray(data[i].name, "") > -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 if (data[i].ColName == '鐧藉澂鍙戝竷') {
                                     col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true });
@@ -400,7 +403,7 @@
                                     , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 160 }
                                     , { field: '涓氬姟鍛�', title: '涓氬姟鍛�', width: 160 }
                                     , { field: '瀹㈡埛', title: '瀹㈡埛', width: 160 }
-                                    , { field: '鐢熶骇浠诲姟鍗曟暟閲�', title: '鐢熶骇浠诲姟鍗曟暟閲�', width: 200 }
+                                    , { field: '鐢熶骇浠诲姟鍗曟暟閲�', title: '鐢熶骇浠诲姟鍗曟暟閲�', totalRow: true,width: 200 }
                                     , { field: '鐧藉澂鍙戝竷', title: '鐧藉澂鍙戝竷', width: 160, totalRow: true }
                                     , { field: '鏄惁涓嬫帹鐢熸垚娴佽浆鍗�', title: '鏄惁涓嬫帹鐢熸垚娴佽浆鍗�', width: 160 }
                                 ]]
@@ -441,7 +444,7 @@
                 $.ajax({
                     url: GetWEBURL() + '/ProdProcessEntryReport/ProdProcessEntryReport_DyeColor',
                     type: "GET",
-                    data: { "sWhere": sWhere, "sProcessNo": sProcessNo },
+                    data: { "sWhere": sWhere, "sProcessNo": sProcessNo, "user": sessionStorage["HUserName"]  },
                     success: function (data1) {
                         if (data1.count == 1) {
                             //璋冩暣鏃ユ湡鏍煎紡锛氭樉绀� 骞存湀鏃� 鍜� 鏃�

--
Gitblit v1.9.1