Commit 9859f018 authored by 高滢's avatar 高滢

feat(年度): 字段修改

parent 9def9918
...@@ -22,6 +22,16 @@ const biddingPlan: AppRouteModule = { ...@@ -22,6 +22,16 @@ const biddingPlan: AppRouteModule = {
meta: { meta: {
auth: '/www/dist/index.html#/biddingPlan/index', auth: '/www/dist/index.html#/biddingPlan/index',
title: '招标计划填报', title: '招标计划填报',
orderNo: 1,
},
},
{
path: 'biddingPlanData',
name: 'planData',
component: () => import('@/views/biddingPlan/biddingPlanData.vue'),
meta: {
auth: '/www/dist/index.html#/biddingPlan/index',
title: '招标计划统计',
orderNo: 2, orderNo: 2,
}, },
}, },
...@@ -32,7 +42,7 @@ const biddingPlan: AppRouteModule = { ...@@ -32,7 +42,7 @@ const biddingPlan: AppRouteModule = {
meta: { meta: {
auth: '/www/dist/index.html#/biddingManagement/index', auth: '/www/dist/index.html#/biddingManagement/index',
title: '招标管理填报', title: '招标管理填报',
orderNo: 3, orderNo: 5,
}, },
}, },
{ {
...@@ -42,7 +52,7 @@ const biddingPlan: AppRouteModule = { ...@@ -42,7 +52,7 @@ const biddingPlan: AppRouteModule = {
meta: { meta: {
auth: '/www/dist/index.html#/biddingManagement/index', auth: '/www/dist/index.html#/biddingManagement/index',
title: '招标管理统计', title: '招标管理统计',
orderNo: 3, orderNo: 6,
}, },
}, },
{ {
...@@ -55,7 +65,7 @@ const biddingPlan: AppRouteModule = { ...@@ -55,7 +65,7 @@ const biddingPlan: AppRouteModule = {
hideBreadcrumb: true, hideBreadcrumb: true,
auth: '/www/dist/index.html#/biddingManagement/index', auth: '/www/dist/index.html#/biddingManagement/index',
title: '招标情况', title: '招标情况',
orderNo: 3, orderNo: 4,
}, },
}, },
{ {
...@@ -68,17 +78,7 @@ const biddingPlan: AppRouteModule = { ...@@ -68,17 +78,7 @@ const biddingPlan: AppRouteModule = {
hideBreadcrumb: true, hideBreadcrumb: true,
auth: '/www/dist/index.html#/biddingPlan/index', auth: '/www/dist/index.html#/biddingPlan/index',
title: '招标计划', title: '招标计划',
orderNo: 2, orderNo: 3,
},
},
{
path: 'biddingPlanData',
name: 'planData',
component: () => import('@/views/biddingPlan/biddingPlanData.vue'),
meta: {
auth: '/www/dist/index.html#/biddingPlan/index',
title: '招标计划统计',
orderNo: 2,
}, },
}, },
], ],
......
...@@ -92,11 +92,8 @@ ...@@ -92,11 +92,8 @@
import { useModal } from '@/components/Modal'; import { useModal } from '@/components/Modal';
import { router } from '@/router'; import { router } from '@/router';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { monthListByMonthYear } from '@/api/project/detail/Amonth';
import { forEach } from '@/utils/helper/treeHelper';
import CollapseContainer from '@/components/Container/src/collapse/CollapseContainer.vue'; import CollapseContainer from '@/components/Container/src/collapse/CollapseContainer.vue';
import { template } from 'xe-utils'; import { template } from 'xe-utils';
import { useUserStore } from '@/store/modules/user';
//历史记录是否可查 //历史记录是否可查
const historyData = ref(true); const historyData = ref(true);
......
...@@ -130,7 +130,7 @@ export const formSchema: FormSchema[] = [ ...@@ -130,7 +130,7 @@ export const formSchema: FormSchema[] = [
required: true, required: true,
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
addonAfter: '元', addonAfter: '元',
}, },
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
width: 180, width: 180,
}, },
{ {
title: '合同金额(元)', title: '合同金额(元)',
dataIndex: 'contractAmount', dataIndex: 'contractAmount',
width: 180, width: 180,
}, },
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
width: 180, width: 180,
}, },
{ {
title: '立项投资额(元)', title: '立项投资额(元)',
dataIndex: 'amountInvested', dataIndex: 'amountInvested',
width: 180, width: 180,
}, },
......
...@@ -471,7 +471,6 @@ ...@@ -471,7 +471,6 @@
{ field: 'totalActualPay', required: false }, { field: 'totalActualPay', required: false },
{ field: 'plannedInvestment', required: false }, { field: 'plannedInvestment', required: false },
{ field: 'contractAmount', required: false }, { field: 'contractAmount', required: false },
{ field: 'completionSettlement', required: false },
{ field: 'constructionNature', required: false }, { field: 'constructionNature', required: false },
{ field: 'time', required: false }, { field: 'time', required: false },
{ field: 'imageProgress', required: false }, { field: 'imageProgress', required: false },
...@@ -489,7 +488,6 @@ ...@@ -489,7 +488,6 @@
{ field: 'totalActualPay', required: true }, { field: 'totalActualPay', required: true },
{ field: 'plannedInvestment', required: planType.value === '计划投资项目' }, { field: 'plannedInvestment', required: planType.value === '计划投资项目' },
{ field: 'contractAmount', required: planType.value === '已竣工验收项目' }, { field: 'contractAmount', required: planType.value === '已竣工验收项目' },
{ field: 'completionSettlement', required: planType.value === '已竣工验收项目' },
{ field: 'constructionNature', required: planType.value === '计划投资项目' }, { field: 'constructionNature', required: planType.value === '计划投资项目' },
{ field: 'time', required: planType.value === '计划投资项目' }, { field: 'time', required: planType.value === '计划投资项目' },
{ field: 'imageProgress', required: planType.value === '计划投资项目' }, { field: 'imageProgress', required: planType.value === '计划投资项目' },
......
...@@ -171,15 +171,9 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -171,15 +171,9 @@ export function formSchema(year, planType): FormSchema[] {
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
field: 'competentDepartment', field: 'annualFund',
label: '项目主管部门', label: parseInt(year) - 1 + '年资金执行情况-计划额:',
required: true, labelWidth: 200,
component: 'Input',
colProps: { span: 7, offset: 1 },
},
{
field: 'projectInvestment',
label: '立项总投资',
required: true, required: true,
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
...@@ -188,8 +182,8 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -188,8 +182,8 @@ export function formSchema(year, planType): FormSchema[] {
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
field: 'annualFund', field: 'actualPay',
label: parseInt(year) - 1 + '年资金执行情况-计划额:', label: parseInt(year) - 1 + '年资金执行情况-实付额',
labelWidth: 200, labelWidth: 200,
required: true, required: true,
component: 'InputNumber', component: 'InputNumber',
...@@ -199,8 +193,8 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -199,8 +193,8 @@ export function formSchema(year, planType): FormSchema[] {
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
field: 'actualPay', field: 'totalActualPay',
label: parseInt(year) - 1 + '年资金执行情况-实付额', label: parseInt(year) - 1 + '年底前累计实付额',
labelWidth: 200, labelWidth: 200,
required: true, required: true,
component: 'InputNumber', component: 'InputNumber',
...@@ -210,9 +204,8 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -210,9 +204,8 @@ export function formSchema(year, planType): FormSchema[] {
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
field: 'totalActualPay', field: 'projectInvestment',
label: parseInt(year) - 1 + '年底前累计实付额', label: '立项总投资',
labelWidth: 200,
required: true, required: true,
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
...@@ -221,11 +214,10 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -221,11 +214,10 @@ export function formSchema(year, planType): FormSchema[] {
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
field: 'plannedInvestment', field: 'completionSettlement',
label: parseInt(year) - 1 + '年计划投资', label: '竣工结算额',
labelWidth: 200, required: false,
required: planType === '计划投资项目' ? true : false, show: planType === '已竣工验收项目' ? true : false,
show: planType === '计划投资项目' ? true : false,
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
addonAfter: '万元', addonAfter: '万元',
...@@ -244,10 +236,11 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -244,10 +236,11 @@ export function formSchema(year, planType): FormSchema[] {
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
field: 'completionSettlement', field: 'plannedInvestment',
label: '竣工结算额', label: parseInt(year) + '年计划投资',
required: planType === '已竣工验收项目' ? true : false, labelWidth: 200,
show: planType === '已竣工验收项目' ? true : false, required: planType === '计划投资项目' ? true : false,
show: planType === '计划投资项目' ? true : false,
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
addonAfter: '万元', addonAfter: '万元',
...@@ -280,8 +273,8 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -280,8 +273,8 @@ export function formSchema(year, planType): FormSchema[] {
componentProps: { componentProps: {
placeholder: ['开始日期', '结束日期'], placeholder: ['开始日期', '结束日期'],
style: { width: '100%' }, style: { width: '100%' },
valueFormat: 'YYYY-MM-DD', valueFormat: 'YYYY-MM',
format: 'YYYY-MM-DD', format: 'YYYY-MM',
}, },
}, },
{ {
...@@ -303,6 +296,13 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -303,6 +296,13 @@ export function formSchema(year, planType): FormSchema[] {
labelWidth: 400, labelWidth: 400,
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{
field: 'competentDepartment',
label: '项目主管部门',
required: true,
component: 'Input',
colProps: { span: 7, offset: 1 },
},
{ {
field: 'fundingGap', field: 'fundingGap',
label: '2024资金缺口:', label: '2024资金缺口:',
......
...@@ -148,9 +148,9 @@ export function getformSchema(year, planType): FormSchema[] { ...@@ -148,9 +148,9 @@ export function getformSchema(year, planType): FormSchema[] {
component: 'Select', component: 'Select',
componentProps: { componentProps: {
options: [ options: [
{ label: '已经立项实施的跨年工程', value: '已经立项实施的跨年工程' }, { label: '已经立项实施的跨年工程', value: 'A' },
{ label: '必须建设的项目', value: '必须建设的项目' }, { label: '必须建设的项目', value: 'B' },
{ label: '可缓建项目', value: '可缓建项目' }, { label: '可缓建项目', value: 'C' },
], ],
}, },
labelWidth: 400, labelWidth: 400,
...@@ -175,6 +175,13 @@ export function getformSchema(year, planType): FormSchema[] { ...@@ -175,6 +175,13 @@ export function getformSchema(year, planType): FormSchema[] {
}, },
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{
field: 'competentDepartment',
label: '项目主管部门',
required: true,
component: 'Input',
colProps: { span: 7, offset: 1 },
},
{ {
field: 'contractAmount', field: 'contractAmount',
label: '合同额', label: '合同额',
...@@ -186,17 +193,6 @@ export function getformSchema(year, planType): FormSchema[] { ...@@ -186,17 +193,6 @@ export function getformSchema(year, planType): FormSchema[] {
}, },
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{
field: 'planOutputValue',
label: year + '年计划完成投资额',
show: planType != '承建',
required: planType != '承建',
component: 'InputNumber',
componentProps: {
addonAfter: '万元',
},
colProps: { span: 7, offset: 1 },
},
{ {
field: 'planCompleteOutputValue', field: 'planCompleteOutputValue',
label: year + '年计划完成产值', label: year + '年计划完成产值',
...@@ -208,14 +204,6 @@ export function getformSchema(year, planType): FormSchema[] { ...@@ -208,14 +204,6 @@ export function getformSchema(year, planType): FormSchema[] {
}, },
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{
field: 'competentDepartment',
label: '项目主管部门',
required: true,
component: 'Input',
colProps: { span: 7, offset: 1 },
},
{ {
field: 'matchingFunds', field: 'matchingFunds',
label: `${year}` + '年财政预算匹配资金', label: `${year}` + '年财政预算匹配资金',
...@@ -240,6 +228,18 @@ export function getformSchema(year, planType): FormSchema[] { ...@@ -240,6 +228,18 @@ export function getformSchema(year, planType): FormSchema[] {
labelWidth: 400, labelWidth: 400,
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{
field: 'planOutputValue',
label: year + '年计划完成投资额',
show: planType != '承建',
required: planType != '承建',
component: 'InputNumber',
componentProps: {
addonAfter: '万元',
},
labelWidth: 400,
colProps: { span: 7, offset: 1 },
},
{ {
field: 'planFunds', field: 'planFunds',
label: `${year}` + '年计划资金', label: `${year}` + '年计划资金',
...@@ -275,8 +275,8 @@ export function getformSchema(year, planType): FormSchema[] { ...@@ -275,8 +275,8 @@ export function getformSchema(year, planType): FormSchema[] {
componentProps: { componentProps: {
placeholder: ['开始日期', '结束日期'], placeholder: ['开始日期', '结束日期'],
style: { width: '100%' }, style: { width: '100%' },
valueFormat: 'YYYY-MM-DD', valueFormat: 'YYYY-MM',
format: 'YYYY-MM-DD', format: 'YYYY-MM',
}, },
}, },
{ {
......
...@@ -11,22 +11,33 @@ ...@@ -11,22 +11,33 @@
</div> </div>
<div class="characte"> <div class="characte">
<div class="top">填报周期</div> <div class="top">填报周期</div>
<div @click="selectCycle" class="bottom" style="color: #0d84ff; text-decoration: underline; cursor: pointer">{{ mothCycle.fillCycle}}</div> <div
@click="selectCycle"
class="bottom"
style="color: #0d84ff; text-decoration: underline; cursor: pointer"
>{{ mothCycle.fillCycle }}</div
>
</div> </div>
</div> </div>
<Divider type="vertical" style="height: 36px; border-color: rgba(22,106,203,0.30)" dashed /> <Divider
type="vertical"
style="height: 36px; border-color: rgba(22, 106, 203, 0.3)"
dashed
/>
<div class="card"> <div class="card">
<div class="cycleIcon"> <div class="cycleIcon">
<img src="@/assets/icons/shenyutianshu.png" /> <img src="@/assets/icons/shenyutianshu.png" />
</div> </div>
<div class="characte"> <div class="characte">
<div class="top">剩余天数</div> <div class="top">剩余天数</div>
<div class="bottom" style="color:#DFAA21 ">{{ <div class="bottom" style="color: #dfaa21">{{ daysReturn() + '天' }}</div>
daysReturn() + '天'
}}</div>
</div> </div>
</div> </div>
<Divider type="vertical" style="height: 36px; border-color: rgba(22,106,203,0.30)" dashed /> <Divider
type="vertical"
style="height: 36px; border-color: rgba(22, 106, 203, 0.3)"
dashed
/>
<div class="card"> <div class="card">
<div class="cycleIcon"> <div class="cycleIcon">
...@@ -34,12 +45,14 @@ ...@@ -34,12 +45,14 @@
</div> </div>
<div class="characte"> <div class="characte">
<div class="top">企业未完成</div> <div class="top">企业未完成</div>
<div class="bottom" style="color:#DB4343">{{ <div class="bottom" style="color: #db4343">{{ mothCycle.noNum + '家' }}</div>
mothCycle.noNum + '家'
}}</div>
</div> </div>
</div> </div>
<Divider type="vertical" style="height: 36px; border-color: rgba(22,106,203,0.30)" dashed /> <Divider
type="vertical"
style="height: 36px; border-color: rgba(22, 106, 203, 0.3)"
dashed
/>
<div class="card"> <div class="card">
<div class="cycleIcon"> <div class="cycleIcon">
...@@ -47,17 +60,15 @@ ...@@ -47,17 +60,15 @@
</div> </div>
<div class="characte"> <div class="characte">
<div class="top">企业已完成</div> <div class="top">企业已完成</div>
<div class="bottom" style="color:#16CB28">{{ <div class="bottom" style="color: #16cb28">{{
mothCycle.deptNum - mothCycle.noNum + '家' mothCycle.deptNum - mothCycle.noNum + '家'
}}</div> }}</div>
</div> </div>
</div> </div>
</div> </div>
</Col> </Col>
<Col :span="4"> <Col :span="4">
<a-button class="btn" @click="getFillDetails"> <a-button class="btn" @click="getFillDetails"> 查看填报详情 </a-button>
查看填报详情
</a-button>
<a-button class="btn" type="primary" @click="returnEdit"> <a-button class="btn" type="primary" @click="returnEdit">
{{ mothCycle.isEdit === '1' ? '开启本轮填报' : '结束本轮填报' }} {{ mothCycle.isEdit === '1' ? '开启本轮填报' : '结束本轮填报' }}
</a-button> </a-button>
...@@ -69,18 +80,20 @@ ...@@ -69,18 +80,20 @@
<template #tabSlot> <template #tabSlot>
<div> <div>
<Tabs v-model:activeKey="planType" size="large" @change="clickTab"> <Tabs v-model:activeKey="planType" size="large" @change="clickTab">
<a-tab-pane key="自投" tab="自投"></a-tab-pane> <a-tab-pane key="自投" tab="自投" />
<a-tab-pane key="代建" tab="代建"></a-tab-pane> <a-tab-pane key="代建" tab="代建" />
<a-tab-pane key="承建" tab="承建"></a-tab-pane> <a-tab-pane key="承建" tab="承建" />
<a-tab-pane key="储备" tab="储备"></a-tab-pane> <a-tab-pane key="储备" tab="储备" />
</Tabs> </Tabs>
</div> </div>
</template> </template>
<template #toolbar> <template #toolbar>
<a-button class="btn" type="primary" @click="addEngineering(planType)"> {{'新建投资计划'+'('+planType+')'}} </a-button> <a-button class="btn" type="primary" @click="addEngineering(planType)">
<!-- <a-button class="btn" type="primary" @click="addEngineering('代建')"> 新建计划(代建) </a-button>--> {{ '新建投资计划' + '(' + planType + ')' }}
<!-- <a-button class="btn" type="primary" @click="addEngineering('承建')"> 新建计划(承建) </a-button>--> </a-button>
<!-- <a-button type="primary" @click="addEngineering('储备')"> 新建计划(储备) </a-button>--> <!-- <a-button class="btn" type="primary" @click="addEngineering('代建')"> 新建计划(代建) </a-button>-->
<!-- <a-button class="btn" type="primary" @click="addEngineering('承建')"> 新建计划(承建) </a-button>-->
<!-- <a-button type="primary" @click="addEngineering('储备')"> 新建计划(储备) </a-button>-->
</template> </template>
<template #bodyCell="{ column, text, record, index }"> <template #bodyCell="{ column, text, record, index }">
<!-- 当前列是序号列时,显示序号 --> <!-- 当前列是序号列时,显示序号 -->
...@@ -97,17 +110,17 @@ ...@@ -97,17 +110,17 @@
label: '详情', label: '详情',
// icon: 'clarity:note-edit-line', // icon: 'clarity:note-edit-line',
onClick: handleEdit.bind(null, record, 1), onClick: handleEdit.bind(null, record, 1),
ifShow: true ifShow: true,
}, },
{ {
label: '修改', label: '修改',
// icon: 'clarity:note-edit-line', // icon: 'clarity:note-edit-line',
onClick: handleEdit.bind(null, record, 0), onClick: handleEdit.bind(null, record, 0),
ifShow: (_action) => { ifShow: (_action) => {
return record.editStatus == '0'; return record.editStatus == '0';
}, },
}, },
{ {
label: '删除', label: '删除',
color: 'error', color: 'error',
popConfirm: { popConfirm: {
...@@ -115,7 +128,7 @@ ...@@ -115,7 +128,7 @@
placement: 'left', placement: 'left',
confirm: handleDelete.bind(null, record), confirm: handleDelete.bind(null, record),
}, },
ifShow: (_action) => { ifShow: (_action) => {
return record.editStatus == '0'; return record.editStatus == '0';
}, },
}, },
...@@ -138,89 +151,93 @@ ...@@ -138,89 +151,93 @@
</BasicTable> </BasicTable>
<CycleModel @register="registerCycleModel" :user-data="mothCycle" @get-cycle="getSetCycle" /> <CycleModel @register="registerCycleModel" :user-data="mothCycle" @get-cycle="getSetCycle" />
<yearModal @register="register" @close="handleNew" /> <yearModal @register="register" @close="handleNew" />
<FillDetailsModel @register="registerFillDetail"></FillDetailsModel> <FillDetailsModel @register="registerFillDetail" />
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import {Tag, Tabs, Col, Row, Divider} from 'ant-design-vue'; import { Tag, Tabs, Col, Row, Divider } from 'ant-design-vue';
import { BasicTable, useTable, TableAction } from '@/components/Table'; import { BasicTable, useTable, TableAction } from '@/components/Table';
import yearModal from '@/components/yearModal.vue'; import yearModal from '@/components/yearModal.vue';
import { useModal } from '@/components/Modal'; import { useModal } from '@/components/Modal';
import { getEngineeringList, auditItem } from '@/api/project/engineeringProject'; import {
getEngineeringList,
auditItem,
deleteItem,
selectCount,
} from '@/api/project/engineeringProject';
import { useDrawer } from '@/components/Drawer'; import { useDrawer } from '@/components/Drawer';
import { deleteItem, selectCount } from '@/api/project/engineeringProject';
import { columns, searchFormSchema } from './data'; import { columns, searchFormSchema } from './data';
import { router } from '@/router'; import { router } from '@/router';
import {onMounted, ref} from "vue"; import { onMounted, ref } from 'vue';
import {getDepartmentList} from "@/api/project/settlementManage"; import { getDepartmentList } from '@/api/project/settlementManage';
import {useMessage} from "@/hooks/web/useMessage"; import { useMessage } from '@/hooks/web/useMessage';
import {useUserStore} from "@/store/modules/user"; import { useUserStore } from '@/store/modules/user';
import PageCard from "@/components/Page/src/PageCard.vue"; import PageCard from '@/components/Page/src/PageCard.vue';
import CycleModel from "@/views/monthlyPlan/cycleModel/cycleModel.vue"; import CycleModel from '@/views/monthlyPlan/cycleModel/cycleModel.vue';
import FillDetailsModel from "@/views/monthlyPlan/fillDetailsModel/fillDetailsModel.vue"; import FillDetailsModel from '@/views/monthlyPlan/fillDetailsModel/fillDetailsModel.vue';
import {getMothCycel,SetEditStatus} from "@/api/project/monthlyPlan"; import { getMothCycel, SetEditStatus } from '@/api/project/monthlyPlan';
const mothCycle = ref({
fillCycle:'2024', const mothCycle = ref({
isEdit: '0', fillCycle: '2024',
deptNum: 12, isEdit: '0',
noNum: 6, deptNum: 12,
planType:'' noNum: 6,
}); planType: '',
const [registerCycleModel, { openModal: openCycleModel }] = useModal();
const [registerFillDetail, { openModal: openFillDetailModel }] = useModal();
function selectCycle() {
openCycleModel(true, {
data: mothCycle.value,
type:'year',
id:8,
planType:planType.value
}); });
} const [registerCycleModel, { openModal: openCycleModel }] = useModal();
function getFillDetails(){ const [registerFillDetail, { openModal: openFillDetailModel }] = useModal();
openFillDetailModel(true,{ function selectCycle() {
data:mothCycle.value, openCycleModel(true, {
url:'/pro/monthEngineer/businessComDetails', data: mothCycle.value,
module:'Engineering', type: 'year',
planType:planType.value id: 8,
}) planType: planType.value,
} });
async function getSetCycle() { }
const cycle = await getMothCycel({id:'8',module:'Engineering',planType:planType.value}); function getFillDetails() {
mothCycle.value = cycle; openFillDetailModel(true, {
} data: mothCycle.value,
function daysReturn() { url: '/pro/monthEngineer/businessComDetails',
// 获取今天的日期 module: 'Engineering',
const today = new Date(); planType: planType.value,
});
}
async function getSetCycle() {
const cycle = await getMothCycel({ id: '8', module: 'Engineering', planType: planType.value });
mothCycle.value = cycle;
}
function daysReturn() {
// 获取今天的日期
const today = new Date();
// 获取目标年份和月份 // 获取目标年份和月份
let targetYear = Number.parseInt(mothCycle.value.fillCycle); let targetYear = Number.parseInt(mothCycle.value.fillCycle);
let targetMonth= 12; let targetMonth = 12;
// 创建目标日期(2024年9月30日) // 创建目标日期(2024年9月30日)
const targetDate = new Date(targetYear, targetMonth, 0); // 0表示上一个月的最后一天,即9月30日 const targetDate = new Date(targetYear, targetMonth, 0); // 0表示上一个月的最后一天,即9月30日
// 计算时间差(毫秒) // 计算时间差(毫秒)
const timeDifference = targetDate - today; const timeDifference = targetDate - today;
// 计算天数差(天数 = 毫秒差 / 每天的毫秒数) // 计算天数差(天数 = 毫秒差 / 每天的毫秒数)
const daysUntilTarget = Math.max(0, Math.ceil(timeDifference / (1000 * 60 * 60 * 24))); const daysUntilTarget = Math.max(0, Math.ceil(timeDifference / (1000 * 60 * 60 * 24)));
return daysUntilTarget ; return daysUntilTarget;
} }
function returnEdit() { function returnEdit() {
mothCycle.value.planType = planType.value mothCycle.value.planType = planType.value;
if (mothCycle.value.isEdit == '1') { if (mothCycle.value.isEdit == '1') {
mothCycle.value.isEdit = '0'; mothCycle.value.isEdit = '0';
SetEditStatus(mothCycle.value); SetEditStatus(mothCycle.value);
} else { } else {
mothCycle.value.isEdit = '1'; mothCycle.value.isEdit = '1';
SetEditStatus(mothCycle.value); SetEditStatus(mothCycle.value);
}
reload();
} }
reload();
}
const isExamine = ref<boolean>(false); const isExamine = ref<boolean>(false);
const deptId = useUserStore().userInfo.deptParentId; const deptId = useUserStore().userInfo.deptParentId;
const { createMessage } = useMessage(); const { createMessage } = useMessage();
...@@ -230,9 +247,9 @@ function returnEdit() { ...@@ -230,9 +247,9 @@ function returnEdit() {
const [registerDrawer, { openDrawer }] = useDrawer(); const [registerDrawer, { openDrawer }] = useDrawer();
const [register, { openModal: openModal, closeModal: closeModal }] = useModal(); const [register, { openModal: openModal, closeModal: closeModal }] = useModal();
const [registerTable, { reload,getForm}] = useTable({ const [registerTable, { reload, getForm }] = useTable({
api: getEngineeringList, api: getEngineeringList,
title: '123', title: '123',
columns, columns,
...@@ -254,34 +271,36 @@ function returnEdit() { ...@@ -254,34 +271,36 @@ function returnEdit() {
}); });
onMounted(async () => { onMounted(async () => {
const data = await getDepartmentList() const data = await getDepartmentList();
searchFormSchema[2].componentProps.options=data searchFormSchema[2].componentProps.options = data;
let roles = useUserStore().userInfo.roles; let roles = useUserStore().userInfo.roles;
roles.forEach((item) => { roles.forEach((item) => {
if (item.role_key === 'approver') { if (item.role_key === 'approver') {
isExamine.value = true; isExamine.value = true;
} }
}); });
getSetCycle() getSetCycle();
}); });
async function clickTab(value){ async function clickTab(value) {
planType.value = value planType.value = value;
getForm().setFieldsValue({ getForm()
planType:value .setFieldsValue({
}).then(()=>{ planType: value,
reload() })
getSetCycle() .then(() => {
}) reload();
getSetCycle();
});
} }
const planType = ref('自投') const planType = ref('自投');
function handleEdit(record: Recordable, disabled: number) { function handleEdit(record: Recordable, disabled: number) {
const data = { const data = {
filingCycle: record.filingCycle, filingCycle: record.filingCycle,
planType: record.planType, planType: record.planType,
id: record.id, id: record.id,
disabled:disabled disabled: disabled,
} };
router.push({ router.push({
path: '/engineeringProject/engineeringEdit', path: '/engineeringProject/engineeringEdit',
query: data, query: data,
...@@ -308,13 +327,13 @@ function returnEdit() { ...@@ -308,13 +327,13 @@ function returnEdit() {
}); });
}; };
async function handleNew(e){ async function handleNew(e) {
const data = { const data = {
filingCycle: e.year, filingCycle: e.year,
planType: planType.value, planType: planType.value,
} };
let res = await selectCount(data); let res = await selectCount(data);
console.log(res) console.log(res);
if (res == true) { if (res == true) {
closeModal(); closeModal();
router.push({ router.push({
...@@ -324,7 +343,7 @@ function returnEdit() { ...@@ -324,7 +343,7 @@ function returnEdit() {
} else { } else {
error('该周期已填报'); error('该周期已填报');
} }
}; }
const change = (key: string) => { const change = (key: string) => {
reload(); reload();
...@@ -342,24 +361,26 @@ function returnEdit() { ...@@ -342,24 +361,26 @@ function returnEdit() {
margin-top: 8px; margin-top: 8px;
} }
.cycleFrame{ .cycleFrame {
border: 1px solid rgba(22, 106, 203, 0.10); border: 1px solid rgba(22, 106, 203, 0.1);
border-radius: 6px; border-radius: 6px;
padding: 20px 50px; padding: 20px 50px;
margin-right: 20px; margin-right: 20px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.card{ .card {
display: flex; display: flex;
.cycleIcon{ .cycleIcon {
margin-right: 10px; margin-right: 10px;
} }
.characte{ .characte {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-around; justify-content: space-around;
.top{} .top {
.bottom{} }
.bottom {
}
} }
} }
} }
......
...@@ -82,7 +82,7 @@ export function getBasicColumns(year: string, planType: string): BasicColumn[] { ...@@ -82,7 +82,7 @@ export function getBasicColumns(year: string, planType: string): BasicColumn[] {
className: planType === '承建' ? 'tableShow' : 'tableHiddle', className: planType === '承建' ? 'tableShow' : 'tableHiddle',
}, },
{ {
title: '投资总额(万元)', title: '立项投资额(万元)',
dataIndex: 'totalInvestment', dataIndex: 'totalInvestment',
className: planType != '承建' ? 'tableShow' : 'tableHiddle', className: planType != '承建' ? 'tableShow' : 'tableHiddle',
...@@ -94,7 +94,7 @@ export function getBasicColumns(year: string, planType: string): BasicColumn[] { ...@@ -94,7 +94,7 @@ export function getBasicColumns(year: string, planType: string): BasicColumn[] {
className: planType === '承建' ? 'tableShow' : 'tableHiddle', className: planType === '承建' ? 'tableShow' : 'tableHiddle',
}, },
{ {
title: year + '年计划完成投资额', title: year + '年计划完成投资额',
dataIndex: 'planOutputValue', dataIndex: 'planOutputValue',
className: planType != '承建' ? 'tableShow' : 'tableHiddle', className: planType != '承建' ? 'tableShow' : 'tableHiddle',
}, },
...@@ -209,7 +209,6 @@ export function getDtailsBasicColumns(year: string, planType: string): BasicColu ...@@ -209,7 +209,6 @@ export function getDtailsBasicColumns(year: string, planType: string): BasicColu
dataIndex: 'matchingFunds', dataIndex: 'matchingFunds',
ifShow: planType === '承建', ifShow: planType === '承建',
width: 150, width: 150,
ifShow: true,
}, },
{ {
title: '其中专项债项目' + year + '预计使用专项债资金', title: '其中专项债项目' + year + '预计使用专项债资金',
...@@ -242,7 +241,7 @@ export function getDtailsBasicColumns(year: string, planType: string): BasicColu ...@@ -242,7 +241,7 @@ export function getDtailsBasicColumns(year: string, planType: string): BasicColu
ifShow: true, ifShow: true,
}, },
{ {
title: year + '年底预计形象度', title: year + '年底预计形象度',
dataIndex: 'schedule', dataIndex: 'schedule',
width: 150, width: 150,
ifShow: true, ifShow: true,
......
...@@ -589,16 +589,14 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -589,16 +589,14 @@ export function formSchema(year, planType): FormSchema[] {
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
field: 'outputValue', field: 'planCompleteOutputValue',
label: label: year + '计划产值',
planType === '承建' required: planType === '承建',
? year + '年之前完成总产值(不含' + year + '年)' show: planType === '承建',
: year + '年之前完成总投资额(不含' + year + '年)',
required: true,
show: true,
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
addonAfter: '万元', addonAfter: '万元',
disabled: true,
}, },
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
...@@ -615,20 +613,22 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -615,20 +613,22 @@ export function formSchema(year, planType): FormSchema[] {
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
field: 'planCompleteOutputValue', field: 'actualOutputValue',
label: year + '计划产值', label: planType === '承建' ? year + '年实际产值' : year + '实际投资额',
required: planType === '承建', required: true,
show: planType === '承建', show: true,
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
addonAfter: '万元', addonAfter: '万元',
disabled: true,
}, },
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
{ {
field: 'actualOutputValue', field: 'outputValue',
label: planType === '承建' ? year + '年实际产值' : year + '实际投资额', label:
planType === '承建'
? year + '年之前完成总产值(不含' + year + '年)'
: year + '年之前完成总投资额(不含' + year + '年)',
required: true, required: true,
show: true, show: true,
component: 'InputNumber', component: 'InputNumber',
...@@ -672,6 +672,7 @@ export function formSchema(year, planType): FormSchema[] { ...@@ -672,6 +672,7 @@ export function formSchema(year, planType): FormSchema[] {
field: 'contract', field: 'contract',
label: '合同方式', label: '合同方式',
component: 'Input', component: 'Input',
show: planType === '承建',
componentProps: { componentProps: {
readonly: true, readonly: true,
disabled: true, disabled: true,
......
...@@ -137,7 +137,7 @@ export const formSchema: FormSchema[] = [ ...@@ -137,7 +137,7 @@ export const formSchema: FormSchema[] = [
required: true, required: true,
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
addonAfter: '元', addonAfter: '元',
}, },
colProps: { span: 7, offset: 1 }, colProps: { span: 7, offset: 1 },
}, },
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
width: 180, width: 180,
}, },
{ {
title: '立项投资额(元)', title: '立项投资额(元)',
dataIndex: 'projectInvestment', dataIndex: 'projectInvestment',
width: 180, width: 180,
}, },
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
width: 180, width: 180,
}, },
{ {
title: '合同金额(元)', title: '合同金额(元)',
dataIndex: 'contractAmount', dataIndex: 'contractAmount',
width: 180, width: 180,
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment