diff --git a/.env.development b/.env.development index f4e6773..d9d2e86 100644 --- a/.env.development +++ b/.env.development @@ -2,10 +2,10 @@ ENV = 'development' # base api -VUE_APP_DOMIAN=http://192.168.60.99:9003/ -#VUE_APP_DOMIAN=http://hdcontract.ali251.langye.net/ +#VUE_APP_DOMIAN=http://192.168.60.99:9003/ +VUE_APP_DOMIAN=http://192.168.60.99:8003/ VUE_APP_BASE_API = '' -VUE_APP_UPLOAD=http://hdcontract.ali251.langye.net/api/admin/upload-file +VUE_APP_UPLOAD=http://192.168.60.99:8003/api/admin/upload-file #VUE_APP_UPLOAD=http://192.168.60.99:9003/api/admin/upload-file VUE_APP_OUT_URL = http://192.168.60.18:2021 diff --git a/src/views/budget/component/payPlan.vue b/src/views/budget/component/payPlan.vue index 1b62f2e..d298b69 100644 --- a/src/views/budget/component/payPlan.vue +++ b/src/views/budget/component/payPlan.vue @@ -1,6 +1,7 @@ - 项目 : + 隶属项目 : - + {{ plan.pid_info_name }} + + + + 项目名称 : + + {{ plan.name }} + + + + 预算类型 : + + {{ types.find(i => i.id === plan.type) ? types.find(i => i.id === plan.type).value : '' }} + + + + 所属年份 : + + {{ plan.year }} + + + + 年初预算金额(元) : + + {{ isNaN(Number(plan.money)) ? '0.00' : Number(plan.money).toFixed(2) }} + + + + 调整后预算金额(元) : + + {{ isNaN(Number(plan.update_money)) ? '0.00' : Number(plan.update_money).toFixed(2) }} + + + + 描述 : + + {{ plan.content }} @@ -56,7 +87,9 @@ import { paidSave, paidIndex, paidStore, paidDestroy } from "@/api/budget/budget" import { statistic } from "@/api/dashboard/notice"; export default { - props: {}, + props: { + types: Array + }, data() { return { rowType: "", @@ -67,6 +100,23 @@ export default { type: "", itemTable: [ + { + width: 200, + label: "占比", + sortable: false, + customFn: row => { + row._total = this.formList.reduce((pre, cur) => { + if (cur.paid_plan_date === row.paid_plan_date) { + return pre + (isNaN(Number(cur.paid_money)) ? 0 : Number(cur.paid_money)) + } else { + return pre + } + },0) + return ( + + ) + } + }, { prop: "paid_money", label: "付款金额", @@ -150,43 +200,57 @@ export default { sortable: false, customFn: (row, scope) => { return ( - { - if (!row.id) { - this.formList.splice(scope.$index, 1); - } else { - paidDestroy({ - id: row.id - }).then(res => { - this.$message({ - type: 'success', - message: '删除成功' + + { + if (!row.id) { + this.formList.splice(scope.$index, 1); + } else { + paidDestroy({ + id: row.id + }).then(res => { + this.$message({ + type: 'success', + message: '删除成功' + }) + this.getDetail(); }) - this.getDetail(); - }) - } - }, - }} - > - + + 删除 + + + { + /* + - 删除 + 确认 - + */ + } + ); }, }, ], - rowName: "", + plan: {}, formList: [], editId: [], form: { @@ -338,7 +402,6 @@ export default { this.typeList = arr; } //this.split = Array.from({ length: Math.ceil(this.typeList/2) },() => 0.5) - console.log(123, this.typeList); }, }, watch: { @@ -368,8 +431,13 @@ export default { ::v-deep .el-input__inner { text-align: left; } +::v-deep .el-progress { + white-space: nowrap; +} .xy-table-item-label { - width: 150px; + width: 200px; + font-weight: 600; + text-align: right; } .select { diff --git a/src/views/budget/seeBudget.vue b/src/views/budget/seeBudget.vue index 5427a4f..5b37cc5 100644 --- a/src/views/budget/seeBudget.vue +++ b/src/views/budget/seeBudget.vue @@ -43,7 +43,7 @@ - 付款计划 + 付款计划 @@ -53,7 +53,7 @@ - + diff --git a/src/views/statisticalReport/govProcure.vue b/src/views/statisticalReport/govProcure.vue index 838e12f..bbebdf2 100644 --- a/src/views/statisticalReport/govProcure.vue +++ b/src/views/statisticalReport/govProcure.vue @@ -43,7 +43,7 @@ 分页 - 不分页 + 不分 { + let aNums = 0 ,bNums = 0; + a.public_act_date ? "" : aNums++; + a.invite_act_date ? "" : aNums++; + a.open_act_date ? "" : aNums++; + b.public_act_date ? "" : bNums++; + b.invite_act_date ? "" : bNums++; + b.open_act_date ? "" : bNums++; + return bNums - aNums; + }) + } + this.list = res.data; },