|
|
@@ -7,6 +7,37 @@
|
|
|
<view v-show="currentStep === 1" class="form-section">
|
|
|
<h3 class="section-title">{{ t('ImproveImmediately.Title.BasicInformation') }}</h3>
|
|
|
<uni-row class="demo-uni-row uni-row1" :gutter="20">
|
|
|
+<!-- ocr识别-->
|
|
|
+ <uni-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb-3">
|
|
|
+ ocr
|
|
|
+ <cwg-file-picker-wrapper v-model="ocrObj" :limit="1"
|
|
|
+ :fileMediatype="'all'" uploadUrl="/custom/file/upload/1" :baseUrl="updateUrl" :imageWidth="150"
|
|
|
+ :imageHeight="150" :showPreviewDelete="false" :canDelete="false" :uploadError="false"
|
|
|
+ :showProgress="false" :canChoose="true" :showError="false" :show-progress="false" disablePreview
|
|
|
+ :image-styles="imageStyle" @update:modelValue="(val) => handleFileUpdate(val, '1')"
|
|
|
+ customClass="avatar-uploader">
|
|
|
+ <view class="file-item">
|
|
|
+ <image v-if="!isPdf(fileListID1.path)" class="avatar" :src="updateUrl + (fileListID1.path)">
|
|
|
+ </image>
|
|
|
+ <view v-else>
|
|
|
+ <image class="icon" :src="icon_doc" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </cwg-file-picker-wrapper>
|
|
|
+ <!-- <view v-else>-->
|
|
|
+ <!-- <view class="file-item">-->
|
|
|
+ <!-- <image-->
|
|
|
+ <!-- v-if="!isPdf(fileListID1.path)"-->
|
|
|
+ <!-- class="avatar"-->
|
|
|
+ <!-- :src="updateUrl + fileListID1.path"-->
|
|
|
+ <!-- ></image>-->
|
|
|
+ <!-- <view v-else>-->
|
|
|
+ <!-- <image class="icon" :src="icon_doc" />-->
|
|
|
+ <!-- </view>-->
|
|
|
+
|
|
|
+ <!-- </view>-->
|
|
|
+ <!-- </view>-->
|
|
|
+ </uni-col>
|
|
|
<!-- 客户类型 -->
|
|
|
<uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
|
|
|
<uni-forms-item :label="t('ImproveImmediately.Label.CustomerType')">
|
|
|
@@ -692,6 +723,7 @@ const divActiveHelf = ref(false)
|
|
|
const divActiveAll = ref(false)
|
|
|
const websock = ref(null)
|
|
|
const isPC = ref(true)
|
|
|
+const ocrObj = ref()
|
|
|
const fileListID1 = ref({ againPath: '', id: null, path: '', status: null, type: null })
|
|
|
const fileListID2 = ref({ againPath: '', id: null, path: '', status: null, type: null })
|
|
|
const fileListAdd1 = ref({ againPath: '', id: null, path: '', status: null, type: null })
|