|
|
@@ -8,13 +8,8 @@
|
|
|
</el-button>
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
- <el-dropdown-item
|
|
|
- icon="Download"
|
|
|
- @click="handleExport"
|
|
|
- v-hasPermi="['business:financialReportTax:export']"
|
|
|
- >
|
|
|
- 导出</el-dropdown-item
|
|
|
- >
|
|
|
+ <el-dropdown-item icon="Download" @click="handleExport" v-hasPermi="['business:financialReportTax:export']">
|
|
|
+ 导出</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
</el-dropdown>
|
|
|
@@ -22,47 +17,22 @@
|
|
|
<!-- 搜索区 -->
|
|
|
<el-form class="list-search-container" :model="queryParams" ref="queryRef" :inline="true" label-width="68px">
|
|
|
<el-form-item label="客户名称:">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.companyName"
|
|
|
- type="text" size="small"
|
|
|
- placeholder="请输入客户名称"
|
|
|
- :clearable="true"
|
|
|
- style="width: 130px"
|
|
|
- />
|
|
|
+ <el-input v-model="queryParams.companyName" type="text" size="small" placeholder="请输入客户名称" :clearable="true"
|
|
|
+ style="width: 130px" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="客户标签:">
|
|
|
- <el-select v-model="queryParams.customerLabelId" size="small" style="width: 130px" clearable>
|
|
|
+ <el-select v-model="queryParams.customerLabelId" size="small" style="width: 130px" clearable>
|
|
|
<el-option v-for="item in options" :key="item.id" :label="item.lable" :value="item.id" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="所属期:" prop="year">
|
|
|
- <el-date-picker
|
|
|
- v-model="currentMonth"
|
|
|
- type="month"
|
|
|
- size="small"
|
|
|
- format="YYYY年MM月"
|
|
|
- value-format="YYYY-MM-01"
|
|
|
- :clearable="false"
|
|
|
- :disabled-date="disabledDateHandler"
|
|
|
- style="width: 120px"
|
|
|
- @change="monthChangeHandler"
|
|
|
- />
|
|
|
+ <el-date-picker v-model="currentMonth" type="month" size="small" format="YYYY年MM月" value-format="YYYY-MM-01"
|
|
|
+ :clearable="false" :disabled-date="disabledDateHandler" style="width: 120px" @change="monthChangeHandler" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="报税状态:">
|
|
|
- <el-select
|
|
|
- v-model="queryParams.status"
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- placeholder="状态"
|
|
|
- :clearable="true"
|
|
|
- style="width: 130px"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in selectStatus"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
+ <el-select v-model="queryParams.status" type="text" size="small" placeholder="状态" :clearable="true"
|
|
|
+ style="width: 130px">
|
|
|
+ <el-option v-for="item in selectStatus" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="审核人:" prop="verifierName">
|
|
|
@@ -75,33 +45,25 @@
|
|
|
format="YYYY - MM - DD " value-format="YYYY-MM-DD" range-separator="至" start-placeholder="业务日期"
|
|
|
end-placeholder="业务日期" style="width: 70%;"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
-<!--
|
|
|
+ <!--
|
|
|
<el-form-item v-if="tenant.versionId !== '4'" label="是否自己负责:" v-hasPermi="['business:taxeszero:person']">
|
|
|
<el-switch v-model="oneself" @change="handleOneself" />
|
|
|
</el-form-item> -->
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" icon="Search" size="small" @click="handleQuery"
|
|
|
- >搜索</el-button
|
|
|
- >
|
|
|
- <el-button icon="operation" @click="moreSearch = true" size="small" >更多</el-button>
|
|
|
- <el-button icon="Refresh" @click="resetQuery" size="small" >重置</el-button>
|
|
|
+ <el-button type="primary" icon="Search" size="small" @click="handleQuery">搜索</el-button>
|
|
|
+ <el-button icon="operation" @click="moreSearch = true" size="small">更多</el-button>
|
|
|
+ <el-button icon="Refresh" @click="resetQuery" size="small">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div v-if="flag && flag2 && tenant.versionId !== '4'">
|
|
|
- <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" >
|
|
|
- <el-tab-pane label="全部" name="first"></el-tab-pane>
|
|
|
- <el-tab-pane label="我的" name="second"></el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
+ <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
|
|
+ <el-tab-pane label="全部" name="first"></el-tab-pane>
|
|
|
+ <el-tab-pane label="我的" name="second"></el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
</div>
|
|
|
<!-- 列表区 -->
|
|
|
- <el-table
|
|
|
- v-loading="loading"
|
|
|
- :data="taxList"
|
|
|
- size="small"
|
|
|
- border
|
|
|
- height="100%"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
- >
|
|
|
+ <el-table v-loading="loading" :data="taxList" size="small" border height="100%"
|
|
|
+ @selection-change="handleSelectionChange">
|
|
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
|
|
<el-table-column label="客户名称" align="center" prop="companyName" min-width="250">
|
|
|
<template #default="scope">
|
|
|
@@ -121,58 +83,41 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="来源" align="center" prop="fromCompanyName" v-if="tenant.versionId === '4'" />
|
|
|
- <el-table-column label="受委托方" align="center" prop="toTenantName" min-width="130" v-if="tenant.versionId !== '4'" />
|
|
|
+ <el-table-column label="来源" align="center" prop="fromCompanyName" v-if="tenant.versionId === '4'" />
|
|
|
+ <el-table-column label="受委托方" align="center" prop="toTenantName" min-width="130"
|
|
|
+ v-if="tenant.versionId !== '4'" />
|
|
|
<!-- <el-table-column
|
|
|
label="税号"
|
|
|
align="center"
|
|
|
prop="socialCreditCode"
|
|
|
width="180"
|
|
|
/> -->
|
|
|
- <el-table-column
|
|
|
- label="纳税性质"
|
|
|
- align="center"
|
|
|
- width="100"
|
|
|
- prop="taxType"
|
|
|
- />
|
|
|
+ <el-table-column label="纳税性质" align="center" width="100" prop="taxType" />
|
|
|
<el-table-column label="是否零申报" align="center" prop="isZero">
|
|
|
<template #default="scope">
|
|
|
{{
|
|
|
- scope.row.isZero === 1 ? "是" : scope.row.isZero === 0 ? "否" : ""
|
|
|
+ scope.row.isZero === 1 ? "是" : scope.row.isZero === 0 ? "否" : ""
|
|
|
}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="报税填写" align="center" prop="evidenceFile">
|
|
|
<template #default="scope">
|
|
|
- <el-button
|
|
|
- link
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- v-hasPermi="['business:financialReportTax:saveDetail']"
|
|
|
- @click="fillIn(scope.row)"
|
|
|
- >{{
|
|
|
- scope.row.detail == null
|
|
|
- ? "填写"
|
|
|
- : scope.row.detail.status === 1
|
|
|
- ? "进行中"
|
|
|
- : "已填写"
|
|
|
- }}</el-button
|
|
|
- >
|
|
|
+ <el-button link type="primary" size="small" v-hasPermi="['business:financialReportTax:saveDetail']"
|
|
|
+ @click="fillIn(scope.row)">{{
|
|
|
+ scope.row.detail == null
|
|
|
+ ? "填写"
|
|
|
+ : scope.row.detail.status === 1
|
|
|
+ ? "进行中"
|
|
|
+ : "已填写"
|
|
|
+ }}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="报税附件" align="center" prop="content">
|
|
|
<template #default="scope">
|
|
|
- <el-button
|
|
|
- link
|
|
|
- type="primary"
|
|
|
- :disabled="
|
|
|
+ <el-button link type="primary" :disabled="
|
|
|
scope.row.detail == null || scope.row.detail.evidenceFile === ''
|
|
|
- "
|
|
|
- size="small"
|
|
|
- v-hasPermi="['business:financialReportTax:query']"
|
|
|
- @click="showFiles(scope.row)"
|
|
|
- >查看文件</el-button
|
|
|
- >
|
|
|
+ " size="small" v-hasPermi="['business:financialReportTax:query']"
|
|
|
+ @click="showFiles(scope.row)">查看文件</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" align="center" prop="verifyContent">
|
|
|
@@ -181,36 +126,28 @@
|
|
|
{{ getStatusLabel(scope.row) }}
|
|
|
<el-popover placement="top-start" width="250" trigger="hover">
|
|
|
<div style="display: flex; flex-direction: row">
|
|
|
- <div
|
|
|
- v-for="item in selectStatus"
|
|
|
- :key="item.value"
|
|
|
- style="display: flex; flex-direction: row; margin-right: 10px"
|
|
|
- >
|
|
|
- <div
|
|
|
- :style="{
|
|
|
+ <div v-for="item in selectStatus" :key="item.value"
|
|
|
+ style="display: flex; flex-direction: row; margin-right: 10px">
|
|
|
+ <div :style="{
|
|
|
backgroundColor: item.color,
|
|
|
width: '14px',
|
|
|
height: '14px',
|
|
|
margin: 'auto',
|
|
|
borderRadius: '50%',
|
|
|
border: item.color === '#fff' ? '1px solid #ddd' : 'none',
|
|
|
- }"
|
|
|
- />
|
|
|
- <div
|
|
|
- style="
|
|
|
+ }" />
|
|
|
+ <div style="
|
|
|
display: inline-block;
|
|
|
margin-left: 10px;
|
|
|
line-height: 36px;
|
|
|
font-size: 10px;
|
|
|
- "
|
|
|
- >
|
|
|
+ ">
|
|
|
{{ item.label }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<template #reference>
|
|
|
- <span
|
|
|
- style="
|
|
|
+ <span style="
|
|
|
color: #fff;
|
|
|
font-size: 12px;
|
|
|
text-align: center;
|
|
|
@@ -220,9 +157,7 @@
|
|
|
height: 14px;
|
|
|
background-color: #ccc;
|
|
|
border-radius: 50%;
|
|
|
- "
|
|
|
- >?</span
|
|
|
- >
|
|
|
+ ">?</span>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
@@ -230,9 +165,8 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="执行人" align="center" prop="serviceName" />
|
|
|
<el-table-column label="审核人" align="center" prop="verifierName" min-width="100" />
|
|
|
- <el-table-column label="审核时间" align="center" prop="verifierTime" min-width="100"
|
|
|
- :show-overflow-tooltip="true" />
|
|
|
- <el-table-column label="税号" align="center" prop="socialCreditCode" min-width="150"
|
|
|
+ <el-table-column label="审核时间" align="center" prop="verifierTime" min-width="100" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column label="税号" align="center" prop="socialCreditCode" min-width="150"
|
|
|
:show-overflow-tooltip="true" />
|
|
|
<!-- <el-table-column
|
|
|
label="操作"
|
|
|
@@ -256,116 +190,53 @@
|
|
|
</el-table>
|
|
|
|
|
|
<!-- 分页 -->
|
|
|
- <pagination
|
|
|
- v-show="total > 0"
|
|
|
- :total="total"
|
|
|
- v-model:page="queryParams.pageNum"
|
|
|
- v-model:limit="queryParams.pageSize"
|
|
|
- @pagination="getList"
|
|
|
- />
|
|
|
+ <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
+ v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
|
|
|
|
<!-- 表单 -->
|
|
|
<FormDialog ref="formDialog" :get-list="getList"></FormDialog>
|
|
|
<!-- 更多搜索弹窗 -->
|
|
|
- <el-dialog
|
|
|
- title="更多搜索"
|
|
|
- v-model="moreSearch"
|
|
|
- width="620px"
|
|
|
- append-to-body
|
|
|
- size="small"
|
|
|
- draggable
|
|
|
- :close-on-click-modal = "false"
|
|
|
- >
|
|
|
+ <el-dialog title="更多搜索" v-model="moreSearch" width="620px" append-to-body size="small" draggable
|
|
|
+ :close-on-click-modal="false">
|
|
|
<el-form ref="dictRef" size="small" label-width="100">
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="报税所属期:" prop="year">
|
|
|
- <el-date-picker
|
|
|
- size="small"
|
|
|
- v-model="currentMonth"
|
|
|
- type="month"
|
|
|
- format="YYYY年MM月"
|
|
|
- value-format="YYYY-MM-01"
|
|
|
- :disabled-date="disabledDateHandler"
|
|
|
- @change="monthChangeHandler"
|
|
|
- :clearable="false"
|
|
|
- />
|
|
|
+ <el-date-picker size="small" v-model="currentMonth" type="month" format="YYYY年MM月"
|
|
|
+ value-format="YYYY-MM-01" :disabled-date="disabledDateHandler" @change="monthChangeHandler"
|
|
|
+ :clearable="false" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="纳税性质:" prop="taxType">
|
|
|
- <el-select
|
|
|
- size="small"
|
|
|
- v-model="queryParams.taxType"
|
|
|
- placeholder="请选择纳税性质"
|
|
|
- :clearable="true"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in taxTypes"
|
|
|
- :key="item.label"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
+ <el-select size="small" v-model="queryParams.taxType" placeholder="请选择纳税性质" :clearable="true">
|
|
|
+ <el-option v-for="item in taxTypes" :key="item.label" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="报税状态:">
|
|
|
- <el-select
|
|
|
- size="small"
|
|
|
- v-model="queryParams.status"
|
|
|
- type="text"
|
|
|
- placeholder="状态"
|
|
|
- :clearable="true"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in selectStatus"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
+ <el-select size="small" v-model="queryParams.status" type="text" placeholder="状态" :clearable="true">
|
|
|
+ <el-option v-for="item in selectStatus" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="关键字:">
|
|
|
- <el-input
|
|
|
- size="small"
|
|
|
- v-model="queryParams.companyName"
|
|
|
- type="text"
|
|
|
- placeholder="请输入客户名称"
|
|
|
- :clearable="true"
|
|
|
- />
|
|
|
+ <el-input size="small" v-model="queryParams.companyName" type="text" placeholder="请输入客户名称"
|
|
|
+ :clearable="true" />
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="tenant.versionId === 4" label="来源:">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.fromCompanyName"
|
|
|
- size="small"
|
|
|
- type="text"
|
|
|
- placeholder="请输入客户来源"
|
|
|
- :clearable="true"
|
|
|
- />
|
|
|
+ <el-input v-model="queryParams.fromCompanyName" size="small" type="text" placeholder="请输入客户来源"
|
|
|
+ :clearable="true" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="税号:">
|
|
|
- <el-input
|
|
|
- size="small"
|
|
|
- v-model="queryParams.socialCreditCode"
|
|
|
- type="text"
|
|
|
- placeholder="请输入税号"
|
|
|
- :clearable="true"
|
|
|
- />
|
|
|
+ <el-input size="small" v-model="queryParams.socialCreditCode" type="text" placeholder="请输入税号"
|
|
|
+ :clearable="true" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<div class="dialog-footer">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- icon="Finished"
|
|
|
- size="small"
|
|
|
- @click="handleQuery"
|
|
|
- >确 定</el-button
|
|
|
- >
|
|
|
- <el-button icon="close" size="small" @click="moreSearch = false"
|
|
|
- >取 消</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" icon="Finished" size="small" @click="handleQuery">确 定</el-button>
|
|
|
+ <el-button icon="close" size="small" @click="moreSearch = false">取 消</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
@@ -373,79 +244,82 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup name="FinancialReportTaxIsZero">
|
|
|
-import {
|
|
|
- selectMonths,
|
|
|
- selectStatus,
|
|
|
- taxTypes,
|
|
|
- confirmDefault,
|
|
|
-} from "@/utils/default";
|
|
|
-import {
|
|
|
- listTax,
|
|
|
- deductionTurnBack,
|
|
|
- exportFinalTax,
|
|
|
-} from "@/api/business/production/taxIsZero";
|
|
|
-import useUserStore from "@/store/modules/user";
|
|
|
-import FormDialog from "./FormDialog.vue";
|
|
|
+ import {
|
|
|
+ selectMonths,
|
|
|
+ selectStatus,
|
|
|
+ taxTypes,
|
|
|
+ confirmDefault,
|
|
|
+ } from "@/utils/default";
|
|
|
+ import {
|
|
|
+ listTax,
|
|
|
+ deductionTurnBack,
|
|
|
+ exportFinalTax,
|
|
|
+ } from "@/api/business/production/taxIsZero";
|
|
|
+ import useUserStore from "@/store/modules/user";
|
|
|
+ import FormDialog from "./FormDialog.vue";
|
|
|
import { listLableNoPage } from "@/api/business/lable"
|
|
|
-const { proxy } = getCurrentInstance();
|
|
|
-/** 字典数组区 */
|
|
|
-/** 查询 对象 */
|
|
|
-const flag = ref(checkPermission(['business:taxeszero:person']))
|
|
|
-const flag2 = ref(checkPermission(['business:taxeszero:myself']))
|
|
|
- const activeName = flag.value ? ref('first') : ref('second');
|
|
|
-const tenant = useUserStore().tenant;
|
|
|
-const taxList = ref([]);
|
|
|
-const moreSearch = ref(false);
|
|
|
-const loading = ref(true);
|
|
|
-const oneself = ref(true);
|
|
|
-const ids = ref([]);
|
|
|
-const single = ref(true);
|
|
|
-const multiple = ref(true);
|
|
|
-const total = ref(0);
|
|
|
-const options = ref([]);
|
|
|
-const currentMonth = ref(
|
|
|
- proxy.moment().subtract(1, "month").format("YYYY-MM-01")
|
|
|
-);
|
|
|
-/** 查询对象 */
|
|
|
-const queryParams = ref({
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 20,
|
|
|
- tenantId: null,
|
|
|
- currentEmployeeId: null,
|
|
|
- employeeIds: null,
|
|
|
- createTime: null,
|
|
|
- creatorId: null,
|
|
|
- workOrderId: null,
|
|
|
- isStop: null,
|
|
|
- year: proxy.moment().subtract(1, "month").format("YYYY"),
|
|
|
- month: proxy.moment().subtract(1, "month").format("MM"),
|
|
|
- principal: tenant.versionId !== '4' && !flag.value ? useUserStore().user.userId : null,
|
|
|
-});
|
|
|
-
|
|
|
-/*********************** 方法区 ****************************/
|
|
|
-function getOption() {
|
|
|
+ const { proxy } = getCurrentInstance();
|
|
|
+ /** 字典数组区 */
|
|
|
+ /** 查询 对象 */
|
|
|
+ const flag = ref(checkPermission(['business:taxeszero:person']))
|
|
|
+ const flag2 = ref(checkPermission(['business:taxeszero:myself']))
|
|
|
+ const activeName = flag.value ? ref('first') : ref('second');
|
|
|
+ const tenant = useUserStore().tenant;
|
|
|
+ const taxList = ref([]);
|
|
|
+ const moreSearch = ref(false);
|
|
|
+ const loading = ref(true);
|
|
|
+ const oneself = ref(true);
|
|
|
+ const ids = ref([]);
|
|
|
+ const single = ref(true);
|
|
|
+ const multiple = ref(true);
|
|
|
+ const total = ref(0);
|
|
|
+ const options = ref([]);
|
|
|
+ const currentMonth = ref(
|
|
|
+ proxy.moment().subtract(1, "month").format("YYYY-MM-01")
|
|
|
+ );
|
|
|
+ /** 查询对象 */
|
|
|
+ const queryParams = ref({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ tenantId: null,
|
|
|
+ currentEmployeeId: null,
|
|
|
+ employeeIds: null,
|
|
|
+ createTime: null,
|
|
|
+ creatorId: null,
|
|
|
+ workOrderId: null,
|
|
|
+ isStop: null,
|
|
|
+ year: proxy.moment().subtract(1, "month").format("YYYY"),
|
|
|
+ month: proxy.moment().subtract(1, "month").format("MM"),
|
|
|
+ principal: tenant.versionId !== '4' && !flag.value ? useUserStore().user.userId : null,
|
|
|
+ });
|
|
|
+ onActivated(() => {
|
|
|
+ // 你的逻辑
|
|
|
+ getList();
|
|
|
+ });
|
|
|
+ /*********************** 方法区 ****************************/
|
|
|
+ function getOption() {
|
|
|
listLableNoPage().then(res => {
|
|
|
options.value = res.data
|
|
|
})
|
|
|
}
|
|
|
-/** 查询报税列表 */
|
|
|
-function getList() {
|
|
|
- console.log("查询", queryParams.value);
|
|
|
- loading.value = true;
|
|
|
- listTax(queryParams.value).then((response) => {
|
|
|
- taxList.value = response.rows;
|
|
|
- total.value = response.total;
|
|
|
- loading.value = false;
|
|
|
- });
|
|
|
-}
|
|
|
+ /** 查询报税列表 */
|
|
|
+ function getList() {
|
|
|
+ console.log("查询", queryParams.value);
|
|
|
+ loading.value = true;
|
|
|
+ listTax(queryParams.value).then((response) => {
|
|
|
+ taxList.value = response.rows;
|
|
|
+ total.value = response.total;
|
|
|
+ loading.value = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
-/** 搜索按钮操作 */
|
|
|
-function handleQuery() {
|
|
|
- moreSearch.value = false;
|
|
|
- queryParams.value.pageNum = 1;
|
|
|
- getList();
|
|
|
-}
|
|
|
-function handleClick(tab) {
|
|
|
+ /** 搜索按钮操作 */
|
|
|
+ function handleQuery() {
|
|
|
+ moreSearch.value = false;
|
|
|
+ queryParams.value.pageNum = 1;
|
|
|
+ getList();
|
|
|
+ }
|
|
|
+ function handleClick(tab) {
|
|
|
console.log(tab.props.name)
|
|
|
if (tab.props.name === "second") {
|
|
|
oneself.value = true
|
|
|
@@ -455,16 +329,16 @@ function handleClick(tab) {
|
|
|
handleOneself()
|
|
|
}
|
|
|
}
|
|
|
-/** 是否为自己负责 */
|
|
|
-function handleOneself() {
|
|
|
- if (oneself.value) {
|
|
|
- queryParams.value.principal = useUserStore().user.userId;
|
|
|
- } else {
|
|
|
- queryParams.value.principal = null;
|
|
|
+ /** 是否为自己负责 */
|
|
|
+ function handleOneself() {
|
|
|
+ if (oneself.value) {
|
|
|
+ queryParams.value.principal = useUserStore().user.userId;
|
|
|
+ } else {
|
|
|
+ queryParams.value.principal = null;
|
|
|
+ }
|
|
|
+ getList();
|
|
|
}
|
|
|
- getList();
|
|
|
-}
|
|
|
-function checkPermission(templatePermission) {
|
|
|
+ function checkPermission(templatePermission) {
|
|
|
const all_permission = "*:*:*";
|
|
|
const permissions = useUserStore().permissions;
|
|
|
const hasPermissions = permissions.some((permission) => {
|
|
|
@@ -474,137 +348,137 @@ function checkPermission(templatePermission) {
|
|
|
});
|
|
|
return hasPermissions;
|
|
|
}
|
|
|
-/** 导出按钮操作 */
|
|
|
-function handleExport() {
|
|
|
- exportFinalTax(queryParams.value);
|
|
|
-}
|
|
|
+ /** 导出按钮操作 */
|
|
|
+ function handleExport() {
|
|
|
+ exportFinalTax(queryParams.value);
|
|
|
+ }
|
|
|
|
|
|
-/** 重置按钮操作 */
|
|
|
-function resetQuery() {
|
|
|
- proxy.resetForm("queryRef");
|
|
|
- queryParams.value = {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 20,
|
|
|
- tenantId: null,
|
|
|
- currentEmployeeId: null,
|
|
|
- employeeIds: null,
|
|
|
- createTime: null,
|
|
|
- creatorId: null,
|
|
|
- workOrderId: null,
|
|
|
- isStop: null,
|
|
|
- year: proxy.moment().subtract(1, "month").format("YYYY"),
|
|
|
- month: proxy.moment().subtract(1, "month").format("MM"),
|
|
|
- };
|
|
|
- currentMonth.value = proxy.moment().subtract(1, "month").format("YYYY-MM-01");
|
|
|
- if (activeName.value != null && activeName.value === 'second') {
|
|
|
- queryParams.value.principal = useUserStore().user.userId;
|
|
|
+ /** 重置按钮操作 */
|
|
|
+ function resetQuery() {
|
|
|
+ proxy.resetForm("queryRef");
|
|
|
+ queryParams.value = {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ tenantId: null,
|
|
|
+ currentEmployeeId: null,
|
|
|
+ employeeIds: null,
|
|
|
+ createTime: null,
|
|
|
+ creatorId: null,
|
|
|
+ workOrderId: null,
|
|
|
+ isStop: null,
|
|
|
+ year: proxy.moment().subtract(1, "month").format("YYYY"),
|
|
|
+ month: proxy.moment().subtract(1, "month").format("MM"),
|
|
|
+ };
|
|
|
+ currentMonth.value = proxy.moment().subtract(1, "month").format("YYYY-MM-01");
|
|
|
+ if (activeName.value != null && activeName.value === 'second') {
|
|
|
+ queryParams.value.principal = useUserStore().user.userId;
|
|
|
}
|
|
|
- handleQuery();
|
|
|
-}
|
|
|
-
|
|
|
-// 多选框选中数据
|
|
|
-function handleSelectionChange(selection) {
|
|
|
- ids.value = selection.map((item) => item.id);
|
|
|
- single.value = selection.length != 1;
|
|
|
- multiple.value = !selection.length;
|
|
|
-}
|
|
|
-
|
|
|
-/** 查看文件 */
|
|
|
-function showFiles(row) {
|
|
|
- console.log("查看文件", row);
|
|
|
- openByPermission(null, row, {
|
|
|
- month: queryParams.value.month,
|
|
|
- year: queryParams.value.year,
|
|
|
- });
|
|
|
-}
|
|
|
+ handleQuery();
|
|
|
+ }
|
|
|
|
|
|
-/** 退回按钮操作 */
|
|
|
-function turnBack(detail) {
|
|
|
- deductionTurnBack(detail)
|
|
|
- .then((res) => {
|
|
|
- console.log(res);
|
|
|
- getList();
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- proxy.$modal.$modalMsgError(err);
|
|
|
- console.log(err);
|
|
|
- getList();
|
|
|
- });
|
|
|
- getList();
|
|
|
-}
|
|
|
+ // 多选框选中数据
|
|
|
+ function handleSelectionChange(selection) {
|
|
|
+ ids.value = selection.map((item) => item.id);
|
|
|
+ single.value = selection.length != 1;
|
|
|
+ multiple.value = !selection.length;
|
|
|
+ }
|
|
|
|
|
|
-/** 填写按钮操作 */
|
|
|
-function fillIn(row) {
|
|
|
- if (row.detail == null) {
|
|
|
- openByPermission(0, row, {
|
|
|
- month: queryParams.value.month,
|
|
|
- year: queryParams.value.year,
|
|
|
- });
|
|
|
- } else if (row.detail != null && row.detail.status == 3) {
|
|
|
+ /** 查看文件 */
|
|
|
+ function showFiles(row) {
|
|
|
+ console.log("查看文件", row);
|
|
|
openByPermission(null, row, {
|
|
|
month: queryParams.value.month,
|
|
|
year: queryParams.value.year,
|
|
|
});
|
|
|
- } else {
|
|
|
- openByPermission(row.detail, row, {
|
|
|
- month: queryParams.value.month,
|
|
|
- year: queryParams.value.year,
|
|
|
- });
|
|
|
}
|
|
|
-}
|
|
|
|
|
|
-/** 打开弹窗 */
|
|
|
-function openByPermission(detailItem, row, item) {
|
|
|
- console.log("打开弹窗", detailItem, row, item);
|
|
|
- console.log(detailItem);
|
|
|
- if (detailItem == null) {
|
|
|
- proxy.$refs.formDialog.open(null, row, item);
|
|
|
- } else {
|
|
|
- proxy.$refs.formDialog.open(detailItem, row, item);
|
|
|
- console.log(detailItem.id);
|
|
|
+ /** 退回按钮操作 */
|
|
|
+ function turnBack(detail) {
|
|
|
+ deductionTurnBack(detail)
|
|
|
+ .then((res) => {
|
|
|
+ console.log(res);
|
|
|
+ getList();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ proxy.$modal.$modalMsgError(err);
|
|
|
+ console.log(err);
|
|
|
+ getList();
|
|
|
+ });
|
|
|
+ getList();
|
|
|
}
|
|
|
-}
|
|
|
|
|
|
-function getStatusStyle(row) {
|
|
|
- if (row.detail == null) {
|
|
|
- return { color: getStatusColor(0), verticalAlign: "middle" };
|
|
|
- } else {
|
|
|
- return {
|
|
|
- color: getStatusColor(row.detail.status),
|
|
|
- verticalAlign: "middle",
|
|
|
- };
|
|
|
+ /** 填写按钮操作 */
|
|
|
+ function fillIn(row) {
|
|
|
+ if (row.detail == null) {
|
|
|
+ openByPermission(0, row, {
|
|
|
+ month: queryParams.value.month,
|
|
|
+ year: queryParams.value.year,
|
|
|
+ });
|
|
|
+ } else if (row.detail != null && row.detail.status == 3) {
|
|
|
+ openByPermission(null, row, {
|
|
|
+ month: queryParams.value.month,
|
|
|
+ year: queryParams.value.year,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ openByPermission(row.detail, row, {
|
|
|
+ month: queryParams.value.month,
|
|
|
+ year: queryParams.value.year,
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
|
|
|
-function getStatusLabel(row) {
|
|
|
- const index = selectStatus.findIndex(
|
|
|
- (v) => v.value === (row.detail == null ? 0 : row.detail.status)
|
|
|
- );
|
|
|
- return index >= 0 ? selectStatus[index].label : "";
|
|
|
-}
|
|
|
+ /** 打开弹窗 */
|
|
|
+ function openByPermission(detailItem, row, item) {
|
|
|
+ console.log("打开弹窗", detailItem, row, item);
|
|
|
+ console.log(detailItem);
|
|
|
+ if (detailItem == null) {
|
|
|
+ proxy.$refs.formDialog.open(null, row, item);
|
|
|
+ } else {
|
|
|
+ proxy.$refs.formDialog.open(detailItem, row, item);
|
|
|
+ console.log(detailItem.id);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
-function getStatusColor(status) {
|
|
|
- const index = selectStatus.findIndex((v) => v.value === status);
|
|
|
- return index >= 0 ? selectStatus[index].color : "#fff";
|
|
|
-}
|
|
|
+ function getStatusStyle(row) {
|
|
|
+ if (row.detail == null) {
|
|
|
+ return { color: getStatusColor(0), verticalAlign: "middle" };
|
|
|
+ } else {
|
|
|
+ return {
|
|
|
+ color: getStatusColor(row.detail.status),
|
|
|
+ verticalAlign: "middle",
|
|
|
+ };
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function getStatusLabel(row) {
|
|
|
+ const index = selectStatus.findIndex(
|
|
|
+ (v) => v.value === (row.detail == null ? 0 : row.detail.status)
|
|
|
+ );
|
|
|
+ return index >= 0 ? selectStatus[index].label : "";
|
|
|
+ }
|
|
|
+
|
|
|
+ function getStatusColor(status) {
|
|
|
+ const index = selectStatus.findIndex((v) => v.value === status);
|
|
|
+ return index >= 0 ? selectStatus[index].color : "#fff";
|
|
|
+ }
|
|
|
|
|
|
-function disabledDateHandler(date) {
|
|
|
- if (date <= proxy.moment().subtract(1, "month")) {
|
|
|
- return false;
|
|
|
- } else {
|
|
|
- return true;
|
|
|
+ function disabledDateHandler(date) {
|
|
|
+ if (date <= proxy.moment().subtract(1, "month")) {
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
|
|
|
-function monthChangeHandler(arg) {
|
|
|
- const year = proxy.moment(arg).format("YYYY");
|
|
|
- const month = proxy.moment(arg).format("MM");
|
|
|
- queryParams.value.year = year;
|
|
|
- queryParams.value.month = month;
|
|
|
- console.log(year, month);
|
|
|
- handleQuery();
|
|
|
-}
|
|
|
+ function monthChangeHandler(arg) {
|
|
|
+ const year = proxy.moment(arg).format("YYYY");
|
|
|
+ const month = proxy.moment(arg).format("MM");
|
|
|
+ queryParams.value.year = year;
|
|
|
+ queryParams.value.month = month;
|
|
|
+ console.log(year, month);
|
|
|
+ handleQuery();
|
|
|
+ }
|
|
|
|
|
|
-getList();
|
|
|
-getOption();
|
|
|
-</script>
|
|
|
+ getList();
|
|
|
+ getOption();
|
|
|
+</script>
|