feat(库存): 上传报告弹窗补报告类型选择控件(批次/农残/检疫/年度)
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s

This commit is contained in:
Ubuntu
2026-10-20 10:32:55 +08:00
parent 65649fe941
commit d56c4a8bb1
@@ -167,6 +167,21 @@ export const BatchReportUploadModal: React.FC<Props> = ({ open, onClose, onDone
{t('inventory.batchReport.hint')}
</p>
<label className="block mb-3">
<div>
{/* 一个入库批次可能需要多份不同类型的报告(批次/农残/检疫/年度)⇒ 上传前先选类型 */}
<span className="block text-sm mb-1">{t('inventory.batchReport.typeLabel')}</span>
<select
value={reportType}
onChange={(e) => setReportType(e.target.value)}
disabled={busy !== 'idle'}
className="w-full px-3 py-2 border border-gray-200 rounded-lg text-sm disabled:opacity-50"
>
<option value="batch">{t('inventory.batchReport.type.batch')}</option>
<option value="pesticide">{t('inventory.batchReport.type.pesticide')}</option>
<option value="quarantine">{t('inventory.batchReport.type.quarantine')}</option>
<option value="annual">{t('inventory.batchReport.type.annual')}</option>
</select>
</div>
<span className="block text-sm mb-1">{t('inventory.batchReport.reportNo')}</span>
<input
value={reportNo}