feat:禅道bug
This commit is contained in:
1 parent
d02dd757b6
commit
4de383ea58
13 files changed
+279
-220
No files matched your search
@@ -1,5 +1,4 @@
|
||||
# 网站主标题
|
||||
#VITE_GLOBAL_TITLE= '浦江县机关事务智慧后勤一体化平台'
|
||||
VITE_GLOBAL_TITLE= '智慧后勤一体化平台'
|
||||
|
||||
# footer
|
||||
|
||||
@@ -8,7 +8,8 @@ VITE_OPEN = true
|
||||
ENV = 'dev'
|
||||
|
||||
# ADMIN 服务地址
|
||||
VITE_ADMIN_PROXY_PATH = https://www.zianxin.com
|
||||
# VITE_ADMIN_PROXY_PATH = https://www.zianxin.com
|
||||
VITE_ADMIN_PROXY_PATH = https://rj4jv5rwqs.by.takin.cc
|
||||
|
||||
# 图片访问基础地址
|
||||
VITE_IMAGE_BASE_PATH = https://www.zianxin.com/api
|
||||
|
||||
+12
-18
@@ -1,35 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<!-- 通用禁止所有搜索引擎 -->
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<!-- 通用禁止所有搜索引擎 -->
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
|
||||
<!-- 针对性禁止百度 -->
|
||||
<meta name="Baiduspider" content="noindex,nofollow">
|
||||
<!-- 针对性禁止百度 -->
|
||||
<meta name="Baiduspider" content="noindex,nofollow" />
|
||||
|
||||
<!-- 针对性禁止谷歌 -->
|
||||
<meta name="Googlebot" content="noindex,nofollow">
|
||||
<!-- 针对性禁止谷歌 -->
|
||||
<meta name="Googlebot" content="noindex,nofollow" />
|
||||
|
||||
<!-- 针对性禁止 Bing -->
|
||||
<meta name="Bingbot" content="noindex,nofollow">
|
||||
<meta name="MSNBot" content="noindex,nofollow">
|
||||
<!-- 针对性禁止 Bing -->
|
||||
<meta name="Bingbot" content="noindex,nofollow" />
|
||||
<meta name="MSNBot" content="noindex,nofollow" />
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="浦江县机关事务智慧后勤一体化平台"
|
||||
/>
|
||||
<meta name="keywords" content="智慧后勤一体化平台" />
|
||||
|
||||
<meta
|
||||
name="description"
|
||||
content="浦江县机关事务智慧后勤一体化平台"
|
||||
/>
|
||||
<meta name="description" content="智慧后勤一体化平台" />
|
||||
<!--避免微信管理防盗链机制-->
|
||||
<meta name="referrer" content="no-referrer" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<title>浦江县机关事务智慧后勤一体化平台</title>
|
||||
<title>智慧后勤一体化平台</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 149 KiB |
@@ -1,8 +1,13 @@
|
||||
import request from "/@/utils/request"
|
||||
|
||||
/**
|
||||
* TODO 有/admin/dept/tree方法
|
||||
* v1会查询所有的部门(没有权限的部门会上锁)
|
||||
* v2只会查询当前用户有权限的部门
|
||||
*/
|
||||
export const deptTree = (params?: Object) => {
|
||||
return request({
|
||||
url: "/admin/dept/tree",
|
||||
url: "/admin/dept/tree/v2",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
|
||||
Executable
+40
@@ -0,0 +1,40 @@
|
||||
import request from "/@/utils/request"
|
||||
|
||||
export function fetchList(query?: Object) {
|
||||
return request({
|
||||
url: "/integrated/ad-record/page",
|
||||
method: "get",
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
export function addObj(obj?: Object) {
|
||||
return request({
|
||||
url: "/integrated/ad-record",
|
||||
method: "post",
|
||||
data: obj,
|
||||
})
|
||||
}
|
||||
|
||||
export function getObj(id?: string) {
|
||||
return request({
|
||||
url: "/integrated/ad-record/" + id,
|
||||
method: "get",
|
||||
})
|
||||
}
|
||||
|
||||
export function delObjs(ids?: Object) {
|
||||
return request({
|
||||
url: "/integrated/ad-record",
|
||||
method: "delete",
|
||||
data: ids,
|
||||
})
|
||||
}
|
||||
|
||||
export function putObj(obj?: Object) {
|
||||
return request({
|
||||
url: "/integrated/ad-record",
|
||||
method: "put",
|
||||
data: obj,
|
||||
})
|
||||
}
|
||||
@@ -24,38 +24,22 @@
|
||||
</el-form>
|
||||
<el-row>
|
||||
<div class="mb8" style="width: 100%">
|
||||
<el-button icon="folder-add" type="primary" class="ml10" @click="formDialogRef.openDialog()" v-auth="'wallet_actCancel_add'">
|
||||
<el-button icon="folder-add" type="primary" class="ml10" @click="formDialogRef.openDialog()"
|
||||
v-auth="'wallet_actCancel_add'">
|
||||
新 增
|
||||
</el-button>
|
||||
<el-button
|
||||
plain
|
||||
:disabled="multiple"
|
||||
icon="Delete"
|
||||
type="primary"
|
||||
v-auth="'wallet_actCancel_del'"
|
||||
@click="handleDelete(selectObjs)"
|
||||
>
|
||||
<el-button plain :disabled="multiple" icon="Delete" type="primary" v-auth="'wallet_actCancel_del'"
|
||||
@click="handleDelete(selectObjs)">
|
||||
删除
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
:export="'wallet_actCancel_export'"
|
||||
@exportExcel="exportExcel"
|
||||
class="ml10 mr20"
|
||||
style="float: right"
|
||||
@queryTable="getDataList"
|
||||
></right-toolbar>
|
||||
<right-toolbar v-model:showSearch="showSearch" :export="'wallet_actCancel_export'"
|
||||
@exportExcel="exportExcel" class="ml10 mr20" style="float: right"
|
||||
@queryTable="getDataList"></right-toolbar>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-table
|
||||
:data="state.dataList"
|
||||
v-loading="state.loading"
|
||||
border
|
||||
:cell-style="tableStyle.cellStyle"
|
||||
:header-cell-style="tableStyle.headerCellStyle"
|
||||
@selection-change="selectionChangHandle"
|
||||
@sort-change="sortChangeHandle"
|
||||
>
|
||||
<el-table :data="state.dataList" v-loading="state.loading" 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="index" label="#" width="40" />
|
||||
<el-table-column prop="merchantName" label="活动商户" show-overflow-tooltip />
|
||||
@@ -68,14 +52,8 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="actStatus" label="活动状态" min-width="120" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-switch
|
||||
active-value="1"
|
||||
inactive-value="2"
|
||||
active-text="开启活动"
|
||||
inactive-text="关闭活动"
|
||||
v-model="row.actStatus"
|
||||
@change="updateActStatusChange(row)"
|
||||
/>
|
||||
<el-switch active-value="1" inactive-value="2" active-text="开启活动" inactive-text="关闭活动"
|
||||
v-model="row.actStatus" @change="updateActStatusChange(row)" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="actStatus" label="预约总数" show-overflow-tooltip>
|
||||
@@ -95,14 +73,17 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150">
|
||||
<template #default="{ row }">
|
||||
<el-button icon="edit-pen" text type="primary" v-auth="'wallet_actCancel_edit'" @click="formDialogRef.openDialog(row.id)">
|
||||
<el-button icon="edit-pen" text type="primary" v-auth="'wallet_actCancel_edit'"
|
||||
@click="formDialogRef.openDialog(row.id)">
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button icon="delete" text type="primary" v-auth="'wallet_actCancel_del'" @click="handleDelete([row.id])"> 删除 </el-button>
|
||||
<el-button icon="delete" text type="primary" v-auth="'wallet_actCancel_del'"
|
||||
@click="handleDelete([row.id])"> 删除 </el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</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>
|
||||
|
||||
<!-- 编辑、新增 -->
|
||||
|
||||
@@ -22,15 +22,9 @@
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-table
|
||||
:data="state.dataList"
|
||||
v-loading="state.loading"
|
||||
border
|
||||
:cell-style="tableStyle.cellStyle"
|
||||
:header-cell-style="tableStyle.headerCellStyle"
|
||||
@selection-change="selectionChangHandle"
|
||||
@sort-change="sortChangeHandle"
|
||||
>
|
||||
<el-table :data="state.dataList" v-loading="state.loading" 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="index" label="#" width="40" />
|
||||
<el-table-column prop="mchName" label="活动商户" />
|
||||
@@ -47,21 +41,15 @@
|
||||
<el-table-column prop="expireTime" label="过期时间" />
|
||||
<el-table-column label="操作" v-if="false" width="150">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
icon="edit-pen"
|
||||
text
|
||||
type="primary"
|
||||
v-auth="'wallet_actCancelItem_edit'"
|
||||
@click="formDialogRef.openDialog(scope.row.id)"
|
||||
>编辑</el-button
|
||||
>
|
||||
<el-button icon="delete" text type="primary" v-auth="'wallet_actCancelItem_del'" @click="handleDelete([scope.row.id])"
|
||||
>删除</el-button
|
||||
>
|
||||
<el-button icon="edit-pen" text type="primary" v-auth="'wallet_actCancelItem_edit'"
|
||||
@click="formDialogRef.openDialog(scope.row.id)">编辑</el-button>
|
||||
<el-button icon="delete" text type="primary" v-auth="'wallet_actCancelItem_del'"
|
||||
@click="handleDelete([scope.row.id])">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</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>
|
||||
|
||||
<!-- 编辑、新增 -->
|
||||
|
||||
Executable
+117
@@ -0,0 +1,117 @@
|
||||
<template>
|
||||
<div class="layout-padding">
|
||||
<div class="layout-padding-auto layout-padding-view">
|
||||
<el-form ref="queryRef" :inline="true" :model="state.queryForm" @keyup.enter="getDataList">
|
||||
<el-row>
|
||||
<el-form-item style="width: 300px" label="用户" prop="userId">
|
||||
<select-user v-model="state.queryForm.userId" />
|
||||
</el-form-item>
|
||||
<el-form-item style="width: 300px" label="广告类型" prop="adType">
|
||||
<dict-select v-model="state.queryForm.adType" dict-code="ad_type" />
|
||||
</el-form-item>
|
||||
<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-form-item>
|
||||
<el-form-item>
|
||||
<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-form-item>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-row>
|
||||
<div class="mb8" style="width: 100%">
|
||||
<!-- :export="'third_thirdAdRecord_export'" -->
|
||||
<right-toolbar v-model:showSearch="showSearch" @exportExcel="exportExcel" class="ml10 mr20"
|
||||
style="float: right;" @queryTable="getDataList"></right-toolbar>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-table :data="state.dataList" v-loading="state.loading" 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="index" label="#" width="40" />
|
||||
<el-table-column label="观看用户">
|
||||
<el-table-column prop="username" label="姓名">
|
||||
</el-table-column>
|
||||
<el-table-column prop="userMobile" width="120" label="手机号">
|
||||
</el-table-column>
|
||||
<el-table-column prop="userDeptName" label="部门">
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column prop="transId" label="交易编号" width="280" />
|
||||
<el-table-column prop="adId" label="广告编号" show-overflow-tooltip />
|
||||
<el-table-column prop="adType" label="广告类型" width="150">
|
||||
<template #default="{ row }">
|
||||
<dict-tag :value="row.adType" :options="ad_type" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="adProvider" label="广告服务商" show-overflow-tooltip />
|
||||
<el-table-column prop="visitPlatform" label="观看手机平台" show-overflow-tooltip />
|
||||
<el-table-column prop="extra" label="额外参数" show-overflow-tooltip />
|
||||
<el-table-column prop="createTime" width="180" label="观看时间" />
|
||||
</el-table>
|
||||
<pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" v-bind="state.pagination" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="systemThirdAdRecord">
|
||||
import { BasicTableProps, useTable } from "/@/hooks/table";
|
||||
import * as adRecordApi from "/@/api/integrated/adRecord";
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message";
|
||||
import { useDict } from '/@/hooks/dict';
|
||||
|
||||
|
||||
// 定义查询字典
|
||||
const { ad_type } = useDict('ad_type')
|
||||
// 定义变量内容
|
||||
|
||||
// 搜索变量
|
||||
const queryRef = ref()
|
||||
const showSearch = ref(true)
|
||||
// 多选变量
|
||||
const selectObjs = ref([]) as any
|
||||
const multiple = ref(true)
|
||||
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
queryForm: {},
|
||||
pageList: adRecordApi.fetchList
|
||||
})
|
||||
|
||||
// table hook
|
||||
const {
|
||||
getDataList,
|
||||
currentChangeHandle,
|
||||
sizeChangeHandle,
|
||||
sortChangeHandle,
|
||||
downBlobFile,
|
||||
tableStyle
|
||||
} = useTable(state)
|
||||
|
||||
// 清空搜索条件
|
||||
const resetQuery = () => {
|
||||
// 清空搜索条件
|
||||
queryRef.value?.resetFields()
|
||||
// 清空多选
|
||||
selectObjs.value = []
|
||||
getDataList()
|
||||
}
|
||||
|
||||
// 导出excel
|
||||
const exportExcel = () => {
|
||||
downBlobFile('/third/thirdAdRecord/export', Object.assign(state.queryForm, { ids: selectObjs }), 'thirdAdRecord.xlsx')
|
||||
}
|
||||
|
||||
// 多选事件
|
||||
const selectionChangHandle = (objs: { id: string }[]) => {
|
||||
selectObjs.value = objs.map(({ id }) => id);
|
||||
multiple.value = !objs.length;
|
||||
};
|
||||
|
||||
|
||||
</script>
|
||||
@@ -74,6 +74,19 @@
|
||||
inactive-value="9"></el-switch>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="注销" show-overflow-tooltip min-width="150">
|
||||
<template #default="{ row }">
|
||||
<div class="flex-col cursor-pointer">
|
||||
<el-switch disabled v-model="row.closeAccountFlag" active-value="1"
|
||||
inactive-value="0" />
|
||||
<div class="text-sm color-primary"
|
||||
v-if="row.closeAccountFlag == 1 && row.closeAccountApplyTime">
|
||||
注销时间:{{ row.closeAccountApplyTime }}
|
||||
</div>
|
||||
<div class="text-sm color-danger" v-else>未注销</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="编制" min-width="80">
|
||||
<template #default="{ row }">
|
||||
<dict-tag :options="user_staffing_type" :value="row.staffingType" />
|
||||
|
||||
+13
-14
@@ -3,26 +3,22 @@
|
||||
<!-- 右上角控制组件 -->
|
||||
<Control />
|
||||
|
||||
<div
|
||||
class="w-full overflow-hidden bg-white border border-gray-200 shadow-lg dark:bg-slate-800 rounded-3xl dark:border-slate-700"
|
||||
style="max-width: 1000px"
|
||||
>
|
||||
<div class="w-full overflow-hidden bg-white border border-gray-200 shadow-lg dark:bg-slate-800 rounded-3xl dark:border-slate-700"
|
||||
style="max-width: 1000px">
|
||||
<div class="w-full md:flex">
|
||||
<!-- 左侧插图区域 -->
|
||||
<div
|
||||
class="hidden w-[55%] bg-gradient-to-br from-blue-400 via-blue-300 to-blue-200 dark:from-slate-800 dark:via-slate-700 dark:to-slate-900/95 md:flex md:items-center md:justify-center"
|
||||
>
|
||||
<img
|
||||
class="w-[85%] h-auto max-h-[650px] object-contain opacity-100 dark:opacity-75 transition-opacity duration-300 hover:opacity-90"
|
||||
class="hidden w-[55%] bg-gradient-to-br from-blue-400 via-blue-300 to-blue-200 dark:from-slate-800 dark:via-slate-700 dark:to-slate-900/95 md:flex md:items-center md:justify-center">
|
||||
<img class="w-[85%] h-auto max-h-[650px] object-contain opacity-100 dark:opacity-75 transition-opacity duration-300 hover:opacity-90"
|
||||
:src="!themeConfig.background ? illustration : baseURL + themeConfig.background"
|
||||
alt="Login illustration"
|
||||
/>
|
||||
alt="Login illustration" />
|
||||
</div>
|
||||
|
||||
<!-- 右侧登录表单区域 -->
|
||||
<div class="w-full px-5 py-12 md:w-[45%] md:px-12">
|
||||
<div class="mb-12 text-center">
|
||||
<h1 class="text-4xl font-bold text-gray-900 dark:text-white tracking-wide font-['Inter']">{{ getThemeConfig.globalTitle }}</h1>
|
||||
<h1 class="text-4xl font-bold text-gray-900 dark:text-white tracking-wide font-['Inter']">{{
|
||||
getThemeConfig.globalTitle }}</h1>
|
||||
<!-- 租户选择 -->
|
||||
<div class="mt-6">
|
||||
<tenant class="shadow-sm" />
|
||||
@@ -32,9 +28,12 @@
|
||||
<div class="w-full px-5">
|
||||
<!-- 登录表单组件 -->
|
||||
<register v-if="loginType === LoginTypeEnum.REGISTER" @change="changeLoginType" />
|
||||
<password v-if="loginType === LoginTypeEnum.PASSWORD" @signInSuccess="signInSuccess" @change="changeLoginType" />
|
||||
<mobile v-if="loginType === LoginTypeEnum.MOBILE" @signInSuccess="signInSuccess" @change="changeLoginType" />
|
||||
<expire v-if="loginType === LoginTypeEnum.EXPIRE" :username="username" @change="changeLoginType" />
|
||||
<password v-if="loginType === LoginTypeEnum.PASSWORD" @signInSuccess="signInSuccess"
|
||||
@change="changeLoginType" />
|
||||
<mobile v-if="loginType === LoginTypeEnum.MOBILE" @signInSuccess="signInSuccess"
|
||||
@change="changeLoginType" />
|
||||
<expire v-if="loginType === LoginTypeEnum.EXPIRE" :username="username"
|
||||
@change="changeLoginType" />
|
||||
|
||||
<!-- 社交登录 -->
|
||||
<!-- <social @signInSuccess="signInSuccess" /> -->
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
<select-user v-model="state.queryForm.userIds" />
|
||||
</el-form-item>
|
||||
<el-form-item style="width: 250px" label="是否激活" prop="isActiveHardware">
|
||||
<dict-select v-model="state.queryForm.isActiveHardware" dict-code="yes_no_type" placeholder="是否激活" />
|
||||
<dict-select v-model="state.queryForm.isActiveHardware" dict-code="yes_no_type"
|
||||
placeholder="是否激活" />
|
||||
</el-form-item>
|
||||
<el-form-item style="width: 250px" label="卡号" prop="cardNumber">
|
||||
<el-input v-model="state.queryForm.cardNumber" placeholder="饭卡卡号" clearable />
|
||||
@@ -29,38 +30,22 @@
|
||||
|
||||
<el-row>
|
||||
<div class="mb8" style="width: 100%">
|
||||
<el-button icon="folder-add" type="primary" class="ml10" @click="formDialogRef.openDialog()" v-auth="'wallet_walletActive_add'">
|
||||
<el-button icon="folder-add" type="primary" class="ml10" @click="formDialogRef.openDialog()"
|
||||
v-auth="'wallet_walletActive_add'">
|
||||
开 卡
|
||||
</el-button>
|
||||
<el-button
|
||||
plain
|
||||
:disabled="multiple"
|
||||
icon="Delete"
|
||||
type="primary"
|
||||
v-auth="'wallet_walletActive_del'"
|
||||
@click="handleDelete(selectObjs)"
|
||||
>
|
||||
<el-button plain :disabled="multiple" icon="Delete" type="primary"
|
||||
v-auth="'wallet_walletActive_del'" @click="handleDelete(selectObjs)">
|
||||
删除
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
:export="'wallet_walletActive_export'"
|
||||
@exportExcel="exportExcel"
|
||||
class="ml10 mr20"
|
||||
style="float: right"
|
||||
@queryTable="getDataList"
|
||||
></right-toolbar>
|
||||
<right-toolbar v-model:showSearch="showSearch" :export="'wallet_walletActive_export'"
|
||||
@exportExcel="exportExcel" class="ml10 mr20" style="float: right"
|
||||
@queryTable="getDataList"></right-toolbar>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-table
|
||||
:data="state.dataList"
|
||||
v-loading="state.loading"
|
||||
border
|
||||
:cell-style="tableStyle.cellStyle"
|
||||
:header-cell-style="tableStyle.headerCellStyle"
|
||||
@selection-change="selectionChangHandle"
|
||||
@sort-change="sortChangeHandle"
|
||||
>
|
||||
<el-table :data="state.dataList" v-loading="state.loading" 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="index" label="#" width="80" />
|
||||
<el-table-column prop="username" label="用户" show-overflow-tooltip />
|
||||
@@ -74,47 +59,21 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="200">
|
||||
<template #default="{ row }">
|
||||
<el-button
|
||||
v-auth="'wallet_walletActive_refresh_active'"
|
||||
v-if="row.isActiveHardware == 1"
|
||||
icon="RefreshRight"
|
||||
text
|
||||
type="primary"
|
||||
@click="doRefreshAvatar(row)"
|
||||
>重新激活</el-button
|
||||
>
|
||||
<el-button
|
||||
v-auth="'wallet_walletActive_bind_card'"
|
||||
v-if="!row.userId"
|
||||
icon="Paperclip"
|
||||
text
|
||||
type="primary"
|
||||
@click="bindUserFormDialogRef.openDialog(row.id)"
|
||||
>绑定用户</el-button
|
||||
>
|
||||
<el-button
|
||||
v-auth="'wallet_walletActive_cancel_bind_card'"
|
||||
v-if="row.userId"
|
||||
icon="Scissor"
|
||||
text
|
||||
type="primary"
|
||||
@click="doCancelBind(row)"
|
||||
>取消绑定</el-button
|
||||
>
|
||||
<el-button
|
||||
v-if="false"
|
||||
icon="edit-pen"
|
||||
text
|
||||
type="primary"
|
||||
v-auth="'wallet_walletActive_edit'"
|
||||
@click="formDialogRef.openDialog(row.id)"
|
||||
>编辑</el-button
|
||||
>
|
||||
<el-button icon="delete" text type="primary" v-auth="'wallet_walletActive_del'" @click="handleDelete([row.id])">删除</el-button>
|
||||
<el-button v-auth="'wallet_walletActive_refresh_active'" v-if="row.isActiveHardware == 1"
|
||||
icon="RefreshRight" text type="primary" @click="doRefreshAvatar(row)">重新激活</el-button>
|
||||
<el-button v-auth="'wallet_walletActive_bind_card'" v-if="!row.userId" icon="Paperclip" text
|
||||
type="primary" @click="bindUserFormDialogRef.openDialog(row.id)">绑定用户</el-button>
|
||||
<el-button v-auth="'wallet_walletActive_cancel_bind_card'" v-if="row.userId" icon="Scissor" text
|
||||
type="primary" @click="doCancelBind(row)">取消绑定</el-button>
|
||||
<el-button v-if="false" icon="edit-pen" text type="primary" v-auth="'wallet_walletActive_edit'"
|
||||
@click="formDialogRef.openDialog(row.id)">编辑</el-button>
|
||||
<el-button icon="delete" text type="primary" v-auth="'wallet_walletActive_del'"
|
||||
@click="handleDelete([row.id])">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</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>
|
||||
|
||||
<form-dialog ref="formDialogRef" @refresh="getDataList(false)" />
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
<template>
|
||||
<el-dialog v-model="visible" title="预览" width="800px" :close-on-click-modal="false" draggable destroy-on-close>
|
||||
<div v-loading="loading" id="receiptRef" ref="receiptRef" class="w-[17.5cm] h-[9.5cm] border border-gray-400 p-6 bg-[#EBE1C622]">
|
||||
<div class="text-center mx-auto w-[10cm] text-3xl font-bold">浦江县行政事业单位食堂统一收款收据</div>
|
||||
<div v-loading="loading" id="receiptRef" ref="receiptRef"
|
||||
class="w-[17.5cm] h-[9.5cm] border border-gray-400 p-6 bg-[#EBE1C622]">
|
||||
<div class="text-center mx-auto w-[10cm] text-3xl font-bold">智慧后勤一体化平台一收款收据</div>
|
||||
|
||||
<div class="flex justify-between items-end mb-1">
|
||||
<div></div>
|
||||
<div>
|
||||
{{ formatDate(new Date(receiptData.time), "YYYY年 mm月 dd日") || " 年 月 日".replace(/ /g, " ") }}
|
||||
{{ formatDate(new Date(receiptData.time), "YYYY年 mm月 dd日") || " 年 月 日".replace(/ /g, " ")
|
||||
}}
|
||||
</div>
|
||||
<span>
|
||||
<span>No. </span>
|
||||
@@ -19,13 +21,9 @@
|
||||
<tr>
|
||||
<td class="border border-gray-600 px-2 w-3/12 h-[0.75cm]">交款单位(或个人)</td>
|
||||
<td class="border border-gray-600 px-2 w-9/12 h-[0.75cm] text-sm text-blue-800" colspan="4">
|
||||
<input
|
||||
type="text"
|
||||
v-model="receiptData.deptOrUser"
|
||||
class="caret-red-600 w-full h-full bg-transparent text-center"
|
||||
ref="deptOrUserInput"
|
||||
maxlength="30"
|
||||
/>
|
||||
<input type="text" v-model="receiptData.deptOrUser"
|
||||
class="caret-red-600 w-full h-full bg-transparent text-center" ref="deptOrUserInput"
|
||||
maxlength="30" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -62,14 +60,10 @@
|
||||
<td class="border border-gray-600 px-2 w-1/6 h-[0.75cm]">收款单位<br />(盖章)</td>
|
||||
<td class="border border-gray-600 px-2 text-left w-1/6 h-[0.75cm] text-sm text-blue-800">
|
||||
<!-- <input type="text" v-model="receiptData.payeeDept" class="w-full h-full bg-transparent" /> -->
|
||||
<img
|
||||
v-if="receiptData.stampPicUrl && visibleStampPic"
|
||||
class="w-[2.5cm] h-[2.5cm] absolute -top-2 left-[140px]"
|
||||
draggable="false"
|
||||
<img v-if="receiptData.stampPicUrl && visibleStampPic"
|
||||
class="w-[2.5cm] h-[2.5cm] absolute -top-2 left-[140px]" draggable="false"
|
||||
style="-webkit-user-drag: none; user-select: none; pointer-events: none"
|
||||
oncontextmenu="return false"
|
||||
src="/@/assets/receiptStamp.png"
|
||||
/>
|
||||
oncontextmenu="return false" src="/@/assets/receiptStamp.png" />
|
||||
</td>
|
||||
<td class="border border-gray-600 px-2 w-1/6 h-[0.75cm]">开票人<br />(签名)</td>
|
||||
<td class="border border-gray-600 px-2 text-left w-1/6 h-[0.75cm] text-sm text-blue-800">
|
||||
@@ -79,11 +73,8 @@
|
||||
<td class="border border-gray-600 px-2 text-left align-text-top w-1/3 h-[0.75cm]">
|
||||
<div class="flex">
|
||||
<span class="whitespace-nowrap">备注:</span>
|
||||
<textarea
|
||||
v-model="receiptData.remark"
|
||||
maxlength="12"
|
||||
class="flex-1 text-sm text-blue-800 w-full h-full bg-transparent resize-none overflow-y-hidden"
|
||||
/>
|
||||
<textarea v-model="receiptData.remark" maxlength="12"
|
||||
class="flex-1 text-sm text-blue-800 w-full h-full bg-transparent resize-none overflow-y-hidden" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -99,48 +90,20 @@
|
||||
<template #footer>
|
||||
<el-button @click="handleClose" :disabled="loading">关闭</el-button>
|
||||
<!-- ['2', '3'].includes(receiptData.processStatus!) && !['6'].includes(receiptData.status!) -->
|
||||
<el-button
|
||||
v-if="['2', '3'].includes(receiptData.processStatus!)"
|
||||
v-auth="'wallet_walletRechargeApply_back'"
|
||||
type="primary"
|
||||
plain
|
||||
@click="backInvoice"
|
||||
:disabled="loading"
|
||||
>
|
||||
<el-button v-if="['2', '3'].includes(receiptData.processStatus!)" v-auth="'wallet_walletRechargeApply_back'"
|
||||
type="primary" plain @click="backInvoice" :disabled="loading">
|
||||
作废
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="!receiptData.processStatus && !['6'].includes(receiptData.status!)"
|
||||
type="primary"
|
||||
:disabled="loading"
|
||||
@click="applyStamp"
|
||||
>申请审批</el-button
|
||||
>
|
||||
<el-button
|
||||
v-if="receiptData.processStatus == undefined && !['6'].includes(receiptData.status!)"
|
||||
v-auth="'wallet_walletRechargeApply_receiptSave'"
|
||||
type="primary"
|
||||
@click="saveReceipt"
|
||||
:disabled="loading"
|
||||
>保存</el-button
|
||||
>
|
||||
<el-button
|
||||
v-if="receiptData.stampPicUrl && !['6'].includes(receiptData.status!)"
|
||||
type="warning"
|
||||
@click="handlePrint"
|
||||
:disabled="loading"
|
||||
>打印</el-button
|
||||
>
|
||||
<el-button
|
||||
v-auth="'wallet_invoice_refresh'"
|
||||
v-if="receiptData.stampPicUrl && !['6'].includes(receiptData.status!)"
|
||||
type="primary"
|
||||
plain
|
||||
icon="RefreshRight"
|
||||
@click="refreshInvoice"
|
||||
:disabled="refreshLoading"
|
||||
>重新生成发票</el-button
|
||||
>
|
||||
<el-button v-if="!receiptData.processStatus && !['6'].includes(receiptData.status!)" type="primary"
|
||||
:disabled="loading" @click="applyStamp">申请审批</el-button>
|
||||
<el-button v-if="receiptData.processStatus == undefined && !['6'].includes(receiptData.status!)"
|
||||
v-auth="'wallet_walletRechargeApply_receiptSave'" type="primary" @click="saveReceipt"
|
||||
:disabled="loading">保存</el-button>
|
||||
<el-button v-if="receiptData.stampPicUrl && !['6'].includes(receiptData.status!)" type="warning"
|
||||
@click="handlePrint" :disabled="loading">打印</el-button>
|
||||
<el-button v-auth="'wallet_invoice_refresh'"
|
||||
v-if="receiptData.stampPicUrl && !['6'].includes(receiptData.status!)" type="primary" plain
|
||||
icon="RefreshRight" @click="refreshInvoice" :disabled="refreshLoading">重新生成发票</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user