Commit 8d2db35e authored by 小费同学阿's avatar 小费同学阿 💬

项目库投资---招标管理列表

parent 97a08c8a
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
danger danger
v-if="!disabled" v-if="!disabled"
@click="deleteItem(index)" @click="deleteItem(index)"
/> >
</a-button>
</template> </template>
<BasicForm :loading="loading" @register="item.Form[0]" /> <BasicForm :loading="loading" @register="item.Form[0]" />
</PageCard> </PageCard>
...@@ -36,7 +37,7 @@ ...@@ -36,7 +37,7 @@
</PageWrapper> </PageWrapper>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { unref, onMounted, ref, reactive, nextTick } from 'vue'; import { unref, onMounted, ref, reactive } from 'vue';
import projectlibraryModel from '@/components/projectlibraryModel/projectlibraryModel.vue'; import projectlibraryModel from '@/components/projectlibraryModel/projectlibraryModel.vue';
import { PageWrapper } from '@/components/Page'; import { PageWrapper } from '@/components/Page';
import PageCard from '@/components/Page/src/PageCard.vue'; import PageCard from '@/components/Page/src/PageCard.vue';
...@@ -48,12 +49,11 @@ ...@@ -48,12 +49,11 @@
import { useDrawer } from '@/components/Drawer'; import { useDrawer } from '@/components/Drawer';
import { addItem, updateItem, getItem, Itemdelete } from '@/api/project/biddingManagement'; import { addItem, updateItem, getItem, Itemdelete } from '@/api/project/biddingManagement';
import { editModel } from '@/api/project/model/biddingManagementModel'; import { editModel } from '@/api/project/model/biddingManagementModel';
import { nextTick } from 'vue';
const [registerDrawer, { openDrawer }] = useDrawer();
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';
const [registerDrawer, { openDrawer }] = useDrawer();
const [register, { openModal: openModal }] = useModal(); const [register, { openModal: openModal }] = useModal();
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const loadingRef = ref(false); const loadingRef = ref(false);
......
...@@ -72,9 +72,8 @@ ...@@ -72,9 +72,8 @@
import { useModal } from '@/components/Modal'; import { useModal } from '@/components/Modal';
import yearModal from '@/components/yearModal.vue'; import yearModal from '@/components/yearModal.vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useMessage } from '@/hooks/web/useMessage';
const { push } = useRouter(); const { push } = useRouter();
import { useMessage } from '@/hooks/web/useMessage';
const { error } = createMessage; const { error } = createMessage;
defineOptions({ name: 'RoleManagement' }); defineOptions({ name: 'RoleManagement' });
......
import { FormSchema, BasicColumn } from '@/components/Table'; import { FormSchema, BasicColumn } from '@/components/Table';
// 1-投资计划列表
/*4-查看月度资金计划详情*/ export const columnsFormSchema: FormSchema[] = [
export const formSchema: FormSchema[] = [ {
field: 'monthYear',
labelWidth: '140px',
label: '填报周期',
required: true,
component: 'DatePicker',
componentProps: {
placeholder: '填报周期',
style: { width: '100%' },
valueFormat: 'YYYY-MM-DD',
format: 'YYYY-MM-DD',
},
},
{
label: '公司名称',
field: 'companyName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '项目名称',
field: 'projectName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '收款单位',
field: 'collectingUnit',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '合同额(万元)',
labelWidth: '140px',
field: 'contractAmount',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实际完成值(万元)',
labelWidth: '140px',
field: 'completionValueActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计完成值(万元)',
labelWidth: '140px',
field: 'accumulateCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '本月计划完成值(万元)',
labelWidth: '140px',
field: 'planCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月计划数(万元)',
labelWidth: '140px',
field: 'lastMonthPlan',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实付数(万元)',
labelWidth: '140px',
field: 'lastMonthActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计支付数(万元)',
labelWidth: '140px',
field: 'accumulatePayment',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '专项债拨款(万元)',
labelWidth: '140px',
field: 'specialFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '政府拨款(万元)',
labelWidth: '140px',
field: 'governmentFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '银行融资(万元)',
labelWidth: '140px',
field: 'banFinancing',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '自有资金(万元)',
labelWidth: '140px',
field: 'ownFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '资金缺口(万元)',
labelWidth: '140px',
field: 'fundGap',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '支付等级',
labelWidth: '140px',
field: 'paymentLevel',
required: true,
component: 'Input',
},
{
label: '备注',
labelWidth: '140px',
field: 'remark',
required: true,
component: 'Input',
},
];
// 2-计划完成情况列表
export const monthFormSchema: FormSchema[] = [
{
field: 'monthYear',
labelWidth: '140px',
label: '填报周期',
required: true,
component: 'DatePicker',
componentProps: {
placeholder: '填报周期',
style: { width: '100%' },
valueFormat: 'YYYY-MM-DD',
format: 'YYYY-MM-DD',
},
},
{
label: '公司名称',
field: 'companyName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '项目名称',
field: 'projectName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '收款单位',
field: 'collectingUnit',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '合同额(万元)',
labelWidth: '140px',
field: 'contractAmount',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实际完成值(万元)',
labelWidth: '140px',
field: 'completionValueActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计完成值(万元)',
labelWidth: '140px',
field: 'accumulateCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '本月计划完成值(万元)',
labelWidth: '140px',
field: 'planCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月计划数(万元)',
labelWidth: '140px',
field: 'lastMonthPlan',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实付数(万元)',
labelWidth: '140px',
field: 'lastMonthActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计支付数(万元)',
labelWidth: '140px',
field: 'accumulatePayment',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '专项债拨款(万元)',
labelWidth: '140px',
field: 'specialFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '政府拨款(万元)',
labelWidth: '140px',
field: 'governmentFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '银行融资(万元)',
labelWidth: '140px',
field: 'banFinancing',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '自有资金(万元)',
labelWidth: '140px',
field: 'ownFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '资金缺口(万元)',
labelWidth: '140px',
field: 'fundGap',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '支付等级',
labelWidth: '140px',
field: 'paymentLevel',
required: true,
component: 'Input',
},
{
label: '备注',
labelWidth: '140px',
field: 'remark',
required: true,
component: 'Input',
},
];
// 3-年度资金计划列表
export const monthFormSchema: FormSchema[] = [
{
field: 'monthYear',
labelWidth: '140px',
label: '填报周期',
required: true,
component: 'DatePicker',
componentProps: {
placeholder: '填报周期',
style: { width: '100%' },
valueFormat: 'YYYY-MM-DD',
format: 'YYYY-MM-DD',
},
},
{
label: '公司名称',
field: 'companyName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '项目名称',
field: 'projectName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '收款单位',
field: 'collectingUnit',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '合同额(万元)',
labelWidth: '140px',
field: 'contractAmount',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实际完成值(万元)',
labelWidth: '140px',
field: 'completionValueActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计完成值(万元)',
labelWidth: '140px',
field: 'accumulateCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '本月计划完成值(万元)',
labelWidth: '140px',
field: 'planCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月计划数(万元)',
labelWidth: '140px',
field: 'lastMonthPlan',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实付数(万元)',
labelWidth: '140px',
field: 'lastMonthActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计支付数(万元)',
labelWidth: '140px',
field: 'accumulatePayment',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '专项债拨款(万元)',
labelWidth: '140px',
field: 'specialFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '政府拨款(万元)',
labelWidth: '140px',
field: 'governmentFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '银行融资(万元)',
labelWidth: '140px',
field: 'banFinancing',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '自有资金(万元)',
labelWidth: '140px',
field: 'ownFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '资金缺口(万元)',
labelWidth: '140px',
field: 'fundGap',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '支付等级',
labelWidth: '140px',
field: 'paymentLevel',
required: true,
component: 'Input',
},
{
label: '备注',
labelWidth: '140px',
field: 'remark',
required: true,
component: 'Input',
},
];
// 4-查看月度资金计划详情
export const monthFormSchema: FormSchema[] = [
{
field: 'monthYear',
labelWidth: '140px',
label: '填报周期',
required: true,
component: 'DatePicker',
componentProps: {
placeholder: '填报周期',
style: { width: '100%' },
valueFormat: 'YYYY-MM-DD',
format: 'YYYY-MM-DD',
},
},
{
label: '公司名称',
field: 'companyName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '项目名称',
field: 'projectName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '收款单位',
field: 'collectingUnit',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '合同额(万元)',
labelWidth: '140px',
field: 'contractAmount',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实际完成值(万元)',
labelWidth: '140px',
field: 'completionValueActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计完成值(万元)',
labelWidth: '140px',
field: 'accumulateCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '本月计划完成值(万元)',
labelWidth: '140px',
field: 'planCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月计划数(万元)',
labelWidth: '140px',
field: 'lastMonthPlan',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实付数(万元)',
labelWidth: '140px',
field: 'lastMonthActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计支付数(万元)',
labelWidth: '140px',
field: 'accumulatePayment',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '专项债拨款(万元)',
labelWidth: '140px',
field: 'specialFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '政府拨款(万元)',
labelWidth: '140px',
field: 'governmentFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '银行融资(万元)',
labelWidth: '140px',
field: 'banFinancing',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '自有资金(万元)',
labelWidth: '140px',
field: 'ownFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '资金缺口(万元)',
labelWidth: '140px',
field: 'fundGap',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '支付等级',
labelWidth: '140px',
field: 'paymentLevel',
required: true,
component: 'Input',
},
{
label: '备注',
labelWidth: '140px',
field: 'remark',
required: true,
component: 'Input',
},
];
// 5-已竣工列表
export const monthFormSchema: FormSchema[] = [
{
field: 'monthYear',
labelWidth: '140px',
label: '填报周期',
required: true,
component: 'DatePicker',
componentProps: {
placeholder: '填报周期',
style: { width: '100%' },
valueFormat: 'YYYY-MM-DD',
format: 'YYYY-MM-DD',
},
},
{
label: '公司名称',
field: 'companyName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '项目名称',
field: 'projectName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '收款单位',
field: 'collectingUnit',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '合同额(万元)',
labelWidth: '140px',
field: 'contractAmount',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实际完成值(万元)',
labelWidth: '140px',
field: 'completionValueActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计完成值(万元)',
labelWidth: '140px',
field: 'accumulateCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '本月计划完成值(万元)',
labelWidth: '140px',
field: 'planCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月计划数(万元)',
labelWidth: '140px',
field: 'lastMonthPlan',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实付数(万元)',
labelWidth: '140px',
field: 'lastMonthActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计支付数(万元)',
labelWidth: '140px',
field: 'accumulatePayment',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '专项债拨款(万元)',
labelWidth: '140px',
field: 'specialFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '政府拨款(万元)',
labelWidth: '140px',
field: 'governmentFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '银行融资(万元)',
labelWidth: '140px',
field: 'banFinancing',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '自有资金(万元)',
labelWidth: '140px',
field: 'ownFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '资金缺口(万元)',
labelWidth: '140px',
field: 'fundGap',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '支付等级',
labelWidth: '140px',
field: 'paymentLevel',
required: true,
component: 'Input',
},
{
label: '备注',
labelWidth: '140px',
field: 'remark',
required: true,
component: 'Input',
},
];
// 6-招标计划列表
export const monthFormSchema: FormSchema[] = [
{
field: 'monthYear',
labelWidth: '140px',
label: '填报周期',
required: true,
component: 'DatePicker',
componentProps: {
placeholder: '填报周期',
style: { width: '100%' },
valueFormat: 'YYYY-MM-DD',
format: 'YYYY-MM-DD',
},
},
{
label: '公司名称',
field: 'companyName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '项目名称',
field: 'projectName',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '收款单位',
field: 'collectingUnit',
labelWidth: '140px',
required: true,
component: 'Input',
},
{
label: '合同额(万元)',
labelWidth: '140px',
field: 'contractAmount',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实际完成值(万元)',
labelWidth: '140px',
field: 'completionValueActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计完成值(万元)',
labelWidth: '140px',
field: 'accumulateCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '本月计划完成值(万元)',
labelWidth: '140px',
field: 'planCompletionValue',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月计划数(万元)',
labelWidth: '140px',
field: 'lastMonthPlan',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '上月实付数(万元)',
labelWidth: '140px',
field: 'lastMonthActual',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '累计支付数(万元)',
labelWidth: '140px',
field: 'accumulatePayment',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '专项债拨款(万元)',
labelWidth: '140px',
field: 'specialFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '政府拨款(万元)',
labelWidth: '140px',
field: 'governmentFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '银行融资(万元)',
labelWidth: '140px',
field: 'banFinancing',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '自有资金(万元)',
labelWidth: '140px',
field: 'ownFund',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '资金缺口(万元)',
labelWidth: '140px',
field: 'fundGap',
required: true,
component: 'Input',
componentProps: {
addonAfter: '万元',
},
},
{
label: '支付等级',
labelWidth: '140px',
field: 'paymentLevel',
required: true,
component: 'Input',
},
{
label: '备注',
labelWidth: '140px',
field: 'remark',
required: true,
component: 'Input',
},
];
// 7-招标管理列表
export const monthFormSchema: FormSchema[] = [
{ {
field: 'monthYear', field: 'monthYear',
labelWidth: '140px', labelWidth: '140px',
...@@ -302,7 +1327,7 @@ export const columns: BasicColumn[] = [ ...@@ -302,7 +1327,7 @@ export const columns: BasicColumn[] = [
width: 180, width: 180,
}, },
]; ];
//2-计划完成情况列表 // 2-计划完成情况列表
export const performanceColumns: BasicColumn[] = [ export const performanceColumns: BasicColumn[] = [
{ {
title: '序号', title: '序号',
...@@ -411,7 +1436,7 @@ export const performanceColumns: BasicColumn[] = [ ...@@ -411,7 +1436,7 @@ export const performanceColumns: BasicColumn[] = [
width: 180, width: 180,
}, },
]; ];
//3-年度资金计划列表 // 3-年度资金计划列表
export const annualPlanColumns: BasicColumn[] = [ export const annualPlanColumns: BasicColumn[] = [
{ {
title: '序号', title: '序号',
...@@ -495,7 +1520,7 @@ export const annualPlanColumns: BasicColumn[] = [ ...@@ -495,7 +1520,7 @@ export const annualPlanColumns: BasicColumn[] = [
width: 180, width: 180,
}, },
]; ];
//4-月度资金计划列表 // 4-月度资金计划列表
export const monthlyPlanColumns: BasicColumn[] = [ export const monthlyPlanColumns: BasicColumn[] = [
{ {
title: '', title: '',
...@@ -629,7 +1654,7 @@ export const monthlyPlanColumns: BasicColumn[] = [ ...@@ -629,7 +1654,7 @@ export const monthlyPlanColumns: BasicColumn[] = [
], ],
}, },
]; ];
//5-已竣工列表 // 5-已竣工列表
export const completedColumns: BasicColumn[] = [ export const completedColumns: BasicColumn[] = [
{ {
title: '序号', title: '序号',
...@@ -776,7 +1801,7 @@ export const biddingPlanColumns = [ ...@@ -776,7 +1801,7 @@ export const biddingPlanColumns = [
width: 180, width: 180,
}, },
]; ];
//7-招标管理列表 // 7-招标管理列表
export const biddingManagementColumns = [ export const biddingManagementColumns = [
{ {
title: '序号', title: '序号',
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref, unref } from 'vue'; import { ref, unref } from 'vue';
import { BasicForm, useForm, FormActionType } from '@/components/Form'; import { BasicForm, useForm, FormActionType } from '@/components/Form';
import { formSchema } from './data'; import { monthFormSchema } from '../data';
import { BasicDrawer, useDrawerInner } from '@/components/Drawer'; import { BasicDrawer, useDrawerInner } from '@/components/Drawer';
import { monthDetail } from '@/api/project/detail/month'; import { monthDetail } from '@/api/project/detail/month';
import { error } from '@/utils/log'; import { error } from '@/utils/log';
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({ const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90, labelWidth: 90,
baseColProps: { span: 24 }, baseColProps: { span: 24 },
schemas: formSchema, schemas: monthFormSchema,
showActionButtonGroup: false, showActionButtonGroup: false,
}); });
//获取抽屉标题 //获取抽屉标题
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import { BasicTable, useTable, TableAction } from '@/components/Table'; import { BasicTable, useTable, TableAction } from '@/components/Table';
import { inject, ref } from 'vue'; import { inject, ref } from 'vue';
import { useDrawer } from '@/components/Drawer'; import { useDrawer } from '@/components/Drawer';
import monthDrawer from '@/views/project/tabs/monthDrawer.vue'; import monthDrawer from '@/views/project/tabs/frontDrawer/monthDrawer.vue';
//引进列表api //引进列表api
import { monthList } from '@/api/project/detail/month'; import { monthList } from '@/api/project/detail/month';
import { getSettlementManageList } from '@/api/project/settlementManage'; import { getSettlementManageList } from '@/api/project/settlementManage';
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
import { tabList } from './data'; import { tabList } from './data';
import { ref,onMounted } from 'vue'; import { ref } from 'vue';
import performance from '@/views/statement/tabs/performance.vue'; import performance from '@/views/statement/tabs/performance.vue';
import annualPlan from '@/views/statement/tabs/annualPlan.vue'; import annualPlan from '@/views/statement/tabs/annualPlan.vue';
import monthlyPlan from '@/views/statement/tabs/monthlyPlan.vue'; import monthlyPlan from '@/views/statement/tabs/monthlyPlan.vue';
...@@ -31,18 +31,8 @@ ...@@ -31,18 +31,8 @@
import annex from '@/views/statement/tabs/annex.vue'; import annex from '@/views/statement/tabs/annex.vue';
import updateRecords from '@/views/statement/tabs/updateRecords.vue'; import updateRecords from '@/views/statement/tabs/updateRecords.vue';
import {useRoute} from "vue-router";
defineOptions({ name: 'Statement' }); defineOptions({ name: 'Statement' });
//初始化的时候调用列表接口
onMounted(async () => {
console.log("传过来的id为:");
const route = useRoute();
const id = route.query.id; // 获取名为id的参数
if (!id) {
}
};
const tabs = { const tabs = {
InvestmentPlan, InvestmentPlan,
performance, performance,
......
...@@ -10,29 +10,24 @@ ...@@ -10,29 +10,24 @@
{ {
label: '查看详情', label: '查看详情',
onClick: handleDetail.bind(null, record, 1), onClick: handleDetail.bind(null, record, 1),
// ifShow: (_action) => { ifShow: (_action) => {
// return record.reviewStatus == '1'; return record.reviewStatus == '1';
// }, },
}, },
]" ]"
/> />
</template> </template>
</template> </template>
</BasicTable> </BasicTable>
<detaildrawer @register="registerDrawer" @success="handleSuccess" ></detaildrawer>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import detaildrawer from '@/views/statement/detailDrawer/detailDrawer.vue';
import { columns, searchFormSchema } from './data'; import { columns, searchFormSchema } from './data';
import { BasicTable, useTable, TableAction } from '@/components/Table'; import { BasicTable, useTable, TableAction } from '@/components/Table';
import { inject } from 'vue'; import { inject } from 'vue';
import { getInvestmentPlanList } from '@/api/project/statement'; import { getEngineeringList } from '@/api/project/engineeringProject';
import { router } from '@/router'; import { router } from '@/router';
import DetailDrawer from "@/views/statement/detailDrawer/detailDrawer.vue";
import {useDrawer} from "@/components/Drawer";
const [registerDrawer, { openDrawer }] = useDrawer();
const [registerTable, { reload }] = useTable({ const [registerTable, { reload }] = useTable({
api: getInvestmentPlanList, api: getEngineeringList,
columns, columns,
formConfig: { formConfig: {
labelWidth: 120, labelWidth: 120,
...@@ -51,38 +46,30 @@ ...@@ -51,38 +46,30 @@
}, },
}); });
function handleDetail(record: Recordable, disabled: number) { function handleDetail(record: Recordable, disabled: number) {
console.log('record', record) if (record.planType === '工程') {
console.log('disabled', disabled) router.push({
path: '/engineeringProject/engineeringEdit',
openDrawer(true, { query: {
record, id: record.id,
disabled, disabled: String(disabled),
isUpdate: true },
}); });
// if (record.planType === '工程') { } else if (record.planType === '承建') {
// router.push({ router.push({
// path: '/engineeringProject/engineeringEdit', path: '/engineeringProject/constructionEdit',
// query: { query: {
// id: record.id, id: record.id,
// disabled: String(disabled), disabled: String(disabled),
// }, },
// }); });
// } else if (record.planType === '承建') { } else if (record.planType === '储备') {
// router.push({ router.push({
// path: '/engineeringProject/constructionEdit', path: '/engineeringProject/reserveEdit',
// query: { query: {
// id: record.id, id: record.id,
// disabled: String(disabled), disabled: String(disabled),
// }, },
// }); });
// } else if (record.planType === '储备') { }
// router.push({
// path: '/engineeringProject/reserveEdit',
// query: {
// id: record.id,
// disabled: String(disabled),
// },
// });
// }
} }
</script> </script>
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
{{ index + 1 }} {{ index + 1 }}
</template> </template>
<template v-if="column.key === 'completionResult'"> <template v-if="column.key === 'completionResult'">
<Tag color="processing"> <Tag color="processing">
{{ record.completionResult == 1 ? '已审核' : '未审核' }} {{ record.completionResult == 1 ? '已审核' : '未审核' }}
</Tag> </Tag>
</template> </template>
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<TableAction <TableAction
:actions="[ :actions="[
...@@ -32,9 +32,8 @@ ...@@ -32,9 +32,8 @@
import { inject } from 'vue'; import { inject } from 'vue';
import { router } from '@/router'; import { router } from '@/router';
import { Tag } from 'ant-design-vue'; import { Tag } from 'ant-design-vue';
let detailId = inject('detailId'); let detailId = inject('detailId');
console.log('性能页面的detailId', detailId); console.log('detailId', detailId);
const [registerTable, { reload }] = useTable({ const [registerTable, { reload }] = useTable({
api: getListByPage, api: getListByPage,
columns: performanceColumns, columns: performanceColumns,
......
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