feat:选择钱包
This commit is contained in:
1 parent
b1d0b6670d
commit
c6fc0aa2bc
2 files changed
+55
-120
No files matched your search
@@ -12,8 +12,9 @@
|
|||||||
|
|
||||||
<el-col :span="24" class="mb20">
|
<el-col :span="24" class="mb20">
|
||||||
<el-form-item label="充值类型" prop="bizType">
|
<el-form-item label="充值类型" prop="bizType">
|
||||||
|
<!-- :hide-ids="[(roleCodes.includes('RETURN_CANTEEN') || auths(['wallet_walletRechargeApply_refund'])) ? '' : '3', auths(['wallet_walletRechargeApply_select_jz']) ? '' : '2', '1']" -->
|
||||||
<dict-select v-model="form.bizType" :disabled="form.invoiceId" dict-code="wallet_biz_recharge"
|
<dict-select v-model="form.bizType" :disabled="form.invoiceId" dict-code="wallet_biz_recharge"
|
||||||
:hide-ids="[(roleCodes.includes('RETURN_CANTEEN') || auths(['wallet_walletRechargeApply_refund'])) ? '' : '3', auths(['wallet_walletRechargeApply_select_jz']) ? '' : '2', '1']"
|
:hide-ids="[(roleCodes.includes('RETURN_CANTEEN') || auths(['wallet_walletRechargeApply_refund'])) ? '' : '3', auths(['wallet_walletRechargeApply_select_jz']) ? '' : '2']"
|
||||||
placeholder="请选择饭卡类型" />
|
placeholder="请选择饭卡类型" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="layout-padding">
|
<div class="layout-padding">
|
||||||
<div class="layout-padding-auto layout-padding-view">
|
<div class="layout-padding-auto layout-padding-view">
|
||||||
<el-form v-show="showSearch" ref="queryRef" :inline="true" :model="state.queryForm" @keyup.enter="getDataList">
|
<el-form v-show="showSearch" ref="queryRef" :inline="true" :model="state.queryForm"
|
||||||
|
@keyup.enter="getDataList">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-form-item style="width: 300px" label="用户" prop="userIds">
|
<el-form-item style="width: 300px" label="用户" prop="userIds">
|
||||||
<select-user v-model="state.queryForm.userIds" placeholder="用户" />
|
<select-user v-model="state.queryForm.userIds" placeholder="用户" />
|
||||||
@@ -10,76 +11,51 @@
|
|||||||
<select-wallet-type v-model="state.queryForm.walletTypeId" placeholder="饭卡类型" clearable />
|
<select-wallet-type v-model="state.queryForm.walletTypeId" placeholder="饭卡类型" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item style="width: 200px" label="充值类型" prop="bizType">
|
<el-form-item style="width: 200px" label="充值类型" prop="bizType">
|
||||||
<dict-select v-model="state.queryForm.bizType" dict-code="wallet_biz_recharge" placeholder="充值类型" />
|
<dict-select v-model="state.queryForm.bizType" dict-code="wallet_biz_recharge"
|
||||||
|
placeholder="充值类型" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item style="width: 450px" label="创建时间" prop="createTimeList">
|
<el-form-item style="width: 450px" label="创建时间" prop="createTimeList">
|
||||||
<el-date-picker v-model="state.queryForm.createTimeList" value-format="YYYY-MM-DD HH:mm:ss" type="datetimerange" />
|
<el-date-picker v-model="state.queryForm.createTimeList" value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
|
type="datetimerange" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item style="width: 450px" label="审核时间" prop="processTimeList">
|
<el-form-item style="width: 450px" label="审核时间" prop="processTimeList">
|
||||||
<el-date-picker v-model="state.queryForm.processTimeList" value-format="YYYY-MM-DD HH:mm:ss" type="datetimerange" />
|
<el-date-picker v-model="state.queryForm.processTimeList" value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
|
type="datetimerange" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button icon="Search" type="primary" @click="getDataList">{{ $t("common.queryBtn") }}</el-button>
|
<el-button icon="Search" type="primary" @click="getDataList">{{ $t("common.queryBtn")
|
||||||
|
}}</el-button>
|
||||||
<el-button icon="Refresh" @click="resetQuery">{{ $t("common.resetBtn") }}</el-button>
|
<el-button icon="Refresh" @click="resetQuery">{{ $t("common.resetBtn") }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row>
|
<el-row>
|
||||||
<div class="mb8" style="width: 100%">
|
<div class="mb8" style="width: 100%">
|
||||||
<el-button
|
<el-button v-if="false" icon="folder-add" type="primary" class="ml10" @click="uploadExcelRef.show()"
|
||||||
v-if="false"
|
v-auth="'wallet_walletRechargeApply_add'">
|
||||||
icon="folder-add"
|
|
||||||
type="primary"
|
|
||||||
class="ml10"
|
|
||||||
@click="uploadExcelRef.show()"
|
|
||||||
v-auth="'wallet_walletRechargeApply_add'"
|
|
||||||
>
|
|
||||||
导 入(发票)
|
导 入(发票)
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button icon="folder-add" type="primary" class="ml10" @click="uploadExcelRef1.show()"
|
||||||
icon="folder-add"
|
v-auth="'wallet_walletRechargeApply_add'">
|
||||||
type="primary"
|
|
||||||
class="ml10"
|
|
||||||
@click="uploadExcelRef1.show()"
|
|
||||||
v-auth="'wallet_walletRechargeApply_add'"
|
|
||||||
>
|
|
||||||
导 入
|
导 入
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-if="false" plain :disabled="multiple" icon="Delete" type="primary"
|
||||||
v-if="false"
|
v-auth="'wallet_walletRechargeApply_del'" @click="handleDelete(selectObjs)">
|
||||||
plain
|
|
||||||
:disabled="multiple"
|
|
||||||
icon="Delete"
|
|
||||||
type="primary"
|
|
||||||
v-auth="'wallet_walletRechargeApply_del'"
|
|
||||||
@click="handleDelete(selectObjs)"
|
|
||||||
>
|
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
<div class="flex justify-between items-center">
|
<div class="flex justify-between items-center">
|
||||||
<el-tabs class="flex-1" v-model="activeName" @tab-click="handleClickTabItem">
|
<el-tabs class="flex-1" v-model="activeName" @tab-click="handleClickTabItem">
|
||||||
<el-tab-pane v-for="v in tabItems" :key="v.id" :label="v.label" :name="v.value" />
|
<el-tab-pane v-for="v in tabItems" :key="v.id" :label="v.label" :name="v.value" />
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<right-toolbar
|
<right-toolbar v-model:showSearch="showSearch" :export="'wallet_walletRechargeApply_export'"
|
||||||
v-model:showSearch="showSearch"
|
@exportExcel="exportExcel" class="ml10 mr20" style="float: right"
|
||||||
:export="'wallet_walletRechargeApply_export'"
|
@queryTable="getDataList" />
|
||||||
@exportExcel="exportExcel"
|
|
||||||
class="ml10 mr20"
|
|
||||||
style="float: right"
|
|
||||||
@queryTable="getDataList"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table
|
<el-table :data="state.dataList" v-loading="state.loading" border :cell-style="tableStyle.cellStyle"
|
||||||
:data="state.dataList"
|
:header-cell-style="tableStyle.headerCellStyle" @selection-change="selectionChangHandle"
|
||||||
v-loading="state.loading"
|
@sort-change="sortChangeHandle">
|
||||||
border
|
|
||||||
:cell-style="tableStyle.cellStyle"
|
|
||||||
:header-cell-style="tableStyle.headerCellStyle"
|
|
||||||
@selection-change="selectionChangHandle"
|
|
||||||
@sort-change="sortChangeHandle"
|
|
||||||
>
|
|
||||||
<el-table-column type="selection" width="40" align="center" />
|
<el-table-column type="selection" width="40" align="center" />
|
||||||
<el-table-column type="index" label="#" width="80" />
|
<el-table-column type="index" label="#" width="80" />
|
||||||
<el-table-column prop="username" label="申请人" />
|
<el-table-column prop="username" label="申请人" />
|
||||||
@@ -99,6 +75,11 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="deptName" width="200" label="部门" />
|
<el-table-column prop="deptName" width="200" label="部门" />
|
||||||
|
<el-table-column prop="importTime" width="100" label="充值金额">
|
||||||
|
<template #default="{ row }">
|
||||||
|
{{ displayPrice(row.totalPrice) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="importTime" width="100" label="充值月">
|
<el-table-column prop="importTime" width="100" label="充值月">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
{{ row.importTime?.substring(0, 7) }}
|
{{ row.importTime?.substring(0, 7) }}
|
||||||
@@ -126,102 +107,54 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="操作" v-auths="[
|
||||||
label="操作"
|
'wallet_walletRechargeApply_view',
|
||||||
v-auths="[
|
'wallet_walletRechargeApply_apply',
|
||||||
'wallet_walletRechargeApply_view',
|
'wallet_walletRechargeApply_edit',
|
||||||
'wallet_walletRechargeApply_apply',
|
'wallet_walletRechargeApply_del',
|
||||||
'wallet_walletRechargeApply_edit',
|
'wallet_walletRechargeApply_check',
|
||||||
'wallet_walletRechargeApply_del',
|
]" width="300" fixed="right">
|
||||||
'wallet_walletRechargeApply_check',
|
|
||||||
]"
|
|
||||||
width="300"
|
|
||||||
fixed="right"
|
|
||||||
>
|
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button v-if="row.importTime" icon="Document" text type="primary"
|
||||||
v-if="row.importTime"
|
v-auth="'wallet_walletRechargeApply_view'" @click="doInfo(row)">
|
||||||
icon="Document"
|
|
||||||
text
|
|
||||||
type="primary"
|
|
||||||
v-auth="'wallet_walletRechargeApply_view'"
|
|
||||||
@click="doInfo(row)"
|
|
||||||
>
|
|
||||||
数据
|
数据
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-if="row.importTime && !row.processId" icon="Connection" text type="primary"
|
||||||
v-if="row.importTime && !row.processId"
|
v-auth="'wallet_walletRechargeApply_apply'" @click="doApply(row)">
|
||||||
icon="Connection"
|
|
||||||
text
|
|
||||||
type="primary"
|
|
||||||
v-auth="'wallet_walletRechargeApply_apply'"
|
|
||||||
@click="doApply(row)"
|
|
||||||
>
|
|
||||||
申请
|
申请
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-if="!row.processId" icon="edit-pen" text type="primary"
|
||||||
v-if="!row.processId"
|
v-auth="'wallet_walletRechargeApply_edit'" @click="formDialogRef.openDialog(row.id)">
|
||||||
icon="edit-pen"
|
|
||||||
text
|
|
||||||
type="primary"
|
|
||||||
v-auth="'wallet_walletRechargeApply_edit'"
|
|
||||||
@click="formDialogRef.openDialog(row.id)"
|
|
||||||
>
|
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button v-if="row.isCheckUser && row.processStatus == '1'" type="primary" size="small" link
|
||||||
v-if="row.isCheckUser && row.processStatus == '1'"
|
icon="VideoPlay" @click="deal(row)" v-auth="'wallet_walletRechargeApply_check'">
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
link
|
|
||||||
icon="VideoPlay"
|
|
||||||
@click="deal(row)"
|
|
||||||
v-auth="'wallet_walletRechargeApply_check'"
|
|
||||||
>
|
|
||||||
开始处理
|
开始处理
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="row.userId == userInfos?.user?.userId && [null, '1'].includes(row.processStatus)"
|
v-if="row.userId == userInfos?.user?.userId && [null, '1'].includes(row.processStatus)"
|
||||||
icon="delete"
|
icon="delete" text type="primary" v-auth="'wallet_walletRechargeApply_del'"
|
||||||
text
|
@click="handleDelete([row.id])">
|
||||||
type="primary"
|
|
||||||
v-auth="'wallet_walletRechargeApply_del'"
|
|
||||||
@click="handleDelete([row.id])"
|
|
||||||
>
|
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" v-bind="state.pagination" />
|
<pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle"
|
||||||
|
v-bind="state.pagination" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 编辑、新增 -->
|
<!-- 编辑、新增 -->
|
||||||
<form-dialog ref="formDialogRef" @refresh="getDataList(false)" />
|
<form-dialog ref="formDialogRef" @refresh="getDataList(false)" />
|
||||||
|
|
||||||
<upload-excel
|
<upload-excel ref="uploadExcelRef" title="充值导入" url="/wallet/wallet-recharge-apply/read-excel"
|
||||||
ref="uploadExcelRef"
|
temp-url="/admin/sys-file/local/file/wallet_recharge.xlsx" @refreshDataList="getDataList(false)" />
|
||||||
title="充值导入"
|
|
||||||
url="/wallet/wallet-recharge-apply/read-excel"
|
|
||||||
temp-url="/admin/sys-file/local/file/wallet_recharge.xlsx"
|
|
||||||
@refreshDataList="getDataList(false)"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<upload-excel
|
<upload-excel ref="uploadExcelRef1" title="充值导入" url="/wallet/wallet-recharge-apply/read-excel"
|
||||||
ref="uploadExcelRef1"
|
temp-url="/admin/sys-file/local/file/wallet_recharge.xlsx" @refreshDataList="getDataList(false)" />
|
||||||
title="充值导入"
|
|
||||||
url="/wallet/wallet-recharge-apply/read-excel"
|
|
||||||
temp-url="/admin/sys-file/local/file/wallet_recharge.xlsx"
|
|
||||||
@refreshDataList="getDataList(false)"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<upload-excel1
|
<upload-excel1 ref="uploadExcelRef1" title="充值导入" url="/wallet/wallet-recharge-apply/read-excel"
|
||||||
ref="uploadExcelRef1"
|
temp-url="/admin/sys-file/local/file/wallet_recharge.xlsx" @refreshDataList="getDataList(false)" />
|
||||||
title="充值导入"
|
|
||||||
url="/wallet/wallet-recharge-apply/read-excel"
|
|
||||||
temp-url="/admin/sys-file/local/file/wallet_recharge.xlsx"
|
|
||||||
@refreshDataList="getDataList(false)"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- 审批抽屉 -->
|
<!-- 审批抽屉 -->
|
||||||
<process-drawer ref="processDrawerRef" @task-submit-event="taskSubmitEvent" />
|
<process-drawer ref="processDrawerRef" @task-submit-event="taskSubmitEvent" />
|
||||||
@@ -240,6 +173,7 @@ import { useUserInfo } from "/@/stores/userInfo"
|
|||||||
|
|
||||||
// ----------------------------------------------------------------
|
// ----------------------------------------------------------------
|
||||||
import UploadExcel1 from "/@/components/Upload/Excel.vue"
|
import UploadExcel1 from "/@/components/Upload/Excel.vue"
|
||||||
|
import { displayPrice } from "/@/utils/formatMoney"
|
||||||
const uploadExcelRef1 = ref()
|
const uploadExcelRef1 = ref()
|
||||||
// ----------------------------------------------------------------
|
// ----------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user