Hide box settings and rename customization labels
This commit is contained in:
@@ -263,10 +263,8 @@ function groupCatalogSetting(group: ProductGroup) {
|
||||
}
|
||||
|
||||
function visibleFields(group: ProductGroup) {
|
||||
const catalogSetting = groupCatalogSetting(group);
|
||||
|
||||
return parameterFields.filter((field) => {
|
||||
if (field.key === 'quantityPerBox' && !catalogSetting.showQuantityPerBox) {
|
||||
if (field.key === 'quantityPerBox') {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -488,15 +486,15 @@ function customizationNotes(group: ProductGroup) {
|
||||
const notes: string[] = [];
|
||||
|
||||
if (setting.allowCustomLength && setting.customLengthMinM && setting.customLengthMaxM && setting.customLengthStepM) {
|
||||
notes.push(`Своя длина ${setting.customLengthMinM}-${setting.customLengthMaxM} м, шаг ${setting.customLengthStepM} м`);
|
||||
notes.push(`Любая длина ${setting.customLengthMinM}-${setting.customLengthMaxM} м, шаг ${setting.customLengthStepM} м`);
|
||||
}
|
||||
|
||||
if (setting.allowCustomSleeveBrand) {
|
||||
notes.push('Своя втулка');
|
||||
notes.push('Втулка с логотипом');
|
||||
}
|
||||
|
||||
if (setting.allowCustomLabel) {
|
||||
notes.push('Своя надпись');
|
||||
notes.push('Нанесение надписи');
|
||||
}
|
||||
|
||||
return notes;
|
||||
@@ -669,7 +667,6 @@ function decrementSelected(group: ProductGroup) {
|
||||
<th class="border-b border-base-300">Длина</th>
|
||||
<th class="border-b border-base-300">Толщина</th>
|
||||
<th class="border-b border-base-300">Втулка</th>
|
||||
<th v-if="groupCatalogSetting(group).showQuantityPerBox" class="border-b border-base-300">Короб</th>
|
||||
<th class="border-b border-base-300 text-right">Действие</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -680,7 +677,6 @@ function decrementSelected(group: ProductGroup) {
|
||||
<td class="border-b border-base-200">{{ product.lengthM ?? '—' }}</td>
|
||||
<td class="border-b border-base-200">{{ product.thicknessMicron ?? '—' }}</td>
|
||||
<td class="border-b border-base-200">{{ product.sleeveBrand ?? '—' }}</td>
|
||||
<td v-if="groupCatalogSetting(group).showQuantityPerBox" class="border-b border-base-200">{{ product.quantityPerBox ?? '—' }}</td>
|
||||
<td class="border-b border-base-200 text-right">
|
||||
<button
|
||||
v-if="getQuantity(product.id) === 0"
|
||||
|
||||
Reference in New Issue
Block a user