From f0d50f4515444e2731294495d64ff6afaaf5efee Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期四, 24 十月 2024 14:25:19 +0800
Subject: [PATCH] 考勤汇报单编辑模块,列表增加字段计时工时HBaseTimes_Sec
---
WebTM/views/工资管理/考勤汇报单/Pay_WorkTimesBillEdit.html | 37 +++++++++++++++++++++++++++++++++++++
WebTM/layuiadmin/Scripts/webConfig.js | 4 ++--
2 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/WebTM/layuiadmin/Scripts/webConfig.js b/WebTM/layuiadmin/Scripts/webConfig.js
index 42e7a5f..75b6582 100644
--- a/WebTM/layuiadmin/Scripts/webConfig.js
+++ b/WebTM/layuiadmin/Scripts/webConfig.js
@@ -3,11 +3,11 @@
//var WEBURL = "http://192.168.16.80:8011/"; //鍔炲叕瀹ゆ湇鍔″櫒
//var WEBURL = "http://localhost:8081/SWEAPI/"; //ch鏈湴*/
//var WEBURL = "http://61.164.86.218:8099/ABAPI/";
- //var WEBURL = "http://localhost/API/"; //棰滄檽鍐涙湰鍦伴厤缃�
+ var WEBURL = "http://localhost/API/"; //棰滄檽鍐涙湰鍦伴厤缃�
//var WEBURL = "http://localhost:8082/LuBaoAPI/"; //鏉ㄤ箰鏈湴閰嶇疆
//var WEBURL = "http://localhost:8082/API/"; //鏉滆春鏈湴閰嶇疆
/*var WEBURL = "http://localhost/API/";*/ //娼樻禉娓告湰鍦伴厤缃�
- var WEBURL = "http://localhost:8082/API/"; //寮犵憺骞挎湰鍦伴厤缃�
+ //var WEBURL = "http://localhost:8082/API/"; //寮犵憺骞挎湰鍦伴厤缃�
//var WEBURL = "http://localhost:81/API/" //缈佹稕娑涙湰鍦伴厤缃�
//var WEBURL = "http://47.96.97.237/API/"; //鏅轰簯鏈嶅姟鍣�
/*var WEBURL = "http://localhost:8082/LuBaoAPI/"; */ //浣欐�濇澃鏈湴閰嶇疆
diff --git "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\350\200\203\345\213\244\346\261\207\346\212\245\345\215\225/Pay_WorkTimesBillEdit.html" "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\350\200\203\345\213\244\346\261\207\346\212\245\345\215\225/Pay_WorkTimesBillEdit.html"
index 29fca63..7c8766e 100644
--- "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\350\200\203\345\213\244\346\261\207\346\212\245\345\215\225/Pay_WorkTimesBillEdit.html"
+++ "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\350\200\203\345\213\244\346\261\207\346\212\245\345\215\225/Pay_WorkTimesBillEdit.html"
@@ -394,6 +394,7 @@
, "HPMTimes": result.data[i].HPMTimes
, "HAMTimes": result.data[i].HAMTimes
, 'HBaseTimes': result.data[i].HBaseTimes
+ , 'HBaseTimes_Sec': result.data[i].HBaseTimes_Sec
, 'HBaseDays': result.data[i].HBaseDays
, 'HOverTimes': result.data[i].HOverTimes
, 'HOverDays': result.data[i].HOverDays
@@ -477,6 +478,7 @@
, "HPMTimes": result.data[i].HPMTimes
, "HAMTimes": result.data[i].HAMTimes
, 'HBaseTimes': result.data[i].HBaseTimes
+ , 'HBaseTimes_Sec': result.data[i].HBaseTimes_Sec
, 'HBaseDays': result.data[i].HBaseDays
, 'HOverTimes': result.data[i].HOverTimes
, 'HOverDays': result.data[i].HOverDays
@@ -546,6 +548,7 @@
, { field: 'HAMTimes', title: '涓婂崍宸ユ椂', width: 100, edit: 'text', totalRow: true }
, { field: 'HPMTimes', title: '涓嬪崍宸ユ椂', width: 100, edit: 'text', totalRow: true }
, { field: 'HBaseTimes', title: '鍩烘湰宸ユ椂', width: 100, edit: 'text', totalRow: true, event: "HBaseTimes" }
+ , { field: 'HBaseTimes_Sec', title: '璁℃椂宸ユ椂', width: 100, edit: 'text', totalRow: true, event: "HBaseTimes_Sec" }
, { field: 'HBaseDays', title: '鍩烘湰澶╂暟', width: 100, edit: 'text', totalRow: true }
, { field: 'HOverTimes', title: '鍔犵彮宸ユ椂', width: 100, edit: 'text', totalRow: true }
, { field: 'HOverDays', title: '鍔犵彮澶╂暟', width: 100, edit: 'text', totalRow: true }
@@ -586,6 +589,7 @@
, "HPMTimes": "0"
, "HAMTimes": "0"
, "HBaseTimes": "0"
+ , "HBaseTimes_Sec": "0"
, "HBaseDays": "0"
, "HOverTimes": "0"
, "HOverDays": "0"
@@ -735,6 +739,7 @@
, "HPMTimes": "0"
, "HAMTimes": "0"
, "HBaseTimes": "0"
+ , "HBaseTimes_Sec": "0"
, "HBaseDays": "0"
, "HOverTimes": "0"
, "HOverDays": "0"
@@ -799,6 +804,7 @@
, "HPMTimes": "0"
, "HAMTimes": "0"
, "HBaseTimes": "0"
+ , "HBaseTimes_Sec": "0"
, "HBaseDays": "0"
, "HOverTimes": "0"
, "HOverDays": "0"
@@ -1373,6 +1379,37 @@
CheckedSet_tableSub();
}
+ //璁℃椂宸ユ椂
+ if (obj.event == "HBaseTimes_Sec") {
+ var oldText = table.cache["mainTable"][rowIndex].HBaseTimes_Sec;
+ var value = e.target.value; //寰楀埌淇敼鍚庣殑鍊�
+
+ //鏁版嵁鏍煎紡鏍¢獙
+ temp = value + "";
+ if (!ref.test(temp) || temp == 0) {
+ //鎭㈠鏁版嵁鍒扮紪杈戝墠
+ option.data[rowIndex].HBaseTimes_Sec = oldText;
+ table.render(option);
+ //鍒锋柊璁剧疆澶嶉�夋鐘舵��
+ CheckedSet_tableSub();
+
+ layer.msg("鎵�杈撳叆鍊煎繀椤讳负澶т簬0鐨勬暟瀛�!");
+ return;
+ }
+
+
+ for (var i = rowIndex * 1; i < option.data.length; i++) {
+ //鏁版嵁鏍¢獙鍚堟牸锛岄噸绠楄褰�
+ var HBaseTimes_Sec = isNaN(value) ? 0 : value * 1; //璁℃椂宸ユ椂
+
+ //鍚屾鏇存柊琛ㄦ牸鍜岀紦瀛樺搴旂殑鍊�
+ option.data[i].HBaseTimes_Sec = HBaseTimes_Sec;
+ }
+ table.render(option);
+ //鍒锋柊璁剧疆澶嶉�夋鐘舵��
+ CheckedSet_tableSub();
+ }
+
obj.event = "";
return false;
}
--
Gitblit v1.9.1