diff --git a/src/api/departmentProgress/index.js b/src/api/departmentProgress/index.js new file mode 100644 index 0000000..1810c90 --- /dev/null +++ b/src/api/departmentProgress/index.js @@ -0,0 +1,53 @@ +import request from "@/utils/request"; + +function customParamsSerializer(params) { + let result = ''; + for (let key in params) { + if (params.hasOwnProperty(key)) { + if (Array.isArray(params[key])) { + params[key].forEach((item, index) => { + if (item instanceof Array) { + item.forEach((item1, index1) => { + result += `${key}[${index}][${index1}]=${item1}&` + }) + } else if (typeof item === 'object') { + for (let key1 in item) { + result += `${key}[${index}][${key1}]=${item[key1]}&` + } + } + // result += `${key}[${index}][key]=${item.key}&${key}[${index}][op]=${item.op}&${key}[${index}][value]=${item.value}&`; + }); + } else { + result += `${key}=${params[key]}&`; + } + } + } + return result.slice(0, -1); +} +export function endIndex(params, noloading = false) { + return request({ + method: 'get', + url: '/api/ht/contract/end-index', + params, + noloading, + paramsSerializer: customParamsSerializer + }) +} + +export function partIndex(params, noloading = false) { + return request({ + method: 'get', + url: '/api/ht/contract/part-index', + params, + noloading, + paramsSerializer: customParamsSerializer + }) +} + +export function statisticDepartment(params) { + return request({ + method: 'get', + url: '/api/ht/notice/statistic-department-v2', + params + }) +} diff --git a/src/views/departmentProgress/components/departmentProgressDetail.vue b/src/views/departmentProgress/components/departmentProgressDetail.vue new file mode 100644 index 0000000..85348a4 --- /dev/null +++ b/src/views/departmentProgress/components/departmentProgressDetail.vue @@ -0,0 +1,330 @@ + + + + + + + + + {{row?(row.plan_department?row.plan_department.name:''):''}} - 资金执行率明细 + + + + + + + 当前执行率 + {{ getCompletionRate(row.rate) }}% + 已财务确认的资金比例 + + + + + 预计执行率 + {{ getCompletionRate(row.rate_end) }}% + 全部付款确认后预计的执行率 + + + + + 预算金额 + {{ formatToWan(row.contract_plan_sum) }} + 科室预算金额 + + + + + + + 已执行项目(财务付款确认) + + + + + + 已完成 + + + + + + + 详情 + + + + + + + + + + + + 未执行完项目(流程中/预算流转中) + + + + + + 部分支付中 + oa流程中 + + + + + + + 详情 + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/departmentProgress/components/detail.vue b/src/views/departmentProgress/components/detail.vue new file mode 100644 index 0000000..2a07bea --- /dev/null +++ b/src/views/departmentProgress/components/detail.vue @@ -0,0 +1,249 @@ + + + + + + 列支信息 + + + 项目名称: + {{ detailRow.name }} + + 所属科室: + {{ detailRow.department?detailRow.department.name:'' }} + + 经办人: + {{ detailRow.admin?detailRow.admin.name:'' }} + + + 预算科目: + + + {{item.plan.name}} + + + + + 预算金额: + {{ detailRow.contract_plan_sum?detailRow.contract_plan_sum:'0.00' }} + + 已确认金额: + {{ detailRow.contract_plan_act_sum?detailRow.contract_plan_act_sum:'0.00' }} + + + 当前状态: + + + {{detailRow.funds_count>0?'部分支付中':'oa流程中'}} + + + 已完成 + + + + + + + + 事前流程 + + + {{item.custom_model_name}}流程 + {{item.flow_title}} + 查看流程详情 + + + + + + 付款申请 + + + + {{item.act_money}} + + {{item.status?'已审核':'待审核'}} + + + + 发起人: + {{item.admin.name}} + + + 申请日期: + {{item.created_at}} + + + 说明: + {{item.remark}} + + + + + + + + + + + + + + + + + diff --git a/src/views/departmentProgress/index.vue b/src/views/departmentProgress/index.vue new file mode 100644 index 0000000..df7115c --- /dev/null +++ b/src/views/departmentProgress/index.vue @@ -0,0 +1,205 @@ + + + + + + 科室资金执行率 + + + + 刷新 + + + + + + + + + {{ dept.plan_department?dept.plan_department.name:'' }} + + + 当前执行率 + {{ getCompletionRate(dept.rate) }}% + + + + + + 完成后执行率 + {{ getCompletionRate(dept.rate_end) }}% + + + + + + 预算总额 + {{ formatToWan(dept.contract_plan_sum) }} + + + 已执行 + {{ formatToWan(dept.use_money_total) }} + + + 进行中 + {{ getDoingMoneyTotal(dept.contract_plan_sum,dept.use_money_total) }} + + + + + 查看详情 + + + + + + + + + + + + + + +