|
|
@@ -147,7 +147,7 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { ref, reactive, computed, onMounted } from 'vue';
|
|
|
-import { useRouter } from 'vue-router';
|
|
|
+import { useRouter, useRoute } from 'vue-router';
|
|
|
import { Search, Document, User, ArrowRight, Picture, ArrowUp, ArrowDown } from '@element-plus/icons-vue';
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
|
import { PageTitle, StatusTabs } from '@/components';
|
|
|
@@ -158,6 +158,7 @@ const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const { complaints_suggestion_type } = toRefs<any>(proxy?.useDict('complaints_suggestion_type'));
|
|
|
|
|
|
const router = useRouter();
|
|
|
+const route = useRoute();
|
|
|
|
|
|
const activeMainTab = ref('myAudit');
|
|
|
const activeStatusTab = ref('all');
|
|
|
@@ -368,6 +369,12 @@ const handleStatusTabChange = () => {
|
|
|
};
|
|
|
|
|
|
onMounted(() => {
|
|
|
+ // 接收路由参数orderNo并赋值给keyword
|
|
|
+ const orderNo = route.query.orderNo as string;
|
|
|
+ if (orderNo) {
|
|
|
+ queryParams.keyword = orderNo;
|
|
|
+ }
|
|
|
+
|
|
|
loadDeptTree();
|
|
|
loadOrderList();
|
|
|
loadCheckOrderIds();
|