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