From da1982cb2e1a3e1377d8e60a17c7599af22d31b5 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Tue, 2 Dec 2025 13:19:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.staging | 26 +- src/api/contract/contractDetail.js | 43 + src/api/dashboard/notice.js | 8 + src/api/departmentPlanMoney/index.js | 35 + src/views/contractDetails/index.vue | 765 ++++++ src/views/dashboard/index.vue | 2393 ++++++++++------- src/views/dashboard/index2.vue | 1163 ++++++++ src/views/departmentPlanMoney/index.vue | 324 +++ .../system/workerComponents/department.vue | 331 ++- src/views/system/workerComponents/toDo.vue | 12 +- src/views/system/workerComponents/total.vue | 148 +- 11 files changed, 4153 insertions(+), 1095 deletions(-) create mode 100644 src/api/contract/contractDetail.js create mode 100644 src/api/departmentPlanMoney/index.js create mode 100644 src/views/contractDetails/index.vue create mode 100644 src/views/dashboard/index2.vue create mode 100644 src/views/departmentPlanMoney/index.vue diff --git a/.env.staging b/.env.staging index 07780ea..8e30887 100644 --- a/.env.staging +++ b/.env.staging @@ -4,14 +4,22 @@ NODE_ENV = production ENV = 'staging' # base api -VUE_APP_DOMIAN = http://hjjc-hdcontract-test.ali251.langye.net -VUE_APP_UPLOAD_API = http://hjjc-hdcontract-test.ali251.langye.net/api/admin/upload-file -VUE_APP_BASE_API = -VUE_APP_OUT_Book = http://hjjc-book-service-test.ali251.langye.net -VUE_APP_OUT_GDZC = http://hjjc-szemcgdzc.ali251.langye.net/admin -VUE_APP_OUT_OLD = http://hjjc-szemcold-test.ali251.langye.net +VUE_APP_DOMIAN=http://192.168.0.66:9001/ +VUE_APP_UPLOAD_API = http://192.168.00.66:9001/api/admin/upload-file +VUE_APP_BASE_API = '' +VUE_APP_OUT_Book = http://192.168.0.66:9002/ +VUE_APP_OUT_GDZC = http://192.168.0.66:17777/admin +VUE_APP_OUT_OLD = http://192.168.0.66 VUE_APP_OUT_URL = http://192.168.60.18:2021 +VUE_APP_OLD_OA = http://192.168.0.66:16667 VUE_APP_OUT_GOODS = http://hjjc-szemc_goods-test.ali251.langye.net -VUE_APP_OUT_GPS=http://hjjc-gps.ali251.langye.net -#VUE_APP_OLD_OA = http://192.168.0.66:16667 -VUE_APP_OLD_OA = http://hjjc-szemcold-test.ali251.langye.net +VUE_APP_OUT_GPS=http://192.168.0.66:9003/admin/#/ + +# +#VUE_APP_DOMIAN = http://hjjc-hdcontract-test.ali251.langye.net +#VUE_APP_UPLOAD_API = http://hjjc-hdcontract-test.ali251.langye.net/api/admin/upload-file +#VUE_APP_BASE_API = +#VUE_APP_OUT_Book = http://hjjc-book-service-test.ali251.langye.net +#VUE_APP_OUT_GDZC = http://hjjc-szemcgdzc.ali251.langye.net +#VUE_APP_OUT_OLD = http://hjjc-szemcold-test.ali251.langye.net +#VUE_APP_OUT_GOODS = http://hjjc-szemc_goods-test.ali251.langye.net diff --git a/src/api/contract/contractDetail.js b/src/api/contract/contractDetail.js new file mode 100644 index 0000000..af484f7 --- /dev/null +++ b/src/api/contract/contractDetail.js @@ -0,0 +1,43 @@ +import request from "@/utils/request"; + +export function getcontractdetail(params,noloading = false){ + return request({ + method:'get', + url:'/api/admin/contract-detail/index', + params, + noloading + }) +} +export function detailcontractdetail(params,noloading=false){ + return request({ + method:'get', + url:'/api/admin/contract-detail/show', + params, + noloading + }) +} + +export function delcontractdetail(params){ + return request({ + method:'get', + url:'/api/admin/contract-detail/destroy', + params + }) +} + +export function editorcontractdetail(data){ + return request({ + method:'post', + url:'/api/admin/contract-detail/save', + data + }) +} + +export function checkcontractdetailName(params){ + return request({ + method:'get', + url:'/api/admin/contract-detail/check-name', + params, + noloading: true + }) +} diff --git a/src/api/dashboard/notice.js b/src/api/dashboard/notice.js index 5d56ec4..babfe43 100644 --- a/src/api/dashboard/notice.js +++ b/src/api/dashboard/notice.js @@ -51,3 +51,11 @@ export function typeCarry (params) { params }) } + +export function contractDetailDepartment(params) { + return request({ + method: 'get', + url: '/api/admin/notice/contract-detail-department', + params + }) +} diff --git a/src/api/departmentPlanMoney/index.js b/src/api/departmentPlanMoney/index.js new file mode 100644 index 0000000..87c95b1 --- /dev/null +++ b/src/api/departmentPlanMoney/index.js @@ -0,0 +1,35 @@ +import request from "@/utils/request"; + +export function getdepartmentplanmoney(params,noloading = false){ + return request({ + method:'get', + url:'/api/admin/department-plan-money/index', + params, + noloading + }) +} +export function detaildepartmentplanmoney(params,noloading=false){ + return request({ + method:'get', + url:'/api/admin/department-plan-money/show', + params, + noloading + }) +} + +export function deldepartmentplanmoney(params){ + return request({ + method:'get', + url:'/api/admin/department-plan-money/destroy', + params + }) +} + +export function editordepartmentplanmoney(data){ + return request({ + method:'post', + url:'/api/admin/department-plan-money/save', + data + }) +} + diff --git a/src/views/contractDetails/index.vue b/src/views/contractDetails/index.vue new file mode 100644 index 0000000..d83d6cc --- /dev/null +++ b/src/views/contractDetails/index.vue @@ -0,0 +1,765 @@ + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + 合同台账详情 + + 新增明细 + + + + + + + + + + {{ formatContractType(row.contract_type) }} + + + + + {{ formatType(row.type) }} + + + + + + {{ row.money ? moneyFormatter(row.money) : '-' }} + + + + + + {{ formatDepartment(row.carry_department) }} + + + + + + {{ formatStatus(row.status) }} + + + + + + 查看 + 编辑 + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 是 + 否 + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传附件 + + + + + + + + + 取 消 + + 保 存 + + + + + + + + + + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index e1b56a1..ad22c29 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,1163 +1,1580 @@ - - 当前登录人:{{ user.name }} + + + + + + + + + 待办事项 + + + + + - + + + + 类型 + 内容 + 下发时间 + 状态 + 操作 + - - - - - 预算总体执行情况 - + + + + {{ + typeFormatter(null, null, item.type) + }} + + + {{ item.content }} + + + {{ timeFormatter(null, null, item.created_at) }} + + + 已读 + 未读 + + + 查看 + + + + + + + + + + + + + + 预算总体执行情况 + + + + placeholder="2025年" + format="yyyy年" + value-format="yyyy" + size="mini" + style="width: 100px" + @change="changeYear" + /> - - - - - {{ - moneyFormat( - statistic.progress ? statistic.progress.money_total_1 : 0 - ) - }} - 年初预算合计金额 + + + + + + + - - - {{ - moneyFormat( - statistic.progress ? statistic.progress.money_total_2 : 0 - ) - }} + + + {{ + formatMoney( + statistic.progress + ? statistic.progress.money_total_1 + : 0 + ) + }} - 调整后预算合计金额 + 年初预算合计金额 - - - {{ - moneyFormat( - statistic.progress - ? statistic.progress.use_money_total - : 0 - ) - }} - 已支付金额 - - - {{ - toper( - statistic.progress ? statistic.progress.money_total_1 : 0, - statistic.progress ? statistic.progress.money_total_2 : 0, - statistic.progress - ? statistic.progress.use_money_total - : 0 - ) - }}% + + + + + + + + + {{ + formatMoney( + statistic.progress + ? statistic.progress.money_total_2 + : 0 + ) + }} + + 调整后预算合计金额 + + + + + + + + + + + + {{ + formatMoney( + statistic.progress + ? statistic.progress.use_money_total + : 0 + ) + }} + + 已支付金额 + + + + + + + + + + + {{ + toper( + statistic.progress + ? statistic.progress.money_total_1 + : 0, + statistic.progress + ? statistic.progress.money_total_2 + : 0, + statistic.progress + ? statistic.progress.use_money_total + : 0 + ) + }}% + + + + + 执行率 - 执行率 - + + + + + + + + + + + + 合同签订统计表 + + - - - - - - - - - - - + + + + + + + + + + - - 已读 - 未读 - - + /> - - 查看 - - + /> - - - - - - - - - - - + - - - - 统计查看 - - - { - if (action === 'cancel') { - $refs['carryStatic'].setType(1) - $refs['carryStatic'].show() - } - if (action === 'confirm') { - $refs['carryStatic'].setType(2) - $refs['carryStatic'].show() - } - } - })"> - 执行统计 - - - + + + + + + + + + 科室执行情况 + + + + + + + + + + + + + + + + + + + + 查看 + + + + + + + + + + + + + 预算类型执行情况 + + + + + + + + + + + + + + + + + + + 查看 + + + + - - - - - - - - - - - - - - 查看 - - - - - - - - - + + + + + + + + 各科室预算计划完成对比图 - - - - - - - - - - - - - 查看 - - - - - - - - + + - - - - - - - - 各科室预算计划完成对比图 - { - carrySelect.month = $moment(e).format('YYYY-MM'); - getCarry(); - }"> - - - - - - - + + + + - + + + - diff --git a/src/views/dashboard/index2.vue b/src/views/dashboard/index2.vue new file mode 100644 index 0000000..e1b56a1 --- /dev/null +++ b/src/views/dashboard/index2.vue @@ -0,0 +1,1163 @@ + + + + 当前登录人:{{ user.name }} + + + + + + + + 预算总体执行情况 + + + + + + + {{ + moneyFormat( + statistic.progress ? statistic.progress.money_total_1 : 0 + ) + }} + + 年初预算合计金额 + + + + {{ + moneyFormat( + statistic.progress ? statistic.progress.money_total_2 : 0 + ) + }} + + 调整后预算合计金额 + + + + {{ + moneyFormat( + statistic.progress + ? statistic.progress.use_money_total + : 0 + ) + }} + + 已支付金额 + + + + {{ + toper( + statistic.progress ? statistic.progress.money_total_1 : 0, + statistic.progress ? statistic.progress.money_total_2 : 0, + statistic.progress + ? statistic.progress.use_money_total + : 0 + ) + }}% + + 执行率 + + + + + + + + + + + + + + + + + + + + + + 已读 + 未读 + + + + + 查看 + + + + + + + + + + + + + + + + + + + + + 统计查看 + + + { + if (action === 'cancel') { + $refs['carryStatic'].setType(1) + $refs['carryStatic'].show() + } + if (action === 'confirm') { + $refs['carryStatic'].setType(2) + $refs['carryStatic'].show() + } + } + })"> + 执行统计 + + + + + + + + + + + + + + + + + + + + 查看 + + + + + + + + + + + + + + + + + + + + + + + 查看 + + + + + + + + + + + + + + + + + + 各科室预算计划完成对比图 + { + carrySelect.month = $moment(e).format('YYYY-MM'); + getCarry(); + }"> + + + + + + + + + + + + + + + + diff --git a/src/views/departmentPlanMoney/index.vue b/src/views/departmentPlanMoney/index.vue new file mode 100644 index 0000000..47d6835 --- /dev/null +++ b/src/views/departmentPlanMoney/index.vue @@ -0,0 +1,324 @@ + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + 部门预算计划金额 + + 新增 + + + + + + + + + + {{ formatMoney(row.plan_money) }} + + + + + 编辑 + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + 取 消 + 保 存 + + + + + + + + + diff --git a/src/views/system/workerComponents/department.vue b/src/views/system/workerComponents/department.vue index a9ed63f..e9e8cd2 100644 --- a/src/views/system/workerComponents/department.vue +++ b/src/views/system/workerComponents/department.vue @@ -8,14 +8,15 @@ - + diff --git a/src/views/system/workerComponents/toDo.vue b/src/views/system/workerComponents/toDo.vue index e79d1be..f8fa3bd 100644 --- a/src/views/system/workerComponents/toDo.vue +++ b/src/views/system/workerComponents/toDo.vue @@ -16,7 +16,7 @@ :columns="table" > - @@ -32,7 +32,7 @@ } " /> - + --> @@ -204,16 +204,12 @@ export default { init() { let cardDom = document.getElementById("todo-card"); let cardTitleH = 58; - let page = this.$refs["todo-page"]; const elementResize = ElementResize({ strategy: "scroll", }); elementResize.listenTo(cardDom, (ele) => { - this.tableHeight = - cardDom.getBoundingClientRect().height - - 40 - - cardTitleH - - page.getBoundingClientRect().height; + // 由于分页组件被注释掉了,直接计算表格高度 + this.tableHeight = cardDom.getBoundingClientRect().height - 40 - cardTitleH; }); }, }, diff --git a/src/views/system/workerComponents/total.vue b/src/views/system/workerComponents/total.vue index 0fc14b1..3a725aa 100644 --- a/src/views/system/workerComponents/total.vue +++ b/src/views/system/workerComponents/total.vue @@ -7,22 +7,49 @@ - {{moneyFormatter(statistic.progress.money_total_1 || 0)}} - 年初预算合计金额 + + + + + {{moneyFormatter(statistic.progress.money_total_1 || 0)}} + 年初预算合计金额 + - {{moneyFormatter(statistic.progress.money_total_2 || 0)}} - 调整后预算合计金额 + + + + + {{moneyFormatter(statistic.progress.money_total_2 || 0)}} + 调整后预算合计金额 + - {{moneyFormatter(statistic.progress.use_money_total || 0)}} - 已支付金额 + + + + + {{moneyFormatter(statistic.progress.use_money_total || 0)}} + 已支付金额 + - - - {{toper(statistic.progress.money_total_1 || 0,statistic.progress.money_total_2 || 0,statistic.progress.use_money_total || 0)}}% + + + + + + {{ toper(statistic.progress.money_total_1 || 0,statistic.progress.money_total_2 || 0,statistic.progress.use_money_total || 0) }}% + + + 执行率 - 执行率 @@ -73,7 +100,18 @@ export default { this.$emit('send-data',res) }, }, - computed: {}, + computed: { + progressColors() { + // 根据图片样式,使用蓝色到橙色的渐变 + return [ + { color: '#409EFF', percentage: 0 }, + { color: '#66B1FF', percentage: 25 }, + { color: '#85C1E9', percentage: 50 }, + { color: '#F39C12', percentage: 75 }, + { color: '#E67E22', percentage: 100 } + ]; + } + }, created() { this.getStatistic(); } @@ -83,20 +121,98 @@ export default {
各科室预算计划完成对比图