>()
// 是否显示编辑框
const showEdit = ref(false)
+const loading = ref(false)
+const queryCostProject = async (query: string) => {
+ loading.value = true
+ const projectList = await apiCostProjectDatas({
+ name: query ?? ''
+ })
+ optionsData.projectList = projectList
+ loading.value = false
+}
+
+
+const { optionsData } = useDictOptions<{
+ projectList: any[]
+}>({
+ projectList: {
+ api: apiCostProjectDatas,
+ }
+})
// 查询条件
const queryParams = reactive({
num: '',
- project_name: '',
- project_num: '',
+ project_id: '',
+ wt_unit: '',
+ jsdw: '',
})
// 选中数据
From 9563fadfb9766ecb2be8053811100640b3a68f62 Mon Sep 17 00:00:00 2001
From: weiz <736250432@qq.com>
Date: Thu, 14 Mar 2024 10:41:49 +0800
Subject: [PATCH 2/2] update
---
src/views/data_report_course/index.vue | 11 +++--------
src/views/data_report_information/index.vue | 9 +--------
src/views/data_report_ledger/index.vue | 6 ++++--
3 files changed, 8 insertions(+), 18 deletions(-)
diff --git a/src/views/data_report_course/index.vue b/src/views/data_report_course/index.vue
index f3562f1..cf01ac0 100644
--- a/src/views/data_report_course/index.vue
+++ b/src/views/data_report_course/index.vue
@@ -2,16 +2,12 @@
-
-
-
-
-
+
+
-
查询
重置
@@ -23,8 +19,8 @@
-
+
@@ -66,7 +62,6 @@ import { project_trace } from '@/api/data_report'
// 查询条件
const queryParams = reactive({
contract_name: "",
- project_num: "",
project_name: "",
})
diff --git a/src/views/data_report_information/index.vue b/src/views/data_report_information/index.vue
index 07da989..af21e85 100644
--- a/src/views/data_report_information/index.vue
+++ b/src/views/data_report_information/index.vue
@@ -5,12 +5,6 @@
-
-
-
-
-
-
@@ -28,9 +22,9 @@
+
-
@@ -69,7 +63,6 @@ import { cost_project_report } from '@/api/data_report'
// 查询条件
const queryParams = reactive({
project_name: "",
- project_num: "",
contract_name: "",
aunit: ""
})
diff --git a/src/views/data_report_ledger/index.vue b/src/views/data_report_ledger/index.vue
index 4693724..b14ef2c 100644
--- a/src/views/data_report_ledger/index.vue
+++ b/src/views/data_report_ledger/index.vue
@@ -8,6 +8,9 @@
+
+
+
@@ -35,7 +38,7 @@
:value="row.business_nature" />
-
+
@@ -89,4 +92,3 @@ const { pager, getLists, resetParams, resetPage } = usePaging({
getLists()
-