排除普通上传中的交付素材类型
This commit is contained in:
parent
1837234d92
commit
dad14e57cd
@ -46,6 +46,7 @@ import {
|
||||
import { buildFormData, uploadSingleFile, submitFormData } from '@/components/upload/file-upload-handlers'
|
||||
import { requiresCategoryAndScene, requiresProductCategoryName, requiresRenderer, shouldAutoFillGeneral } from '@/lib/material-validation'
|
||||
import { MATERIAL_TYPE_OPTIONS, type MaterialTypeOption } from '@/lib/material-type-options'
|
||||
import { isXiaoyiDeliveryMaterial } from '@/lib/xiaoyi-delivery-material'
|
||||
import {
|
||||
isBatchVideoMaterialType,
|
||||
isVideoMaterialType,
|
||||
@ -2058,9 +2059,10 @@ export default function UploadModal({ onClose, onSuccess, materialTypeCounts = {
|
||||
value={materialType}
|
||||
onChange={setMaterialType}
|
||||
disabled={interactionLocked}
|
||||
options={accessScope === 'operations_g' ? [...MATERIAL_TYPE_OPTIONS] : availableMaterialTypes.length > 0
|
||||
options={(accessScope === 'operations_g' ? [...MATERIAL_TYPE_OPTIONS] : availableMaterialTypes.length > 0
|
||||
? availableMaterialTypes
|
||||
: MATERIAL_TYPE_OPTIONS.filter((type) => !SPECIAL_UPLOAD_TYPES.includes(type as typeof SPECIAL_UPLOAD_TYPES[number]))}
|
||||
: MATERIAL_TYPE_OPTIONS.filter((type) => !SPECIAL_UPLOAD_TYPES.includes(type as typeof SPECIAL_UPLOAD_TYPES[number])))
|
||||
.filter((type) => !isXiaoyiDeliveryMaterial(type))}
|
||||
counts={materialTypeCounts}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user