From 97134ed09606e0acffd1d607287dcaa5ddb9ca60 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Wed, 26 Jul 2023 15:14:52 +0800 Subject: [PATCH] 2023-7-26 --- src/views/budget/budgetList.vue | 1904 ++++++++++------- src/views/budget/fundApply.vue | 163 ++ src/views/budget/seeBudget.vue | 693 +++--- .../contract/components/editorContract.vue | 25 +- src/views/contract/components/govPlane.vue | 3 + 5 files changed, 1628 insertions(+), 1160 deletions(-) create mode 100644 src/views/budget/fundApply.vue diff --git a/src/views/budget/budgetList.vue b/src/views/budget/budgetList.vue index dd0e5a5..89c80c3 100644 --- a/src/views/budget/budgetList.vue +++ b/src/views/budget/budgetList.vue @@ -1,815 +1,1091 @@ - - - - - - - 年份 - - select.year = e"> - - - - 预算类型 - - - - {{ item.value }} - - - - - 科室 - - - - - - - - - - 新增 - 查询 - select={page:1,year:'', type:'', department:''}">重置 - - - - - - - - - - - - {{item.formatter(scope.row,scope.row,scope.row[item.prop])}} - - - {{(item.prop.indexOf(".")>-1?scope.row[item.prop.split(".")[0]][item.prop.split(".")[1]]:scope.row[item.prop])}} - - - - - - - - 编辑 - - - 下级 - - deleteTable(scope.row)"> - 删除 - - - - - - - - - - - - - - - - 编辑 - - - 下级 - - deleteTable(scope.row)"> - 删除 - - - - - - - - - - - - - - - - - - 隶属 - - - {{form.pid_info?form.pid_info.name:'无'}} - - - - - - - *项目名称 - - - - - - - - - - *预算类型 - - - - - - - - - - - - *项目所属年份 - - - - - - - - - - *科室 - - - - - - - - - - - - - - - *可用科室 - - - - {{dept.name}} - - - - - - - - *内容 - - - - - - - - - - *金额 - - - - - - - - - - 备注 - - - - - - - - - - - - - - *项目名称 - - - - - - - - - - *预算类型 - - - - - - - - - - - - *项目所属年份 - - - - - - - - - - *科室 - - - editorForm.department = e[e.length-1] || ''" /> - - - - - - - - *可用科室 - - - - {{dept.name}} - - - - - - - - - *内容 - - - - - - - - - - *年初预算数 - - - - - - - - - - *调整后预算数 - - - - - - - - - - 备注 - - - - - - - - 确定 - - - - - - - - diff --git a/src/views/budget/fundApply.vue b/src/views/budget/fundApply.vue new file mode 100644 index 0000000..8d86288 --- /dev/null +++ b/src/views/budget/fundApply.vue @@ -0,0 +1,163 @@ + + + + + + 关键字 + + + + 重置 + 查询 + + + + + + + + + { + select.page = e; + getList(); + } + " + /> + + + + + + + + diff --git a/src/views/budget/seeBudget.vue b/src/views/budget/seeBudget.vue index f081ce2..97481b6 100644 --- a/src/views/budget/seeBudget.vue +++ b/src/views/budget/seeBudget.vue @@ -1,346 +1,349 @@ - - - - - - - 年份 - - select.year = e"> - - - - 预算类型 - - - - {{ item.value }} - - - - - 科室 - - - - - - - - 查询 - select={page:1,year:'', type:'', department:''}">重置 - - - - - - - - - - - - - - - - - - - diff --git a/src/views/contract/components/editorContract.vue b/src/views/contract/components/editorContract.vue index 1f0b622..fccafd4 100644 --- a/src/views/contract/components/editorContract.vue +++ b/src/views/contract/components/editorContract.vue @@ -184,6 +184,23 @@ + + + + 政府采购项目 + + + + + {{ detail.gov_plane_id ? (detail.gov_plane.name || $refs['govPlane'].selected.name) : '' }} + + + 请选择政府采购项目 + + + + + @@ -213,6 +230,8 @@ 确定 + + detail.gov_plane_id = row.id"> @@ -232,7 +251,9 @@ import { Message } from 'element-ui' + import govPlane from "@/views/contract/components/govPlane.vue"; export default { + components: {govPlane}, props: { purchaseType: Array, moneyWay: Array, @@ -567,7 +588,9 @@ new_money: item.money } } - }) + }), + gov_plane_id: res.gov_plane_id, + gov_plane: res.gov_plane } this.plan = this.detail.plan }, diff --git a/src/views/contract/components/govPlane.vue b/src/views/contract/components/govPlane.vue index ef2b2fd..92bb1ac 100644 --- a/src/views/contract/components/govPlane.vue +++ b/src/views/contract/components/govPlane.vue @@ -132,6 +132,9 @@ export default { hide() { this.dialogVisible = false }, + setSelected (gov_plane_id) { + this.selected = this.data.find(i => i.id === gov_plane_id) + }, unique (arr) { const res= new Map()