From be7d738131c8cf9c8e00c6abfde469f2d82cbfb0 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 15 三月 2024 16:48:45 +0800
Subject: [PATCH] 1
---
WebTM/views/项目管理/报表分析/PM_ProjectBillMainMy.html | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 53 insertions(+), 1 deletions(-)
diff --git "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/PM_ProjectBillMainMy.html" "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/PM_ProjectBillMainMy.html"
index 90e3c96..1268a1b 100644
--- "a/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/PM_ProjectBillMainMy.html"
+++ "b/WebTM/views/\351\241\271\347\233\256\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/PM_ProjectBillMainMy.html"
@@ -170,6 +170,14 @@
form.on('submit(btn_push_down_work)', function (data) {
set_WorkTask();
});
+ //涓嬫帹鏈堝害闃舵璁″垝
+ form.on('submit(btn_push_down_monthly)', function (data) {
+ set_WorkTasks();
+ });
+ //閫�鍑�
+ form.on('submit(get_Exit)', function (data) {
+ Pub_Close(2);
+ });
//#endregion
//#region 鏈〉闈㈡墍鏈夎璋冪敤鐨勬柟娉�
@@ -197,6 +205,7 @@
, toolbar: '#toolbarDemo'
, page: true
, height: 300
+ , totalRow: true
, cellMinWidth: 90
, limit: 50
, limits: [50, 500, 5000, 20000]
@@ -211,6 +220,7 @@
elem: '#mainTable2'
//, toolbar: '#toolbarDemo'
, page: false
+ , totalRow: true
, height: 500
, cellMinWidth: 90
, limit: Number.MAX_VALUE//榛樿鏄剧ず鍏ㄩ儴
@@ -230,6 +240,7 @@
data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
success: function (data1) {
if (data1.count == 1) {
+ var totalArray = ["杩涘害鍗犳瘮", "鍚堝悓瀹炴柦浜哄ぉ", "棰勪及浜屾寮�鍙戜汉澶�", "鑰楃敤澶╂暟"];
var data = [];
var col = [];
//缁欑┖鐨勬暟缁勮祴鍊�
@@ -242,6 +253,9 @@
// if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') {
if ($.inArray(data[i].name, titleData) > -1) {
col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //闅愯棌id鍒�
+ }
+ else if ($.inArray(data[i].name, totalArray) > -1) {
+ col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
}
else {
switch (data[i].Type) {
@@ -263,6 +277,7 @@
, data: data1.data.h_p_My_PM_ProjectReportBill
, height: 'full-80'
, page: true
+ , totalRow: true
, limits: [50, 500, 5000, 50000]
, limit: 50
, cellMinWidth: 90
@@ -276,6 +291,7 @@
, data: data1.data.h_p_My_PM_ProjectReportBill1
, height: 'full-80'
, page: true
+ , totalRow: true
, limits: [50, 500, 5000, 50000]
, limit: 50
, cellMinWidth: 90
@@ -336,7 +352,7 @@
Num = 2;
}
- if (checkStatus.data.length == 1) {
+ if (checkStatus.data.length >0 ) {
var linterid = [];
for (var i = 0; i < data.length; i++) {
@@ -442,6 +458,42 @@
}
//#endregion
+ //#region 涓嬫帹(鏈堝害闃舵姹囨姤)
+ function set_WorkTasks() {
+ var activeTab = getActiveTab();
+ if (activeTab == "鎴戜富瀵肩殑") {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+ } else if (activeTab == "鎴戝弬涓庣殑") {
+ var checkStatus = table.checkStatus('mainTable1')
+ , data = checkStatus.data;
+ }
+ var HInterID = data[0].HInterID.toString();
+ var HEntryID = data[0].HEntryID.toString();
+ if (checkStatus.data.length === 1) {
+ layer.open({
+ type: 2
+ , skin: 'layui-layer-rim' //鍔犱笂杈规
+ , area: ['100%', '100%']
+ , title: '宸ヤ綔浠诲姟-涓嬫帹'
+ , shift: 0//寮瑰嚭鍔ㄧ敾
+ , content: '../../椤圭洰绠$悊/宸ョ▼椤圭洰/PM_WorkPlanMonthBillMain.html?OperationType=4&linterid=' + HInterID + '&HSouceBillType=' + '&HEntryID=' + HEntryID
+ , btn: ['纭畾'],
+ // 鎸夐挳1 鐨勫洖璋�
+ btn1: function (index, layero, that) {
+ //鍒锋柊椤甸潰
+ $("#btnSearch").trigger('click');
+ }
+ })
+ }
+ else {
+ layer.msg('璇烽�夋嫨涓�琛屾暟鎹笅鎺紒');
+ }
+ }
+ //#endregion
+
+
+
//#region 闅愯棌鍒楄缃�
function get_HideColumn() {
var colName = "";
--
Gitblit v1.9.1