fix
This commit is contained in:
@ -249,7 +249,8 @@ export function CreateFulfillmentConsumablesSupplyPage() {
|
||||
if (
|
||||
!selectedSupplier ||
|
||||
selectedConsumables.length === 0 ||
|
||||
!deliveryDate
|
||||
!deliveryDate ||
|
||||
!selectedLogistics
|
||||
) {
|
||||
toast.error("Заполните все обязательные поля");
|
||||
return;
|
||||
@ -796,7 +797,7 @@ export function CreateFulfillmentConsumablesSupplyPage() {
|
||||
{/* Выбор логистики */}
|
||||
<div className="mb-3">
|
||||
<label className="text-white/60 text-xs mb-1 block">
|
||||
Логистика (опционально):
|
||||
Логистика *:
|
||||
</label>
|
||||
<div className="relative">
|
||||
<select
|
||||
@ -809,7 +810,7 @@ export function CreateFulfillmentConsumablesSupplyPage() {
|
||||
className="w-full bg-white/10 border border-white/20 rounded-md px-3 py-2 text-white text-sm focus:outline-none focus:ring-1 focus:ring-purple-500 focus:border-transparent appearance-none"
|
||||
>
|
||||
<option value="" className="bg-gray-800 text-white">
|
||||
Без логистики
|
||||
Выберите логистику
|
||||
</option>
|
||||
{logisticsPartners.map((partner) => (
|
||||
<option
|
||||
@ -841,7 +842,8 @@ export function CreateFulfillmentConsumablesSupplyPage() {
|
||||
disabled={
|
||||
isCreatingSupply ||
|
||||
!deliveryDate ||
|
||||
selectedConsumables.length === 0
|
||||
selectedConsumables.length === 0 ||
|
||||
!selectedLogistics
|
||||
}
|
||||
className="w-full bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 text-white disabled:opacity-50 h-8 text-sm"
|
||||
>
|
||||
|
Reference in New Issue
Block a user