From a9561a3189d50f0e33d693b5226ea56adda06a08 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期四, 30 十月 2025 23:07:25 +0800
Subject: [PATCH] 巡检编辑和扫码

---
 src/pages/routingInspection/detail/indexLS.vue |   98 ++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 93 insertions(+), 5 deletions(-)

diff --git a/src/pages/routingInspection/detail/indexLS.vue b/src/pages/routingInspection/detail/indexLS.vue
index 08c7ecf..ad3ccac 100644
--- a/src/pages/routingInspection/detail/indexLS.vue
+++ b/src/pages/routingInspection/detail/indexLS.vue
@@ -1,9 +1,51 @@
 <template>
+  <view class="fixed-header">
+    <view class="header-container">
+      <wd-button
+        icon="file-add"
+        :round="false"
+        size="small"
+        custom-class="add_btn"
+        @click="editList"
+        v-if="!isEdit"
+      >
+        缂栬緫
+      </wd-button>
+      <wd-button
+        icon="close"
+        type="info"
+        :round="false"
+        size="small"
+        custom-class="add_btn"
+        @click="close"
+        v-if="isEdit"
+      >
+        鍙栨秷
+      </wd-button>
+      <wd-button
+        icon="check"
+        type="success"
+        :round="false"
+        size="small"
+        custom-class="add_btn"
+        @click="saveList"
+        v-if="isEdit"
+      >
+        淇濆瓨
+      </wd-button>
+      <view class="placeholder"></view>
+      <view class="scan-wrapper" @click="openScan">
+        <wd-icon name="scan" size="24px" color="#0D867F"></wd-icon>
+      </view>
+    </view>
+  </view>
   <view class="list">
     <div class="inspection-report">
       <!-- 鍩烘湰淇℃伅妯″潡 -->
       <wd-row>
-        <text class="title">{{ "鍩烘湰淇℃伅" }}</text>
+        <view style="margin: 10rpx">
+          <text class="title">{{ "鍩烘湰淇℃伅" }}</text>
+        </view>
         <wd-col :span="24">
           <wd-form-item label="鏃ユ湡" prop="recordDate">
             {{ formatDate(detailData.fixedInfo?.recordDate) }}
@@ -40,7 +82,9 @@
       </wd-row>
       <!-- 鑷璁板綍璇︽儏妯″潡 -->
       <wd-row>
-        <text class="title">{{ "鑷璁板綍璇︽儏" }}</text>
+        <view style="margin: 10rpx">
+          <text class="title">{{ "鑷璁板綍璇︽儏" }}</text>
+        </view>
         <wd-col :span="24">
           <wd-form-item label="宸℃鍛�" prop="processInspectionUserName">
             {{ detailData.processInspectionUserName || "-" }}
@@ -54,7 +98,9 @@
       </wd-row>
       <!-- 妫�楠岀粨鏋� -->
       <wd-row>
-        <text class="title">{{ "妫�楠岀粨鏋�" }}</text>
+        <view style="margin: 10rpx">
+          <text class="title">{{ "妫�楠岀粨鏋�" }}</text>
+        </view>
         <wd-col :span="24">
           <wd-form-item label="鍗曚笣鐩村緞" prop="dia">
             {{ formatValue(detailData.inspectionResult?.dia, "mm") || "-" }}
@@ -91,7 +137,9 @@
       </wd-row>
       <!-- 宸℃缁撴灉 -->
       <wd-row v-if="detailData.processInspectionResult?.isFully">
-        <text class="title">{{ "宸℃缁撴灉" }}</text>
+        <view style="margin: 10rpx">
+          <text class="title">{{ "宸℃缁撴灉" }}</text>
+        </view>
         <wd-col :span="24">
           <wd-form-item label="閾濇潌鍓嶃�佷腑銆佸熬鏍峰搧鏄惁榻愬叏" prop="processInspectionUserName">
             <wd-tag
@@ -105,7 +153,9 @@
       </wd-row>
       <!-- 闄勪欢妯″潡 -->
       <wd-row class="attachment-section" v-if="detailData.files && detailData.files.length > 0">
-        <text class="title">{{ "闄勪欢" }}</text>
+        <view style="margin: 10rpx">
+          <text class="title">{{ "闄勪欢" }}</text>
+        </view>
         <view class="attachment-grid">
           <wd-col v-for="(file, index) in detailData.files" :key="index" class="attachment-item">
             <wd-img :width="80" :height="80" :src="file.url" @click="previewImage(file.url)">
@@ -138,6 +188,7 @@
 const detailData = ref<any>({});
 const show = ref(false);
 const previewImageUrl = ref("");
+const isEdit = ref(false);
 
 // 鐘舵�佺被鍨嬫槧灏�
 const getStatusType = (status: number) => {
@@ -233,6 +284,43 @@
 const handleClose = () => {
   show.value = false;
 };
+
+// 缂栬緫鍒楄〃
+const editList = () => {};
+
+// 鍏抽棴
+const close = () => {};
+
+// 淇濆瓨鍒楄〃
+const saveList = async () => {
+  // try {
+  //   let response;
+  //   // 淇濆瓨鍒楄〃
+  //   response = await RoutingInspectionApi.saveStrandedInspectionStructureInfo({
+  //     id: paramsId.value,
+  //     structureInfo: recordData.value.structureInfo,
+  //   });
+  //   if (response.code === 200) {
+  //     uni.showToast({
+  //       title: "淇濆瓨鎴愬姛",
+  //       icon: "success",
+  //     });
+  //     // 鍒锋柊璇︽儏鏁版嵁
+  //     getDetailData(paramsId.value, recordData.value.deviceType);
+  //   } else {
+  //     uni.showToast({
+  //       title: response.msg || "淇濆瓨澶辫触",
+  //       icon: "error",
+  //     });
+  //   }
+  // } catch (error) {
+  //   console.error("淇濆瓨鍒楄〃澶辫触:", error);
+  //   uni.showToast({
+  //     title: "淇濆瓨澶辫触",
+  //     icon: "error",
+  //   });
+  // }
+};
 </script>
 <style lang="scss" scoped>
 .list {

--
Gitblit v1.9.3