From d7f9289cb60f7a8cb5562bdff053e370c90aa173 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Wed, 2 Jun 2021 10:47:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E5=87=BA=E9=A2=84=E7=AE=97=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/FD_PayManageController.cs | 41 ++- .../Views/FD_PayManage/AmountConversion.js | 29 ++ .../Views/FD_PayManage/Form.cshtml | 8 +- .../Views/FD_PayManage/Index.js | 44 ++- .../Views/FD_PayManage/PrintPublic.cshtml | 59 ++++ .../Views/FD_PayManage/PrintPublic.js | 247 +++++++++++++++ .../Views/FD_PayManage/PrintSpecial.cshtml | 63 ++++ .../Views/FD_PayManage/PrintSpecial.js | 290 ++++++++++++++++++ .../Learun.Application.Web.csproj | 5 + .../FD_PayManage/FD_PayManageService.cs | 3 +- 10 files changed, 765 insertions(+), 24 deletions(-) create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/AmountConversion.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.js create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.cshtml create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.js diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FD_PayManageController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FD_PayManageController.cs index d2ffb3940..e963ddc40 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FD_PayManageController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Controllers/FD_PayManageController.cs @@ -3,6 +3,7 @@ using System.Data; using Learun.Application.TwoDevelopment.ReceiveSendFeeManagement; using System.Web.Mvc; using System.Collections.Generic; +using Learun.Application.WorkFlow; namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers { @@ -17,7 +18,7 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers { private FD_PayManageIBLL fD_PayManageIBLL = new FD_PayManageBLL(); private FD_IncomeManageIBLL fD_IncomeManageIBLL = new FD_IncomeManageBLL(); - + private NWFTaskIBLL nWFTaskIBLL = new NWFTaskBLL(); #region 视图功能 /// @@ -38,6 +39,25 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers { return View(); } + /// + /// 打印 + /// + /// + [HttpGet] + public ActionResult PrintSpecial() + { + return View(); + } + /// + /// 打印 + /// + /// + [HttpGet] + public ActionResult PrintPublic() + { + return View(); + } + #endregion #region 获取数据 @@ -79,7 +99,24 @@ namespace Learun.Application.Web.Areas.ReceiveSendFeeManagement.Controllers }; return Success(jsonData); } - + /// + /// 获取表单数据 + /// + /// 主键 + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetPrintData(string keyValue,string processId) + { + var FD_PayManageData = fD_PayManageIBLL.GetFD_PayManageEntity(keyValue); + var TaskLogList = (List) nWFTaskIBLL.GetLogList(processId); + var jsonData = new + { + FD_PayManage = FD_PayManageData, + TaskLogList= TaskLogList + }; + return Success(jsonData); + } /// /// 获取表单数据 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/AmountConversion.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/AmountConversion.js new file mode 100644 index 000000000..d09f484bc --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/AmountConversion.js @@ -0,0 +1,29 @@ + +function smalltoBIG(n) { + var fraction = ['角', '分']; + var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; + var unit = [ + ['元', '万', '亿'], + ['', '拾', '佰', '仟'] + ]; + var head = n < 0 ? '欠' : ''; + n = Math.abs(n); + + var s = ''; + + for (var i = 0; i < fraction.length; i++) { + s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, ''); + } + s = s || '整'; + n = Math.floor(n); + + for (var i = 0; i < unit[0].length && n > 0; i++) { + var p = ''; + for (var j = 0; j < unit[1].length && n > 0; j++) { + p = digit[n % 10] + unit[1][j] + p; + n = Math.floor(n / 10); + } + s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s; + } + return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整'); +} \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Form.cshtml index d65d7fff8..964d0facf 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Form.cshtml @@ -48,12 +48,12 @@
-
资金支出来源*
-
+
资金支出来源
+
-
财政专项名称*
-
+
财政专项名称
+
支出金额*
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Index.js index ce831159d..a19d47ada 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/Index.js @@ -30,7 +30,7 @@ var bootstrap = function ($, learun) { id: 'form', title: '新增', url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/Form', - width: 700, + width: 800, height: 600, callBack: function (id) { top[id].save(); @@ -51,7 +51,7 @@ var bootstrap = function ($, learun) { id: 'form', title: '编辑', url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/Form?keyValue=' + keyValue, - width: 700, + width: 800, height: 600, callBack: function (id) { top[id].save(); @@ -80,7 +80,21 @@ var bootstrap = function ($, learun) { }); // 打印 $('#lr_print').on('click', function () { - $('#gridtable').jqprintTable(); + //$('#gridtable').jqprintTable(); + var keyValue = $('#gridtable').jfGridValue('PId'); + var processId = $('#gridtable').jfGridValue('PProcessId'); + + if (learun.checkrow(keyValue)) { + var type = $('#gridtable').jfGridValue('PType'); + //PType 1:基本承包经费外支出--专用经费报销流程; 2:基本承包经费支出--公用经费报销流程 + if (type == '1') { + //基本承包经费外支出 + learun.frameTab.open({ F_ModuleId: keyValue, F_Icon: 'fa magic', F_FullName: '打印【基本承包经费外支出】', F_UrlAddress: '/ReceiveSendFeeManagement/FD_PayManage/PrintSpecial?keyValue=' + keyValue + "&processId=" + processId }); + } + else { + learun.frameTab.open({ F_ModuleId: keyValue, F_Icon: 'fa magic', F_FullName: '打印【基本承包经费支出】', F_UrlAddress: '/ReceiveSendFeeManagement/FD_PayManage/PrintPublic?keyValue=' + keyValue + "&processId=" + processId }); + } + } }); //  提交 $('#lr_submit').on('click', function () { @@ -91,20 +105,13 @@ var bootstrap = function ($, learun) { learun.alert.warning("当前项目已提交,请耐心等待审批!"); return; } - var pTopSource = $('#gridtable').jfGridValue('PTopSource'); + var PType = $('#gridtable').jfGridValue('PType'); - var type = ''; - if (pTopSource == '1' || pTopSource == '2') { - type = '1'; - //学校经费和部门专项经费都从公用经费扣除 - } else { - type = '2';//专项经费 - } learun.layerConfirm('是否确认提交该项!', function (res) { if (res) { processId = learun.newGuid(); learun.postForm(top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/ChangeStatusById', { keyValue: keyValue, processId: processId }, function (res) { - refreshGirdData(res, {}, type); + refreshGirdData(res, {}, PType); }); } }); @@ -119,7 +126,7 @@ var bootstrap = function ($, learun) { { label: "报销类型", name: "PType", - width: 100, + width: 160, align: "left", formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('dataItem', @@ -216,14 +223,15 @@ var bootstrap = function ($, learun) { //refreshGirdData = function () { // $('#gridtable').jfGridSet('reload'); //}; - refreshGirdData = function (res, postData, type) { + refreshGirdData = function (res, postData, PType) { if (res && res.code && res.code == 200) { // 发起流程 var schemeCode = ''; - if (type == '1') - schemeCode = 'publicFunds'; - else + //PType 1:基本承包经费外支出--专用经费报销流程; 2:基本承包经费支出--公用经费报销流程 + if (PType == '1') schemeCode = 'specialUseFunds'; + else + schemeCode = 'publicFunds'; if (schemeCode) { var postData = { @@ -241,3 +249,5 @@ var bootstrap = function ($, learun) { }; page.init(); } + + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.cshtml new file mode 100644 index 000000000..6b3b549fb --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.cshtml @@ -0,0 +1,59 @@ +@{ + ViewBag.Title = "支出预算管理"; + Layout = "~/Views/Shared/_SimpleForm.cshtml"; +} + + + +
+
北京金隅科技学校资金支出报销单
+

(基本承包经费支出)

+ + + +
+ + +
+
打印
+@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.js", "/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/AmountConversion.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.js new file mode 100644 index 000000000..64835dfe0 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintPublic.js @@ -0,0 +1,247 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2021-05-28 14:18 + * 描 述:支出预算管理 + */ +var acceptClick; +var keyValue = request('keyValue'); +var processId = request('processId'); +// 设置权限 +var setAuthorize; +// 设置表单数据 +var setFormData; +// 验证数据是否填写完整 +var validForm; +// 保存数据 +var save; +var tableData; +var processInfo; +var html = ''; +var processhtml = ''; +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + + }, + bind: function () { + + // 打印 + $('#lr_print').on('click', function () { + $('#content').jqprint(); + + }); + + }, + initData: function () { + $('#t1').html(''); + page.getTableData(keyValue, function (data) { + if (data && data.FD_PayManage) { + tableData = data.FD_PayManage; + //部门 + var deptName = ''; + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', + key: tableData.PDept, + keyId: 'id', + callback: function (_data) { + deptName = _data['name']; + } + }); + //付款方式 + var PPayType = ''; + learun.clientdata.getAsync('dataItem', + { + key: tableData.PPayType, + code: 'fdPayType', + callback: function (_data) { + PPayType = _data.text; + } + }); + + //资金支出来源 + var topSource = ''; + learun.clientdata.getAsync('dataItem', + { + key: tableData.PTopSource, + code: 'fdPaySource', + callback: function (_data) { + topSource = _data.text; + } + }); + //财政专项名称 + var pIncome = ''; + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'incomeList', + key: tableData.PIncomeId, + keyId: 'iid', + callback: function (_data) { + pIncome = _data['iname']; + } + }); + + html += ''; + html += '报销部门'; + html += '' + deptName + ''; + html += '报销日期'; + html += '' + tableData.PTime + ''; + html += ''; + html += ''; + html += '付款方式'; + html += '' + PPayType + ''; + html += ''; + html += '汇款信息汇 入 收 款 单 位'; + html += '汇款信息汇 入 个 人 账 户'; + html += ''; + html += ''; + html += '单位名称' + tableData.PPayee + ''; + html += '收 款 人' + tableData.PCollectionUser + ''; + html += ''; + html += ''; + html += '开户银行' + tableData.PPayeeBank + ''; + html += '开卡银行'; + html += '' + tableData.PCollectionBank1 + '' + tableData.PCollectionBank2 + ''; + html += ''; + html += ''; + html += '账    号' + tableData.PPayeeBankAccount + ''; + html += '卡    号' + tableData.PCollectionBankAccount1 + '' + tableData.PCollectionBankAccount2 + ''; + html += ''; + + html += ''; + html += '资金支出用途' + tableData.PPurpose + ''; + html += ''; + html += ''; + html += '报销金额'; + html += '大写:' + smalltoBIG(tableData.PAmount) + ''; + html += '小写¥:' + tableData.PAmount + ''; + html += ''; + html += ''; + html += '报销审批'; + if (tableData.PRemarks == null || tableData.PRemarks == 'null') { + tableData.PRemarks = ''; + } + html += '补充说明:' + tableData.PRemarks + ''; + html += '经 办 人:' + tableData.PUserName + ''; + html += ''; + + $('#t1').append(html); + } + if (data && data.TaskLogList) { + processInfo = data.TaskLogList; + console.log(processInfo); + //部门领导 + var bmld = ''; + var bmldyj = ''; + var cwcz = ''; + var cwczyj = ''; + processInfo.forEach((item, index) => { + if (item && item.F_NodeId) { + //部门领导 + if (item.F_NodeId == '14c32eaf-9394-4d78-370f-e82e4fc9c73b') { + bmld = item.F_TaskUserName; + if (item.F_Des) { + bmldyj = item.F_Des; + } else { + bmldyj = item.F_OperationName; + } + } + //财务处长审核 + if (item.F_NodeId == '0edd8daa-59ce-60f7-9a99-2f9ed7e62db3') { + cwcz = item.F_TaskUserName; + if (item.F_Des) { + cwczyj = item.F_Des; + } else { + cwczyj = item.F_OperationName; + } + } + } + }); + + + processhtml += ''; + processhtml += '审核意见:' + bmldyj + ''; + processhtml += '部门领导:' + bmld + ''; + processhtml += ''; + + processhtml += ''; + processhtml += '支付意见:' + cwczyj + ''; + processhtml += '财务处长:' + cwcz + ''; + processhtml += ''; + + processhtml += ''; + processhtml += '所附单据:'; + processhtml += '1.申请   份2.发票   张3.真伪查验    张4.入库单   张5.资产验收单   张'; + processhtml += ''; + + processhtml += ''; + processhtml += ''; + processhtml += '6.差旅费保修单    张7.其他    张'; + processhtml += ''; + processhtml += ''; + processhtml += '资金支付'; + processhtml += '出纳:'; + processhtml += '复核:'; + processhtml += ''; + + $('#t1').append(processhtml); + } + }); + + }, + getTableData: function (keyValue, callback) { + learun.httpAsync('GET', top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/GetPrintData', { keyValue: keyValue, processId: processId }, function (data) { + callback && callback(data); + }); + } + }; + // 设置表单数据 + setFormData = function (processId, param, callback) { + + callback && callback(); + } + // 验证数据是否填写完整 + validForm = function () { + if (!$('body').lrValidform()) { + return false; + } + return true; + }; + // 保存数据 + save = function (processId, callBack, i) { + + }; + + page.init(); + function smalltoBIG(n) { + var fraction = ['角', '分']; + var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; + var unit = [ + ['元', '万', '亿'], + ['', '拾', '佰', '仟'] + ]; + var head = n < 0 ? '欠' : ''; + n = Math.abs(n); + + var s = ''; + + for (var i = 0; i < fraction.length; i++) { + s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, ''); + } + s = s || '整'; + n = Math.floor(n); + + for (var i = 0; i < unit[0].length && n > 0; i++) { + var p = ''; + for (var j = 0; j < unit[1].length && n > 0; j++) { + p = digit[n % 10] + unit[1][j] + p; + n = Math.floor(n / 10); + } + s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s; + } + return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整'); + } +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.cshtml new file mode 100644 index 000000000..3b846cd0c --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.cshtml @@ -0,0 +1,63 @@ +@{ + ViewBag.Title = "支出预算管理"; + Layout = "~/Views/Shared/_SimpleForm.cshtml"; +} + + +
+
北京金隅科技学校资金支出报销单
+

(基本承包经费外支出)

+ + + +
+ +
+
打印
+@Html.AppendJsFile("/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.js", "/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/AmountConversion.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.js new file mode 100644 index 000000000..3e2c37122 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/ReceiveSendFeeManagement/Views/FD_PayManage/PrintSpecial.js @@ -0,0 +1,290 @@ +/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) + * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 + * 创建人:超级管理员 + * 日 期:2021-05-28 14:18 + * 描 述:支出预算管理 + */ +var acceptClick; +var keyValue = request('keyValue'); +var processId = request('processId'); +// 设置权限 +var setAuthorize; +// 设置表单数据 +var setFormData; +// 验证数据是否填写完整 +var validForm; +// 保存数据 +var save; +var tableData; +var processInfo; +var html = ''; +var processhtml = ''; +var bootstrap = function ($, learun) { + "use strict"; + var page = { + init: function () { + $('.lr-form-wrap').lrscroll(); + page.bind(); + page.initData(); + + }, + bind: function () { + $('#PType').lrDataItemSelect({ code: 'payReimburseType' }); + $('#PPayType').lrDataItemSelect({ code: 'fdPayType' }); + $('#PTopSource').lrDataItemSelect({ + code: 'fdPaySource', select: function (item) { + var budgetType = ''; + var financeBudgetType = ''; + if (item) { + if (item.text == '学校经费' || item.text == '部门专项经费') { + budgetType = '0'; + financeBudgetType = '1'; + } else if (item.text == '财政专项经费') { + budgetType = '0'; + financeBudgetType = '2'; + } else { + budgetType = '2'; + } + } + + //财政专项名称 + $('#PIncomeId').lrselectRefresh({ + placeholder: "请选择财政专项名称", + allowSearch: true, + url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/GetIncomeList?budgetType=' + budgetType + '&financeBudgetType=' + financeBudgetType, + value: 'value', + text: 'text' + }); + } + }); + + //财政专项名称 + $('#PIncomeId').lrselect({ + placeholder: "请选择财政专项名称", + allowSearch: true, + url: top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/GetIncomeList?budgetType=&financeBudgetType=', + value: 'value', + text: 'text' + }); + + // 打印 + $('#lr_print').on('click', function () { + $('#content').jqprint(); + + }); + + }, + initData: function () { + $('#t1').html(''); + page.getTableData(keyValue, function (data) { + if (data && data.FD_PayManage) { + tableData = data.FD_PayManage; + //部门 + var deptName = ''; + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'classdata', + key: tableData.PDept, + keyId: 'id', + callback: function (_data) { + deptName = _data['name']; + } + }); + //付款方式 + var PPayType = ''; + learun.clientdata.getAsync('dataItem', + { + key: tableData.PPayType, + code: 'fdPayType', + callback: function (_data) { + PPayType = _data.text; + } + }); + + //资金支出来源 + var topSource = ''; + learun.clientdata.getAsync('dataItem', + { + key: tableData.PTopSource, + code: 'fdPaySource', + callback: function (_data) { + topSource = _data.text; + } + }); + //财政专项名称 + var pIncome = ''; + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'incomeList', + key: tableData.PIncomeId, + keyId: 'iid', + callback: function (_data) { + pIncome = _data['iname']; + } + }); + + html += ''; + html += '报销部门'; + html += '' + deptName + ''; + html += '报销日期'; + html += '' + tableData.PTime + ''; + html += ''; + html += ''; + html += '付款方式'; + html += '' + PPayType + ''; + html += ''; + html += '汇款信息 汇 入 收 款 单 位 '; + html += '汇款信息汇 入 个 人 账 户'; + html += ''; + html += ''; + html += '单位名称' + tableData.PPayee + ''; + html += '收 款 人' + tableData.PCollectionUser + ''; + html += ''; + html += ''; + html += '开户银行' + tableData.PPayeeBank + ''; + html += '开卡银行'; + html += '' + tableData.PCollectionBank1 + '' + tableData.PCollectionBank2 + ''; + html += ''; + html += ''; + html += '账    号' + tableData.PPayeeBankAccount + ''; + html += '卡    号' + tableData.PCollectionBankAccount1 + '' + tableData.PCollectionBankAccount2 + ''; + html += ''; + + html += ''; + html += '资金支出用途' + tableData.PPurpose + ''; + html += ''; + html += ''; + html += '资金支出来源' + topSource + ''; + html += ''; + html += ''; + html += '财政专项名称' + pIncome + ''; + html += ''; + html += ''; + html += '支付金额'; + html += '大写:' + smalltoBIG(tableData.PAmount) + ''; + html += '小写¥:' + tableData.PAmount + ''; + html += ''; + html += ''; + html += '报销审批'; + if (tableData.PRemarks == null || tableData.PRemarks == 'null') { + tableData.PRemarks = ''; + } + html += '补充说明:' + tableData.PRemarks + ''; + html += '经 办 人:' + tableData.PUserName + ''; + html += ''; + + $('#t1').append(html); + } + if (data && data.TaskLogList) { + processInfo = data.TaskLogList; + //部门领导 + var bmld = ''; + var bmldyj = ''; + var zgxz = ''; + var zgxzyj = ''; + var cwcz = ''; + var cwczyj = ''; + var xz = ''; + var xzyj = ''; + processInfo.forEach((item, index) => { + if (item && item.F_NodeId) { + //部门领导 + if (item.F_NodeId == '4dff56c9-2a91-af36-a384-9da4c6ae85df') { + bmld = item.F_TaskUserName; + if (item.F_Des) { + bmldyj = item.F_Des; + } else { + bmldyj = item.F_OperationName; + } + } + //主管校长审核 + if (item.F_NodeId == '1eb9fdfc-279b-f95f-0696-cd6cfabfb21a') { + zgxz = item.F_TaskUserName; + if (item.F_Des) { + zgxzyj = item.F_Des; + } else { + zgxzyj = item.F_OperationName; + } + } + //财务处长审核 + if (item.F_NodeId == '1d0a2118-e461-9600-e3f4-2a6a6dce7a04') { + cwcz = item.F_TaskUserName; + if (item.F_Des) { + cwczyj = item.F_Des; + } else { + cwczyj = item.F_OperationName; + } + } + //校长审核 + if (item.F_NodeId == 'd96de9d6-8a9c-6142-0cbf-1089e39a5189') { + xz = item.F_TaskUserName; + if (item.F_Des) { + xzyj = item.F_Des; + } else { + xzyj = item.F_OperationName; + } + } + } + }); + + processhtml += ''; + processhtml += '审核意见:' + bmldyj + ''; + processhtml += '部门领导:' + bmld + ''; + processhtml += ''; + + processhtml += ''; + processhtml += '审核意见:' + zgxzyj + ''; + processhtml += '主管校长:' + zgxz + ''; + processhtml += ''; + processhtml += ''; + processhtml += ' 支付意见:' + cwczyj + ''; + processhtml += ' 财务处长:' + cwcz + ''; + processhtml += ''; + + processhtml += ''; + processhtml += '校长批示:' + xzyj + ''; + processhtml += '校    长:' + xz + ''; + processhtml += ''; + processhtml += ''; + processhtml += '所附单据:'; + processhtml += '1.申请   份2.合同   张3.发票   张4.证伪查验   张5.入库单     张'; + processhtml += ''; + + processhtml += ''; + processhtml += ''; + processhtml += '6.资产验收单   张7.差旅费保修单   张8.其他   张'; + processhtml += ''; + processhtml += ''; + processhtml += '资金支付'; + processhtml += '出纳:'; + processhtml += '复核:'; + processhtml += ''; + + $('#t1').append(processhtml); + } + }); + + }, + getTableData: function (keyValue, callback) { + learun.httpAsync('GET', top.$.rootUrl + '/ReceiveSendFeeManagement/FD_PayManage/GetPrintData', { keyValue: keyValue, processId: processId }, function (data) { + callback && callback(data); + }); + } + }; + // 设置表单数据 + setFormData = function (processId, param, callback) { + + callback && callback(); + } + // 验证数据是否填写完整 + validForm = function () { + if (!$('body').lrValidform()) { + return false; + } + return true; + }; + // 保存数据 + save = function (processId, callBack, i) { + + }; + + page.init(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj index a73327708..02d755b73 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj @@ -1417,6 +1417,9 @@ + + + @@ -7290,6 +7293,8 @@ + + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_PayManage/FD_PayManageService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_PayManage/FD_PayManageService.cs index 8ac9a542d..c02cd3331 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_PayManage/FD_PayManageService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/ReceiveSendFeeManagement/FD_PayManage/FD_PayManageService.cs @@ -47,7 +47,8 @@ namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement t.PTopSource, t.PIncomeId, t.PAmount, - t.PStatus + t.PStatus, +t.PProcessId "); strSql.Append(" FROM FD_PayManage t "); strSql.Append(" WHERE 1=1 and PIsDelete<>1");