u
This commit is contained in:
1 parent
87d63b6542
commit
aa813c9649
4 files changed
+11
-39
No files matched your search
@@ -14,6 +14,8 @@ const form = ref({
|
||||
boxImageUrl: '',
|
||||
})
|
||||
|
||||
const otherImages = ref([])
|
||||
|
||||
function handleChooseBox() {
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
@@ -23,6 +25,11 @@ function handleChooseBox() {
|
||||
|
||||
boxImage.value = tempFile.path
|
||||
|
||||
toast.loading('OCR识别中,请稍等 . . .', {
|
||||
overlay: true,
|
||||
transparent: false,
|
||||
})
|
||||
|
||||
imageCompress(tempFile.path).then((compressRes) => {
|
||||
uploadFileToAliyun(compressRes.path, tempFile.name, 'image').then((res) => {
|
||||
if (res.url) {
|
||||
@@ -30,11 +37,6 @@ function handleChooseBox() {
|
||||
|
||||
ocrFinish.value = false
|
||||
|
||||
toast.loading('OCR识别中,请稍等 . . .', {
|
||||
overlay: true,
|
||||
transparent: false,
|
||||
})
|
||||
|
||||
recognizeOcrBoxApi({
|
||||
fileUrl: form.value.boxImageUrl,
|
||||
}).then((ocrRes) => {
|
||||
@@ -171,7 +173,10 @@ function handleDeleteBoxImage() {
|
||||
</sar-tag>
|
||||
</view>
|
||||
<view class="step-content">
|
||||
<sar-upload />
|
||||
<sar-upload
|
||||
v-model="otherImages"
|
||||
multiple
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -544,21 +544,6 @@ function handleShowBatchCopyDialog() {
|
||||
<el-checkbox v-model="row.b_canuse" true-value="1" false-value="0" />
|
||||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column
|
||||
v-if="showPasswordRow"
|
||||
field="b_password"
|
||||
title="密码"
|
||||
align="center"
|
||||
sortable
|
||||
width="100"
|
||||
:edit-render="{
|
||||
autoFocus: true,
|
||||
}"
|
||||
>
|
||||
<template #edit="{ row }">
|
||||
<el-input v-model="row.b_password" size="small" />
|
||||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column
|
||||
field="b_bz"
|
||||
title="备注"
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
<script lang="js" setup>
|
||||
const router = useRouter();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="">
|
||||
test-detail
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -1,7 +0,0 @@
|
||||
<script lang="js" setup></script>
|
||||
|
||||
<template>
|
||||
<div class=""></div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
Reference in new issue
Block a user