From 3b377f2bebbf1c6a6bfc1d7476d3f61f37451d99 Mon Sep 17 00:00:00 2001 From: zhc077 <565291854@qq.com> Date: Fri, 1 Nov 2024 15:45:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=AE=97=E4=B9=A6-=E8=B4=A2=E6=94=BF?= =?UTF-8?q?=E6=8B=A8=E6=AC=BE=E3=80=81=E5=B9=B4=E5=BA=A6=E9=A2=84=E7=AE=97?= =?UTF-8?q?=E8=A1=A8=20=E5=8A=9F=E8=83=BD=E6=B7=BB=E5=8A=A0=2010.31?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DepsbnczController.java | 26 ++++++++ .../src/views/depsbncz/Depsbncz.api.ts | 5 ++ .../src/views/depsbncz/Depsbncz.data.ts | 64 +++++++++++++++++++ .../yusuanshu/DepartBaseInfoDemo.vue | 26 +++++++- 4 files changed, 120 insertions(+), 1 deletion(-) diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/controller/DepsbnczController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/controller/DepsbnczController.java index 129f6c0..942098d 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/controller/DepsbnczController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/depsbncz/controller/DepsbnczController.java @@ -12,6 +12,7 @@ import java.net.URLDecoder; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import org.apache.shiro.SecurityUtils; import org.jeecg.common.api.vo.Result; import org.jeecg.common.system.query.QueryGenerator; @@ -29,6 +30,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.extern.slf4j.Slf4j; +import org.jeecg.modules.system.entity.SysDepart; +import org.jeecg.modules.system.service.ISysDepartService; import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.def.NormalExcelConstants; import org.jeecgframework.poi.excel.entity.ExportParams; @@ -63,6 +66,8 @@ public class DepsbnczController extends JeecgController> getBydepid(Depsbncz depsbncz, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + SysDepart sysDepart = iSysDepartService.getOne(new LambdaQueryWrapper().eq(SysDepart::getOrgCode, depsbncz.getDepid())); + depsbncz.setDepid(sysDepart.getId()); + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(depsbncz, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = depsbnczService.page(page, queryWrapper); + return Result.OK(pageList); + } + /** * 添加 * @@ -176,6 +195,13 @@ public class DepsbnczController extends JeecgController> queryBydepid(@PathVariable("depid") String depid) { + List list = depsbnczService.list(new LambdaQueryWrapper().eq(Depsbncz::getDepid, depid)); + return Result.OK(list); + } + /** * 导出excel * diff --git a/jeecgboot-vue3/src/views/depsbncz/Depsbncz.api.ts b/jeecgboot-vue3/src/views/depsbncz/Depsbncz.api.ts index 3afe675..96fcb23 100644 --- a/jeecgboot-vue3/src/views/depsbncz/Depsbncz.api.ts +++ b/jeecgboot-vue3/src/views/depsbncz/Depsbncz.api.ts @@ -5,6 +5,7 @@ const { createConfirm } = useMessage(); enum Api { list = '/depsbncz/depsbncz/list', + getBydepid = '/depsbncz/depsbncz/getBydepid', save='/depsbncz/depsbncz/add', edit='/depsbncz/depsbncz/edit', deleteOne = '/depsbncz/depsbncz/delete', @@ -30,6 +31,10 @@ export const getImportUrl = Api.importExcel; */ export const list = (params) => defHttp.get({ url: Api.list, params }); +export const listDepsbncz = (params) => + defHttp.get({url: Api.getBydepid, params}); + + /** * 删除单个 * @param params diff --git a/jeecgboot-vue3/src/views/depsbncz/Depsbncz.data.ts b/jeecgboot-vue3/src/views/depsbncz/Depsbncz.data.ts index 0b6d892..58b10a9 100644 --- a/jeecgboot-vue3/src/views/depsbncz/Depsbncz.data.ts +++ b/jeecgboot-vue3/src/views/depsbncz/Depsbncz.data.ts @@ -67,6 +67,70 @@ export const columns: BasicColumn[] = [ }, ]; + +export const depsbnczColumns2: BasicColumn[] = [ + /*{ + title: '部门', + align: "center", + dataIndex: 'depid_dictText' + },*/ + { + title: '单位开办费', + align: "center", + dataIndex: 'dwkbf' + }, + { + title: '资产合计', + align: "center", + dataIndex: 'zchj' + }, + { + title: '负债合计', + align: "center", + dataIndex: 'fzhj' + }, + { + title: '净资产', + align: "center", + dataIndex: 'jzc' + }, + { + title: '财政拨款', + align: "center", + dataIndex: 'czbk' + }, + { + title: '财政拨款专项支出', + align: "center", + dataIndex: 'czbkzxzc' + }, + { + title: '经营收入', + align: "center", + dataIndex: 'jysr' + }, + { + title: '经营支出', + align: "center", + dataIndex: 'jyzc' + }, + { + title: '经营结余', + align: "center", + dataIndex: 'jyjy' + }, + { + title: '纳税总额', + align: "center", + dataIndex: 'nsze' + }, + /*{ + title: '年度', + align: "center", + dataIndex: 'annualid_dictText' + },*/ +]; + // 高级查询数据 export const superQuerySchema = { depid: {title: '部门',order: 0,view: 'sel_search', type: 'string',dictTable: "sys_depart", dictCode: 'id', dictText: 'depart_name',}, diff --git a/jeecgboot-vue3/src/views/projectApplication/kejigongguan/yusuanshu/DepartBaseInfoDemo.vue b/jeecgboot-vue3/src/views/projectApplication/kejigongguan/yusuanshu/DepartBaseInfoDemo.vue index a7f8abc..b03f458 100644 --- a/jeecgboot-vue3/src/views/projectApplication/kejigongguan/yusuanshu/DepartBaseInfoDemo.vue +++ b/jeecgboot-vue3/src/views/projectApplication/kejigongguan/yusuanshu/DepartBaseInfoDemo.vue @@ -10,6 +10,7 @@ /> +