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