This commit is contained in:
@@ -7,6 +7,7 @@ import AdminListingStatus from "@/components/molecules/AdminListingStatus.vue";
|
||||
import InventoryWorkflowStepper from "@/components/molecules/InventoryWorkflowStepper.vue";
|
||||
import ProductIdentityStep from "@/components/molecules/ProductIdentityStep.vue";
|
||||
import ProviderMappingStep from "@/components/molecules/ProviderMappingStep.vue";
|
||||
import InventoryCopyStep from "@/components/molecules/InventoryCopyStep.vue";
|
||||
import {
|
||||
createAdminInventory,
|
||||
createAdminProduct,
|
||||
@@ -702,48 +703,16 @@ onMounted(load);
|
||||
@product-change="loadProviderMappings($event)"
|
||||
@submit="createProviderMapping"
|
||||
/>
|
||||
<form id="workflow-inventory" class="showcase-panel" @submit.prevent="createInventory">
|
||||
<h2>Add inventory copy</h2>
|
||||
<label class="fixture-label" for="inventory-product">Product</label>
|
||||
<select
|
||||
id="inventory-product"
|
||||
v-model="inventoryProductId"
|
||||
class="fixture-input"
|
||||
required
|
||||
>
|
||||
<option value="" disabled>Select a product</option>
|
||||
<option
|
||||
v-for="product in products"
|
||||
:key="product.id"
|
||||
:value="product.id"
|
||||
>
|
||||
{{ product.name }}
|
||||
</option>
|
||||
</select>
|
||||
<label class="fixture-label" for="inventory-condition">Condition</label>
|
||||
<select
|
||||
id="inventory-condition"
|
||||
v-model="conditionId"
|
||||
class="fixture-input"
|
||||
required
|
||||
>
|
||||
<option value="" disabled>Select a condition</option>
|
||||
<option
|
||||
v-for="condition in conditions"
|
||||
:key="condition.id"
|
||||
:value="condition.id"
|
||||
>
|
||||
{{ condition.name }} ({{ condition.code }})
|
||||
</option>
|
||||
</select>
|
||||
<button
|
||||
class="button button--primary"
|
||||
type="submit"
|
||||
:disabled="isSaving"
|
||||
>
|
||||
Create copy
|
||||
</button>
|
||||
</form>
|
||||
<InventoryCopyStep
|
||||
:product-id="inventoryProductId"
|
||||
:condition-id="conditionId"
|
||||
:products="products"
|
||||
:conditions="conditions"
|
||||
:is-saving="isSaving"
|
||||
@update:product-id="inventoryProductId = $event"
|
||||
@update:condition-id="conditionId = $event"
|
||||
@submit="createInventory"
|
||||
/>
|
||||
<form id="workflow-listing" class="showcase-panel" @submit.prevent="createListing">
|
||||
<h2>Create listing draft</h2>
|
||||
<label class="fixture-label" for="listing-inventory"
|
||||
|
||||
Reference in New Issue
Block a user