From 5384750e59bbb27c54e090100429c48eaba46df0 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 20 十一月 2025 10:15:20 +0800
Subject: [PATCH] fix: 完成拉丝自检、原材料自检优化

---
 src/pages/production/wire/report/wire.vue |   49 ++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 44 insertions(+), 5 deletions(-)

diff --git a/src/pages/production/wire/report/wire.vue b/src/pages/production/wire/report/wire.vue
index e391316..fd3935b 100644
--- a/src/pages/production/wire/report/wire.vue
+++ b/src/pages/production/wire/report/wire.vue
@@ -116,10 +116,17 @@
         </view>
 
         <template #footer>
-          <view class="flex justify-start">
-            <wd-button plain size="small" type="primary" @click="openChildDialog(item)">
+          <view class="flex justify-start gap-2">
+            <wd-button
+              plain
+              size="small"
+              type="primary"
+              @click="openChildDialog(item)"
+              style="margin-right: 10px"
+            >
               鎶ュ伐绠$悊
             </wd-button>
+            <wd-button plain size="small" @click="() => toSelfInspect(item)">鑷</wd-button>
           </view>
         </template>
       </wd-card>
@@ -151,13 +158,14 @@
               label="鏉嗗寘鍙�"
               label-width="100px"
               placeholder="璇疯緭鍏ユ潌鍖呭彿"
+              type="number"
             />
             <wd-input
               v-model="newParentData.poleWeight"
               label="鏉嗛噸(kg)"
               label-width="100px"
-              type="number"
               placeholder="璇疯緭鍏ユ潌閲�"
+              type="number"
             />
             <wd-picker
               v-model="newParentData.supplier"
@@ -169,7 +177,7 @@
           </wd-cell-group>
         </view>
         <view class="dialog-footer">
-          <wd-button plain @click="closeParentDialog">鍙栨秷</wd-button>
+          <wd-button plain @click="closeParentDialog" style="margin-right: 10px">鍙栨秷</wd-button>
           <wd-button type="primary" class="ml-2" @click="handleSaveNewParent">淇濆瓨</wd-button>
         </view>
       </view>
@@ -490,6 +498,13 @@
   drawFormRef.visible = false;
 };
 
+// 璺宠浆鍒拌嚜妫�椤甸潰
+const toSelfInspect = (row: any) => {
+  uni.navigateTo({
+    url: `/pages/production/wire/selfInspect/index?wireId=${paramsId.value}&poleModel=${row.poleModel || ""}&poleNumber=${row.poleNumber || ""}`,
+  });
+};
+
 onLoad(async (options: any) => {
   paramsId.value = options.id;
   await getDetailData(options.id);
@@ -501,7 +516,7 @@
 <style lang="scss" scoped>
 .list {
   min-height: calc(100vh - 30px);
-  padding: 12px;
+  padding: 12px 4px;
   background: #f3f9f8;
 
   :deep() {
@@ -543,6 +558,30 @@
   border-radius: 12px 12px 0 0;
 }
 
+.dialog-header {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  padding: 16px;
+  border-bottom: 1px solid #e6e6e6;
+  position: sticky;
+  top: 0;
+  background: #fff;
+  z-index: 10;
+}
+
+.dialog-title {
+  font-size: 16px;
+  color: #333;
+  font-weight: 500;
+}
+
+.close-icon {
+  font-size: 20px;
+  color: #999;
+  padding: 4px;
+}
+
 .dialog-content {
   flex: 1;
   overflow-y: auto;

--
Gitblit v1.9.3