|
@@ -33,16 +33,10 @@
|
|
|
<order-detail :order="{ id: row.orderId }" @updateList="queryList">{{ row.title }}</order-detail>
|
|
|
</template>
|
|
|
<template #action="{ row }">
|
|
|
- <el-button link type="primary" @click="onAudit(row)" v-auth="'snapshot:reAudit:citizen:audit'" v-if="row.auditStatus === 0">
|
|
|
+ <el-button link type="primary" @click="onAudit(row)" v-auth="'snapshot:reAudit:special:audit'" v-if="row.auditStatus === 0">
|
|
|
审批
|
|
|
</el-button>
|
|
|
- <el-button link type="danger" @click="onReturn(row)" v-auth="'snapshot:reAudit:citizen:return'" v-if="row.auditStatus === 0">
|
|
|
- 退回
|
|
|
- </el-button>
|
|
|
- <el-button link type="primary" @click="onRemark(row)" v-auth="'snapshot:reAudit:citizen:remark'" v-if="row.auditStatus === 1">
|
|
|
- 添加备注
|
|
|
- </el-button>
|
|
|
- <el-button link type="primary" @click="onSupply(row)" v-auth="'snapshot:reAudit:citizen:supply'" v-if="row.auditStatus === 1">
|
|
|
+ <el-button link type="primary" @click="onSupply(row)" v-auth="'snapshot:reAudit:special:supply'" v-if="row.auditStatus === 1">
|
|
|
补充发放
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -91,18 +85,23 @@
|
|
|
<el-form-item label="来电人电话" prop="FromPhone">
|
|
|
<el-input v-model="state.queryParams.FromPhone" placeholder="请填写来电人电话" clearable @keyup.enter="handleQuery" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="审批金额" prop="AcutalAmount">
|
|
|
- <el-input v-model="state.queryParams.AcutalAmount" placeholder="请填写审批金额" clearable @keyup.enter="handleQuery" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="补充发放金额" prop="AcutalAmount">
|
|
|
- <el-input v-model="state.queryParams.AcutalAmount" placeholder="请填写补充发放金额" clearable @keyup.enter="handleQuery" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="补发卡号" prop="ApprovedAmount">
|
|
|
- <el-input v-model="state.queryParams.ApprovedAmount" placeholder="请填写补发卡号" clearable @keyup.enter="handleQuery" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="区域" prop="ApprovedAmount">
|
|
|
- <el-input v-model="state.queryParams.ApprovedAmount" placeholder="请填写区域" clearable @keyup.enter="handleQuery" />
|
|
|
- </el-form-item>
|
|
|
+ <el-form-item label="行业类型" prop="IndustryId">
|
|
|
+ <el-select v-model="state.queryParams.IndustryId" class="w100" placeholder="请选择行业类型" @change="handleQuery" clearable>
|
|
|
+ <el-option v-for="item in industryOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="审批金额" prop="AcutalAmount">
|
|
|
+ <el-input v-model="state.queryParams.AcutalAmount" placeholder="请填写审批金额" clearable @keyup.enter="handleQuery" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="补充发放金额" prop="AcutalAmount">
|
|
|
+ <el-input v-model="state.queryParams.AcutalAmount" placeholder="请填写补充发放金额" clearable @keyup.enter="handleQuery" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="补发卡号" prop="ApprovedAmount">
|
|
|
+ <el-input v-model="state.queryParams.ApprovedAmount" placeholder="请填写补发卡号" clearable @keyup.enter="handleQuery" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="区域" prop="ApprovedAmount">
|
|
|
+ <el-input v-model="state.queryParams.ApprovedAmount" placeholder="请填写区域" clearable @keyup.enter="handleQuery" />
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
@@ -110,13 +109,9 @@
|
|
|
</template>
|
|
|
</el-drawer>
|
|
|
<!-- 红包审批 -->
|
|
|
- <re-audit ref="reAuditRef" @updateList="queryList" />
|
|
|
- <!-- 红包退回 -->
|
|
|
- <re-return ref="reReturnRef" @updateList="queryList" />
|
|
|
+ <re-audit-special ref="reAuditRef" @updateList="queryList" />
|
|
|
<!-- 红包补充 -->
|
|
|
- <re-supply ref="reSupplyRef" @updateList="queryList" />
|
|
|
- <!-- 红包备注 -->
|
|
|
- <re-remark ref="reRemarkRef" @updateList="queryList" />
|
|
|
+ <re-supply-special ref="reSupplyRef" @updateList="queryList" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -126,18 +121,16 @@ import { ElMessage, FormInstance } from 'element-plus';
|
|
|
import { defaultTimeStartEnd, shortcuts } from '@/utils/constants';
|
|
|
import {
|
|
|
getCitizenRedEnvelopeApprovalBaseData,
|
|
|
- getCitizenRedEnvelopeApprovalExport,
|
|
|
- getCitizenRedEnvelopeApprovalList,
|
|
|
+ getSpecialRedEnvelopeApprovalList,
|
|
|
+ getSpecialRedEnvelopeApprovalListExport,
|
|
|
} from '@/api/snapshot/reAudit';
|
|
|
import Other from '@/utils/other';
|
|
|
|
|
|
// 引入组件
|
|
|
const pagination = defineAsyncComponent(() => import('@/components/ProTable/components/Pagination.vue')); // 分页
|
|
|
const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/index.vue')); // 工单详情
|
|
|
-const ReAudit = defineAsyncComponent(() => import('@/views/snapshot/reAudit/components/Re-audit.vue')); // 红包审批
|
|
|
-const ReReturn = defineAsyncComponent(() => import('@/views/snapshot/reAudit/components/Re-return.vue')); // 红包退回
|
|
|
-const ReRemark = defineAsyncComponent(() => import('@/views/snapshot/reAudit/components/Re-remark.vue')); // 红包备注
|
|
|
-const ReSupply = defineAsyncComponent(() => import('@/views/snapshot/reAudit/components/Re-supply.vue')); // 红包补充
|
|
|
+const ReAuditSpecial = defineAsyncComponent(() => import('@/views/snapshot/reAudit/components/Re-audit-special.vue')); // 红包审批
|
|
|
+const ReSupplySpecial = defineAsyncComponent(() => import('@/views/snapshot/reAudit/components/Re-supply-special.vue')); // 红包补充
|
|
|
|
|
|
// 定义变量内容
|
|
|
const state = reactive<any>({
|
|
@@ -197,13 +190,13 @@ const gridOptions = reactive<any>({
|
|
|
tools: [{ toolRender: { name: 'exportCurrent' } }, { toolRender: { name: 'exportAll' } }],
|
|
|
},
|
|
|
params: {
|
|
|
- exportMethod: getCitizenRedEnvelopeApprovalExport,
|
|
|
+ exportMethod: getSpecialRedEnvelopeApprovalListExport,
|
|
|
exportParams: requestParams,
|
|
|
},
|
|
|
customConfig: {
|
|
|
storage: true,
|
|
|
},
|
|
|
- id: 'snapshotReSendCitizen',
|
|
|
+ id: 'snapshotReAuditSpecial',
|
|
|
rowConfig: { isHover: true, height: 30, isCurrent: true, useKey: true },
|
|
|
height: 'auto',
|
|
|
columns: [
|
|
@@ -265,72 +258,72 @@ const gridOptions = reactive<any>({
|
|
|
title: '补充发放金额',
|
|
|
width: 120,
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
field: 'replenishAmount',
|
|
|
title: '补发姓名',
|
|
|
width: 140,
|
|
|
},
|
|
|
- {
|
|
|
- field: 'bankCardNo',
|
|
|
- title: '补发卡号',
|
|
|
- width: 140,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'openBank',
|
|
|
- title: '补发开户行',
|
|
|
- width: 140,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'county',
|
|
|
- title: '区域',
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'isRectify',
|
|
|
- title: '部门是否整改完成',
|
|
|
- width: 140,
|
|
|
- slots: {
|
|
|
- default: ({ row }) => {
|
|
|
- return row.isRectify === null ? '' : row.isRectify ? '是' : '否';
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'isTruthDepartment',
|
|
|
- title: '部门是否属实',
|
|
|
- width: 120,
|
|
|
- slots: {
|
|
|
- default: ({ row }) => {
|
|
|
- return row.isTruthDepartment === null ? '' : row.isTruthDepartment ? '是' : '否';
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'creationTime',
|
|
|
- title: '受理时间',
|
|
|
- formatter: 'formatDate',
|
|
|
- width: 160,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'auditStatusTxt',
|
|
|
- title: '审批状态',
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'auditName',
|
|
|
- title: '审批人',
|
|
|
- width: 120,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'auditOrgName',
|
|
|
- title: '审批部门',
|
|
|
- width: 140,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'auditRemark',
|
|
|
- title: '审批意见',
|
|
|
- minWidth: 200,
|
|
|
- },
|
|
|
+ {
|
|
|
+ field: 'bankCardNo',
|
|
|
+ title: '补发卡号',
|
|
|
+ width: 140,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'openBank',
|
|
|
+ title: '补发开户行',
|
|
|
+ width: 140,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'county',
|
|
|
+ title: '区域',
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'isRectify',
|
|
|
+ title: '部门是否整改完成',
|
|
|
+ width: 140,
|
|
|
+ slots: {
|
|
|
+ default: ({ row }) => {
|
|
|
+ return row.isRectify === null ? '' : row.isRectify ? '是' : '否';
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'isTruthDepartment',
|
|
|
+ title: '部门是否属实',
|
|
|
+ width: 120,
|
|
|
+ slots: {
|
|
|
+ default: ({ row }) => {
|
|
|
+ return row.isTruthDepartment === null ? '' : row.isTruthDepartment ? '是' : '否';
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'creationTime',
|
|
|
+ title: '受理时间',
|
|
|
+ formatter: 'formatDate',
|
|
|
+ width: 160,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'auditStatusTxt',
|
|
|
+ title: '审批状态',
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'auditName',
|
|
|
+ title: '审批人',
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'auditOrgName',
|
|
|
+ title: '审批部门',
|
|
|
+ width: 140,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'auditRemark',
|
|
|
+ title: '审批意见',
|
|
|
+ minWidth: 200,
|
|
|
+ },
|
|
|
{
|
|
|
title: '操作',
|
|
|
width: 160,
|
|
@@ -358,7 +351,7 @@ const queryList = () => {
|
|
|
requestParams.value.BeginAuditTime = state.queryParams.spTime === null ? null : state.queryParams.spTime[0]; // 审批时间
|
|
|
requestParams.value.EndAuditTime = state.queryParams.spTime === null ? null : state.queryParams.spTime[1];
|
|
|
Reflect.deleteProperty(requestParams.value, 'spTime'); // 删除无用的参数
|
|
|
- getCitizenRedEnvelopeApprovalList(requestParams.value)
|
|
|
+ getSpecialRedEnvelopeApprovalList(requestParams.value)
|
|
|
.then((res) => {
|
|
|
state.loading = false;
|
|
|
gridOptions.data = res.result.items ?? [];
|
|
@@ -411,20 +404,6 @@ const reAuditRef = ref<RefType>();
|
|
|
const onAudit = (row: any) => {
|
|
|
reAuditRef.value.openDialog(row);
|
|
|
};
|
|
|
-// 退回
|
|
|
-const reReturnRef = ref<RefType>();
|
|
|
-const onReturn = (row: any) => {
|
|
|
- reReturnRef.value.openDialog(row);
|
|
|
-};
|
|
|
-// 添加备注
|
|
|
-const reRemarkRef = ref<RefType>();
|
|
|
-const onRemark = (row: any) => {
|
|
|
- if (checkTable.value.length > 1) {
|
|
|
- ElMessage.warning('只能选择1个添加备注。');
|
|
|
- return;
|
|
|
- }
|
|
|
- reRemarkRef.value.openDialog(row);
|
|
|
-};
|
|
|
// 补充
|
|
|
const reSupplyRef = ref<RefType>();
|
|
|
const onSupply = (row: any) => {
|