duy 9 bulan lalu
induk
melakukan
460e1fc4c1
2 mengubah file dengan 32 tambahan dan 18 penghapusan
  1. 6 2
      pages/index/index.vue
  2. 26 16
      pages/putStorage/putStorage.vue

+ 6 - 2
pages/index/index.vue

@@ -5,8 +5,12 @@
                 src="/static/safe.png"></image>
         </view>
         <view class="btn-class ">
-            	<button type="default" @click="toStorage">样品入库</button>
-                <button type="default" class="mt-10" @click="toDecation">样品检测</button>
+            	<button type="default" @click="toStorage">
+                      <uni-icons type="upload-filled"></uni-icons>
+                    样品入库</button>
+                <button type="default" class="mt-10" @click="toDecation">
+                     <uni-icons type="loop"></uni-icons>
+                    样品检测</button>
         </view>
     </view>
 </template>

+ 26 - 16
pages/putStorage/putStorage.vue

@@ -29,15 +29,32 @@
 							</uni-list>
 				</scroll-view>
               <view class="button-container" v-if="type==1">
-                   <button class="btn"  type="default" @click='startScan' v-if="isShowStartBtn" :loading="scanLoad">开始扫描</button>
-                    <button class="btn"  type="default" @click='stopScan' v-if="!isShowStartBtn">停止扫描</button>
-                    <button class="btn"  type="default" @click="toStorageClick">一键入库</button>
+
+                   <button class="btn"  type="default" @click='startScan' v-if="isShowStartBtn" :loading="scanLoad">
+                       <uni-icons type="scan"></uni-icons>
+
+                       开始扫描
+
+                   </button>
+                    <button class="btn"  type="default" @click='stopScan' v-if="!isShowStartBtn">
+                        <uni-icons type="circle-filled"></uni-icons>
+
+                        停止扫描</button>
+                    <button class="btn"  type="default" @click="toStorageClick">
+                          <uni-icons type="upload-filled"></uni-icons>
+                        一键入库</button>
               </view>
               <view class="button-container"  v-if="type==2">
-                   <button class="btn"  type="default" @click='startScan' v-if="isShowStartBtn" :loading="scanLoad">开始扫描</button>
-                    <button class="btn"  type="default" @click='stopScan' v-if="!isShowStartBtn">停止扫描</button>
-                    <button class="btn"  type="default" @click="toReport">一键生成报告</button>
-                  </view>
+                   <button class="btn"  type="default" @click='startScan' v-if="isShowStartBtn" :loading="scanLoad">
+                        <uni-icons type="scan"></uni-icons>
+                       开始扫描</button>
+                    <button class="btn"  type="default" @click='stopScan' v-if="!isShowStartBtn">
+                         <uni-icons type="circle-filled"></uni-icons>
+                        停止扫描</button>
+                    <button class="btn"  type="default" @click="toReport">
+                         <uni-icons type="upload"></uni-icons>
+                        一键生成报告</button>
+             </view>
 	</view>
 </template>
 
@@ -181,14 +198,7 @@ onUnload(()=>{
 const listArr=ref([
     {name:' 水泥(42.5级散装)',num:'SN20015678',postion:'路基、路面、桥梁、隧道'},
     {name:' 水泥(42.5级散装)',num:'SN20015678',postion:'路基、路面、桥梁、隧道'},
-    {name:' 水泥(42.5级散装)',num:'SN20015678',postion:'路基、路面、桥梁、隧道'},
-    {name:' 水泥(42.5级散装)',num:'SN20015678',postion:'路基、路面、桥梁、隧道'},
-    {name:' 水泥(42.5级散装)',num:'SN20015678',postion:'路基、路面、桥梁、隧道'},
-    {name:' 水泥(42.5级散装)',num:'SN20015678',postion:'路基、路面、桥梁、隧道'},
-    {name:' 水泥(42.5级散装)',num:'SN20015678',postion:'路基、路面、桥梁、隧道'},
-    {name:' 水泥(42.5级散装)',num:'SN20015678',postion:'路基、路面、桥梁、隧道'},
-    {name:' 水泥(42.5级散装)',num:'SN20015678',postion:'路基、路面、桥梁、隧道'},
-    {name:' 水泥(42.5级散装)',num:'SN20015678',postion:'路基、路面、桥梁、隧道'},
+
 ])
 //开始扫描
 const isShowStartBtn=ref(true)
@@ -204,7 +214,7 @@ const toStorageClick=()=>{
     }
 }
 const clearItem=(item,index)=>{
-
+    listArr.value.splice(index,1)
 }
 //一键入库
 const storageLoad=ref(false)