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

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

parent 97a08c8a
......@@ -20,7 +20,8 @@
danger
v-if="!disabled"
@click="deleteItem(index)"
/>
>
</a-button>
</template>
<BasicForm :loading="loading" @register="item.Form[0]" />
</PageCard>
......@@ -36,7 +37,7 @@
</PageWrapper>
</template>
<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 { PageWrapper } from '@/components/Page';
import PageCard from '@/components/Page/src/PageCard.vue';
......@@ -48,12 +49,11 @@
import { useDrawer } from '@/components/Drawer';
import { addItem, updateItem, getItem, Itemdelete } from '@/api/project/biddingManagement';
import { editModel } from '@/api/project/model/biddingManagementModel';
import { nextTick } from 'vue';
const [registerDrawer, { openDrawer }] = useDrawer();
import { useModal } from '@/components/Modal';
import { router } from '@/router';
import { useRoute } from 'vue-router';
const [registerDrawer, { openDrawer }] = useDrawer();
const [register, { openModal: openModal }] = useModal();
const { createMessage } = useMessage();
const loadingRef = ref(false);
......
......@@ -72,9 +72,8 @@
import { useModal } from '@/components/Modal';
import yearModal from '@/components/yearModal.vue';
import { useRouter } from 'vue-router';
import { useMessage } from '@/hooks/web/useMessage';
const { push } = useRouter();
import { useMessage } from '@/hooks/web/useMessage';
const { error } = createMessage;
defineOptions({ name: 'RoleManagement' });
......
import { FormSchema, BasicColumn } from '@/components/Table';
/*4-查看月度资金计划详情*/
export const formSchema: FormSchema[] = [
// 1-投资计划列表
export const columnsFormSchema: 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',
labelWidth: '140px',
......@@ -302,7 +1327,7 @@ export const columns: BasicColumn[] = [
width: 180,
},
];
//2-计划完成情况列表
// 2-计划完成情况列表
export const performanceColumns: BasicColumn[] = [
{
title: '序号',
......@@ -411,7 +1436,7 @@ export const performanceColumns: BasicColumn[] = [
width: 180,
},
];
//3-年度资金计划列表
// 3-年度资金计划列表
export const annualPlanColumns: BasicColumn[] = [
{
title: '序号',
......@@ -495,7 +1520,7 @@ export const annualPlanColumns: BasicColumn[] = [
width: 180,
},
];
//4-月度资金计划列表
// 4-月度资金计划列表
export const monthlyPlanColumns: BasicColumn[] = [
{
title: '',
......@@ -629,7 +1654,7 @@ export const monthlyPlanColumns: BasicColumn[] = [
],
},
];
//5-已竣工列表
// 5-已竣工列表
export const completedColumns: BasicColumn[] = [
{
title: '序号',
......@@ -776,7 +1801,7 @@ export const biddingPlanColumns = [
width: 180,
},
];
//7-招标管理列表
// 7-招标管理列表
export const biddingManagementColumns = [
{
title: '序号',
......
......@@ -14,7 +14,7 @@
<script lang="ts" setup>
import { ref, unref } from 'vue';
import { BasicForm, useForm, FormActionType } from '@/components/Form';
import { formSchema } from './data';
import { monthFormSchema } from '../data';
import { BasicDrawer, useDrawerInner } from '@/components/Drawer';
import { monthDetail } from '@/api/project/detail/month';
import { error } from '@/utils/log';
......@@ -26,7 +26,7 @@
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 90,
baseColProps: { span: 24 },
schemas: formSchema,
schemas: monthFormSchema,
showActionButtonGroup: false,
});
//获取抽屉标题
......
......@@ -30,7 +30,7 @@
import { BasicTable, useTable, TableAction } from '@/components/Table';
import { inject, ref } from 'vue';
import { useDrawer } from '@/components/Drawer';
import monthDrawer from '@/views/project/tabs/monthDrawer.vue';
import monthDrawer from '@/views/project/tabs/frontDrawer/monthDrawer.vue';
//引进列表api
import { monthList } from '@/api/project/detail/month';
import { getSettlementManageList } from '@/api/project/settlementManage';
......
......@@ -16,7 +16,7 @@
import { tabList } from './data';
import { ref,onMounted } from 'vue';
import { ref } from 'vue';
import performance from '@/views/statement/tabs/performance.vue';
import annualPlan from '@/views/statement/tabs/annualPlan.vue';
import monthlyPlan from '@/views/statement/tabs/monthlyPlan.vue';
......@@ -31,18 +31,8 @@
import annex from '@/views/statement/tabs/annex.vue';
import updateRecords from '@/views/statement/tabs/updateRecords.vue';
import {useRoute} from "vue-router";
defineOptions({ name: 'Statement' });
//初始化的时候调用列表接口
onMounted(async () => {
console.log("传过来的id为:");
const route = useRoute();
const id = route.query.id; // 获取名为id的参数
if (!id) {
}
};
const tabs = {
InvestmentPlan,
performance,
......
......@@ -10,29 +10,24 @@
{
label: '查看详情',
onClick: handleDetail.bind(null, record, 1),
// ifShow: (_action) => {
// return record.reviewStatus == '1';
// },
ifShow: (_action) => {
return record.reviewStatus == '1';
},
},
]"
/>
</template>
</template>
</BasicTable>
<detaildrawer @register="registerDrawer" @success="handleSuccess" ></detaildrawer>
</template>
<script lang="ts" setup>
import detaildrawer from '@/views/statement/detailDrawer/detailDrawer.vue';
import { columns, searchFormSchema } from './data';
import { BasicTable, useTable, TableAction } from '@/components/Table';
import { inject } from 'vue';
import { getInvestmentPlanList } from '@/api/project/statement';
import { getEngineeringList } from '@/api/project/engineeringProject';
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({
api: getInvestmentPlanList,
api: getEngineeringList,
columns,
formConfig: {
labelWidth: 120,
......@@ -51,38 +46,30 @@
},
});
function handleDetail(record: Recordable, disabled: number) {
console.log('record', record)
console.log('disabled', disabled)
openDrawer(true, {
record,
disabled,
isUpdate: true
if (record.planType === '工程') {
router.push({
path: '/engineeringProject/engineeringEdit',
query: {
id: record.id,
disabled: String(disabled),
},
});
} else if (record.planType === '承建') {
router.push({
path: '/engineeringProject/constructionEdit',
query: {
id: record.id,
disabled: String(disabled),
},
});
// if (record.planType === '工程') {
// router.push({
// path: '/engineeringProject/engineeringEdit',
// query: {
// id: record.id,
// disabled: String(disabled),
// },
// });
// } else if (record.planType === '承建') {
// router.push({
// path: '/engineeringProject/constructionEdit',
// query: {
// id: record.id,
// disabled: String(disabled),
// },
// });
// } else if (record.planType === '储备') {
// router.push({
// path: '/engineeringProject/reserveEdit',
// query: {
// id: record.id,
// disabled: String(disabled),
// },
// });
// }
} else if (record.planType === '储备') {
router.push({
path: '/engineeringProject/reserveEdit',
query: {
id: record.id,
disabled: String(disabled),
},
});
}
}
</script>
......@@ -32,9 +32,8 @@
import { inject } from 'vue';
import { router } from '@/router';
import { Tag } from 'ant-design-vue';
let detailId = inject('detailId');
console.log('性能页面的detailId', detailId);
console.log('detailId', detailId);
const [registerTable, { reload }] = useTable({
api: getListByPage,
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