From af4f45eaa2703ecf991bd10f07f6df179f2677d9 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 19 十一月 2025 10:04:45 +0800
Subject: [PATCH] Merge branch 'refs/heads/yyb'

---
 src/pages/production/list/index.vue |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/src/pages/production/list/index.vue b/src/pages/production/list/index.vue
index e64a901..79b8d0e 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,15 +27,20 @@
 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();
 const map = reactive({
   deviceModel: "deviceModel",
   model: "model",
+  systemNo: "systemNo",
   totalAmount: "totalAmount",
   amount: "amount",
   unAmount: "unAmount",
+  unit: "unit",
 });
 const props = defineProps({
   api: {
@@ -45,12 +51,17 @@
     type: String,
     default: "",
   },
+  model: {
+    type: String,
+    default: "",
+  },
 });
 
 const emits = defineEmits(["ok"]);
 const list = ref<any[]>([]);
 
 const toDetail = (id: number, type: string) => {
+  // toast.show("鐐瑰嚮鍗$墖");
   if (type == "鎷変笣") {
     uni.navigateTo({
       url: `/pages/production/detail/wireDetail?id=${id}`,
@@ -63,22 +74,28 @@
 };
 
 const getList = async (pageNo: number, pageSize: number) => {
-  const { code, data } = await props.api({
+  const params: any = {
     userName: userInfo.value.userName,
     state: props.state,
     current: pageNo,
     size: pageSize,
-  });
+  };
+  if (props.model) {
+    params.model = props.model;
+  }
+  const { code, data } = await props.api(params);
   if (code == 200) {
     if (data.type == "缁炵嚎") {
       map.deviceModel = "deviceModel";
       map.model = "model";
+      map.systemNo = "systemNo";
       map.totalAmount = "totalLength";
       map.amount = "length";
       map.unAmount = "unLength";
     } else if (data.type == "鎷変笣") {
       map.deviceModel = "deviceModel";
       map.model = "model";
+      map.systemNo = "systemNo";
       map.totalAmount = "totalAmount";
       map.amount = "amount";
       map.unAmount = "unAmount";
@@ -95,6 +112,6 @@
 
 <style lang="scss" scoped>
 .card_box {
-  height: calc(100vh - 140px);
+  height: calc(100vh - 120px);
 }
 </style>

--
Gitblit v1.9.3