|
@@ -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)
|