Update App.jsx via upload script - 2026-08-02 17:13:44
This commit is contained in:
parent
11db4b9dd5
commit
71fa9b238d
10
App.jsx
10
App.jsx
|
|
@ -3826,9 +3826,11 @@ function MainApp({ username, onLogout }) {
|
|||
{!aiImportDrafts ? (
|
||||
<>
|
||||
<div className="disclaimer">
|
||||
支持上传PDF、图片、或HTML形式的产品目录,可以一次选多个文件(比如一份多页PDF,或者拍的多张照片)。
|
||||
支持上传PDF、图片、HTML、或Word/PPT/Excel(.docx/.pptx/.xlsx)形式的产品目录,可以一次选多个文件(比如一份多页PDF,或者拍的多张照片)。
|
||||
AI会自动识别里面有几个产品型号、并提取型号/品牌/规格参数,之后可以在预览里检查修改,确认无误再批量建档。
|
||||
<br />
|
||||
PDF会先自动判断有没有文字层:正式排版、非扫描件的PDF会直接读取文字(更快更准),只有扫描件/纯图片排版的PDF才会走OCR。
|
||||
<br />
|
||||
如果原始文件是水印很重、排版复杂、OCR容易识别错的图片,可以先用其他AI工具(如Gemini)把表格转换成结构清晰的HTML文件再上传——HTML会跳过OCR直接读取,准确率通常明显更高。
|
||||
</div>
|
||||
<div className="grid-2" style={{ marginBottom: 4 }}>
|
||||
|
|
@ -3868,7 +3870,9 @@ function MainApp({ username, onLogout }) {
|
|||
</div>
|
||||
<label className="tax-add-category" style={{ display: 'block', cursor: aiImportBusy ? 'default' : 'pointer' }}>
|
||||
<input
|
||||
type="file" accept="application/pdf,image/*,.html,.htm,text/html" multiple style={{ display: 'none' }}
|
||||
type="file"
|
||||
accept="application/pdf,image/*,.html,.htm,text/html,.docx,.pptx,.xlsx,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
||||
multiple style={{ display: 'none' }}
|
||||
disabled={aiImportBusy}
|
||||
onChange={e => { handleAiImportFiles(e.target.files); e.target.value = ''; }}
|
||||
/>
|
||||
|
|
@ -3878,7 +3882,7 @@ function MainApp({ username, onLogout }) {
|
|||
正在识别中,视文件大小可能需要几十秒…
|
||||
</>
|
||||
) : (
|
||||
<><Plus size={14} style={{ verticalAlign: -2, marginRight: 4 }} />点击选择PDF、图片或HTML(可多选)</>
|
||||
<><Plus size={14} style={{ verticalAlign: -2, marginRight: 4 }} />点击选择PDF、图片、HTML或Word/PPT/Excel(可多选)</>
|
||||
)}
|
||||
</label>
|
||||
{aiImportError && <div style={{ color: 'var(--led-red)', fontSize: 12.5, marginTop: 10 }}>{aiImportError}</div>}
|
||||
|
|
|
|||
Loading…
Reference in New Issue