fix ProductDetail.vue disable cancel
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
</card-container>
|
||||
<t-cell-group title="基本信息" theme="card" v-entrance-transition="70">
|
||||
<t-cell title="产品分类" :note="product.category?.name || '未分类'" />
|
||||
<t-cell title="基础单位" :note="getProductBaseUnitName(product) || '-'" />
|
||||
<t-cell title="库存管理" :note="product.stockEnabled ? '启用' : '关闭'" />
|
||||
<t-cell title="状态" :note="getProductStatusText(product.status)" />
|
||||
<t-cell title="备注" :note="Text.display(product.remark)"></t-cell>
|
||||
@@ -84,7 +83,7 @@
|
||||
<div class="tags">
|
||||
<t-tag
|
||||
v-if="unit.isBase"
|
||||
theme="primary"
|
||||
theme="warning"
|
||||
variant="light-outline"
|
||||
content="基础单位"
|
||||
/>
|
||||
@@ -197,6 +196,7 @@ function disable(): void {
|
||||
const dialog = DialogPlugin.confirm({
|
||||
title: "停用产品",
|
||||
content: "停用后不能用于新订单、套餐或库存操作,历史记录仍会保留。确定停用?",
|
||||
cancelBtn: "取消",
|
||||
confirmBtn: { content: "停用", theme: "danger" },
|
||||
onConfirm: async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user