From 0757aff2b5b57beb4fd6fb3ab830cc3e52d4e025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=99=93=E7=90=AA?= Date: Fri, 2 Dec 2022 10:32:33 +0800 Subject: [PATCH 1/7] =?UTF-8?q?app2.0=20=E7=BB=8F=E8=B4=B9=E5=BC=80?= =?UTF-8?q?=E6=94=AF=E5=AE=A1=E6=89=B9=E9=A1=B5=E9=9D=A2=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=20=E5=A4=8D=E5=88=B6=E7=9A=84=E9=80=9A=E7=9F=A5=E5=85=AC?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Audit_Expenditures/single.vue | 222 ++++++++++++++++++ 1 file changed, 222 insertions(+) create mode 100644 Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue new file mode 100644 index 000000000..597b68ea7 --- /dev/null +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue @@ -0,0 +1,222 @@ + + + From 4c56e8069751dd92db7d86b343fffa32b8ed3ce8 Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 2 Dec 2022 15:21:46 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E7=BB=8F=E8=B4=B9=E5=BC=80=E6=94=AF?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E6=95=B0=E9=87=8F=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AssetManagementSystem/Views/FundsApplyDetail/Form.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.cshtml index e65943f99..4a76ed5f1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.cshtml @@ -9,7 +9,7 @@
数量*
- +
单价(元)*
From f1685906d4653941cd69bc17f835d88488f64bf6 Mon Sep 17 00:00:00 2001 From: lb01 Date: Fri, 2 Dec 2022 17:04:37 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E7=BB=8F=E8=B4=B9=E5=AE=A1=E6=8A=A5?= =?UTF-8?q?=E5=BC=80=E6=94=AF=E5=AE=A1=E6=A0=B8=EF=BC=88=E6=9A=82=E6=9C=AA?= =?UTF-8?q?=E5=8A=A0=E5=AD=90=E8=A1=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LearunApp-2.2.0/pages.json | 7 ++ .../Audit_Expenditures/single.vue | 71 ++++++++++++++----- 2 files changed, 60 insertions(+), 18 deletions(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json index 795007fdf..50095daed 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json @@ -1012,6 +1012,13 @@ "navigationBarTitleText": "通知公告" } }, + //经费开支审核 + { + "path": "pages/AssetManagementSystem/Audit_Expenditures/single", + "style": { + "navigationBarTitleText": "经费开支审核" + } + }, //会议工作管理 { "path": "pages/PersonnelManagement/MeetingManagement/list", diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue index 597b68ea7..25d002468 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue @@ -3,27 +3,24 @@ - - - - - - - - - - --> + + + + + + + + + + - - - - - + { + this.dataSource.ApplyDept = result.data.map(t => ({ + text: t.name, + value: t.id + })); + }), + this.FETCH_DATASOURCE('teacheruserdata').then(result => { + this.dataSource.ApplyUser = result.data.map(t => ({ + text: t.f_realname, + value: t.f_userid + })); + }), + this.dataSource.IsFixedAssets = Object.values(this.GET_GLOBAL('dataDictionary').YesOrNoInt).map(t => ({ + value: t.value, + text: t.text + })) + + ]) + + console.log(this.dataSource.IsFixedAssets) this.LOADING('加载中…') const noticeItem = this.GET_PARAM() this.processList = noticeItem.logList @@ -83,6 +110,7 @@ export default { this.processId = this.currentTask.F_Id this.formValue = noticeItem.formValue this.scheme = noticeItem.scheme + console.log(this.processList[0].F_ProcessId) await this.getFormData(this.processList[0].F_ProcessId) this.HIDE_LOADING(); @@ -95,9 +123,9 @@ export default { }, // 获取表单数据 getFormData(ProgressId){ - return this.HTTP_GET("learun/news/shList",{ProgressId},"加载数据时出错").then(async res=>{ + return this.HTTP_GET("learun/adms/FundsApply/shList",{ProgressId},"加载数据时出错").then(async res=>{ if(res){ - res.F_SourceName = res.F_SourceName&&this.GET_GLOBAL('department')[res.F_SourceName]? this.GET_GLOBAL('department')[res.F_SourceName].name : res.F_SourceName + // res.F_SourceName = res.F_SourceName&&this.GET_GLOBAL('department')[res.F_SourceName]? this.GET_GLOBAL('department')[res.F_SourceName].name : res.F_SourceName this.formData = res let fileList = await this.getFileListById(res.F_NewsImage) if(fileList&&fileList.length){ @@ -217,6 +245,13 @@ export default { break } }, + IsFixedAssetsitem(data){ + if(data == 0){ + return '否' + }else{ + return '是' + } + } } } From db36cd5bc4a188551f5fcd137f39298bfb0d3b20 Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 2 Dec 2022 17:29:11 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E7=BB=8F=E8=B4=B9=E5=BC=80=E6=94=AF+?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Areas/AssetManagementSystem/Views/FundsApply/Index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 5d431a34c..90f3fa408 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 @@ -203,15 +203,18 @@ var bootstrap = function ($, learun) { return '审批中'; } else if (cellvalue === 2) { return '审批通过'; - } else { + } else if (cellvalue === 0){ return '草稿'; + } else { + return "作废"; } } } ], mainId: 'Id', - isPage: true + isPage: true, + sidx: 'ApplyTime desc, Status desc' }); //page.search(); }, From 98de29b1933e9bbb6607af5ac9bc997f5aaaf250 Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 2 Dec 2022 17:31:29 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E7=BB=8F=E8=B4=B9=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E6=95=B0=E6=8D=AE=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/FundsApplyApi.cs | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/FundsApplyApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/FundsApplyApi.cs index 63d9e3129..c4b33dc79 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/FundsApplyApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/FundsApplyApi.cs @@ -33,6 +33,7 @@ namespace Learun.Application.WebApi Post["/delete"] = DeleteForm; Post["/save"] = SaveForm; Post["/submit"] = Submit; + Get["/shList"] = GetshList; } #region 获取数据 @@ -71,7 +72,7 @@ namespace Learun.Application.WebApi }; return Success(jsonData); } - + /// /// 获取申请单号 /// @@ -85,6 +86,24 @@ namespace Learun.Application.WebApi }; return Success(jsonData); } + + /// + /// 获取页面显示列表数据 + /// + /// + /// + public Response GetshList(dynamic _) + { + FundsApplyEntity parameter = this.GetReqData(); + var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId); + var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(parameter.Id); + var jsonData = new + { + FundsApply = FundsApplyData, + FundsApplyDetail = FundsApplyDetailData, + }; + return Success(jsonData); + } #endregion #region 提交数据 From 669d44b7329b38e5db576e4cb80abf228d9c7b5c Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 2 Dec 2022 17:39:00 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E7=BB=8F=E8=B4=B9=E5=BC=80=E6=94=AF?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=AF=A6=E6=83=85=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.WebApi/Modules/FundsApplyApi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/FundsApplyApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/FundsApplyApi.cs index c4b33dc79..986850e52 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/FundsApplyApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/FundsApplyApi.cs @@ -96,7 +96,7 @@ namespace Learun.Application.WebApi { FundsApplyEntity parameter = this.GetReqData(); var FundsApplyData = fundsApplyIBLL.GetEntityByProcessId(parameter.ProcessId); - var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(parameter.Id); + var FundsApplyDetailData = fundsApplyDetailIBLL.GetListByApplyId(FundsApplyData.Id); var jsonData = new { FundsApply = FundsApplyData, From 7dc69894ea89eb237351706c375d20f3c88a7a17 Mon Sep 17 00:00:00 2001 From: lb01 Date: Fri, 2 Dec 2022 17:56:23 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E7=BB=8F=E8=B4=B9=E5=BC=80=E6=94=AF?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E6=B7=BB=E5=8A=A0=E5=AD=90=E8=A1=A8=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=EF=BC=8C=E9=99=90=E5=88=B6=E7=BB=8F=E8=B4=B9=E5=BC=80?= =?UTF-8?q?=E6=94=AF=E8=BE=93=E5=85=A5=E6=95=B0=E5=AD=97=EF=BC=8C=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E6=84=8F=E8=A7=81=E5=AD=97=E6=AE=B5=E5=BF=85=E5=A1=AB?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Audit_Expenditures/single.vue | 110 ++++++++++++++++-- .../FundsApply/single.vue | 6 +- .../pages/nworkflow/myflow/sign.vue | 15 ++- 3 files changed, 114 insertions(+), 17 deletions(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue index 25d002468..29f5ed93c 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/AssetManagementSystem/Audit_Expenditures/single.vue @@ -12,15 +12,27 @@ - - - - - + + + + 明细 + + + + + + + + + + + + + + + + + { + getFormData(ProcessId){ + return this.HTTP_GET("learun/adms/FundsApply/shList",{ProcessId},"加载数据时出错").then(async res=>{ if(res){ // res.F_SourceName = res.F_SourceName&&this.GET_GLOBAL('department')[res.F_SourceName]? this.GET_GLOBAL('department')[res.F_SourceName].name : res.F_SourceName this.formData = res + this.FundsApplyDetail = res.FundsApplyDetail let fileList = await this.getFileListById(res.F_NewsImage) if(fileList&&fileList.length){ this.fileList = [fileList[0]] @@ -255,3 +278,68 @@ export default { } } + + 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 f55367a6f..acc3eb81a 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 @@ -31,9 +31,9 @@ - - - + + + diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue index d95524206..93ee08962 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/myflow/sign.vue @@ -33,7 +33,7 @@ - + @@ -142,7 +142,12 @@ export default { this.CONFIRM('请补全必填项', '必须指定一个加签用户') return } - + + if(!this.remark){ + this.TOAST(`请签署审批意见`) + return false; + } + const postData = { operationCode: this.taskParam.code, operationName: this.taskParam.name, @@ -254,7 +259,11 @@ export default { } } - + + + + + const success = await this.HTTP_POST( this.type === 'sign' ? 'learun/adms/newwf/sign' : 'learun/adms/newwf/audit', postData,