fix product sku change status
This commit is contained in:
@@ -149,7 +149,7 @@
|
|||||||
</t-cell>
|
</t-cell>
|
||||||
<t-cell title="当前 SKU" :note="`${form.skuList.length} 个`" />
|
<t-cell title="当前 SKU" :note="`${form.skuList.length} 个`" />
|
||||||
</t-cell-group>
|
</t-cell-group>
|
||||||
<t-cell-group v-if="form.skuList.length" theme="card" class="sku-list">
|
<t-cell-group v-if="form.skuList.length" theme="card" class="sku-list fix-last-cell-line">
|
||||||
<product-sku-editor
|
<product-sku-editor
|
||||||
v-for="(sku, skuIndex) in form.skuList"
|
v-for="(sku, skuIndex) in form.skuList"
|
||||||
:key="sku.clientKey"
|
:key="sku.clientKey"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<t-swipe-cell class="sku-cell">
|
<t-swipe-cell class="sku-cell item">
|
||||||
<t-cell role="button" tabindex="0" arrow @click="openEditor">
|
<t-cell role="button" tabindex="0" arrow @click="openEditor">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
@@ -41,8 +41,8 @@
|
|||||||
</template>
|
</template>
|
||||||
</t-cell>
|
</t-cell>
|
||||||
<template #right>
|
<template #right>
|
||||||
<t-button class="delete-action" theme="danger" @click.stop="requestRemove">
|
<t-button class="delete-action swipe-cell-button" theme="danger" @click.stop="requestRemove">
|
||||||
删除
|
停用
|
||||||
</t-button>
|
</t-button>
|
||||||
</template>
|
</template>
|
||||||
</t-swipe-cell>
|
</t-swipe-cell>
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
<t-form-item v-if="sku.stockEnabled" label="最低库存" help="基础单位数量,最多三位小数">
|
<t-form-item v-if="sku.stockEnabled" label="最低库存" help="基础单位数量,最多三位小数">
|
||||||
<t-input v-model.trim="sku.minStockQuantityText" type="number" align="right" borderless placeholder="0" />
|
<t-input v-model.trim="sku.minStockQuantityText" type="number" align="right" borderless placeholder="0" />
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
<t-form-item label="明细状态" content-align="right">
|
<t-form-item label="启用" content-align="right">
|
||||||
<t-switch :model-value="sku.status === 'ACTIVE'" size="small" @change="setSkuStatus" />
|
<t-switch :model-value="sku.status === 'ACTIVE'" size="small" @change="setSkuStatus" />
|
||||||
</t-form-item>
|
</t-form-item>
|
||||||
<t-form-item label="备注">
|
<t-form-item label="备注">
|
||||||
|
|||||||
Reference in New Issue
Block a user