From 2c83a04b4b9b5a86a685bfaea904ff2a50e25c7a Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期五, 29 三月 2024 15:34:16 +0800
Subject: [PATCH] 项目阶段汇报,工程项目,项目阶段清单
---
WebTM/views/项目管理/项目阶段/PM_ProjectStageBill.html | 18 +
WebTM/views/项目管理/项目阶段/PM_ProjectStageBillList.html | 10 +
WebTM/views/基础资料/公用基础资料/Gy_EmployeeList.html | 19 ++
WebTM/views/项目管理/工程项目/PM_ProjectBillList.html | 10 +
WebTM/views/项目管理/项目阶段/Gy_ProjectStage.html | 11 +
WebTM/views/项目管理/工程项目/PM_ProjectBill.html | 273 +++++++++++++++++++++++-------
WebTM/views/项目管理/项目阶段/PM_ProjectReportBill.html | 143 +++++++++++----
7 files changed, 377 insertions(+), 107 deletions(-)
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_EmployeeList.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_EmployeeList.html"
index 45956d2..4c74d00 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_EmployeeList.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_EmployeeList.html"
@@ -241,6 +241,25 @@
case "HWorker": //杩斿洖璐熻矗浜�
parent.GetHWorkerValue(data);
break;
+ case "HReport": //杩斿洖姹囨姤浜�
+ parent.GetHReportValue(data);
+ break;
+ case "HReceive": //杩斿洖鎺ユ敹浜�
+ parent.GetHReceiveValue(data);
+ break;
+ case "HPM": //杩斿洖椤圭洰缁忕悊
+ parent.GetHPMValue(data);
+ break;
+ case "HProject": //杩斿洖闃舵璐熻矗浜�
+ parent.GetHProjectValue(data);
+ break;
+ case "HProjectCheck": //杩斿洖闃舵瀹℃牳浜�
+ parent.GetHProjectCheckValue(data);
+ break;
+ case "HProjectMember": //杩斿洖椤圭洰鎴愬憳
+ parent.GetHProjectMemberValue(data);
+ break;
+
}
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
diff --git "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectBill.html" "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectBill.html"
index 3667012..a8c5a50 100644
--- "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectBill.html"
+++ "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectBill.html"
@@ -424,7 +424,7 @@
</div>
</script>
<script>
-
+
layui.config({
base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
}).extend({
@@ -446,6 +446,17 @@
var option1 = {}; //椤圭洰鎴愬憳琛ㄦ覆鏌撳弬鏁�
//璁板綍缁勭粐鐨勫��
var HOrgIDBar = 0;
+ //鍏ㄥ眬鍙橀噺
+ window.CusType = 0;
+ window.ProjectStageData = [];//椤圭洰闃舵
+ window.HEmpData = []; //闃舵璐熻矗浜�
+ window.ProjectCheckData = []; //闃舵瀹℃牳浜�
+ window.RowDatas = []; //f6闃舵璐熻矗浜�
+ window.RowDatass = []; //f6闃舵瀹℃牳浜�
+ window.MemberData = []; //椤圭洰鎴愬憳
+
+
+
//鑾峰彇鍙傛暟
var params = getUrlVars();
var OperationType = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鏁版嵁绫诲瀷 1娣诲姞 淇濆瓨 2澶嶅埗 3 缂栬緫
@@ -534,7 +545,10 @@
//#region 寮圭獥閫夋嫨瑙﹀彂浜嬩欢
//#region 閫夋嫨瀹㈡埛浠g爜鎸夐挳
form.on('submit(btnSearchHCus)', function () {
+ CusType = 1;
get_checkSearchHCus();
+
+
});
//#endregion
@@ -564,6 +578,7 @@
//#region 閫夋嫨缁撶畻鏂规寜閽�
form.on('submit(btnSearchHPayCus)', function () {
+ CusType = 2;
get_checkSearchHPayCus();
});
//#endregion
@@ -1083,6 +1098,7 @@
layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) { }
+ , end: function () { }
})
}
//#endregion
@@ -1096,7 +1112,7 @@
, area: ['90%', '90%']//澶у皬
, title: '鍛樺伐琛�'//鏍囬
, shift: 2//寮瑰嚭鍔ㄧ敾
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, 'yes']
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HPM&HOrgID=' + HOrgID, 'yes']
, btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
@@ -1113,6 +1129,7 @@
layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) { }
+ , end: function () { }
})
}
//#endregion
@@ -1126,7 +1143,7 @@
, area: ['90%', '90%']//澶у皬
, title: '鍛樺伐琛�'//鏍囬
, shift: 2//寮瑰嚭鍔ㄧ敾
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, 'yes']
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HWorker&HOrgID=' + HOrgID, 'yes']
, btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
@@ -1156,7 +1173,7 @@
, area: ['90%', '90%']//澶у皬
, title: '鍛樺伐琛�'//鏍囬
, shift: 2//寮瑰嚭鍔ㄧ敾
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, 'yes']
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HEmp&HOrgID=' + HOrgID, 'yes']
, btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
@@ -1186,7 +1203,7 @@
, area: ['90%', '90%']//澶у皬
, title: '浜у搧琛�'//鏍囬
, shift: 2//寮瑰嚭鍔ㄧ敾
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Material.html?openType=2&HOrgID=' + HOrgID, 'yes']
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Material.html', 'yes']
, btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
@@ -1204,6 +1221,7 @@
layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) { }
+ , end: function () { }
})
}
//#endregion
@@ -1234,6 +1252,7 @@
layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) { }
+ , end: function () { }
})
}
//#endregion
@@ -1262,66 +1281,76 @@
//鑾峰彇鏁版嵁
var HBillInterID = checkStatus.data[0].HInterID;
//鑾峰彇椤圭洰闃舵娓呭崟涓殑椤圭洰闃舵鍒楄〃
- $.ajax({
- url: GetWEBURL() + "/PM_ProjectStageBill/editInit",
- type: "GET",
- async: false,
- data: { "HInterID": HBillInterID, "user": sessionStorage["HUserName"] },
- success: function (result) {
- var tableMain = result.data[0];
- var tableSub = result.data[1];
- //鍚堝苟鐜版湁瀛愯〃鏁版嵁鍜岄」鐩樁娈垫竻鍗曠殑鏁版嵁
- var num = [];
- var len = 0; //璁板綍num闀垮害锛岀敤浜庝綔涓篟owID鐨勭郴鏁帮紝涓篟owID鐨勮祴鍊�
- for (var i = 0; i < tableSub.length; i++) {
- var NewRow =
- {
- "RowID": (i + 1) * 10
- , 'HProjectStageID': tableSub[i]["HProjectStageID"]
- , 'HProjectStageName': tableSub[i]["HProjectStageName"]
- , 'HStageNote': tableSub[i]["HStageNote"]
- , 'HPMGoodsID': (tableSub[i]["HPMGoodsID"] != null) ? tableSub[i]["HPMGoodsID"] : '0'
- , 'HPMGoodsName': tableSub[i]["HPMGoodsName"]
- , 'HIsKey': tableSub[i]["HIsKey"]
- , 'HRate': tableSub[i]["HRate"]
- , 'HEmpID': '0'
- , 'HEmpName': ''
- , 'HCheckEmpID': '0'
- , 'HCheckEmpName': ''
- , 'HFinishDate': ''
- , 'HWorkDays': '0'
- , 'HRemarkSub': tableSub[i]["HRemarkSub"]
- };
- num.push(NewRow);
- }
- len = num.length;
- for (var i = 0; i < option.data.length; i++) {
- option.data[i].RowID = (len + i + 1) * 10;
- num.push(option.data[i]);
- }
-
-
- //瀛愯〃 璧嬪��
- option.data = num;
- table.render(option);
-
- //瀵瑰瓙琛ㄤ腑鐨勫閫夋杩涜閫変腑
- for (var i = 0; i < num.length; i++) {
- if (num[i].HIsKey) {
- $('#HIsKey' + (i + 1)).attr("checked", true);
- }
- }
- form.render('checkbox');
- }
- })
+ get_BT(HBillInterID);
layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) { }
+ , end: function () {
+
+ get_BT($("#HProjectStageBillInterID").val());
+ }
})
}
//#endregion
+
+ //#region 椤圭洰闃舵娓呭崟 閫夋嫨 甯﹀嚭琛ㄤ綋鏁版嵁
+ function get_BT(HBillInterID) {
+ $.ajax({
+ url: GetWEBURL() + "/PM_ProjectStageBill/editInit",
+ type: "GET",
+ async: false,
+ data: { "HInterID": HBillInterID, "user": sessionStorage["HUserName"] },
+ success: function (result) {
+ var tableMain = result.data[0];
+ var tableSub = result.data[1];
+ //鍚堝苟鐜版湁瀛愯〃鏁版嵁鍜岄」鐩樁娈垫竻鍗曠殑鏁版嵁
+ var num = [];
+ var len = 0; //璁板綍num闀垮害锛岀敤浜庝綔涓篟owID鐨勭郴鏁帮紝涓篟owID鐨勮祴鍊�
+ for (var i = 0; i < tableSub.length; i++) {
+ var NewRow =
+ {
+ "RowID": (i + 1) * 10
+ , 'HProjectStageID': tableSub[i]["HProjectStageID"]
+ , 'HProjectStageName': tableSub[i]["HProjectStageName"]
+ , 'HStageNote': tableSub[i]["HStageNote"]
+ , 'HPMGoodsID': (tableSub[i]["HPMGoodsID"] != null) ? tableSub[i]["HPMGoodsID"] : '0'
+ , 'HPMGoodsName': tableSub[i]["HPMGoodsName"]
+ , 'HIsKey': tableSub[i]["HIsKey"]
+ , 'HRate': tableSub[i]["HRate"]
+ , 'HEmpID': '0'
+ , 'HEmpName': ''
+ , 'HCheckEmpID': '0'
+ , 'HCheckEmpName': ''
+ , 'HFinishDate': ''
+ , 'HWorkDays': '0'
+ , 'HRemarkSub': tableSub[i]["HRemarkSub"]
+ };
+ num.push(NewRow);
+ }
+ len = num.length;
+ for (var i = 0; i < option.data.length; i++) {
+ option.data[i].RowID = (len + i + 1) * 10;
+ num.push(option.data[i]);
+ }
+
+
+ //瀛愯〃 璧嬪��
+ option.data = num;
+ table.render(option);
+
+ //瀵瑰瓙琛ㄤ腑鐨勫閫夋杩涜閫変腑
+ for (var i = 0; i < num.length; i++) {
+ if (num[i].HIsKey) {
+ $('#HIsKey' + (i + 1)).attr("checked", true);
+ }
+ }
+ form.render('checkbox');
+ }
+ })
+ }
+ //#endregion
//#region 淇濆瓨HMaker
function set_AddNew(data) {
@@ -1857,6 +1886,17 @@
CheckedSet_tableSub();
layer.close(index);//鍏抽棴寮圭獥
}
+ , end: function () {
+ obj.update({
+ "HProjectStageID": ProjectStageData[0].HItemID
+ , "HProjectStageName": ProjectStageData[0].闃舵鍚嶇О
+ , "HStageNote": ProjectStageData[0].椤圭洰闃舵璇︾粏鍐呭
+ , "HPMGoodsID": ProjectStageData[0].HPMGoodsID == null ? 0 : ProjectStageData[0].HPMGoodsID
+ , "HPMGoodsName": ProjectStageData[0].鐩稿叧浜や粯鐗�
+ , "HIsKey": ProjectStageData[0].閲岀▼纰� == "Y" ? true : false
+ , "HRate": ProjectStageData[0].鐞嗚涓氱哗鍗犳瘮
+ })
+ }
})
}
//闃舵璐熻矗浜�
@@ -1871,7 +1911,7 @@
, shift: 2 //寮瑰嚭鍔ㄧ敾
, area: ["90%", "90%"] //绐椾綋澶у皬
, maxmin: true //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, "yes"]
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HProject&HOrgID=' + HOrgID, "yes"]
, btn: ["纭畾", "鍙栨秷"]
, btn1: function (index, laero) {
//鎸夐挳涓� 鐨勫洖璋�
@@ -1888,6 +1928,12 @@
})
layer.close(index);//鍏抽棴寮圭獥
}
+ , end: function () {
+ obj.update({
+ "HEmpID": HEmpData[0].HItemID
+ , "HEmpName": HEmpData[0].鑱屽憳鍚嶇О
+ })
+ }
})
}
//闃舵瀹℃牳浜�
@@ -1902,7 +1948,7 @@
, shift: 2 //寮瑰嚭鍔ㄧ敾
, area: ["90%", "90%"] //绐椾綋澶у皬
, maxmin: true //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, "yes"]
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HProjectCheck&HOrgID=' + HOrgID, "yes"]
, btn: ["纭畾", "鍙栨秷"]
, btn1: function (index, laero) {
//鎸夐挳涓� 鐨勫洖璋�
@@ -1918,6 +1964,12 @@
, "HCheckEmpName": checkStatus.data[0].鑱屽憳鍚嶇О
})
layer.close(index);//鍏抽棴寮圭獥
+ }
+ , end: function () {
+ obj.update({
+ "HCheckEmpID": ProjectCheckData[0].HItemID
+ , "HCheckEmpName": ProjectCheckData[0].鑱屽憳鍚嶇О
+ })
}
})
}
@@ -1941,7 +1993,7 @@
, shift: 2 //寮瑰嚭鍔ㄧ敾
, area: ["90%", "90%"] //绐椾綋澶у皬
, maxmin: true //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, "yes"]
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HManager&HOrgID=' + HOrgID, "yes"]
, btn: ["纭畾", "鍙栨秷"]
, btn1: function (index, laero) {
//鎸夐挳涓� 鐨勫洖璋�
@@ -1965,6 +2017,18 @@
layer.close(index);//鍏抽棴寮圭獥
}
+ , end: function () {
+
+ var rowIndex = $(obj.tr).attr("data-index");
+ for (var i = 0; i < option.data.length; i++) {
+ if (i >= rowIndex) {
+ option.data[i]["HEmpID"] = RowDatas[0].HItemID;
+ option.data[i]["HEmpName"] = RowDatas[0].鑱屽憳鍚嶇О;
+ }
+ }
+ table.render(option);
+ CheckedSet_tableSub();
+ }
})
}
//闃舵瀹℃牳浜�
@@ -1979,7 +2043,7 @@
, shift: 2 //寮瑰嚭鍔ㄧ敾
, area: ["90%", "90%"] //绐椾綋澶у皬
, maxmin: true //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, "yes"]
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HKeeper&HOrgID=' + HOrgID, "yes"]
, btn: ["纭畾", "鍙栨秷"]
, btn1: function (index, laero) {
//鎸夐挳涓� 鐨勫洖璋�
@@ -2004,6 +2068,20 @@
layer.close(index);//鍏抽棴寮圭獥
}
+ , end: function () {
+
+ //鏇存柊瀛愯〃1鏁版嵁
+ var rowIndex = $(obj.tr).attr("data-index");
+ for (var i = 0; i < option.data.length; i++) {
+ if (i >= rowIndex) {
+ option.data[i]["HCheckEmpID"] = RowDatass[0].HItemID;
+ option.data[i]["HCheckEmpName"] = RowDatass[0].鑱屽憳鍚嶇О;
+ }
+ }
+ table.render(option);
+ CheckedSet_tableSub();
+
+ }
})
}
}
@@ -2027,7 +2105,7 @@
, shift: 2 //寮瑰嚭鍔ㄧ敾
, area: ["90%", "90%"] //绐椾綋澶у皬
, maxmin: true //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, "yes"]
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HProjectMember&HOrgID=' + HOrgID, "yes"]
, btn: ["纭畾", "鍙栨秷"]
, btn1: function (index, laero) {
//鎸夐挳涓� 鐨勫洖璋�
@@ -2043,6 +2121,12 @@
, "HEmployeeName": checkStatus.data[0].鑱屽憳鍚嶇О
})
layer.close(index);//鍏抽棴寮圭獥
+ }
+ , end: function () {
+ obj.update({
+ "HEmployeeID": MemberData[0].HItemID
+ , "HEmployeeName": MemberData[0].鑱屽憳鍚嶇О
+ })
}
})
}
@@ -2346,12 +2430,69 @@
//#endregion
//#endregion
-
-
-
});
-
+ //瀹㈡埛
+ function GetHCusNameValue(obj) {
+ if (CusType == 1) {
+ $("#HCusID").val(obj[0].HItemID);//瀹㈡埛id
+ $("#HCusName").val(obj[0].瀹㈡埛鍚嶇О);//瀹㈡埛鍚嶇О
+ }
+ else if (CusType === 2) {
+ $("#HPayCusID").val(obj[0].HItemID);//瀹㈡埛id
+ $("#HPayCusName").val(obj[0].瀹㈡埛鍚嶇О);//瀹㈡埛鍚嶇О
+ }
+ }
+ //椤圭洰缁忕悊
+ function GetHPMValue(obj) {
+ $("#HPMEmpID").val(obj[0].HItemID);//瀹㈡埛id
+ $("#HPMEmpName").val(obj[0].鑱屽憳鍚嶇О);//瀹㈡埛鍚嶇О
+ }
+ //瀹炴柦鎷呭綋
+ function GetHWorkerValue(obj) {
+ $("#HWorkEmpID").val(obj[0].HItemID);//鍛樺伐id
+ $("#HWorkEmpName").val(obj[0].鑱屽憳鍚嶇О);//鍛樺伐鍚嶇О
+ }
+ //寮�鍙戞媴褰�
+ function GetHEmpValue(obj) {
+ $("#HDepEmpID").val(obj[0].HItemID);//鍛樺伐id
+ $("#HDepEmpName").val(obj[0].鑱屽憳鍚嶇О);//鍛樺伐鍚嶇О
+ }
+ //瀵瑰簲浜у搧
+ function GetMaterValue(obj) {
+ $("#HMaterID").val(obj[0].HItemID);//浜у搧鍐呯爜
+ $("#HMaterNumber").val(obj[0].鐗╂枡浠g爜);//浜у搧浠g爜
+ $("#HMaterName").val(obj[0].鐗╂枡鍚嶇О);//浜у搧鍚嶇О
+ }
+ //椤圭洰闃舵娓呭崟
+ function GetProjectStageBillValue(obj) {
+ $("#HProjectStageBillInterID").val(obj[0].HInterID);//瀹㈡埛id
+ $("#HProjectStageBillNumber").val(obj[0].鍗曟嵁鍙�);//瀹㈡埛鍚嶇О
+ }
+ //椤圭洰闃舵
+ function GetProjectStageValue(obj) {
+ ProjectStageData = obj;
+ }
+ //闃舵璐熻矗浜�
+ function GetHProjectValue(obj) {
+ HEmpData = obj;
+ }
+ //闃舵瀹℃牳浜�
+ function GetHProjectCheckValue(obj) {
+ ProjectCheckData = obj;
+ }
+ //f6闃舵璐熻矗浜�
+ function GetHManagerValue(obj) {
+ RowDatas = obj;
+ }
+ //闃舵璐熻矗浜�
+ function GetHKeeperValue(obj) {
+ RowDatass = obj;
+ }
+ //闃舵璐熻矗浜�
+ function GetHProjectMemberValue(obj) {
+ MemberData = obj;
+ }
</script>
</body>
</html>
\ No newline at end of file
diff --git "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectBillList.html" "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectBillList.html"
index 94b21fa..686fa6e 100644
--- "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectBillList.html"
+++ "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\347\250\213\351\241\271\347\233\256/PM_ProjectBillList.html"
@@ -422,6 +422,16 @@
}
//#endregion
+ //#region 鍙屽嚮杩斿洖鏁版嵁
+ table.on('rowDouble(mainTable)', function (obj) {
+ var data = [];
+ data.push(obj.data);
+ parent.GetProjectBillValue(data);
+ var index = parent.layer.getFrameIndex(window.name);
+ parent.layer.close(index);
+ });
+ //#endregion
+
//#region 蹇�熻繃婊�
function get_FastQuery(number) {
var HOrgID = "";
diff --git "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/Gy_ProjectStage.html" "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/Gy_ProjectStage.html"
index 343ec34..93c492a 100644
--- "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/Gy_ProjectStage.html"
+++ "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/Gy_ProjectStage.html"
@@ -444,6 +444,17 @@
}
//#endregion
+ //#region 鍙屽嚮杩斿洖鏁版嵁
+ table.on('rowDouble(mainTable)', function (obj) {
+ var data = [];
+ data.push(obj.data);
+ parent.GetProjectStageValue(data);
+ var index = parent.layer.getFrameIndex(window.name);
+ parent.layer.close(index);
+ });
+ //#endregion
+
+
//#region 鏂板
function set_AddNew() {
layer.open({
diff --git "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectReportBill.html" "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectReportBill.html"
index 5ccaaac..0075e48 100644
--- "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectReportBill.html"
+++ "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectReportBill.html"
@@ -387,7 +387,7 @@
</div>
</script>
<script>
-
+ var optiondata = [];
layui.config({
base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
}).extend({
@@ -832,46 +832,56 @@
}
//璁剧疆琛ㄤ綋鏁版嵁
var HBillInterID = checkStatus.data[0].HInterID;
- $.ajax({
- url: GetWEBURL() + "/PM_ProjectBill/editInit",
- type: "GET",
- async: false,
- data: { "HInterID": HBillInterID, "user": sessionStorage["HUserName"] },
- success: function (result) {
- //鑾峰彇鏁版嵁搴撲腑璇ラ」鐩殑椤圭洰鎴愬憳鏁版嵁
- var tableSub_Emp = result.data[2];
- //鏍规嵁琛ㄤ綋鍒楋紝濉厖琛ㄤ綋鏁版嵁
- var num = [];
- for (var i = 0; i < tableSub_Emp.length; i++) {
- var rowdata =
- {
- "RowID": (i + 1) * 10
- , 'HEmpID': tableSub_Emp[i]["HEmployeeID"]
- , 'HEmpName': tableSub_Emp[i]["HEmployeeName"]
- , 'HIsPM': tableSub_Emp[i]["HIsPM"]
- , 'HRate': tableSub_Emp[i]["HRate"]
- , 'HAvgMoney': '0'
- , 'HCountMoney': '0'
- , 'HRemarkSub': ''
- };
- num.push(rowdata);
- }
- option.data = num;
- table.render(option);
- //璁剧疆澶嶉�夋閫変腑鐘舵��
- for (var i = 0; i < tableSub_Emp.length; i++) {
- if (tableSub_Emp[i].HIsPM) {
- $('#HIsPM' + (i + 1)).attr("checked", true);
- }
- }
- form.render('checkbox');
- }
- })
+ get_NumberNum(HBillInterID);
layer.close(index);//鍏抽棴寮圭獥
}
, btn2: function (index, layero) { }
+ , end: function () {
+ get_NumberNum($("#HProjectID").val());
+ }
})
}
+ //#endregion
+
+ //#region 閫夋嫨椤圭洰浠g爜,甯﹀嚭瀛愯〃鏁版嵁
+ function get_NumberNum(HBillInterID) {
+ $.ajax({
+ url: GetWEBURL() + "/PM_ProjectBill/editInit",
+ type: "GET",
+ async: false,
+ data: { "HInterID": HBillInterID, "user": sessionStorage["HUserName"] },
+ success: function (result) {
+ //鑾峰彇鏁版嵁搴撲腑璇ラ」鐩殑椤圭洰鎴愬憳鏁版嵁
+ var tableSub_Emp = result.data[2];
+ //鏍规嵁琛ㄤ綋鍒楋紝濉厖琛ㄤ綋鏁版嵁
+ var num = [];
+ for (var i = 0; i < tableSub_Emp.length; i++) {
+ var rowdata =
+ {
+ "RowID": (i + 1) * 10
+ , 'HEmpID': tableSub_Emp[i]["HEmployeeID"]
+ , 'HEmpName': tableSub_Emp[i]["HEmployeeName"]
+ , 'HIsPM': tableSub_Emp[i]["HIsPM"]
+ , 'HRate': tableSub_Emp[i]["HRate"]
+ , 'HAvgMoney': '0'
+ , 'HCountMoney': '0'
+ , 'HRemarkSub': ''
+ };
+ num.push(rowdata);
+ }
+ option.data = num;
+ table.render(option);
+ //璁剧疆澶嶉�夋閫変腑鐘舵��
+ for (var i = 0; i < tableSub_Emp.length; i++) {
+ if (tableSub_Emp[i].HIsPM) {
+ $('#HIsPM' + (i + 1)).attr("checked", true);
+ }
+ }
+ form.render('checkbox');
+ }
+ })
+ }
+
//#endregion
//#region 椤圭洰闃舵閫夋嫨椤甸潰
@@ -903,6 +913,9 @@
layer.close(index);//鍏抽棴寮圭獥
}
, btn2: function (index, layero) { }
+ , end: function () {
+
+ }
})
}
//#endregion
@@ -916,7 +929,7 @@
, area: ['90%', '90%']//澶у皬
, title: '鍛樺伐琛�'//鏍囬
, shift: 2//寮瑰嚭鍔ㄧ敾
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, 'yes']
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HReport&HOrgID=' + HOrgID, 'yes']
, btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
@@ -933,6 +946,7 @@
layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) { }
+ , end: function () { }
})
}
//#endregion
@@ -1023,7 +1037,7 @@
, area: ['90%', '90%']//澶у皬
, title: '鍛樺伐琛�'//鏍囬
, shift: 2//寮瑰嚭鍔ㄧ敾
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, 'yes']
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HReceive&HOrgID=' + HOrgID, 'yes']
, btn: ['纭畾', '鍙栨秷']
, btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
@@ -1039,6 +1053,9 @@
layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
}
, btn2: function (index, layero) { }
+ , end: function () {
+
+ }
})
}
//#endregion
@@ -1531,7 +1548,7 @@
, shift: 2 //寮瑰嚭鍔ㄧ敾
, area: ["90%", "90%"] //绐椾綋澶у皬
, maxmin: true //璁剧疆鏈�澶ф渶灏忔寜閽槸鍚︽樉绀�
- , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=2&HOrgID=' + HOrgID, 'yes']
+ , content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?openType=HEmp&HOrgID=' + HOrgID, 'yes']
, btn: ["纭畾", "鍙栨秷"]
, btn1: function (index, laero) {
//鎸夐挳涓� 鐨勫洖璋�
@@ -1547,6 +1564,12 @@
, "HEmpName": checkStatus.data[0].鑱屽憳鍚嶇О
})
layer.close(index);//鍏抽棴寮圭獥
+ }
+ , end: function () {
+ obj.update({
+ "HEmpID": optiondata[0].HItemID
+ , "HEmpName": optiondata[0].鑱屽憳鍚嶇О
+ })
}
})
}
@@ -1767,6 +1790,48 @@
}
//#endregion
+ //椤圭洰浠g爜
+ function GetProjectBillValue(obj) {
+ $("#HProjectID").val(obj[0].HInterID);
+ $("#HProNumber").val(obj[0].椤圭洰浠g爜);
+ $("#HProjectStageID").val(obj[0].HProjectStageID);
+ $("#HProjectStageName").val(obj[0].椤圭洰闃舵);
+ $("#HStageNote").val(obj[0].椤圭洰闃舵璇︾粏鍐呭);
+ $("#HPMGoodsID").val(obj[0].HPMGoodsID);
+ $("#HRelationGoods").val(obj[0].闃舵鐩稿叧浜や粯鐗�);
+ $("#HIsKey").val((obj[0].閲岀▼纰� == 'Y' ? true : false));
+ $("#HRate").val(obj[0].闃舵涓氱哗鍗犳瘮);
+
+ $("#HMainSourceInterID").val(obj[0].HInterID);
+ $("#HMainSourceEntryID").val(obj[0].HEntryID);
+ $("#HMainSourceBillNo").val(obj[0].鍗曟嵁鍙�);
+ $("#HMainSourceBillType").val(obj[0].鍗曟嵁绫诲瀷);
+
+
+ }
+
+ //椤圭洰闃舵
+ function GetProjectStageValue(obj) {
+ $("#HProjectStageID").val(obj[0].HItemID);//椤圭洰闃舵id
+ $("#HProjectStageName").val(obj[0].闃舵鍚嶇О);//椤圭洰闃舵鍚嶇О
+ $("#HStageNote").val(obj[0].椤圭洰闃舵璇︾粏鍐呭);//椤圭洰闃舵璇︾粏鍐呭
+ }
+
+ //姹囨姤浜�
+ function GetHReportValue (obj) {
+ $("#HReportEmpID").val(obj[0].HItemID);//瀹㈡埛id
+ $("#HReportEmpName").val(obj[0].鑱屽憳鍚嶇О);//瀹㈡埛鍚嶇О
+ }
+
+ //鎺ユ敹浜�
+ function GetHReceiveValue(obj) {
+ $("#HReceiveEmp").val(obj[0].鑱屽憳鍚嶇О);//鎺ユ敹浜哄悕绉�
+ }
+
+ //鍛樺伐
+ function GetHEmpValue(obj) {
+ optiondata = obj
+ }
</script>
</body>
</html>
\ No newline at end of file
diff --git "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectStageBill.html" "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectStageBill.html"
index 2498178..02fd27a 100644
--- "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectStageBill.html"
+++ "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectStageBill.html"
@@ -230,7 +230,7 @@
</div>
</script>
<script>
-
+ var optiondata = [];
layui.config({
base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
}).extend({
@@ -846,6 +846,7 @@
if (checkStatus.data.length != 1) {
return layer.msg("璇烽�夋嫨涓�鏉℃暟鎹�");
}
+
//鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
obj.update({
"HProjectStageID": checkStatus.data[0].HItemID
@@ -858,6 +859,17 @@
})
CheckedSet_tableSub();
layer.close(index);//鍏抽棴寮圭獥
+ }
+ , end: function (data) {
+ obj.update({
+ "HProjectStageID": optiondata[0].HItemID
+ , "HProjectStageName": optiondata[0].闃舵鍚嶇О
+ , "HStageNote": optiondata[0].椤圭洰闃舵璇︾粏鍐呭
+ , "HPMGoodsID": optiondata[0].HPMGoodsID == null ? 0 : optiondata[0].HPMGoodsID
+ , "HPMGoodsName": optiondata[0].鐩稿叧浜や粯鐗�
+ , "HRate": optiondata[0].鐞嗚涓氱哗鍗犳瘮
+ , "HIsKey": optiondata[0].閲岀▼纰� == "Y" ? true : false
+ })
}
})
}
@@ -1009,7 +1021,9 @@
});
-
+ function GetProjectStageValue(data) {
+ optiondata = data;
+ }
</script>
</body>
</html>
\ No newline at end of file
diff --git "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectStageBillList.html" "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectStageBillList.html"
index 5f1dd92..ea4f461 100644
--- "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectStageBillList.html"
+++ "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\351\241\271\347\233\256\351\230\266\346\256\265/PM_ProjectStageBillList.html"
@@ -233,6 +233,16 @@
})
//#endregion
+ //#region 鍙屽嚮杩斿洖鏁版嵁
+ table.on('rowDouble(mainTable)', function (obj) {
+ var data = [];
+ data.push(obj.data);
+ parent.GetProjectStageBillValue(data);
+ var index = parent.layer.getFrameIndex(window.name);
+ parent.layer.close(index);
+ });
+ //#endregion
+
//#region 閲嶇疆鎸夐挳
form.on('submit(btnReSearch)', function (data) {
set_ClearQuery();
--
Gitblit v1.9.1