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