增强办公,新增审批,缺少电子签章功能

This commit is contained in:
2026-04-22 13:10:58 +08:00
parent 3db80e5ff7
commit 244dc8a056
6 changed files with 287 additions and 43 deletions

View File

@@ -48,6 +48,14 @@
</view>
</template>
<template v-else-if="field.type === 'sealPreview'">
<view class="seal-preview-box" v-if="getSealPreviewSrc(field)">
<image class="seal-preview-image" :src="getSealPreviewSrc(field)" mode="aspectFit"></image>
<view class="seal-preview-text">盖章示例当前选择</view>
</view>
<view class="input-like" v-else>请先选择用印类型</view>
</template>
<template v-else-if="field.type === 'file'">
<view class="file-picker-wrap">
<view class="upload-box clickable" :class="{ disabled: uploadingFieldKey === field.key }" @tap="openFilePicker(field.key)">
@@ -246,6 +254,16 @@ export default {
normalizeInputType(inputType) {
return inputType || 'text'
},
getSealPreviewSrc(field) {
if (!field || field.key !== 'sealType') return ''
const value = this.form[field.key]
const map = {
'山东福安德信息科技有限公司采购部专用章FAD201400201.png': 'http://49.232.154.205:10900/fad-oa/files%2Fstamp%2F山东福安德信息科技有限公司采购部专用章FAD201400201.png',
'山东福安德信息科技有限公司采购部专用章FAD201400202.png': 'http://49.232.154.205:10900/fad-oa/files%2Fstamp%2F山东福安德信息科技有限公司采购部专用章FAD201400202.png',
'山东福安德信息科技有限公司采购部专用章FAD201400401.png': 'http://49.232.154.205:10900/fad-oa/files%2Fstamp%2F山东福安德信息科技有限公司采购部专用章FAD201400401.png'
}
return map[value] || ''
},
onInputFocus(fieldKey) {
this.currentInputFieldKey = fieldKey
},