From 14d3ffb4cfa8587b3a9a3f6757896be71c551cde Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Tue, 18 Mar 2025 11:49:59 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=88=B0=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/CURD/PageSearch.vue | 6 ++-
src/views/order/index/index.vue | 49 ++++++--------------
src/views/product/indexconfig/TableThree.vue | 18 ++++---
src/views/product/indexconfig/TableTwo.vue | 18 ++++---
4 files changed, 35 insertions(+), 56 deletions(-)
diff --git a/src/components/CURD/PageSearch.vue b/src/components/CURD/PageSearch.vue
index ebc496b..d890576 100644
--- a/src/components/CURD/PageSearch.vue
+++ b/src/components/CURD/PageSearch.vue
@@ -207,9 +207,11 @@ function handleShowInput(prop: string) {
inputTagMap[prop].inputRef.focus();
});
}
-
+function setQueryParams(data: object) {
+ queryParams.orderNo = data.orderNo
+}
// 暴露的属性和方法
-defineExpose({ getQueryParams, toggleVisible });
+defineExpose({ getQueryParams, toggleVisible, setQueryParams });
diff --git a/src/views/order/index/index.vue b/src/views/order/index/index.vue
index daa2d56..13dc1e8 100644
--- a/src/views/order/index/index.vue
+++ b/src/views/order/index/index.vue
@@ -2,24 +2,12 @@
-
+
-
+
{{ returnOriginAmount(scope.row) }}
@@ -64,21 +52,13 @@
{{ scope.row[scope.prop] }}
-
+
详情
开票
-
+
结账
@@ -94,11 +74,7 @@
-
+
@@ -151,6 +127,11 @@ function returnOriginAmount(order: OrderInfoVo) {
});
return amount.toFixed(2);
}
+const routeto = useRoute();
+onMounted(() => {
+ handleQueryClick({ orderNo: routeto.query.orderNo })
+ searchRef.value?.setQueryParams({ orderNo: routeto.query.orderNo })
+})
// 新增
async function handleAddClick() {
@@ -349,7 +330,7 @@ function showdetail(row: OrderInfoVo) {
left: 36%;
padding: 18px;
- > div:first-child {
+ >div:first-child {
display: flex;
align-items: center;
justify-content: space-between;
@@ -360,7 +341,7 @@ function showdetail(row: OrderInfoVo) {
transform: translateX(-80px);
}
- > div:last-child {
+ >div:last-child {
text-align: center;
}
}
diff --git a/src/views/product/indexconfig/TableThree.vue b/src/views/product/indexconfig/TableThree.vue
index b5830f7..cf32f80 100644
--- a/src/views/product/indexconfig/TableThree.vue
+++ b/src/views/product/indexconfig/TableThree.vue
@@ -5,7 +5,11 @@
-
+
+
+ {{ scope.row.orderNo
+ }}
+
@@ -15,20 +19,14 @@
diff --git a/src/views/product/indexconfig/TableTwo.vue b/src/views/product/indexconfig/TableTwo.vue
index 8344fdd..7f8898d 100644
--- a/src/views/product/indexconfig/TableTwo.vue
+++ b/src/views/product/indexconfig/TableTwo.vue
@@ -5,7 +5,11 @@
-
+
+
+ {{ scope.row.orderNo
+ }}
+
@@ -15,20 +19,14 @@