({
cabinetName: "",
@@ -308,7 +310,7 @@ onMounted(() => {
-
+
编辑柜体
@@ -318,11 +320,11 @@ onMounted(() => {
{{ CabinetImgMap[cabinetInfo.templateNo]?.name || '-'
}}
{{ cabinetInfo.shopName || '-' }}
-
+
配置
{{ cabinetInfo.mqttServerId || '-' }}
-
+
配置
{{ getBalanceEnableText(shopInfo.balanceEnable)
@@ -378,11 +380,13 @@ onMounted(() => {
{{ item.cellNo }}
-
商品配置
-
{{ item.goodsName }}
@@ -410,10 +414,10 @@ onMounted(() => {
-
+
编辑
-
+
删除
@@ -434,7 +438,8 @@ onMounted(() => {
@refresh="fetchCabinetDetail" />
-
+
{
-
新增设备
diff --git a/src/views/shop/goods/detail.vue b/src/views/shop/goods/detail.vue
index 1692406..19e854f 100644
--- a/src/views/shop/goods/detail.vue
+++ b/src/views/shop/goods/detail.vue
@@ -7,6 +7,7 @@ import { ElMessage } from "element-plus";
import { useRenderIcon } from '@/components/ReIcon/src/hooks';
import EditPen from '@iconify-icons/ep/edit-pen';
import GoodsEditModal from "./goods-edit-modal.vue";
+import { useBtnPermissionStore } from "@/store/modules/btnPermission";
const handleEdit = (row: GoodsDTO) => {
goodsInfo.value = row;
@@ -21,6 +22,8 @@ defineOptions({
const router = useRouter();
const route = useRoute();
+
+const { hasPermission } = useBtnPermissionStore();
const goodsInfo = ref({
goodsId: 0,
goodsName: "",
@@ -118,7 +121,7 @@ watch(goodsId, () => {
-
编辑商品
diff --git a/src/views/shop/goods/index.vue b/src/views/shop/goods/index.vue
index 63647f1..54c9477 100644
--- a/src/views/shop/goods/index.vue
+++ b/src/views/shop/goods/index.vue
@@ -17,6 +17,7 @@ import { deleteGoodsApi } from "@/api/shop/goods";
import { useMultiTagsStoreHook } from "@/store/modules/multiTags";
import { useRouter } from "vue-router";
import { useWxStore } from "@/store/modules/wx";
+import { useBtnPermissionStore } from "@/store/modules/btnPermission";
defineOptions({
name: "ShopGoods"
@@ -24,6 +25,7 @@ defineOptions({
const wxStore = useWxStore();
const router = useRouter();
+const { hasPermission } = useBtnPermissionStore();
const formRef = ref();
const tableRef = ref();
const modalVisible = ref(false);
@@ -184,7 +186,7 @@ const handleViewDetail = (row: GoodsDTO) => {
-
新增商品
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index 37d0a33..3c85c60 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -229,7 +229,7 @@ onSearch().then(() => {
-
+