diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.cshtml index 907fcd77e..32959c547 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.cshtml @@ -6,7 +6,7 @@ var NewEnCode = "@ViewBag.EnCode";
- +
经费开支申报单
申报单号
@@ -31,14 +31,6 @@
备注
-
-
总金额
- -
-
-
人民币(大写)
- -
明细操作
@@ -48,5 +40,13 @@
+
+
总金额
+ +
+
+
人民币(大写)
+ +
@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/FundsApply/Form.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.cshtml index 77e8a894a..971afdb82 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.cshtml @@ -6,7 +6,7 @@ var NewEnCode = "@ViewBag.EnCode";
- +
经费开支申报单
申报单号
@@ -31,6 +31,15 @@
备注
+ @*
+
明细操作
+ + + +
*@ +
+
+
总金额
@@ -39,14 +48,5 @@
人民币(大写)
- @*
-
明细操作
- - - -
*@ -
-
-
@Html.AppendJsFile("/Areas/AssetManagementSystem/Views/FundsApply/FormView.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js index 90f3fa408..0777b70a6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js @@ -58,7 +58,7 @@ var bootstrap = function ($, learun) { title: '申请', url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/Form', width: 860, - height: 600, + height: 750, callBack: function (id) { var res = false; // 验证数据 @@ -90,7 +90,7 @@ var bootstrap = function ($, learun) { title: '编辑', url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/Form?keyValue=' + keyValue, width: 860, - height: 600, + height: 750, callBack: function (id) { var res = false; // 验证数据 @@ -156,7 +156,7 @@ var bootstrap = function ($, learun) { title: '查看', url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/FormView?keyValue=' + keyValue, width: 860, - height: 600, + height: 720, callBack: function (id) { } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config index 871d1b737..7044f579f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config @@ -167,6 +167,8 @@ + + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/ioc.config b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/ioc.config index f9526f23e..956979b97 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/ioc.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/ioc.config @@ -35,6 +35,7 @@ + @@ -77,6 +78,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config index 9ef90188b..6958bd859 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config @@ -102,8 +102,10 @@ + + - + \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/FundsApply/FundsApplyService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/FundsApply/FundsApplyService.cs index 12ec5cf91..771154266 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/FundsApply/FundsApplyService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/FundsApply/FundsApplyService.cs @@ -4,6 +4,7 @@ using Learun.Util; using System; using System.Collections.Generic; using System.Data; +using System.Linq; using System.Text; namespace Learun.Application.TwoDevelopment.AssetManagementSystem @@ -45,10 +46,20 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem dp.Add("endTime", queryParam["EndTime"].ToDate(), DbType.DateTime); strSql.Append(" AND ( t.ApplyTime >= @startTime AND t.ApplyTime <= @endTime ) "); } - if (!queryParam["ApplyUser"].IsEmpty()) + var userLogin = LoginUserInfo.Get(); + var PrincipalRole = Config.GetValue("PrincipalRoleId"); + var loginInfoRoleIds = LoginUserInfo.Get().roleIds; + if (!userLogin.Description.Contains("管理员") && !loginInfoRoleIds.Split(',').Contains(PrincipalRole)) { - dp.Add("ApplyUser", queryParam["ApplyUser"].ToString(), DbType.String); - strSql.Append(" AND t.ApplyUser = @ApplyUser "); + strSql.Append(" AND t.ApplyUser = '" + userLogin.userId + "' "); + } + else + { + if (!queryParam["ApplyUser"].IsEmpty()) + { + dp.Add("ApplyUser", queryParam["ApplyUser"].ToString(), DbType.String); + strSql.Append(" AND t.ApplyUser = @ApplyUser "); + } } return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp, pagination); } diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue index 9a4348ac7..c6ef703f0 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/FundsApply/single.vue @@ -374,7 +374,7 @@ console.log(item) let _this = this if (item.Number && item.Price) { - item.Amount = item.Number * item.Price + item.Amount = (item.Number * item.Price).toFixed(2) // _this.current.SumAmount = item.Number * item.Price diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/single.vue index 4e9a5feab..98c73f83d 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/single.vue @@ -309,12 +309,20 @@ export default { break case 'save': - // console.log(this.current) + const verifyResult = this.verifyForm() if (verifyResult.length > 0) { this.CONFIRM('表单验证失败', verifyResult.join('\n')) return } + + let StartTime = Date.parse(this.current.StuLeaveManagement.StartTime) + let EndTime = Date.parse(this.current.StuLeaveManagement.EndTime) + + if(StartTime > EndTime){ + this.TOAST('结束时间不能早于开始时间') + return + } if (!(await this.CONFIRM('提交确认', '确定要提交本页表单内容吗?', true))) { return