From daede3be8445e09aa261e1362b5a88bf7bb9d5ec Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期五, 21 三月 2025 17:33:31 +0800
Subject: [PATCH] 1.新增照片上传功能 2.新增图片配置

---
 H5/LLJ/Add.aspx |  102 ++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 84 insertions(+), 18 deletions(-)

diff --git a/H5/LLJ/Add.aspx b/H5/LLJ/Add.aspx
index cd791d6..6e29016 100644
--- a/H5/LLJ/Add.aspx
+++ b/H5/LLJ/Add.aspx
@@ -233,6 +233,25 @@
                 padding: 8px 12px;
             }
 
+            /* 鍥剧墖涓婁紶澶у皬 */
+            .van-uploader__preview-image {
+              width: 80px;
+              height: 80px;
+              object-fit: cover;
+            }
+            .van-uploader__upload{
+              width: 80px;
+              height: 80px;
+            }
+            .uploader-container {
+              height: auto;
+              overflow-y: auto;
+              -webkit-overflow-scrolling: touch; /* 娴佺晠婊氬姩锛坕OS锛� */
+            }
+            .van-uploader__preview-delete-icon{
+                    font-size: 1.8em;
+            }
+
         </style>
 </asp:Content>
 <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
@@ -296,17 +315,56 @@
                   </template>
                 </van-field>
               <van-field label="鏁伴噺" colon="true" v-model="formData.fcovertQty" readonly ></van-field>
-              <van-field label="涓嶅悎鏍兼弿杩�" v-if='formData.fcheckResu == "涓嶅悎鏍�"' colon="true" v-model="formData.remarks" ></van-field>
-<%--              <van-field label="妫�娴嬬粨鏋�" colon="true" v-model="formData.fcheckResu" readonly ></van-field>--%>
-<%--                <van-field label="妫�娴嬬粨鏋�" colon="true" readonly >
-                   <template #input>
-                       <van-tag round v-if="formData.fcheckResu === '涓嶅悎鏍�'" type="danger">涓嶅悎鏍�</van-tag>
-                       <van-tag round v-else-if="formData.fcheckResu === '妫�楠屼腑'" type="warning">妫�楠屼腑</van-tag>
-                       <van-tag round v-else type="success">鍚堟牸</van-tag>
-                   </template>
-                </van-field>--%>
+              <van-field label="涓嶅悎鏍兼弿杩�"   v-if='formData.fcheckResu == "涓嶅悎鏍�"' colon v-model="remarks" readonly class="wrap-field"> 
+                  <template #input>
+                      <div class="wrap-content">{{ remarks }}</div>
+                    </template>
+                  <template #button>
+                    <van-tag type="primary" style="font-size:15px" @click="updateRemarks(formData.guid)">杈撳叆</van-tag>
+                  </template>
+              </van-field>
+<%--            <van-field
+                v-if='formData.fcheckResu == "涓嶅悎鏍�"' colon="true"
+                v-model="formData.remarks"
+                rows="2"
+                autosize
+                label="涓嶅悎鏍兼弿杩�"
+                type="textarea"
+                maxlength="50"
+                placeholder="璇疯緭鍏ヤ笉鍚堟牸鎻忚堪"
+                show-word-limit
+            />--%>
+                            <!-- 涓嶅悎鏍艰〃杩拌緭鍏� -->
+            <van-dialog v-model="showDialog" title="涓嶅悎鏍兼弿杩�" :show-cancel-button="false"  @confirm="remarksConfirm">
+              <van-field
+                v-model="remarks"
+                rows="5"
+                autosize
+                type="textarea"
+                maxlength="500"
+                placeholder="璇疯緭鍏ヤ笉鍚堟牸鎻忚堪"
+                show-word-limit
+            />
+           </van-dialog>
             </van-cell-group>
         </div>
+     <!-- 鏂瑰紡 -->
+             <div class="uploader-container">
+  <!-- 浣跨敤 field 鏍峰紡鍖呰9 -->
+  <div class="van-cell van-field" style="padding: 10px 16px">
+    <!-- 宸︿晶鏍囩 -->
+    <div class="van-field__label" style="width: 90px">鍥剧墖涓婁紶</div>
+    
+    <!-- 鍙充晶涓婁紶鍖哄煙 -->
+    <div class="van-field__body" style="flex: 1">
+      <van-uploader 
+        v-model="fileList" 
+        :after-read="afterRead"
+        style="padding: 8px 0"
+      />
+    </div>
+  </div>
+</div>  
 <%--            <van-button :loading="ttrre" type="info" loading-text="鍔犺浇涓�..." v-if="!isShowTable && formData.fsubmit == 0" @click="submit">妫�楠屾彁浜�</van-button>
             <van-button type="danger" v-if="!isShowTable && formData.fsubmit == 0" @click="removeXJ">閲嶆柊鍔犺浇椤圭洰</van-button>--%>
 <%--            <van-button :loading="ttrre"  type="info" loading-text="鍔犺浇涓�..."  @click="submit">妫�楠屾彁浜�</van-button>
