From 1e5646aadae902d9f9043cc0d79395bf6b06a38c Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期一, 21 四月 2025 14:46:59 +0800
Subject: [PATCH] feat: 完成框架

---
 src/pages/production/wire/report/wire.vue |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/src/pages/production/wire/report/wire.vue b/src/pages/production/wire/report/wire.vue
index a85dbac..2416d38 100644
--- a/src/pages/production/wire/report/wire.vue
+++ b/src/pages/production/wire/report/wire.vue
@@ -1,7 +1,9 @@
 <template>
   <view class="page pt-2">
-    <CardTitle title="鎶ュ伐淇℃伅" :hideAction="true" @action="addReport" />
-    <view class="list">
+    <z-paging ref="paging" refresher-only class="list">
+      <template #top>
+        <CardTitle title="鎶ュ伐淇℃伅" :hideAction="true" :full="false" @action="addReport" />
+      </template>
       <wd-card v-for="(item, index) in 6" type="rectangle" custom-class="round">
         <template #title>
           <view class="flex justify-between">
@@ -14,9 +16,12 @@
           </view>
         </template>
         <ProductionCard :data="cardAttr" />
+        <template #footer>
+          <wd-button size="small" plain @click="toCheck">鑷</wd-button>
+        </template>
       </wd-card>
       <wd-loadmore custom-class="loadmore" state="loading" />
-    </view>
+    </z-paging>
 
     <wd-popup v-model="dialog.visible" position="bottom" custom-class="yl-popup">
       <view class="action px-3">
@@ -33,6 +38,7 @@
 import WireForm from "./wireForm.vue";
 import { useToast } from "wot-design-uni";
 import ProductionCard from "../../components/ProductionCard.vue";
+import zPaging from "@/components/z-paging/z-paging.vue";
 
 const toast = useToast();
 const dialog = reactive({
@@ -76,7 +82,7 @@
 
 const toEdit = () => {
   uni.navigateTo({
-    url: "/pages/production/report/wireEdit",
+    url: "/pages/production/wire/report/wireEdit",
   });
 };
 
@@ -93,6 +99,12 @@
   toast.show("鍙栨秷");
   dialog.visible = false;
 };
+
+const toCheck = () => {
+  uni.navigateTo({
+    url: "/pages/production/wire/selfInspect/index",
+  });
+};
 </script>
 
 <style lang="scss" scoped>
@@ -100,9 +112,8 @@
   background: #f3f9f8;
 
   .list {
-    height: calc(100vh - 120px);
     margin: 12px;
-    overflow: scroll;
+    background: #f3f9f8;
 
     :deep() {
       .round {

--
Gitblit v1.9.3