From fb6f93454d7495927a93b5e6dde1fa72bc6c3d80 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期四, 08 五月 2025 09:39:07 +0800
Subject: [PATCH] 排产添加复制,提料报表合计添加
---
WebTM/views/生产管理/三升排产/JIT_DayPlanPlatForm.html | 29 +++++++++++++-
WebTM/views/生产管理/日计划报表/ReportPODemandPlanBillList_S.html | 20 +++++++++
WebTM/views/生产管理/日计划报表/ReportPODemandPlanBillList.html | 19 +++++++++
3 files changed, 64 insertions(+), 4 deletions(-)
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\270\211\345\215\207\346\216\222\344\272\247/JIT_DayPlanPlatForm.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\270\211\345\215\207\346\216\222\344\272\247/JIT_DayPlanPlatForm.html"
index 32ae8b2..6ac4e16 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\270\211\345\215\207\346\216\222\344\272\247/JIT_DayPlanPlatForm.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\344\270\211\345\215\207\346\216\222\344\272\247/JIT_DayPlanPlatForm.html"
@@ -350,7 +350,7 @@
base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
}).extend({
index: 'lib/index', //涓诲叆鍙fā鍧�
- soulTable: '../ext/soulTable'
+ soulTable: 'soulTable'
}).use(['tree', 'index', 'form', 'table', 'element', 'laypage', 'laydate', 'util', 'soulTable','jquery'], function () {
//#region 鍏敤鍙橀噺
@@ -1745,7 +1745,32 @@
, cellMinWidth: 90
, cols: [columns]
, limit: Number.MAX_VALUE//榛樿鏄剧ず鍏ㄩ儴
- , even: true
+ , contextmenu: {
+ // 琛ㄦ牸鍐呭鍙抽敭鑿滃崟閰嶇疆
+ body: [
+ {
+ name: '澶嶅埗',
+ icon: 'layui-icon layui-icon-template',
+ click: function (obj) {
+ soulTable.copy(obj.text)
+ layer.msg('澶嶅埗鎴愬姛锛�')
+ }
+ },
+ {
+ name: '琛�-钃濊壊',
+ click: function (obj) {
+ obj.trElem.css('background', '#01AAED')
+ }
+ },
+ {
+ name: '绾㈣壊',
+ click: function (obj) {
+ obj.elem.css('color', 'red')
+ }
+ }
+ ]
+ }
+ , even: true//琛屾嫋鎷�
, rowDrag: {/*trigger: 'row',*/
done: function (obj) {
// 瀹屾垚鏃讹紙鏉惧紑鏃讹級瑙﹀彂
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\346\212\245\350\241\250/ReportPODemandPlanBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\346\212\245\350\241\250/ReportPODemandPlanBillList.html"
index 2b3fb61..2f0e1fe 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\346\212\245\350\241\250/ReportPODemandPlanBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\346\212\245\350\241\250/ReportPODemandPlanBillList.html"
@@ -254,7 +254,24 @@
}
}
- columns.push({ field: '鎻愭枡璁″垝鍚堣', title: '鎻愭枡璁″垝鍚堣', filter: true });
+ columns.push({
+ field: '鎻愭枡璁″垝鍚堣', title: '鎻愭枡璁″垝鍚堣', filter: true, templet: function (d) {
+ //console.log(d); // 寰楀埌褰撳墠琛屾暟鎹�
+ //console.log(this); // 寰楀埌琛ㄥご褰撳墠鍒楅厤缃」
+ //console.log(d.LAY_NUM);
+ let sum = 0;
+
+ // 閬嶅巻鏁版嵁瀵硅薄鐨勬墍鏈夊睘鎬�
+ for (let key in d) {
+ // 妫�鏌ュ垪鍚嶆槸鍚︾鍚� isValidDate 鏉′欢
+ if (isValidDate(key)) {
+ // 灏� null/undefined 杞负 0
+ sum += d[key] ? parseFloat(d[key]) : 0;
+ }
+ }
+
+ return sum; // 淇濈暀涓や綅灏忔暟
+ } });
option = {
elem: '#mainTable'
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\346\212\245\350\241\250/ReportPODemandPlanBillList_S.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\346\212\245\350\241\250/ReportPODemandPlanBillList_S.html"
index 7fbbd55..b1cf9ac 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\346\212\245\350\241\250/ReportPODemandPlanBillList_S.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\227\245\350\256\241\345\210\222\346\212\245\350\241\250/ReportPODemandPlanBillList_S.html"
@@ -244,7 +244,25 @@
j = 0;
}
}
- columns.push({ field: '鎻愭枡璁″垝鍚堣', title: '鎻愭枡璁″垝鍚堣', filter: true });
+ columns.push({
+ field: '鎻愭枡璁″垝鍚堣', title: '鎻愭枡璁″垝鍚堣', filter: true, templet: function (d) {
+ //console.log(d); // 寰楀埌褰撳墠琛屾暟鎹�
+ //console.log(this); // 寰楀埌琛ㄥご褰撳墠鍒楅厤缃」
+ //console.log(d.LAY_NUM);
+ let sum = 0;
+
+ // 閬嶅巻鏁版嵁瀵硅薄鐨勬墍鏈夊睘鎬�
+ for (let key in d) {
+ // 妫�鏌ュ垪鍚嶆槸鍚︾鍚� isValidDate 鏉′欢
+ if (isValidDate(key)) {
+ // 灏� null/undefined 杞负 0
+ sum += d[key] ? parseFloat(d[key]) : 0;
+ }
+ }
+
+ return sum; // 淇濈暀涓や綅灏忔暟
+ }
+ });
option = {
elem: '#mainTable'
--
Gitblit v1.9.1