From 7406ad9f4c7a4119753f0c5c14118c3adb92360d Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期日, 09 七月 2023 13:19:55 +0800
Subject: [PATCH] 1
---
WebTM/Properties/PublishProfiles/JFTM.pubxml.user | 2 +-
WebTM/views/项目管理/工作任务/PM_WorkTaskReportBill.html | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 51 insertions(+), 1 deletions(-)
diff --git a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
index 4eb03b0..601cc29 100644
--- a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
@@ -4272,7 +4272,7 @@
<publishTime>07/08/2023 23:52:28</publishTime>
</File>
<File Include="views/椤圭洰绠$悊/宸ヤ綔浠诲姟/PM_WorkTaskReportBill.html">
- <publishTime>07/09/2023 11:39:07</publishTime>
+ <publishTime>07/09/2023 13:12:46</publishTime>
</File>
<File Include="views/椤圭洰绠$悊/宸ヤ綔浠诲姟/PM_WorkTaskReportBillList.html">
<publishTime>07/09/2023 11:43:49</publishTime>
diff --git "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskReportBill.html" "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskReportBill.html"
index 33290eb..9425366 100644
--- "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskReportBill.html"
+++ "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\345\267\245\344\275\234\344\273\273\345\212\241/PM_WorkTaskReportBill.html"
@@ -87,6 +87,16 @@
<input type="date" class="layui-input" lay-verify="HDate" name="HDate" id="HDate" style="padding-left: 80px;">
</div>
</div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">姹囨姤浜�*</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" lay-verify="HReportEmpName" name="HReportEmpName" id="HReportEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
+ <input type="hidden" name="HReportEmpID" id="HReportEmpID" lay-verify="HReportEmpID" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchHReportEmp" id="btnSearchHReportEmp" style="padding: 0 10px;float: right;margin-right: 3px;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+ </button>
+ </div>
+ </div>
</div>
<div class="layui-row">
<div class="layui-inline">
@@ -320,6 +330,15 @@
//#endregion
//#region 瑙﹀彂浜嬩欢锛氬寘鎷琭orm.on(){}鏍煎紡鐨勬墍鏈夌偣鍑讳簨浠躲�侀�夋嫨浜嬩欢绛�
+
+ //#region 寮圭獥閫夋嫨瑙﹀彂浜嬩欢
+ //#region 閫夋嫨姹囨姤浜烘寜閽�
+ form.on('submit(btnSearchHReportEmp)', function () {
+ get_checkSearchHReportEmp();
+ });
+ //#endregion
+ //#endregion
+
//#region 鎿嶄綔鎸夐挳瑙﹀彂浜嬩欢
//#region 淇濆瓨鎻愪氦
form.on('submit(btnSave)', function (data) {//鎻愪氦
@@ -580,6 +599,35 @@
}
//#endregion
+ //#region 姹囨姤浜洪�夋嫨椤甸潰
+ function get_checkSearchHReportEmp() {
+ layer.open({
+ type: 2//寮圭獥绫诲瀷
+ , skin: 'layui-layer-rim' //鍔犱笂杈规
+ , area: ['90%', '90%']//澶у皬
+ , title: '鍛樺伐琛�'//鏍囬
+ , shift: 2//寮瑰嚭鍔ㄧ敾
+ , content: ['../../Baseset/鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+ , btn: ['纭畾', '鍙栨秷']
+ , btn1: function (index, layero) {//鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+ var iframeWindow = window['layui-layer-iframe' + index] //鑾峰彇寮规椤甸潰
+ var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+ if (checkStatus.data.length === 0) {
+ return layer.msg('璇烽�夋嫨鏁版嵁');
+ }
+ //鑾峰彇鏁版嵁
+ $("#HReportEmpID").val(checkStatus.data[0].HItemID);//瀹㈡埛id
+ $("#HReportEmpName").val(checkStatus.data[0].HName);//瀹㈡埛鍚嶇О
+ if ($("#HReportEmpName").val() == "") {
+ $("#HReportEmpName").val(checkStatus.data[0].HNumber);
+ }
+ layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+ }
+ , btn2: function (index, layero) { }
+ })
+ }
+ //#endregion
+
//#region 淇濆瓨HMaker
function set_AddNew(data) {
//鑾峰彇瀛愯〃鏁版嵁
@@ -660,6 +708,8 @@
, "HDeleteManDate": tableMain[0]["HDeleteManDate"] == null ? "" : tFormat(new Date(tableMain[0]["HDeleteManDate"]), "yyyy-MM-dd")
, "HBackerDate": tableMain[0]["HBackerDate"] == null ? "" : Format(new Date(tableMain[0]["HBackerDate"]), "yyyy-MM-dd")
, "HBackRemark": tableMain[0]["HBackRemark"]
+ , "HReportEmpID": tableMain[0]["HReportEmpID"]
+ , "HReportEmpName": tableMain[0]["HReportEmpName"]
});
//瀛愯〃 璧嬪��
--
Gitblit v1.9.1