|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290 |
- /* * 版 本 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 += '<tr align="center">';
- html += '<td>报销部门</td>';
- html += '<td colspan=3 style="width: 35%;">' + deptName + '</td>';
- html += '<td style="width: 300px;">报销日期</td>';
- html += '<td colspan=2 >' + tableData.PTime + '</td >';
- html += '</tr >';
- html += '<tr align="center">';
- html += '<td>付款方式</td>';
- html += '<td colspan=6>' + PPayType + '</td>';
- html += '</tr>';
- html += '<tr align="center"><td>汇款信息</td><td colspan=3> 汇 入 收 款 单 位 </td>';
- html += '<td>汇款信息</td><td colspan=2>汇 入 个 人 账 户</td>';
- html += '</tr>';
- html += '<tr align="center">';
- html += '<td>单位名称</td><td colspan=3>' + tableData.PPayee + '</td>';
- html += '<td>收 款 人</td><td colspan=2>' + tableData.PCollectionUser + '</td>';
- html += '</tr>';
- html += '<tr align="center">';
- html += '<td>开户银行</td><td colspan=3>' + tableData.PPayeeBank + '</td>';
- html += '<td>开卡银行</td>';
- html += '<td style="width: 300px;">' + tableData.PCollectionBank1 + '</td><td style="width: 450px;padding:0;margin: 0;">' + tableData.PCollectionBank2 + '</td>';
- html += '</tr>';
- html += '<tr align="center">';
- html += '<td>账 号</td><td colspan=3>' + tableData.PPayeeBankAccount + '</td>';
- html += '<td>卡 号</td><td>' + tableData.PCollectionBankAccount1 + '</td><td>' + tableData.PCollectionBankAccount2 + '</td>';
- html += '</tr>';
-
- html += '<tr>';
- html += '<td align="center" style="width: 250px;">资金支出用途</td><td colspan=6 class="textEm">' + tableData.PPurpose + '</td>';
- html += '</tr>';
- html += '<tr>';
- html += '<td align="center">资金支出来源</td><td colspan=6 class="textEm">' + topSource + '</td>';
- html += '</tr>';
- html += '<tr>';
- html += '<td align="center">财政专项名称</td><td colspan=6 class="textEm">' + pIncome + '</td>';
- html += '</tr>';
- html += '<tr>';
- html += '<td align="center">支付金额</td>';
- html += '<td colspan=4 class="textEm">大写:' + smalltoBIG(tableData.PAmount) + '</td>';
- html += '<td colspan=2 class="textEm">小写¥:' + tableData.PAmount + '</td>';
- html += '</tr>';
- html += '<tr>';
- html += '<td align="center" rowspan="5">报销审批</td>';
- if (tableData.PRemarks == null || tableData.PRemarks == 'null') {
- tableData.PRemarks = '';
- }
- html += '<td colspan=4 class="textEm">补充说明:' + tableData.PRemarks + '</td>';
- html += '<td colspan=2 class="textEm">经 办 人:' + tableData.PUserName + '</td>';
- html += '</tr>';
-
- $('#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 += '<tr>';
- processhtml += '<td colspan=4 class="textEm">审核意见:' + bmldyj + '</td>';
- processhtml += '<td colspan=2 class="textEm">部门领导:' + bmld + '</td>';
- processhtml += '</tr>';
-
- processhtml += '<tr>';
- processhtml += '<td colspan=4 class="textEm">审核意见:' + zgxzyj + '</td>';
- processhtml += '<td colspan=2 class="textEm">主管校长:' + zgxz + '</td>';
- processhtml += '</tr>';
- processhtml += '<tr>';
- processhtml += '<td colspan=4 class="textEm"> 支付意见:' + cwczyj + '</td>';
- processhtml += '<td colspan=2 class="textEm"> 财务处长:' + cwcz + '</td>';
- processhtml += '</tr>';
-
- processhtml += '<tr>';
- processhtml += '<td colspan=4 class="textEm">校长批示:' + xzyj + '</td>';
- processhtml += '<td colspan=2 class="textEm">校 长:' + xz + '</td>';
- processhtml += '</tr>';
- processhtml += '<tr>';
- processhtml += '<td rowspan="2" align="center">所附单据:</td>';
- processhtml += '<td colspan=6 class="list"><span>1.申请 份</span><span>2.合同 张</span><span>3.发票 张</span><span>4.证伪查验 张</span><span>5.入库单 张</span>';
- processhtml += '</td></tr>';
-
- processhtml += '<tr>';
- processhtml += '<td colspan=6 class="list" class="textEm">';
- processhtml += '<span>6.资产验收单 张</span><span>7.差旅费保修单 张</span><span>8.其他 张</span>';
- processhtml += '</td></tr>';
- processhtml += '<tr>';
- processhtml += '<td align="center">资金支付</td>';
- processhtml += '<td colspan=4 style="border-right:0;width: 30%;" class="textEm"><span>出纳:</span></td>';
- processhtml += '<td colspan=2 style="border-left:0 ;"><span>复核:</span></td>';
- processhtml += '</tr>';
-
- $('#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();
- }
|