|
@@ -10,7 +10,7 @@
|
|
:class="{ active: currentTab === item['key'] }"
|
|
:class="{ active: currentTab === item['key'] }"
|
|
@click="switchTabHandle(item)"
|
|
@click="switchTabHandle(item)"
|
|
>
|
|
>
|
|
- {{ item['name'] }}
|
|
|
|
|
|
+ {{ item['name'] }}({{ item['value'] }})
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
<div class="tableBox">
|
|
<div class="tableBox">
|
|
@@ -27,7 +27,6 @@
|
|
height: '50px'
|
|
height: '50px'
|
|
}"
|
|
}"
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
- v-loading="loading"
|
|
|
|
>
|
|
>
|
|
<el-table-column v-if="currentTab === '0'" type="selection" width="55" />
|
|
<el-table-column v-if="currentTab === '0'" type="selection" width="55" />
|
|
<el-table-column label="序号" width="100" align="center">
|
|
<el-table-column label="序号" width="100" align="center">
|
|
@@ -168,16 +167,19 @@ const dataSource = ref([])
|
|
type TabType = {
|
|
type TabType = {
|
|
name: string
|
|
name: string
|
|
key: string
|
|
key: string
|
|
|
|
+ value: number
|
|
}
|
|
}
|
|
const currentTab = ref<string>('0')
|
|
const currentTab = ref<string>('0')
|
|
const tabList = ref<TabType[]>([
|
|
const tabList = ref<TabType[]>([
|
|
{
|
|
{
|
|
name: '待审核',
|
|
name: '待审核',
|
|
- key: '0'
|
|
|
|
|
|
+ key: '0',
|
|
|
|
+ value: 0
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '已审核',
|
|
name: '已审核',
|
|
- key: '1'
|
|
|
|
|
|
+ key: '1',
|
|
|
|
+ value: 0
|
|
}
|
|
}
|
|
])
|
|
])
|
|
const switchTabHandle = (item: TabType) => {
|
|
const switchTabHandle = (item: TabType) => {
|
|
@@ -193,31 +195,43 @@ const tableRef: any = ref(null)
|
|
const tableHeight: any = ref(0)
|
|
const tableHeight: any = ref(0)
|
|
const message = useMessage()
|
|
const message = useMessage()
|
|
|
|
|
|
-const loading = ref(false)
|
|
|
|
-const getProjectCheckByList = async () => {
|
|
|
|
- loading.value = true
|
|
|
|
|
|
+//待审核
|
|
|
|
+const getProjectCheckListAjax = async () => {
|
|
const result: any = await request.get(
|
|
const result: any = await request.get(
|
|
{
|
|
{
|
|
url: '/projectReport/list-check'
|
|
url: '/projectReport/list-check'
|
|
},
|
|
},
|
|
'/business'
|
|
'/business'
|
|
)
|
|
)
|
|
|
|
+ return result
|
|
|
|
+}
|
|
|
|
+const getProjectCheckByList = async () => {
|
|
|
|
+ const result: any = await getProjectCheckListAjax()
|
|
dataSource.value = result ?? []
|
|
dataSource.value = result ?? []
|
|
- loading.value = false
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
-const getProjectCheckedByList = async () => {
|
|
|
|
- loading.value = true
|
|
|
|
- const result: any = await request.get(
|
|
|
|
|
|
+const getProjectCheckByCount = async () => {
|
|
|
|
+ const result: any = await getProjectCheckListAjax()
|
|
|
|
+ result && (tabList.value[0]['value'] = result.length)
|
|
|
|
+}
|
|
|
|
+//已审核
|
|
|
|
+const getProjectCheckedListAjax = async () => {
|
|
|
|
+ return await request.get(
|
|
{
|
|
{
|
|
url: '/projectReport/list-checked'
|
|
url: '/projectReport/list-checked'
|
|
},
|
|
},
|
|
'/business'
|
|
'/business'
|
|
)
|
|
)
|
|
|
|
+}
|
|
|
|
+const getProjectCheckedByList = async () => {
|
|
|
|
+ const result: any = await getProjectCheckedListAjax()
|
|
dataSource.value = result ?? []
|
|
dataSource.value = result ?? []
|
|
- loading.value = false
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+const getProjectCheckedByCount = async () => {
|
|
|
|
+ const result: any = await getProjectCheckedListAjax()
|
|
|
|
+ result && (tabList.value[1]['value'] = result.length)
|
|
|
|
+}
|
|
|
|
+getProjectCheckByCount()
|
|
|
|
+getProjectCheckedByCount()
|
|
const passProjectReportHandle = async (data: any) => {
|
|
const passProjectReportHandle = async (data: any) => {
|
|
const result: any = await request.post(
|
|
const result: any = await request.post(
|
|
{
|
|
{
|
|
@@ -229,6 +243,8 @@ const passProjectReportHandle = async (data: any) => {
|
|
if (result) {
|
|
if (result) {
|
|
message.success('通过成功!')
|
|
message.success('通过成功!')
|
|
getProjectCheckByList()
|
|
getProjectCheckByList()
|
|
|
|
+ getProjectCheckByCount()
|
|
|
|
+ getProjectCheckedByCount()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const selections = ref<any>([])
|
|
const selections = ref<any>([])
|
|
@@ -256,6 +272,8 @@ const passBatchProjectReportHandle = async () => {
|
|
if (result) {
|
|
if (result) {
|
|
message.success('批量审核成功!')
|
|
message.success('批量审核成功!')
|
|
getProjectCheckByList()
|
|
getProjectCheckByList()
|
|
|
|
+ getProjectCheckByCount()
|
|
|
|
+ getProjectCheckedByCount()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const handleSelectionChange = (arr) => {
|
|
const handleSelectionChange = (arr) => {
|
|
@@ -289,11 +307,14 @@ const rejectProjectReportHandle = async () => {
|
|
if (result) {
|
|
if (result) {
|
|
message.success('驳回成功!')
|
|
message.success('驳回成功!')
|
|
getProjectCheckByList()
|
|
getProjectCheckByList()
|
|
|
|
+ getProjectCheckByCount()
|
|
|
|
+ getProjectCheckedByCount()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const auditorVisiabled = ref<boolean>(false)
|
|
const auditorVisiabled = ref<boolean>(false)
|
|
-const activities = ref<any[]>([])
|
|
|
|
|
|
|
|
|
|
+//审核记录
|
|
|
|
+const activities = ref<any[]>([])
|
|
const getProjectReportAuditList = async (row: { reportId: string }) => {
|
|
const getProjectReportAuditList = async (row: { reportId: string }) => {
|
|
const result: any = await request.get(
|
|
const result: any = await request.get(
|
|
{
|
|
{
|