feat(库存): 上传报告弹窗补报告类型选择控件(批次/农残/检疫/年度)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user