@@ -95,7 +97,8 @@ const formData = reactive({
"remark": "",
"annex": [],
project_name: "",
- approve_detail: {}
+ approve_detail: {},
+ approve_id: 0,
})
const flowFn = (e: any) => {
diff --git a/src/views/project_cost_adjustment/index.vue b/src/views/project_cost_adjustment/index.vue
index c3bec63..0d08d2c 100644
--- a/src/views/project_cost_adjustment/index.vue
+++ b/src/views/project_cost_adjustment/index.vue
@@ -51,7 +51,7 @@
-
+
@@ -115,6 +115,11 @@ const handleDelete = async (id: number | any[]) => {
await apiProjectCostAdjustmentDelete({ id })
getLists()
}
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handleEdit({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_cost_budget/edit.vue b/src/views/project_cost_budget/edit.vue
index 439a36f..73af8f3 100644
--- a/src/views/project_cost_budget/edit.vue
+++ b/src/views/project_cost_budget/edit.vue
@@ -94,6 +94,8 @@
+
+
@@ -162,7 +164,8 @@ const formData = reactive({
"remark": ""
}
],
- approve_detail: {}
+ approve_detail: {},
+ approve_id: 0,
})
const flowFn = (e: any) => {
formData.approve_detail = e
diff --git a/src/views/project_cost_budget/index.vue b/src/views/project_cost_budget/index.vue
index 5a26c73..d330435 100644
--- a/src/views/project_cost_budget/index.vue
+++ b/src/views/project_cost_budget/index.vue
@@ -119,6 +119,11 @@ const handleDelete = async (id: number | any[]) => {
await apiProjectCostBudgetDelete({ id })
getLists()
}
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handleEdit({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_equipment_budget/edit.vue b/src/views/project_equipment_budget/edit.vue
index 30619a8..8c614e2 100644
--- a/src/views/project_equipment_budget/edit.vue
+++ b/src/views/project_equipment_budget/edit.vue
@@ -95,6 +95,8 @@
+
+
@@ -172,7 +174,8 @@ const formData = reactive({
"remark": ""
}
],
- approve_detail: {}
+ approve_detail: {},
+ approve_id: 0
})
const flowFn = (e: any) => {
formData.approve_detail = e
diff --git a/src/views/project_equipment_budget/index.vue b/src/views/project_equipment_budget/index.vue
index c58965d..fad291f 100644
--- a/src/views/project_equipment_budget/index.vue
+++ b/src/views/project_equipment_budget/index.vue
@@ -54,7 +54,7 @@
-
+
@@ -119,6 +119,11 @@ const handleDelete = async (id: number | any[]) => {
await apiProjectEquipmentBudgetDelete({ id })
getLists()
}
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handleEdit({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_expense_reimbursement/index.vue b/src/views/project_expense_reimbursement/index.vue
index 1c48bba..42545b8 100644
--- a/src/views/project_expense_reimbursement/index.vue
+++ b/src/views/project_expense_reimbursement/index.vue
@@ -55,7 +55,7 @@
-
+
@@ -123,7 +123,11 @@ const handleDelete = async (id: number | any[]) => {
await apiProjectExpenseReimbursementDelete({ id })
getLists()
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ // handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_labor_budget/index.vue b/src/views/project_labor_budget/index.vue
index a1cfc9e..ec85133 100644
--- a/src/views/project_labor_budget/index.vue
+++ b/src/views/project_labor_budget/index.vue
@@ -122,7 +122,11 @@ const handleDelete = async (id: number | any[]) => {
await apiProjectLaborBudgetDelete({ id })
getLists()
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_loan_apply/index.vue b/src/views/project_loan_apply/index.vue
index eec56c2..a2aab0e 100644
--- a/src/views/project_loan_apply/index.vue
+++ b/src/views/project_loan_apply/index.vue
@@ -128,7 +128,11 @@ const handleDelete = async (id: number | any[]) => {
await apiProjectLoanApplyDelete({ id })
getLists()
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ // handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_material_budget/index.vue b/src/views/project_material_budget/index.vue
index 44bb9c1..0020a1c 100644
--- a/src/views/project_material_budget/index.vue
+++ b/src/views/project_material_budget/index.vue
@@ -7,7 +7,8 @@
-
+
@@ -23,7 +24,8 @@
新增
-
+
删除
@@ -44,7 +46,8 @@
编辑
-
+
删除
@@ -137,7 +140,11 @@ const handledetail = async (data: any) => {
detailRef.value?.setFormData(res)
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_settlement/index.vue b/src/views/project_settlement/index.vue
index ef0fafc..1d2442e 100644
--- a/src/views/project_settlement/index.vue
+++ b/src/views/project_settlement/index.vue
@@ -136,7 +136,11 @@ const handledetail = async (data: any) => {
detailRef.value?.open()
detailRef.value?.setFormData(res)
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_subcontract_settlement/index.vue b/src/views/project_subcontract_settlement/index.vue
index b48bbf5..2335005 100644
--- a/src/views/project_subcontract_settlement/index.vue
+++ b/src/views/project_subcontract_settlement/index.vue
@@ -137,7 +137,11 @@ const handledetail = async (data: any) => {
detailRef.value?.setFormData(res)
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_subpackage_budget/index.vue b/src/views/project_subpackage_budget/index.vue
index 0075053..2c127a6 100644
--- a/src/views/project_subpackage_budget/index.vue
+++ b/src/views/project_subpackage_budget/index.vue
@@ -125,7 +125,11 @@ const handledetail = async (data: any) => {
detailRef.value?.setFormData(res)
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_total_budget/index.vue b/src/views/project_total_budget/index.vue
index 8b69bd8..50ad7ec 100644
--- a/src/views/project_total_budget/index.vue
+++ b/src/views/project_total_budget/index.vue
@@ -160,7 +160,11 @@ const handledetail = async (data: any) => {
detailRef.value?.open()
detailRef.value?.setFormData(res)
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_travel_reimbursement/index.vue b/src/views/project_travel_reimbursement/index.vue
index 0abdc12..fdbbd37 100644
--- a/src/views/project_travel_reimbursement/index.vue
+++ b/src/views/project_travel_reimbursement/index.vue
@@ -62,7 +62,7 @@
-
+
@@ -132,6 +132,11 @@ const handleDelete = async (id: number | any[]) => {
getLists()
}
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ // handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/project_trip_apply/index.vue b/src/views/project_trip_apply/index.vue
index 311620d..95f5bda 100644
--- a/src/views/project_trip_apply/index.vue
+++ b/src/views/project_trip_apply/index.vue
@@ -136,6 +136,11 @@ const handleDelete = async (id: number | any[]) => {
await apiProjectTripApplyDelete({ id })
getLists()
}
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ // handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/recordsPayment/index.vue b/src/views/recordsPayment/index.vue
index 672b153..dd86dc3 100644
--- a/src/views/recordsPayment/index.vue
+++ b/src/views/recordsPayment/index.vue
@@ -143,7 +143,11 @@ const handledetail = async (data: any) => {
detailRef.value?.open()
detailRef.value?.setFormData(res)
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/refund/index.vue b/src/views/refund/index.vue
index 9b52203..f12fe3d 100644
--- a/src/views/refund/index.vue
+++ b/src/views/refund/index.vue
@@ -144,7 +144,11 @@ const handledetail = async (data: any) => {
detailRef.value?.setFormData(res)
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/refundbidDeposit/index.vue b/src/views/refundbidDeposit/index.vue
index 24dfcb8..955773c 100644
--- a/src/views/refundbidDeposit/index.vue
+++ b/src/views/refundbidDeposit/index.vue
@@ -141,7 +141,11 @@ const handledetail = async (data: any) => {
detailRef.value?.setFormData(res)
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/remittance/index.vue b/src/views/remittance/index.vue
index 80a777b..077bdc1 100644
--- a/src/views/remittance/index.vue
+++ b/src/views/remittance/index.vue
@@ -153,7 +153,11 @@ const handledetail = async (data: any) => {
detailRef.value?.setFormData(res)
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handledetail({ id: route.query.listId })
+}
getLists()
diff --git a/src/views/subcontracting_contract_negotiation/index.vue b/src/views/subcontracting_contract_negotiation/index.vue
index caad473..7d48a1f 100644
--- a/src/views/subcontracting_contract_negotiation/index.vue
+++ b/src/views/subcontracting_contract_negotiation/index.vue
@@ -147,7 +147,11 @@ const handledetail = async (data: any) => {
detailRef.value?.setFormData(res)
}
-
+import { useRoute } from "vue-router";
+const route = useRoute()
+if (route.query?.listId) {
+ handledetail({ id: route.query.listId })
+}
getLists()