fix(upload): 子类型下拉框始终显示,不限于合同类型
This commit is contained in:
+22
-24
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user