Commit d70dbaec authored by mengzixuan's avatar mengzixuan

feat: (工程投资计划,已竣工计划): 加填报校验

parent c957fae4
......@@ -72,6 +72,8 @@
import yearModal from '@/components/yearModal.vue';
import { useDrawer } from '@/components/Drawer';
import { useModal } from '@/components/Modal';
const { createMessage } = useMessage();
const { error } = createMessage;
const [register, { openModal: openModal, closeModal: closeModal}] = useModal();
import { columns, searchFormSchema } from './data';
import { useRouter } from 'vue-router';
......@@ -79,6 +81,7 @@
import { deleteItem, auditItem, selectCount } from '@/api/project/completed';
import {onMounted} from "vue";
import {getDepartmentList} from "@/api/project/settlementManage";
import {useMessage} from "@/hooks/web/useMessage";
defineOptions({ name: 'Performance' });
......@@ -111,7 +114,7 @@
async function handleNew(e) {
console.log('eeee', e);
let res = await selectCount({ filingcycle: e.year });
let res = await selectCount({ filingCycle: e.year });
if (res == true) {
closeModal();
push({
......
......@@ -82,6 +82,9 @@
import { router } from '@/router';
import {onMounted, ref} from "vue";
import {getDepartmentList} from "@/api/project/settlementManage";
import {useMessage} from "@/hooks/web/useMessage";
const { createMessage } = useMessage();
const { error } = createMessage;
defineOptions({ name: 'EngineeringProject' });
const types = ref('');
......@@ -176,7 +179,7 @@
async function handleNew(e){
const data = {
filingcycle: e.year,
filingCycle: e.year,
planType: types.value === 'engineering' ? '工程' : types.value === 'construction' ? '承建' : '储备',
}
console.log('data', data);
......
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