|
@@ -168,10 +168,10 @@
|
|
|
@close="onCloseGuiInfoDrawer">
|
|
|
<template #header>
|
|
|
<div class="w-96">
|
|
|
- <el-input size="large" v-model="searchForm.queryValue" placeholder="请输入关键词检索" clearable/>
|
|
|
+ <el-input size="large" v-model="searchForm.innerSearch" placeholder="请输入关键词检索" clearable/>
|
|
|
</div>
|
|
|
<div class="ml-2">
|
|
|
- <el-button type="primary" size="large">
|
|
|
+ <el-button type="primary" size="large" @click="guiInfoSearch">
|
|
|
<HcIcon name="search-2"/>
|
|
|
<span>搜索</span>
|
|
|
</el-button>
|
|
@@ -546,7 +546,7 @@ const deltag=(item)=>{
|
|
|
}
|
|
|
//搜索表单
|
|
|
const searchForm = ref({
|
|
|
- current: 1, size: 20, total: 0, searchType:"1", listType: 1, archiveType: '', cabinetNumber: ''
|
|
|
+ current: 1, size: 20, total: 0, searchType:"1", listType: 1, archiveType: '', cabinetNumber: '', innerSearch: ''
|
|
|
})
|
|
|
//卷内文件
|
|
|
const InsearchForm = ref({
|
|
@@ -1307,6 +1307,7 @@ const tabGuiChange = (item) => {
|
|
|
|
|
|
//测试档案柜的数据
|
|
|
const guiItemData = ref([])
|
|
|
+const searchGuiId = ref('')
|
|
|
|
|
|
//柜子被点击
|
|
|
const guiInfoLoading = ref(false)
|
|
@@ -1314,6 +1315,7 @@ const isGuiInfoDrawer = ref(false)
|
|
|
const guiItemClick = async (item) => {
|
|
|
isGuiInfoDrawer.value = true
|
|
|
guiInfoLoading.value = true
|
|
|
+ searchGuiId.value = item.id
|
|
|
//处理参数
|
|
|
searchForm.value.queryValue = searchInput.value
|
|
|
for (let key in searchForm.value) {
|
|
@@ -1346,9 +1348,45 @@ const guiItemClick = async (item) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+//柜子内部搜索
|
|
|
+const guiInfoSearch = async () => {
|
|
|
+ guiInfoLoading.value = true
|
|
|
+ //处理参数
|
|
|
+ searchForm.value.queryValue = searchInput.value
|
|
|
+ for (let key in searchForm.value) {
|
|
|
+ if(searchForm.value[key] === 'all'|| searchForm.value[key] === '所有') {
|
|
|
+ searchForm.value[key] = ''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //发起请求
|
|
|
+ const { error, code, data } = await archiveQueryApi.getarchiveQueryPage({
|
|
|
+ ...searchForm.value,
|
|
|
+ cabinetNumber: searchGuiId.value,
|
|
|
+ projectId: projectId.value,
|
|
|
+ contractId:contractId.value
|
|
|
+ })
|
|
|
+ //处理返回数据
|
|
|
+ if (!error && code === 200) {
|
|
|
+ const arrData = getArrValue(data)
|
|
|
+ guiInfoData.value = arrData
|
|
|
+ if (arrData.length > 0) {
|
|
|
+ const children = getArrValue(arrData[0]?.children)
|
|
|
+ guiInfoCurKey.value = children[0]
|
|
|
+ } else {
|
|
|
+ guiInfoCurKey.value = {}
|
|
|
+ }
|
|
|
+ guiInfoLoading.value = false
|
|
|
+ } else {
|
|
|
+ guiInfoLoading.value = false
|
|
|
+ guiInfoCurKey.value = {}
|
|
|
+ guiInfoData.value = []
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
//关闭抽屉
|
|
|
const onCloseGuiInfoDrawer = () => {
|
|
|
isGuiInfoDrawer.value = false
|
|
|
+ searchForm.value.innerSearch = ''
|
|
|
}
|
|
|
|
|
|
//案卷文件数据
|