feat:配置权限
This commit is contained in:
1 parent
7d780d9f0c
commit
c4f10ac9fe
5 files changed
+28
-7
No files matched your search
@@ -58,13 +58,13 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="200px" label="商品简要信息">
|
||||
<el-table-column width="200px" label="商品">
|
||||
<template #default="{ row }">
|
||||
<div class="desc">
|
||||
<span>商品</span>
|
||||
<span>
|
||||
{{ row.productDesc }}
|
||||
</span>
|
||||
<el-tooltip :content="row.productDesc" placement="top-start">
|
||||
<span class="text-line">{{ row.productDesc }}</span>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div class="status" v-if="row.hourType">
|
||||
<span>用餐时间段</span>
|
||||
@@ -178,15 +178,13 @@
|
||||
</el-table-column>
|
||||
<el-table-column fixed="right" label="操作" width="200">
|
||||
<template #default="{ row }">
|
||||
<div class="flex justify-between">
|
||||
<div class="grid grid-cols-2">
|
||||
<el-button icon="Printer" text type="primary" @click="print(row)" v-auth="'hard_hardInvoice_admin_print'">
|
||||
打印发票
|
||||
</el-button>
|
||||
<el-button icon="ShoppingCartFull" text type="primary" @click="shopCarDialogRef.openDialog(row.id)">
|
||||
购物车
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="flex justify-between">
|
||||
<el-button icon="Money" link type="primary" @click="transactionListRef.openDialog(row.walletId)">
|
||||
钱包明细
|
||||
</el-button>
|
||||
@@ -347,6 +345,13 @@ const handleDelete = async (ids: string[]) => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.text-line {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.desc {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="钱包二维码自动刷新" prop="refreshQrCodeEnable">
|
||||
<el-switch
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
v-model="form.refreshQrCodeEnable"
|
||||
@@ -27,6 +28,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="钱包二维码自动刷新间隔" prop="refreshQrCodeFre">
|
||||
<el-input
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
style="width: 300px"
|
||||
type="number"
|
||||
v-model="form.refreshQrCodeFre"
|
||||
@@ -52,6 +54,8 @@ import { useDict } from "/@/hooks/dict"
|
||||
import { storePrice } from "/@/utils/formatMoney"
|
||||
import { useMessage } from "/@/hooks/message"
|
||||
import { getObj, putObj } from "/@/api/wallet/wallet-setting"
|
||||
import { auth } from "/@/utils/authFunction"
|
||||
|
||||
// 定义变量内容
|
||||
const dataFormRef = ref()
|
||||
const loading = ref(false)
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="每一餐的上限" prop="payAmountEnable">
|
||||
<el-switch
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
v-model="form.payAmountEnable"
|
||||
@@ -27,6 +28,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="每一餐的上限" prop="payAmountMealLimit">
|
||||
<el-input
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
style="width: 300px"
|
||||
type="number"
|
||||
v-model="form.payAmountMealLimit"
|
||||
@@ -39,6 +41,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="倍数" prop="payAmountMealTimes">
|
||||
<el-input
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
style="width: 300px"
|
||||
type="number"
|
||||
v-model="form.payAmountMealTimes"
|
||||
@@ -63,6 +66,8 @@
|
||||
import { storePrice, displayPrice } from "/@/utils/formatMoney"
|
||||
import { useMessage } from "/@/hooks/message"
|
||||
import { getObj, putObj } from "/@/api/wallet/wallet-setting"
|
||||
import { auth } from "/@/utils/authFunction"
|
||||
|
||||
// 定义变量内容
|
||||
const dataFormRef = ref()
|
||||
const loading = ref(false)
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="离线订单是否需要审批" prop="offLineOrderApplyEnable">
|
||||
<el-switch
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
active-value="1"
|
||||
inactive-value="0"
|
||||
v-model="form.offLineOrderApplyEnable"
|
||||
@@ -40,6 +41,8 @@ import { useDict } from "/@/hooks/dict"
|
||||
import { storePrice } from "/@/utils/formatMoney"
|
||||
import { useMessage } from "/@/hooks/message"
|
||||
import { getObj, putObj } from "/@/api/wallet/wallet-setting"
|
||||
import { auth } from "/@/utils/authFunction"
|
||||
|
||||
// 定义变量内容
|
||||
const dataFormRef = ref()
|
||||
const loading = ref(false)
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="退款理由" prop="afterSaleRefundReasons">
|
||||
<el-select
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
style="width: 500px"
|
||||
v-model="form.afterSaleRefundReasons"
|
||||
allow-create
|
||||
@@ -34,6 +35,7 @@
|
||||
<el-col :span="24" class="mb20">
|
||||
<el-form-item label="退货理由" prop="afterSaleReturnReasons">
|
||||
<el-select
|
||||
:disabled="!auth('wallet_setting_edit')"
|
||||
style="width: 500px"
|
||||
v-model="form.afterSaleReturnReasons"
|
||||
allow-create
|
||||
@@ -65,6 +67,8 @@
|
||||
import { storePrice } from "/@/utils/formatMoney"
|
||||
import { useMessage } from "/@/hooks/message"
|
||||
import { getObj, putObj } from "/@/api/wallet/wallet-setting"
|
||||
import { auth } from "/@/utils/authFunction"
|
||||
|
||||
// 定义变量内容
|
||||
const dataFormRef = ref()
|
||||
const loading = ref(false)
|
||||
|
||||
Reference in new issue
Block a user