From 60797d7d4b631db3cafe9915169974785ccd9131 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 10 七月 2023 15:23:16 +0800
Subject: [PATCH] 1
---
WebTM/views/项目管理/项目阶段/PM_ProjectReportBillList.html | 4 ++--
WebTM/Properties/PublishProfiles/JFTM.pubxml.user | 4 ++--
WebTM/views/项目管理/项目阶段/PM_ProjectReportBill.html | 49 ++++++++++++++++++++++++++++++++++---------------
3 files changed, 38 insertions(+), 19 deletions(-)
diff --git a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
index f33e508..34e9b8f 100644
--- a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
@@ -4305,10 +4305,10 @@
<publishTime>07/06/2023 09:17:28</publishTime>
</File>
<File Include="views/椤圭洰绠$悊/椤圭洰闃舵/PM_ProjectReportBill.html">
- <publishTime>07/09/2023 22:30:05</publishTime>
+ <publishTime>07/10/2023 15:22:55</publishTime>
</File>
<File Include="views/椤圭洰绠$悊/椤圭洰闃舵/PM_ProjectReportBillList.html">
- <publishTime>07/09/2023 22:33:09</publishTime>
+ <publishTime>07/10/2023 15:17:20</publishTime>
</File>
<File Include="views/椤圭洰绠$悊/椤圭洰闃舵/PM_ProjectStageBill.html">
<publishTime>07/10/2023 13:35:01</publishTime>
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 7581ef0..8a26481 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"
@@ -334,6 +334,12 @@
<!--<a class="layui-btn layui-btn-xs" lay-event="edit">缂栬緫</a>-->
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">鍒犻櫎</a>
</script>
+ <!--椤圭洰缁忕悊-->
+ <script type="text/html" id="HIsPM">
+ <div class="layui-input-block" style="margin-left: 20px;">
+ <input type="checkbox" name="HIsPM" lay-filter="HIsPM" id="HIsPM{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary">
+ </div>
+ </script>
<script>
layui.config({
@@ -381,6 +387,8 @@
//#region 鍒ゆ柇骞惰缃搷浣滅被鍨嬨�侀〉闈㈠垵濮嬪寲
if (OperationType == null || OperationType == 1) { //鏂板
+ //绂佺敤缁勭粐閫夐」
+ $("#HOrgID").attr("disabled", true);
OperationType = 1;
//鐢熸垚骞惰缃富琛ㄧ殑鍐呯爜鍜屽崟鎹彿
createBillNo();
@@ -458,6 +466,18 @@
//#region 鏄惁閲岀▼纰�
form.on('checkbox(checkboxHIsKey)', function (data) {
$("#HIsKey").val(data.elem.checked);
+ });
+ //#endregion
+
+ //#region 椤圭洰缁忕悊
+ form.on('checkbox(HIsPM)', function (data) {
+ var elem = data.othis.parents('tr');
+ var dataindex = elem.attr("data-index");
+ $.each(option.data, function (index, value) {
+ if (value.LAY_TABLE_INDEX == dataindex) {
+ value.HIsPM = data.elem.checked;//鎶婇�変腑涓嬫媺妗唅d鍊艰祴鍊肩粰琛ㄦ牸缂撳瓨
+ }
+ });
});
//#endregion
//#endregion
@@ -588,7 +608,7 @@
})
//#endregion
-
+
//
form.on('submit(Cancel)', function () {
//sessionStorage["SourceFlag"] = false;
@@ -689,7 +709,7 @@
, { field: 'RowID', title: '琛屽彿', hide: true } //琛屾爣璇嗭紝鐢ㄤ簬涓嬩竴琛屻�佷笂涓�琛岃瘑鍒墍鍦ㄨ
, { field: 'HEmpID', title: '鎴愬憳ID', hide: true }
, { field: 'HEmpName', title: '鎴愬憳', edit: 'text', event: "HEmpName" } //f7
- , { field: 'HIsPM', title: '椤圭洰缁忕悊', edit: 'text' }
+ , { field: 'HIsPM', title: '椤圭洰缁忕悊', templet: "#HIsPM" }
, { field: 'HRate', title: '椤圭洰鍗犳瘮', hide: true }
, { field: 'HAvgMoney', title: '鍒嗛厤涓氱哗', edit: 'text' }
, { field: 'HCountMoney', title: '鎻愭垚', edit: 'text' }
@@ -875,7 +895,6 @@
num.push(table.cache["mainTable"][i])
}
}
-
//鑾峰彇缁勭粐鏁版嵁
data.field.HPRDORGID = sessionStorage["OrganizationID"];//缁勭粐
//杞崲閲岀▼纰戞暟鎹�
@@ -979,18 +998,18 @@
}
//缁勭粐鐨勫�糎OrgID鍙樺寲锛岄噸鏂版覆鏌�
HOrgIDBar = tableMain[0]["HOrgID"];
-
- var HIsKey = tableMain[0].HIsKey;
- if (HIsKey) {
- $("input[name='checkboxHIsKey'][value='" + HIsKey + "']").attr("checked", true);
- }
-
- //瀛愯〃 璧嬪��
- for (var i = 0; i < tableSub.length; i++) {
- tableSub[i].HIsPM = (tableSub[i].HIsPM) ? 1 : 0;
- }
+
+ //瀛愯〃
option.data = tableSub;
table.render(option);
+ //瀵瑰瓙琛ㄤ腑鐨勯」鐩粡鐞嗗閫夋杩涜閫変腑
+ for (var i = 0; i < tableSub.length; i++) {
+ if (tableSub[i].HIsPM) {
+ $('#HIsPM' + (i + 1)).attr("checked", true);
+ }
+ }
+ form.render('checkbox');
+
}
})
}
@@ -1116,7 +1135,7 @@
layer.msg("姹囨姤浜烘病鏈夐�夋嫨!");
return false;
}
-
+
//鏈樁娈典笟缁╁崰姣旀牸寮忔楠�
var HRate1 = $("#HRate").val() + "";
if (HRate1.substring(HRate1.length - 1, HRate1.length) == ".") {
@@ -1150,7 +1169,7 @@
}
//鏄惁椤圭洰缁忕悊鏍煎紡妫�楠�
- if (option.data[i]["HIsPM"] != "1" && option.data[i]["HIsPM"]!= '0') {
+ if (option.data[i]["HIsPM"] != "1" && option.data[i]["HIsPM"] != '0') {
layer.msg("绗�" + (i + 1) + "琛�:鏄惁椤圭洰缁忕悊璇疯緭鍏�0鎴�1!");
return false;
}
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_ProjectReportBillList.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_ProjectReportBillList.html"
index ed8a6f6..497ff97 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_ProjectReportBillList.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_ProjectReportBillList.html"
@@ -425,7 +425,7 @@
type: 2
, skin: 'layui-layer-rim' //鍔犱笂杈规
, area: ['100%', '100%']
- , title: '宸ョ▼椤圭洰鍒楄〃-鏂板'
+ , title: '椤归樁娈垫眹鎶�-鏂板'
, shift: 0//寮瑰嚭鍔ㄧ敾
, content: '../../椤圭洰绠$悊/椤圭洰闃舵/PM_ProjectReportBill.html?OperationType=1&linterid=0&HSouceBillType='
,btn: ['纭畾'],
@@ -448,7 +448,7 @@
layer.open({
type: 2
, area: ['100%', '100%']
- , title: '宸ョ▼椤圭洰鍒楄〃-缂栬緫'
+ , title: '椤圭洰闃舵姹囨姤-缂栬緫'
, shift: 0//寮瑰嚭鍔ㄧ敾
, content: '../../椤圭洰绠$悊/椤圭洰闃舵/PM_ProjectReportBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='
, btn: ['纭畾'],
--
Gitblit v1.9.1