Update App.jsx via upload script - 2026-08-02 17:13:44

This commit is contained in:
mike 2026-08-02 17:14:06 +08:00
parent 11db4b9dd5
commit 71fa9b238d
1 changed files with 7 additions and 3 deletions

10
App.jsx
View File

@ -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>}