Переглянути джерело

增加内业资料筛选查询

duy 9 місяців тому
батько
коміт
0dfec57f38
1 змінених файлів з 17 додано та 2 видалено
  1. 17 2
      src/views/data-fill/query.vue

+ 17 - 2
src/views/data-fill/query.vue

@@ -139,8 +139,16 @@
                                 </el-select>
                             </div>
                             <div class="ml-2 w-32">
-                                <el-select v-model="searchForm.reportNumber" clearable placeholder="上报批次">
+                                <!-- <el-select v-model="searchForm.reportNumber" clearable placeholder="上报批次">
                                     <el-option v-for="item in reportBatchData" :key="item" :label="item" :value="item" />
+                                </el-select> -->
+                                <el-select v-model="searchForm.majorDateType" clearable placeholder="资料类型">
+                                    <el-option
+                                        v-for="item in majorDataTypeOptions"
+                                        :key="item.value"
+                                        :label="item.label"
+                                        :value="item.value"
+                                    />
                                 </el-select>
                             </div>
                             <div class="ml-2 w-64">
@@ -272,6 +280,7 @@ import { eVisaTaskCheckApi } from '~api/other'
 import { toPdfPage } from '~uti/btn-auth'
 import wbsApi from '~api/data-fill/wbs'
 import website from '~src/config'
+import { getDictionaryData } from '~uti/tools'
 //变量
 const useAppState = useAppStore()
 const projectId = ref(useAppState.getProjectId)
@@ -307,10 +316,16 @@ onMounted(() => {
     getReportNumber()
     getFirstTaskStatus()
     getDictBizClassify()
+    getMajorDataTypeOptions()
     isCanDown.value = !website.localModel
     
 })
 
+//获取
+const majorDataTypeOptions = ref([])
+const getMajorDataTypeOptions = async () => {
+    majorDataTypeOptions.value = (await getDictionaryData('major_data_type', false)).filter(item => item.value !== 0)
+}
 
 const searchTreeData = ref([])
 
@@ -469,7 +484,7 @@ const getDictBizClassify = async () => {
 //搜索表单
 const searchForm = ref({
     taskStatus: null, fileUserIdAndName: null, sourceType: null, reportNumber: null, betweenTime: null,
-    queryValue: null, contractIdRelation: null, wbsId: null, current: 1, size: 20, total: 0,
+    queryValue: null, contractIdRelation: null, wbsId: null, current: 1, size: 20, total: 0, majorDateType:'',
 })