@@ -364,6 +422,7 @@
               height: '100%' ,
               boxShadow: '-2px 0 12px rgba(0, 0, 0, 0.1)'
               }"
+         @click-close-icon ="init"
         >
           <!-- 寮瑰嚭鍐呭 -->
           <div  class="content-wrapper-jymx">
@@ -414,7 +473,7 @@
                                            :ref="'okValue_' + tabActive"
                                           v-model="okValue"
                                           class="si-input-field"
-                                          placeholder="璇疯緭鍏K鏁伴噺"
+                                          placeholder="杈撳叆OK鏁�"
                                           :border="false"
                                           @keyup.enter.native="getInputOK"
                                             @input="handleNumberInput1"
@@ -434,7 +493,7 @@
                                             :ref="'ngValue_' + tabActive"
                                           v-model="ngValue"
                                           class="si-input-field"
-                                          placeholder="璇疯緭鍏G鏁伴噺"
+                                          placeholder="杈撳叆NG鏁�"
                                           :border="false"
                                          @keyup.enter.native="getInputNG"
                                             @input="handleNumberInput2"
@@ -477,7 +536,7 @@
                                   <van-field
                                       :ref="'inputValue' + tabActive"
                                     v-model="inputValue"
-                                    placeholder="璇疯緭鍏�"
+                                    placeholder="璇疯緭鍏ョ壒寰佸��"
                                     :border="false"
                                     class="si-input-field"
                                     @input="handleNumberInput3"
@@ -487,21 +546,22 @@
                               </div>
                     </template>
                             <van-row type="flex" justify="center">
-                                 <van-col span="10" center class="text-left padding-left">妫�楠岄」鐩�</van-col>
+                                 <van-col span="6">鏍锋湰闆�</van-col>
                                 <van-col span="6">鏍锋湰鍊�</van-col>
-                                <van-col span="8">鍒ゅ畾鏍囧織</van-col>
+                                <van-col span="6">鍒ゅ畾鏍囧織</van-col>
+                                <van-col span="6">鎿嶄綔</van-col>
                             </van-row>
                             <van-row  v-for="(item,index) in tableMxData.list2" :key="index"  type="flex" justify="left">
         
-                                 <van-col span="10" center class="text-left padding-left" >
+                                 <van-col span="6"  >
                                      <van-cell center
-                                      center :title="item.fcheckItemd5" @click="togglePopup(index)"></van-cell>
+                                      center :title="item.fcheckItem" @click="togglePopup(index)"></van-cell>
                                 </van-col>
                                 <van-col span="6" >
                                     <van-cell center 
                                         center :title="item.fcheckResu"></van-cell>
                                 </van-col>
-                                <van-col center span="8" >
+                                <van-col center span="6" >
                                     <van-cell center
                                       center v-if="item.fstand === '鈭�'">
                                       <van-tag round plain type="success" style="font-size:15px">鍚堟牸</van-tag>   
@@ -514,6 +574,9 @@
                                         center v-else >
                                         <van-tag round plain type="warning" style="font-size:15px">妫�楠屼腑</van-tag>   
                                       </van-cell>
+                                </van-col>
+                                <van-col center span="6" >
+                                    <van-tag type="danger" style="font-size:15px" @click="deleteDetail13(item.guid)">鍒犻櫎</van-tag> 
                                 </van-col>
                           </van-row>
                     
@@ -547,11 +610,14 @@
               >鍒锋柊閲嶅仛</van-button>
             </div>
           </van-popup>
+
+
+
 </asp:Content>
 <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
     <comloading  v-if="isLoading"></comloading>
   <%--<comback ></comback>--%>
 </asp:Content>
 <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
- <script src="../Js/LLJ/Add.js?<%=11993 %>"></script>
+ <script src="../Js/LLJ/Add.js?<%=119993 %>"></script>
 </asp:Content>

--
Gitblit v1.9.3