fix(upload): 子类型下拉框始终显示,不限于合同类型

This commit is contained in:
2026-03-18 22:51:19 +08:00
parent 62a8f4b13d
commit df02ed79c2
+22 -24
View File
@@ -2332,30 +2332,28 @@ export default function FilesUpload() {
</select>
<div className="form-tip"></div>
</div>
{/* 只有选择合同类型时才显示合同子类型选择器 */}
{isContractType && (
<div className="form-group">
<label htmlFor="contract-type-select" className="form-label">
<span className="required">*</span>
</label>
<select
id="contract-type-select"
name="attributeType"
className="form-select"
value={attributeType}
onChange={(e) => setAttributeType(e.target.value)}
disabled={uploadStage !== "idle"}
required
>
{CONTRACT_TYPES.map(type => (
<option key={type.value} value={type.value}>
{type.label}
</option>
))}
</select>
<div className="form-tip"></div>
</div>
)}
{/* 子类型(专属类型)- 始终显示 */}
<div className="form-group">
<label htmlFor="attribute-type-select" className="form-label">
<span className="required">*</span>
</label>
<select
id="attribute-type-select"
name="attributeType"
className="form-select"
value={attributeType}
onChange={(e) => setAttributeType(e.target.value)}
disabled={uploadStage !== "idle"}
required
>
{CONTRACT_TYPES.map(type => (
<option key={type.value} value={type.value}>
{type.label}
</option>
))}
</select>
<div className="form-tip">//</div>
</div>
<div className="form-group">
<label htmlFor="docNumber" className="form-label"></label>
<input