From aca7aa9ce32acc4c8795342f945b027d3bc9f62a Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期二, 10 六月 2025 17:37:34 +0800
Subject: [PATCH] feat: 添加时效报工,修复扫码内存泄漏
---
src/pages/production/list/index.vue | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/pages/production/list/index.vue b/src/pages/production/list/index.vue
index e64a901..92862f8 100644
--- a/src/pages/production/list/index.vue
+++ b/src/pages/production/list/index.vue
@@ -18,6 +18,7 @@
@click="toDetail(item.id, item.type)"
/>
</z-paging>
+ <wd-toast />
</view>
</template>
@@ -26,6 +27,9 @@
import ProductCard from "@/components/product_card/index.vue";
import { useUserStore } from "@/store/modules/user";
import zPaging from "@/components/z-paging/z-paging.vue";
+import { useToast } from "wot-design-uni";
+
+const toast = useToast();
const userStore = useUserStore();
const userInfo: any = computed(() => userStore.userInfo);
const pagingRef = ref();
@@ -35,6 +39,7 @@
totalAmount: "totalAmount",
amount: "amount",
unAmount: "unAmount",
+ unit: "unit",
});
const props = defineProps({
api: {
@@ -51,6 +56,7 @@
const list = ref<any[]>([]);
const toDetail = (id: number, type: string) => {
+ toast.show("鐐瑰嚮鍗$墖");
if (type == "鎷変笣") {
uni.navigateTo({
url: `/pages/production/detail/wireDetail?id=${id}`,
@@ -95,6 +101,6 @@
<style lang="scss" scoped>
.card_box {
- height: calc(100vh - 140px);
+ height: calc(100vh - 120px);
}
</style>
--
Gitblit v1.9.3