From 94853e46b9d4911fb4cf00389f00a4b820db5d3c Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 21 五月 2025 14:35:46 +0800
Subject: [PATCH] fix: 修正 系统上机日志查询 没有显示默认方案的问题
---
WebTM/views/生产管理/异常反馈单/OA_ErrMsgBackReceiveBillMain.html | 75 +++++++++++++++++++++++++++++++++----
1 files changed, 66 insertions(+), 9 deletions(-)
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackReceiveBillMain.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackReceiveBillMain.html"
index e787ebc..c8f6bd4 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackReceiveBillMain.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackReceiveBillMain.html"
@@ -415,6 +415,8 @@
, form = layui.form
, laydate = layui.laydate
, element = layui.element;
+
+ window.HDeptType = 0;
//#endregion
//鑾峰彇鍙傛暟
@@ -530,7 +532,8 @@
data: {
"HInterID": linterid,
"HEntryID": HEntryID,
- "user": sessionStorage["HUserName"]
+ "user": sessionStorage["HUserName"],
+ "num": 1
},
dataType: "json",
success: function (data) {
@@ -539,6 +542,8 @@
var LoadData = data.data;
$("#HDeptID").val(LoadData[0].HDeptID); //閮ㄩ棬ID
$("#HDeptName").val(LoadData[0].鍙戦�侀儴闂�); //鍙戦�侀儴闂�
+ $("#HErrMsgBackTypeID").val(LoadData[0].HErrMsgBackTypeID); //寮傚父绫诲瀷鍚嶇ОID
+ $("#HErrMsgBackTypeName").val(LoadData[0].寮傚父绫诲瀷鍚嶇О); //寮傚父绫诲瀷鍚嶇О
$("#HSendMan").val(LoadData[0].鍙戦�佷汉); //鍙戦�佷汉
$("#HReceiveMan").val(LoadData[0].鎺ユ敹浜�); //鎺ユ敹浜�
$("#HCopyMan").val(LoadData[0].鎶勯��); //鎶勯��
@@ -757,6 +762,8 @@
//鍙戦�侀儴闂�
form.on('submit(HDeptList)', function () {
+ HDeptType = 1;
+
//椤甸潰灞�-鑷畾涔�
layer.open({
type: 2,
@@ -766,7 +773,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_DepartmentList.html', 'yes'],
+ content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_DepartmentList.html?openType=2&HOrgName=' + sessionStorage["Organization"], 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -795,6 +802,8 @@
//鎺ユ敹閮ㄩ棬
form.on('submit(HReceiveList)', function () {
+ HDeptType = 2;
+
//椤甸潰灞�-鑷畾涔�
layer.open({
type: 2,
@@ -804,7 +813,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_DepartmentList.html', 'yes'],
+ content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_DepartmentList.html?openType=2&HOrgName=' + sessionStorage["Organization"], 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -842,7 +851,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes'],
+ content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HSecManager', 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -980,7 +989,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../璐ㄩ噺绠$悊/鍩虹寤烘ā/Gy_ErrMsgBackType.html', 'yes'],
+ content: ['../../璐ㄩ噺绠$悊/鍩虹寤烘ā/Gy_ErrMsgBackType.html?openType=2', 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -1018,7 +1027,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../璁惧绠$悊/璁惧妗f/Gy_EquipFileMainList.html', 'yes'],
+ content: ['../../璁惧绠$悊/璁惧妗f/Gy_EquipFileMainList.html?openType=2', 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -1056,7 +1065,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_MouldFileList.html', 'yes'],
+ content: ['../../妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_MouldFileList.html?openType=2', 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -1094,7 +1103,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes'],
+ content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HEmp', 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -1133,7 +1142,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes'],
+ content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HManager', 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -1145,6 +1154,14 @@
}
$("#HandleEmpName").val(checkStatus.data[0].鑱屽憳鍚嶇О);
$("#HHandleEmpID").val(checkStatus.data[0].HItemID);
+
+ // 鑾峰彇褰撳墠鐨勫��
+ var currentValue = $("#HandleEmpName").val();
+
+ // 浣跨敤姝e垯琛ㄨ揪寮忔壘鍒� "瀵瑰簲澶勭悊浜�:" 鍚庨潰鐨勪汉鍚嶅苟鏇挎崲
+ var updatedValue = currentValue.replace(/瀵瑰簲澶勭悊浜�:[^,]*/, "瀵瑰簲澶勭悊浜�:" + $("#HandleEmpName").val());
+ // 灏嗘洿鏂板悗鐨勫�艰缃洖杈撳叆妗�
+ $("#HDescription").val(updatedValue);
layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) {
@@ -1205,6 +1222,46 @@
return [year, month, day].join('-');
}
+
+ function GetHDeptNameValue(obj) { //閮ㄩ棬
+ if (HDeptType == 1) {
+ $("#HDeptName").val(obj[0].閮ㄩ棬鍚嶇О);
+ $("#HDeptID").val(obj[0].HItemID);
+ } else if (HDeptType == 2) {
+ $("#HReceiveName").val(obj[0].閮ㄩ棬鍚嶇О);
+ $("#HReceiveID").val(obj[0].HItemID);
+ }
+ }
+
+ function GetErrMsgBackTypeValue(obj) { //寮傚父鍙嶉
+ $("#HErrMsgBackTypeName").val(obj[0].寮傚父鍙嶉绫诲瀷鍚嶇О);
+ $("#HErrMsgBackTypeID").val(obj[0].HItemID);
+ }
+
+ function GetHEmpValue(obj) { //鍏宠仈浜�
+ $("#HRelationEmpName").val(obj[0].鑱屽憳鍚嶇О);
+ $("#HRelationEmpID").val(obj[0].HItemID);
+ }
+
+ function GetHManagerValue(obj) { //鎸囨淳澶勭悊浜�
+ $("#HandleEmpName").val(obj[0].鑱屽憳鍚嶇О);
+ $("#HHandleEmpID").val(obj[0].HItemID);
+ }
+
+ function GetHSecManagerValue(obj) { //鍙戦�佷汉
+ $("#HSendMan").val(obj[0].鑱屽憳鍚嶇О);
+ }
+
+ function GetEquipFileValue(obj) { //璁惧妗f
+ $("#HEquipName").val(obj[0].璁惧鍚嶇О);
+ $("#HEquipID").val(obj[0].hmainid);
+ }
+
+ function GetMouldFileValue(obj) { //鍣ㄥ叿妗f
+ $("#HMouldName").val(obj[0].妯″叿鍚嶇О);
+ $("#HMouldID").val(obj[0].hmainid);
+ }
+
</script>
</body>
</html>
--
Gitblit v1.9.1