Commit 6db890b0 authored by ccc2wdd's avatar ccc2wdd

变更签证,bug修改

parent 778e1b0a
...@@ -83,6 +83,7 @@ export const searchFormSchema: FormSchema[] = [ ...@@ -83,6 +83,7 @@ export const searchFormSchema: FormSchema[] = [
field: 'companyName', field: 'companyName',
label: '', label: '',
component: 'Select', component: 'Select',
required: false,
componentProps: { componentProps: {
options: [ options: [
{ label: '公司名称1', value: '1' }, { label: '公司名称1', value: '1' },
......
...@@ -8,14 +8,14 @@ ...@@ -8,14 +8,14 @@
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'status'"> <template v-if="column.key === 'status'">
<Tag color="warning" v-if="record.status == '0'"> 未审核</Tag> <Tag color="warning" v-if="record.status === '0'"> 未审核</Tag>
</template> </template>
<template v-if="column.key === 'status'"> <template v-if="column.key === 'status'">
<Tag color="success" v-if="record.status == '1'"> 已审核</Tag> <Tag color="success" v-if="record.status === '1'"> 已审核</Tag>
</template> </template>
<template v-if="column.key === 'action'" > <template v-if="column.key === 'action'">
<TableAction <TableAction
v-if="record.status == '0'" v-if="record.status === '0'"
:actions="[ :actions="[
{ {
label: '修改', label: '修改',
...@@ -70,24 +70,18 @@ ...@@ -70,24 +70,18 @@
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { operateType, addItemApi, addItemData } from '@/api/operations/operations'; import {addItemApi, addItemData, operateType} from '@/api/operations/operations';
import { BasicTable, useTable, TableAction } from '@/components/Table'; import {BasicTable, TableAction, useTable} from '@/components/Table';
import { useModal } from '@/components/Modal'; import {useModal} from '@/components/Modal';
import yearModal from '@/components/yearModal/yearModal.vue'; import {auditItem, checkQuarter, deleteList, getSettlementManageList,} from '@/api/changeSignatrue/changeSignatrue';
import { import {columns, searchFormSchema} from '@/views/changeSignature/changeSignatrue.data';
getSettlementManageList, import {Tag} from 'ant-design-vue';
auditItem, import {useRouter} from 'vue-router';
deleteList, import {onMounted} from 'vue';
checkQuarter, import {getDepartmentList} from '@/api/project/settlementManage';
} from '@/api/changeSignatrue/changeSignatrue'; import {useMessage} from '@/hooks/web/useMessage';
import { columns, searchFormSchema } from '@/views/changeSignature/changeSignatrue.data';
import { Tag } from 'ant-design-vue';
import { useRouter } from 'vue-router';
import { onMounted } from 'vue';
import { getDepartmentList } from '@/api/project/settlementManage';
import { useMessage } from '@/hooks/web/useMessage';
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const { push } = useRouter(); const { push } = useRouter();
const [register, { openModal: openModal, closeModal: closeModal }] = useModal(); const [register, { openModal: openModal, closeModal: closeModal }] = useModal();
...@@ -113,13 +107,14 @@ ...@@ -113,13 +107,14 @@
onMounted(async () => { onMounted(async () => {
const data = await getDepartmentList(); const data = await getDepartmentList();
searchFormSchema[2].componentProps.options = data; searchFormSchema[2].componentProps.options = data.map(item => ({
console.log(searchFormSchema[2].componentProps.options, '数据仓库'); key: item.value,
value: item.label,
label: item.label
}));
}); });
async function handleDelete(record: Recordable) { async function handleDelete(record: Recordable) {
console.log(record);
console.log(record);
let id = record.id; let id = record.id;
await deleteList({ id }); await deleteList({ id });
reload(); reload();
......
...@@ -56,8 +56,10 @@ ...@@ -56,8 +56,10 @@
import { useUserStore } from '@/store/modules/user'; import { useUserStore } from '@/store/modules/user';
import { getDepartmentList } from '@/api/project/settlementManage'; import { getDepartmentList } from '@/api/project/settlementManage';
import { downloadByData } from '@/utils/file/download'; import { downloadByData } from '@/utils/file/download';
import {dataStyleTask} from "echarts/types/src/visual/style";
const deptId = useUserStore().userInfo.deptId; const deptId = useUserStore().userInfo.deptId;
// const deptId = "764";
const APopconfirm = Popconfirm; const APopconfirm = Popconfirm;
const userStore = useUserStore(); const userStore = useUserStore();
const getUserInfo = computed(() => { const getUserInfo = computed(() => {
...@@ -294,7 +296,13 @@ ...@@ -294,7 +296,13 @@
} else { } else {
columns.value = columns2; columns.value = columns2;
} }
searchForm.value[2].componentProps.options = await getDepartmentList(); const data = await getDepartmentList();
// console.log(data);
searchForm.value[2].componentProps.options = data.map((item) => ({
key: item.value,
value: item.label,
label: item.label,
}));
getStatisticList(); getStatisticList();
}); });
......
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