From 81d1261b908d586b1d078a5d712fcbefddf1cfbf Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期一, 08 十二月 2025 10:29:04 +0800
Subject: [PATCH] 1
---
WebTM/views/生产管理/报工台工序/防错/Sc_Add_MaterToSourceStepBillList.html | 62 ++++++++++++++++++++----------
1 files changed, 41 insertions(+), 21 deletions(-)
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\351\230\262\351\224\231/Sc_Add_MaterToSourceStepBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\351\230\262\351\224\231/Sc_Add_MaterToSourceStepBillList.html"
index be3242c..3243cf5 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\351\230\262\351\224\231/Sc_Add_MaterToSourceStepBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\351\230\262\351\224\231/Sc_Add_MaterToSourceStepBillList.html"
@@ -159,6 +159,8 @@
<label class="layui-form-label">娴佽浆鍗″彿:</label>
<div class="layui-input-inline">
<input class="layui-input" name="HProcExchBillNo" lay-verify="HProcExchBillNo" id="HProcExchBillNo" disabled autocomplete="off">
+ <input id="HProcExchInterID" name="HProcExchInterID" type="hidden" /> <!--娴佽浆鍗′富id-->
+ <input id="HProcExchEntryID" name="HProcExchEntryID" type="hidden" /> <!--娴佽浆鍗″瓙id-->
<input id="HSourceInterID" name="HSourceInterID" type="hidden" />
<input id="HSourceEntryID" name="HSourceEntryID" type="hidden" />
<input type="hidden" name="HSourceBillNo" id="HSourceBillNo">
@@ -314,7 +316,7 @@
<div class="layui-tab layui-tab-card" style="margin:10px auto;">
<ul class="layui-tab-title">
<li class="layui-this">閰嶆枡璁板綍</li>
- <li>娌诲叿璁板綍</li>
+ <li style="pointer-events: none; background-color:rgb(0 0 0 / 10%);">娌诲叿璁板綍</li>
</ul>
<div class="layui-tab-content" style="height:350px;">
<div class="layui-tab-item layui-show">
@@ -366,16 +368,21 @@
var OperationType = params[params[0]];//鎿嶄綔绫诲瀷
var linterid = params[params[1]];//婧愬崟id
var HSBillType = params[params[2]];//婧愬崟绫诲瀷
+ var HBillType = params[params[3]];
+ var HSourceInterID = params[params[4]];
+ var HSourceEntryID = params[params[5]];
+ var HSourceBillNo = params[params[6]];
+ var HSourceBillType = params[params[7]];
}
- var edit = function (data) {
- HBillType = data[0].HBillType;
- HSourceInterID = data[0].HSourceInterID;
- HSourceEntryID = data[0].HSourceEntryID;
- HSourceBillNo = data[0].HSourceBillNo;
- HSourceBillType = data[0].HSourceBillType;
+ //var edit = function (data) {
+ // HBillType = data[0].HBillType;
+ // HSourceInterID = data[0].HSourceInterID;
+ // HSourceEntryID = data[0].HSourceEntryID;
+ // HSourceBillNo = data[0].HSourceBillNo;
+ // HSourceBillType = data[0].HSourceBillType;
- }
+ //}
layui.config({
@@ -442,7 +449,7 @@
var sMainStr = JSON.stringify(data.field);
var sSubStr = JSON.stringify(table.cache['mainTable']);
var sSubStr1 = JSON.stringify(table.cache['mainTable1']);
- var sMainSub = sMainStr + ';' + sSubStr + ';' + refSav;
+ var sMainSub = sMainStr + ';' + sSubStr + ';' + refSav + ";" + sessionStorage["HUserName"];
if (!AllowLoadData(sSubStr, sSubStr1))//鏁版嵁楠岃瘉
{
@@ -568,7 +575,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../../PublicPage/PartInformation.html', 'yes'],
+ content: ['../../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Material.html?openType=2', 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -578,10 +585,10 @@
if (checkStatus.data.length === 0) {
return layer.msg('璇烽�夋嫨鏁版嵁');
}
- $("#HMaterName").val(checkStatus.data[0].HName);
- $("#HMaterCode").val(checkStatus.data[0].HNumber);
+ $("#HMaterName").val(checkStatus.data[0].鐗╂枡鍚嶇О);
+ $("#HMaterNumber").val(checkStatus.data[0].鐗╂枡浠g爜);
$("#HMaterID").val(checkStatus.data[0].HItemID);
- $("#HMaterSpec").val(checkStatus.data[0].HModel);
+ $("#HMaterSpec").val(checkStatus.data[0].瑙勬牸鍨嬪彿);
layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) {
@@ -608,7 +615,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../../PublicPage/SourceInformation.html', 'yes'],
+ content: ['../../../鍩虹璧勬枡/鐢熶骇鍩虹璧勬枡/Gy_Source.html?Htype=&openType=2', 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -618,7 +625,7 @@
if (checkStatus.data.length === 0) {
return layer.msg('璇烽�夋嫨鏁版嵁');
}
- $("#HSourceName").val(checkStatus.data[0].HName);
+ $("#HSourceName").val(checkStatus.data[0].鐢熶骇璧勬簮鍚嶇О);
$("#HSourceID").val(checkStatus.data[0].HItemID);
layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
@@ -646,7 +653,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../../PublicPage/UserInformation.html', 'yes'],
+ content: ['../../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HEmp', 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -656,7 +663,7 @@
if (checkStatus.data.length === 0) {
return layer.msg('璇烽�夋嫨鏁版嵁');
}
- $("#HWorkerName").val(checkStatus.data[0].HName);
+ $("#HWorkerName").val(checkStatus.data[0].鑱屽憳鍚嶇О);
$("#HWorkerID").val(checkStatus.data[0].HItemID);
layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
@@ -684,7 +691,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../../PublicPage/GroupInformation.html', 'yes'],
+ content: ['../../../鍩虹璧勬枡/宸ヨ祫鍩虹璧勬枡/Gy_Group.html?Type=HGroup&openType=2', 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -694,7 +701,7 @@
if (checkStatus.data.length === 0) {
return layer.msg('璇烽�夋嫨鏁版嵁');
}
- $("#HGroupName").val(checkStatus.data[0].HName);
+ $("#HGroupName").val(checkStatus.data[0].鐝粍鍚嶇О);
$("#HGroupID").val(checkStatus.data[0].HItemID);
layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
@@ -722,7 +729,7 @@
shift: 2,
area: ['80%', '80%'],
maxmin: true,
- content: ['../../../PublicPage/DeptInformation.html', 'yes'],
+ content: ['../../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_DepartmentList.html?openType=2&HOrgName=' + sessionStorage["Organization"], 'yes'],
btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {
@@ -732,7 +739,7 @@
if (checkStatus.data.length === 0) {
return layer.msg('璇烽�夋嫨鏁版嵁');
}
- $("#HDeptName").val(checkStatus.data[0].HName);
+ $("#HDeptName").val(checkStatus.data[0].閮ㄩ棬鍚嶇О);
$("#HDeptID").val(checkStatus.data[0].HItemID);
layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
@@ -943,6 +950,8 @@
, "HICMOInterID": data.HICMOInterID
, "HICMOEntryID": data.HICMOEntryID
, "HProcExchBillNo": data.宸ュ簭娴佽浆鍗″彿
+ , "HProcExchInterID": data.HProcExchInterID
+ , "HProcExchEntryID": data.HProcExchEntryID
, "HProcExchQty": ""
, "HSourceInterID": data.HMainSourceInterID
, "HSourceEntryID": data.HMainSourceEntryID
@@ -1286,6 +1295,17 @@
return [year, month, day].join('-');
}
+
+ //鎿嶄綔鍛�
+ function GetHEmpValue(obj) {
+ $("#HWorkerName").val(obj[0].鑱屽憳鍚嶇О);
+ $("#HWorkerID").val(obj[0].HItemID);
+ }
+ //鐢熶骇鐝粍
+ function GetHGroupValue(obj) {
+ $("#HGroupName").val(obj[0].鐝粍鍚嶇О);
+ $("#HGroupID").val(obj[0].HItemID);
+ }
</script>
</body>
</html>
--
Gitblit v1.9.1