|
|
@ -7,7 +7,7 @@ |
|
|
|
type="link" |
|
|
|
@click="showAuditModal(record.id)" |
|
|
|
v-if=" |
|
|
|
record.handleResult == '待处理' && (roleList[0] != 'yunwei' || roleList[0] != 'yezhu') |
|
|
|
record.handleResult == '待处理' && (!roleList.includes('yunwei') || !roleList.includes('yezhu') ) |
|
|
|
" |
|
|
|
>审核</a-button |
|
|
|
> |
|
|
@ -23,7 +23,7 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
import { PageWrapper } from '@/components/Page'; |
|
|
|
import { BasicTable, useTable } from '@/components/Table'; |
|
|
|
import { list, getProjectInfo } from './api'; |
|
|
|
import { list, getContractInfo } from './api'; |
|
|
|
import { formSchemas, columns } from './data'; |
|
|
|
import auditModal from './auditModal.vue'; |
|
|
|
import detailDrawer from './detailDrawer.vue'; |
|
|
@ -67,20 +67,20 @@ |
|
|
|
const showDrawer = (id: any) => { |
|
|
|
detailDrawerRef.value.showDrawer(id); |
|
|
|
}; |
|
|
|
// const projectOptions = ref([]); |
|
|
|
// const getProjectOptions = async () => { |
|
|
|
// const res = await getProjectInfo(); |
|
|
|
// res.forEach((i: any) => { |
|
|
|
// i.value = i.projectName; |
|
|
|
// i.label = i.projectName; |
|
|
|
// }); |
|
|
|
// projectOptions.value = res; |
|
|
|
// formSchemas[0].componentProps.options = projectOptions.value; |
|
|
|
// }; |
|
|
|
// const getOptions = () => { |
|
|
|
// getProjectOptions(); |
|
|
|
// }; |
|
|
|
// getOptions(); |
|
|
|
const contractOptions = ref([]); |
|
|
|
const getContractOptions = async () => { |
|
|
|
const res = await getContractInfo(); |
|
|
|
res.forEach((i: any) => { |
|
|
|
i.value = i.contractName; |
|
|
|
i.label = i.contractName; |
|
|
|
}); |
|
|
|
contractOptions.value = res; |
|
|
|
formSchemas[0].componentProps.options = contractOptions.value; |
|
|
|
}; |
|
|
|
const getOptions = () => { |
|
|
|
getContractOptions(); |
|
|
|
}; |
|
|
|
getOptions(); |
|
|
|
onActivated(() => { |
|
|
|
reload(); |
|
|
|
}); |
|
|
|