|
@@ -8,13 +8,8 @@
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<template #dropdown>
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
<el-dropdown-menu>
|
|
|
- <el-dropdown-item
|
|
|
|
|
- icon="Download"
|
|
|
|
|
- @click="handleExport"
|
|
|
|
|
- v-hasPermi="['business:housingFundDeclare:export']"
|
|
|
|
|
- >
|
|
|
|
|
- 导出</el-dropdown-item
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-dropdown-item icon="Download" @click="handleExport" v-hasPermi="['business:housingFundDeclare:export']">
|
|
|
|
|
+ 导出</el-dropdown-item>
|
|
|
<!-- <el-dropdown-item type="warning" size="small" icon="Download" @click="handleArea"
|
|
<!-- <el-dropdown-item type="warning" size="small" icon="Download" @click="handleArea"
|
|
|
v-hasPermi="['business:deposit:export']"> area</el-dropdown-item> -->
|
|
v-hasPermi="['business:deposit:export']"> area</el-dropdown-item> -->
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
@@ -24,45 +19,17 @@
|
|
|
<!-- 搜索区 -->
|
|
<!-- 搜索区 -->
|
|
|
<el-form class="list-search-container" :model="queryParams" ref="queryRef" :inline="true" label-width="68px">
|
|
<el-form class="list-search-container" :model="queryParams" ref="queryRef" :inline="true" label-width="68px">
|
|
|
<el-form-item label="客户名称:" prop="companyName">
|
|
<el-form-item label="客户名称:" prop="companyName">
|
|
|
- <el-input
|
|
|
|
|
- v-model="queryParams.companyName"
|
|
|
|
|
- placeholder="请输入客户名称"
|
|
|
|
|
- clearable
|
|
|
|
|
- style="width: 150px"
|
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
|
- size="small"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-input v-model="queryParams.companyName" placeholder="请输入客户名称" clearable style="width: 150px"
|
|
|
|
|
+ @keyup.enter="handleQuery" size="small" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="所属月:">
|
|
<el-form-item label="所属月:">
|
|
|
- <el-date-picker
|
|
|
|
|
- v-model="currentMonth"
|
|
|
|
|
- type="month"
|
|
|
|
|
- format="YYYY年MM月"
|
|
|
|
|
- :clearable="false"
|
|
|
|
|
- value-format="YYYY-MM-01"
|
|
|
|
|
- @change="currentMonthChange"
|
|
|
|
|
- :disabled-date="disabledDateHandler"
|
|
|
|
|
- size="small"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-date-picker v-model="currentMonth" type="month" format="YYYY年MM月" :clearable="false"
|
|
|
|
|
+ value-format="YYYY-MM-01" @change="currentMonthChange" :disabled-date="disabledDateHandler" size="small" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="状态:">
|
|
<el-form-item label="状态:">
|
|
|
- <el-select
|
|
|
|
|
- v-model.trim="queryParams.status"
|
|
|
|
|
- prop="status"
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="text"
|
|
|
|
|
- placeholder="状态"
|
|
|
|
|
- :clearable="true"
|
|
|
|
|
- style="width: 130px"
|
|
|
|
|
- @clear="clearStatus"
|
|
|
|
|
-
|
|
|
|
|
- >
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in selectStatus"
|
|
|
|
|
- :key="item.value"
|
|
|
|
|
- :label="item.label"
|
|
|
|
|
- :value="item.value"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-select v-model.trim="queryParams.status" prop="status" size="small" type="text" placeholder="状态"
|
|
|
|
|
+ :clearable="true" style="width: 130px" @clear="clearStatus">
|
|
|
|
|
+ <el-option v-for="item in selectStatus" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="审核人:" prop="verifierName">
|
|
<el-form-item label="审核人:" prop="verifierName">
|
|
@@ -79,87 +46,49 @@
|
|
|
<el-switch v-model="oneself" @change="handleOneself" />
|
|
<el-switch v-model="oneself" @change="handleOneself" />
|
|
|
</el-form-item> -->
|
|
</el-form-item> -->
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
- <el-button type="primary" icon="Search" @click="handleQuery" size="small"
|
|
|
|
|
- >搜索</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" @click="handleQuery" size="small">搜索</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-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
- <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" v-if="flag">
|
|
|
|
|
- <el-tab-pane label="全部" name="first">
|
|
|
|
|
- </el-tab-pane>
|
|
|
|
|
- <el-tab-pane label="我的" name="second">
|
|
|
|
|
- </el-tab-pane>
|
|
|
|
|
- </el-tabs>
|
|
|
|
|
|
|
+ <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>
|
|
|
|
|
+ </div>
|
|
|
<!-- 列表区 -->
|
|
<!-- 列表区 -->
|
|
|
- <el-table
|
|
|
|
|
- v-loading="loading"
|
|
|
|
|
- :data="orderList"
|
|
|
|
|
- size="small"
|
|
|
|
|
- border
|
|
|
|
|
- height="100%"
|
|
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-table v-loading="loading" :data="orderList" size="small" border height="100%"
|
|
|
|
|
+ @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column
|
|
|
|
|
- label="客户名称"
|
|
|
|
|
- min-width="250"
|
|
|
|
|
- align="center"
|
|
|
|
|
- prop="companyName"
|
|
|
|
|
- />
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- label="来源"
|
|
|
|
|
- min-width="100"
|
|
|
|
|
- align="center"
|
|
|
|
|
- prop="fromCompanyName"
|
|
|
|
|
- />
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- label="纳税性质"
|
|
|
|
|
- width="100"
|
|
|
|
|
- align="center"
|
|
|
|
|
- prop="taxType"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-table-column label="客户名称" min-width="250" align="center" prop="companyName" />
|
|
|
|
|
+ <el-table-column label="来源" min-width="100" align="center" prop="fromCompanyName" />
|
|
|
|
|
+ <el-table-column label="纳税性质" width="100" align="center" prop="taxType" />
|
|
|
<el-table-column label="人员信息" width="100" align="center" prop="">
|
|
<el-table-column label="人员信息" width="100" align="center" prop="">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <el-button
|
|
|
|
|
- v-if="scope.row.detail != null"
|
|
|
|
|
- link
|
|
|
|
|
- type="primary"
|
|
|
|
|
- size="small"
|
|
|
|
|
- @click="showMember(scope.row)"
|
|
|
|
|
- >查看</el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-button v-if="scope.row.detail != null" link type="primary" size="small"
|
|
|
|
|
+ @click="showMember(scope.row)">查看</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="申报填写" width="100" align="center" prop="">
|
|
<el-table-column label="申报填写" width="100" align="center" prop="">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <el-button
|
|
|
|
|
- link
|
|
|
|
|
- type="primary"
|
|
|
|
|
- size="small"
|
|
|
|
|
- v-hasPermi="['business:housingFundDeclare:edit']"
|
|
|
|
|
- @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:housingFundDeclare:edit']"
|
|
|
|
|
+ @click="fillIn(scope.row)">{{
|
|
|
|
|
+ scope.row.detail == null
|
|
|
|
|
+ ? "填写"
|
|
|
|
|
+ : scope.row.detail.status === 1
|
|
|
|
|
+ ? "进行中"
|
|
|
|
|
+ : "已填写"
|
|
|
|
|
+ }}</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="申报附件" width="100" align="center" prop="">
|
|
<el-table-column label="申报附件" width="100" align="center" prop="">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <el-button
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- link
|
|
|
|
|
|
|
+ <el-button size="small" type="primary" link
|
|
|
:disabled="scope.row.detail == null || scope.row.detail.status <= 1"
|
|
:disabled="scope.row.detail == null || scope.row.detail.status <= 1"
|
|
|
- @click="showFiles(scope.row)"
|
|
|
|
|
- >查看文件</el-button
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ @click="showFiles(scope.row)">查看文件</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" width="110" align="center" prop="">
|
|
<el-table-column label="状态" width="110" align="center" prop="">
|
|
@@ -168,36 +97,28 @@
|
|
|
{{ getStatusLabel(scope.row) }}
|
|
{{ getStatusLabel(scope.row) }}
|
|
|
<el-popover placement="top-start" width="250" trigger="hover">
|
|
<el-popover placement="top-start" width="250" trigger="hover">
|
|
|
<div style="display: flex; flex-direction: row">
|
|
<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,
|
|
backgroundColor: item.color,
|
|
|
width: '14px',
|
|
width: '14px',
|
|
|
height: '14px',
|
|
height: '14px',
|
|
|
margin: 'auto',
|
|
margin: 'auto',
|
|
|
borderRadius: '50%',
|
|
borderRadius: '50%',
|
|
|
border: item.color === '#fff' ? '1px solid #ddd' : 'none',
|
|
border: item.color === '#fff' ? '1px solid #ddd' : 'none',
|
|
|
- }"
|
|
|
|
|
- />
|
|
|
|
|
- <div
|
|
|
|
|
- style="
|
|
|
|
|
|
|
+ }" />
|
|
|
|
|
+ <div style="
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
margin-left: 10px;
|
|
margin-left: 10px;
|
|
|
line-height: 36px;
|
|
line-height: 36px;
|
|
|
font-size: 10px;
|
|
font-size: 10px;
|
|
|
- "
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ ">
|
|
|
{{ item.label }}
|
|
{{ item.label }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<template #reference>
|
|
<template #reference>
|
|
|
- <span
|
|
|
|
|
- style="
|
|
|
|
|
|
|
+ <span style="
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -207,23 +128,15 @@
|
|
|
height: 14px;
|
|
height: 14px;
|
|
|
background-color: #ccc;
|
|
background-color: #ccc;
|
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
|
- "
|
|
|
|
|
- >?</span
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ ">?</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-popover>
|
|
</el-popover>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
|
|
- label="执行人"
|
|
|
|
|
- width="80"
|
|
|
|
|
- align="center"
|
|
|
|
|
- prop="serviceName"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-table-column label="执行人" width="80" align="center" prop="serviceName" />
|
|
|
<el-table-column label="审核人" align="center" prop="verifierName" min-width="100" />
|
|
<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="verifierTime" min-width="100" :show-overflow-tooltip="true" />
|
|
|
<!-- <el-table-column label="操作" width="80" align="center" prop="">
|
|
<!-- <el-table-column label="操作" width="80" align="center" prop="">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-button
|
|
<el-button
|
|
@@ -241,101 +154,41 @@
|
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
|
</el-table>
|
|
</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" />
|
|
|
<form-dialog ref="formDialogRef" :get-list="getList" />
|
|
<form-dialog ref="formDialogRef" :get-list="getList" />
|
|
|
<view-dialog ref="viewDialogRef" :get-list="getList" />
|
|
<view-dialog ref="viewDialogRef" :get-list="getList" />
|
|
|
<member-dialog ref="memeberDialogRef" :get-list="getList" />
|
|
<member-dialog ref="memeberDialogRef" :get-list="getList" />
|
|
|
<FileListDialog ref="fileListDialogRef" :get-list="getList" />
|
|
<FileListDialog ref="fileListDialogRef" :get-list="getList" />
|
|
|
<!-- 更多搜索弹窗 -->
|
|
<!-- 更多搜索弹窗 -->
|
|
|
- <el-dialog
|
|
|
|
|
- title="更多搜索"
|
|
|
|
|
- v-model="moreSearch"
|
|
|
|
|
- width="620px"
|
|
|
|
|
- append-to-body
|
|
|
|
|
- size="small"
|
|
|
|
|
- draggable
|
|
|
|
|
- :close-on-click-modal = "false"
|
|
|
|
|
- >
|
|
|
|
|
- <el-form
|
|
|
|
|
- :model="queryParams"
|
|
|
|
|
- ref="queryRef"
|
|
|
|
|
- size="small"
|
|
|
|
|
- label-width="100"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-dialog title="更多搜索" v-model="moreSearch" width="620px" append-to-body size="small" draggable
|
|
|
|
|
+ :close-on-click-modal="false">
|
|
|
|
|
+ <el-form :model="queryParams" ref="queryRef" size="small" label-width="100">
|
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="客户名称:" prop="companyName">
|
|
<el-form-item label="客户名称:" prop="companyName">
|
|
|
- <el-input
|
|
|
|
|
- v-model="queryParams.companyName"
|
|
|
|
|
- placeholder="请输入客户名称"
|
|
|
|
|
- clearable
|
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-input v-model="queryParams.companyName" placeholder="请输入客户名称" clearable @keyup.enter="handleQuery" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="纳税性质:" prop="taxType">
|
|
<el-form-item label="纳税性质:" prop="taxType">
|
|
|
- <el-select
|
|
|
|
|
- size="small"
|
|
|
|
|
- v-model="queryParams.taxType"
|
|
|
|
|
- placeholder="请选择纳税性质"
|
|
|
|
|
- :clearable="true"
|
|
|
|
|
- @change="taxTypeChange"
|
|
|
|
|
- >
|
|
|
|
|
- <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"
|
|
|
|
|
+ @change="taxTypeChange">
|
|
|
|
|
+ <el-option v-for="item in taxTypes" :key="item.label" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
|
|
- v-if="tenant.versionId === '4'"
|
|
|
|
|
- label="来源:"
|
|
|
|
|
- prop="fromCompanyName"
|
|
|
|
|
- >
|
|
|
|
|
- <el-input
|
|
|
|
|
- size="small"
|
|
|
|
|
- v-model="queryParams.fromCompanyName"
|
|
|
|
|
- type="text"
|
|
|
|
|
- placeholder="客户来源"
|
|
|
|
|
- :clearable="true"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-form-item v-if="tenant.versionId === '4'" label="来源:" prop="fromCompanyName">
|
|
|
|
|
+ <el-input size="small" v-model="queryParams.fromCompanyName" type="text" placeholder="客户来源"
|
|
|
|
|
+ :clearable="true" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="所属月:">
|
|
<el-form-item label="所属月:">
|
|
|
- <el-date-picker
|
|
|
|
|
- v-model="currentMonth"
|
|
|
|
|
- type="month"
|
|
|
|
|
- format="YYYY年MM月"
|
|
|
|
|
- :clearable="false"
|
|
|
|
|
- value-format="YYYY-MM-01"
|
|
|
|
|
- @change="currentMonthChange"
|
|
|
|
|
- :disabled-date="disabledDateHandler"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-date-picker v-model="currentMonth" type="month" format="YYYY年MM月" :clearable="false"
|
|
|
|
|
+ value-format="YYYY-MM-01" @change="currentMonthChange" :disabled-date="disabledDateHandler" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="状态:">
|
|
<el-form-item label="状态:">
|
|
|
- <el-select
|
|
|
|
|
- v-model.trim="queryParams.status"
|
|
|
|
|
- prop="status"
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="text"
|
|
|
|
|
- placeholder="状态"
|
|
|
|
|
- :clearable="true"
|
|
|
|
|
- @clear="clearStatus"
|
|
|
|
|
- >
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in selectStatus"
|
|
|
|
|
- :key="item.value"
|
|
|
|
|
- :label="item.label"
|
|
|
|
|
- :value="item.value"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <el-select v-model.trim="queryParams.status" prop="status" size="small" type="text" placeholder="状态"
|
|
|
|
|
+ :clearable="true" @clear="clearStatus">
|
|
|
|
|
+ <el-option v-for="item in selectStatus" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -343,16 +196,8 @@
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<div class="dialog-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>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -360,278 +205,279 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
-import useUserStore from "@/store/modules/user";
|
|
|
|
|
-import {
|
|
|
|
|
- listHousingFundDeclare,
|
|
|
|
|
- turnBackDetail,
|
|
|
|
|
- exportHoisngFundDeclare,
|
|
|
|
|
-} from "@/api/business/production/housingFundDeclare";
|
|
|
|
|
-import { uploadFile } from "@/api/tool/file";
|
|
|
|
|
-import { listCompany } from "@/api/business/crm/company";
|
|
|
|
|
-import { ref } from "vue";
|
|
|
|
|
-import formDialog from "./form";
|
|
|
|
|
-import { taxTypes } from "@/utils/default";
|
|
|
|
|
-import viewDialog from "./view";
|
|
|
|
|
-import memberDialog from "../memberDialog";
|
|
|
|
|
-import FileListDialog from "../fileListDialog.vue";
|
|
|
|
|
-const { proxy } = getCurrentInstance();
|
|
|
|
|
-/** 字典数组区 */
|
|
|
|
|
-/** 查询 对象 */
|
|
|
|
|
-const tenant = useUserStore().tenant;
|
|
|
|
|
-const orderList = ref([]);
|
|
|
|
|
-const loading = ref(true);
|
|
|
|
|
-const ids = ref([]);
|
|
|
|
|
-const single = ref(true);
|
|
|
|
|
-const multiple = ref(true);
|
|
|
|
|
-const oneself = ref(false);
|
|
|
|
|
-const total = ref(0);
|
|
|
|
|
-const prev = ref([]);
|
|
|
|
|
-const baseUrl = ref(import.meta.env.VITE_APP_BASE_API);
|
|
|
|
|
-const showViewer = ref(false);
|
|
|
|
|
-const currentFileList = ref([]);
|
|
|
|
|
-const moreSearch = ref(false);
|
|
|
|
|
-const showIndex = ref(0);
|
|
|
|
|
-const formDialogRef = ref(null);
|
|
|
|
|
-const viewDialogRef = ref(null);
|
|
|
|
|
-const memeberDialogRef = ref(null);
|
|
|
|
|
-const fileListDialogRef = ref(null);
|
|
|
|
|
|
|
+ import useUserStore from "@/store/modules/user";
|
|
|
|
|
+ import {
|
|
|
|
|
+ listHousingFundDeclare,
|
|
|
|
|
+ turnBackDetail,
|
|
|
|
|
+ exportHoisngFundDeclare,
|
|
|
|
|
+ } from "@/api/business/production/housingFundDeclare";
|
|
|
|
|
+ import { uploadFile } from "@/api/tool/file";
|
|
|
|
|
+ import { listCompany } from "@/api/business/crm/company";
|
|
|
|
|
+ import { ref } from "vue";
|
|
|
|
|
+ import formDialog from "./form";
|
|
|
|
|
+ import { taxTypes } from "@/utils/default";
|
|
|
|
|
+ import viewDialog from "./view";
|
|
|
|
|
+ import memberDialog from "../memberDialog";
|
|
|
|
|
+ import FileListDialog from "../fileListDialog.vue";
|
|
|
|
|
+ const { proxy } = getCurrentInstance();
|
|
|
|
|
+ /** 字典数组区 */
|
|
|
|
|
+ /** 查询 对象 */
|
|
|
|
|
+ const tenant = useUserStore().tenant;
|
|
|
|
|
+ const orderList = ref([]);
|
|
|
|
|
+ const loading = ref(true);
|
|
|
|
|
+ const ids = ref([]);
|
|
|
|
|
+ const single = ref(true);
|
|
|
|
|
+ const multiple = ref(true);
|
|
|
|
|
+ const oneself = ref(false);
|
|
|
|
|
+ const total = ref(0);
|
|
|
|
|
+ const prev = ref([]);
|
|
|
|
|
+ const baseUrl = ref(import.meta.env.VITE_APP_BASE_API);
|
|
|
|
|
+ const showViewer = ref(false);
|
|
|
|
|
+ const currentFileList = ref([]);
|
|
|
|
|
+ const moreSearch = ref(false);
|
|
|
|
|
+ const showIndex = ref(0);
|
|
|
|
|
+ const formDialogRef = ref(null);
|
|
|
|
|
+ const viewDialogRef = ref(null);
|
|
|
|
|
+ const memeberDialogRef = ref(null);
|
|
|
|
|
+ const fileListDialogRef = ref(null);
|
|
|
|
|
|
|
|
-const formOpen = ref(false);
|
|
|
|
|
-const currentMonth = ref(proxy.moment().format("YYYY-MM-01"));
|
|
|
|
|
|
|
+ const formOpen = ref(false);
|
|
|
|
|
+ const currentMonth = ref(proxy.moment().format("YYYY-MM-01"));
|
|
|
|
|
|
|
|
-const form = ref({
|
|
|
|
|
- id: null,
|
|
|
|
|
- companyName: "",
|
|
|
|
|
- companyId: null,
|
|
|
|
|
- remark: "",
|
|
|
|
|
- type: 1,
|
|
|
|
|
- files: [],
|
|
|
|
|
-});
|
|
|
|
|
|
|
+ const form = ref({
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ companyName: "",
|
|
|
|
|
+ companyId: null,
|
|
|
|
|
+ remark: "",
|
|
|
|
|
+ type: 1,
|
|
|
|
|
+ files: [],
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
-const emptyForm = {
|
|
|
|
|
- id: null,
|
|
|
|
|
- companyName: "",
|
|
|
|
|
- companyId: null,
|
|
|
|
|
- type: 1,
|
|
|
|
|
- remark: "",
|
|
|
|
|
- files: [],
|
|
|
|
|
-};
|
|
|
|
|
|
|
+ const emptyForm = {
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ companyName: "",
|
|
|
|
|
+ companyId: null,
|
|
|
|
|
+ type: 1,
|
|
|
|
|
+ remark: "",
|
|
|
|
|
+ files: [],
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-const permissions = useUserStore().permissions;
|
|
|
|
|
-const all_permission = "*:*:*";
|
|
|
|
|
-const flag = ref(checkPermission(['business:funddeclare:person']))
|
|
|
|
|
|
|
+ const permissions = useUserStore().permissions;
|
|
|
|
|
+ const all_permission = "*:*:*";
|
|
|
|
|
+ const flag = ref(checkPermission(['business:funddeclare:person']))
|
|
|
|
|
+ const flag2 = ref(checkPermission(['business:funddeclare:myself']))
|
|
|
const activeName = flag.value ? ref('first') : ref('second');
|
|
const activeName = flag.value ? ref('first') : ref('second');
|
|
|
-const data = reactive({
|
|
|
|
|
- selectStatus: [
|
|
|
|
|
- {
|
|
|
|
|
- label: "未开始",
|
|
|
|
|
- value: 0,
|
|
|
|
|
- color: "#888",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: "进行中",
|
|
|
|
|
- value: 1,
|
|
|
|
|
- color: "#FFB836",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: "已完成",
|
|
|
|
|
- value: 3,
|
|
|
|
|
- color: "#2FCB81",
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
-});
|
|
|
|
|
-const { selectStatus, selectMonths } = toRefs(data);
|
|
|
|
|
-
|
|
|
|
|
-const { verify_status } = proxy.useDict("verify_status");
|
|
|
|
|
-/** 查询对象 */
|
|
|
|
|
-const queryParams = ref({
|
|
|
|
|
- pageNum: 1,
|
|
|
|
|
- pageSize: 20,
|
|
|
|
|
- companyName: "",
|
|
|
|
|
- orderByColumn: "create_time",
|
|
|
|
|
- year: proxy.moment().format("YYYY"),
|
|
|
|
|
- month: proxy.moment().format("MM"),
|
|
|
|
|
- principal: tenant.versionId !== '4' && !flag.value ? useUserStore().user.userId : null,
|
|
|
|
|
-});
|
|
|
|
|
-
|
|
|
|
|
-/*********************** 方法区 ****************************/
|
|
|
|
|
-
|
|
|
|
|
-/** 查询company列表 */
|
|
|
|
|
-function getList() {
|
|
|
|
|
- loading.value = true;
|
|
|
|
|
- listHousingFundDeclare(queryParams.value).then((response) => {
|
|
|
|
|
- orderList.value = response.rows.map((l) => ({ ...l }));
|
|
|
|
|
- prev.value = proxy.deepClone(response.rows);
|
|
|
|
|
- total.value = response.total;
|
|
|
|
|
- loading.value = false;
|
|
|
|
|
|
|
+ const data = reactive({
|
|
|
|
|
+ selectStatus: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "未开始",
|
|
|
|
|
+ value: 0,
|
|
|
|
|
+ color: "#888",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "进行中",
|
|
|
|
|
+ value: 1,
|
|
|
|
|
+ color: "#FFB836",
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "已完成",
|
|
|
|
|
+ value: 3,
|
|
|
|
|
+ color: "#2FCB81",
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
});
|
|
});
|
|
|
-}
|
|
|
|
|
|
|
+ const { selectStatus, selectMonths } = toRefs(data);
|
|
|
|
|
|
|
|
-/** 是否为自己负责 */
|
|
|
|
|
-function handleOneself() {
|
|
|
|
|
- if (oneself.value) {
|
|
|
|
|
- queryParams.value.principal = useUserStore().user.userId;
|
|
|
|
|
- } else {
|
|
|
|
|
- queryParams.value.principal = null;
|
|
|
|
|
- }
|
|
|
|
|
- getList();
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-/** 搜索按钮操作 */
|
|
|
|
|
-function handleQuery() {
|
|
|
|
|
- queryParams.value.pageNum = 1;
|
|
|
|
|
- moreSearch.value = false;
|
|
|
|
|
- getList();
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-/** 重置按钮操作 */
|
|
|
|
|
-function resetQuery() {
|
|
|
|
|
- queryParams.value = {
|
|
|
|
|
|
|
+ const { verify_status } = proxy.useDict("verify_status");
|
|
|
|
|
+ /** 查询对象 */
|
|
|
|
|
+ const queryParams = ref({
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
|
companyName: "",
|
|
companyName: "",
|
|
|
|
|
+ orderByColumn: "create_time",
|
|
|
year: proxy.moment().format("YYYY"),
|
|
year: proxy.moment().format("YYYY"),
|
|
|
month: proxy.moment().format("MM"),
|
|
month: proxy.moment().format("MM"),
|
|
|
- };
|
|
|
|
|
- currentMonth.value = proxy.moment().format("YYYY-MM-01");
|
|
|
|
|
- if (activeName.value != null && activeName.value === 'second') {
|
|
|
|
|
- queryParams.value.principal = useUserStore().user.userId;
|
|
|
|
|
|
|
+ principal: tenant.versionId !== '4' && !flag.value ? useUserStore().user.userId : null,
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ /*********************** 方法区 ****************************/
|
|
|
|
|
+
|
|
|
|
|
+ /** 查询company列表 */
|
|
|
|
|
+ function getList() {
|
|
|
|
|
+ loading.value = true;
|
|
|
|
|
+ listHousingFundDeclare(queryParams.value).then((response) => {
|
|
|
|
|
+ orderList.value = response.rows.map((l) => ({ ...l }));
|
|
|
|
|
+ prev.value = proxy.deepClone(response.rows);
|
|
|
|
|
+ total.value = response.total;
|
|
|
|
|
+ loading.value = false;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /** 是否为自己负责 */
|
|
|
|
|
+ function handleOneself() {
|
|
|
|
|
+ if (oneself.value) {
|
|
|
|
|
+ queryParams.value.principal = useUserStore().user.userId;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ queryParams.value.principal = null;
|
|
|
}
|
|
}
|
|
|
- handleQuery();
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ getList();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /** 搜索按钮操作 */
|
|
|
|
|
+ function handleQuery() {
|
|
|
|
|
+ queryParams.value.pageNum = 1;
|
|
|
|
|
+ moreSearch.value = false;
|
|
|
|
|
+ getList();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-// 多选框选中数据
|
|
|
|
|
-function handleSelectionChange(selection) {
|
|
|
|
|
- ids.value = selection.map((item) => item.id);
|
|
|
|
|
- single.value = selection.length != 1;
|
|
|
|
|
- multiple.value = !selection.length;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ /** 重置按钮操作 */
|
|
|
|
|
+ function resetQuery() {
|
|
|
|
|
+ queryParams.value = {
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ pageSize: 20,
|
|
|
|
|
+ companyName: "",
|
|
|
|
|
+ year: proxy.moment().format("YYYY"),
|
|
|
|
|
+ month: proxy.moment().format("MM"),
|
|
|
|
|
+ };
|
|
|
|
|
+ currentMonth.value = proxy.moment().format("YYYY-MM-01");
|
|
|
|
|
+ if (activeName.value != null && activeName.value === 'second') {
|
|
|
|
|
+ queryParams.value.principal = useUserStore().user.userId;
|
|
|
|
|
+ }
|
|
|
|
|
+ handleQuery();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-/** 导出按钮操作 */
|
|
|
|
|
-function handleExport() {
|
|
|
|
|
- exportHoisngFundDeclare(queryParams.value);
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ // 多选框选中数据
|
|
|
|
|
+ function handleSelectionChange(selection) {
|
|
|
|
|
+ ids.value = selection.map((item) => item.id);
|
|
|
|
|
+ single.value = selection.length != 1;
|
|
|
|
|
+ multiple.value = !selection.length;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-function openFollowFile(arg) {
|
|
|
|
|
- // console.log(arg)
|
|
|
|
|
- const attach = arg;
|
|
|
|
|
- window.open(`${arg.url}`, arg.fileName);
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ /** 导出按钮操作 */
|
|
|
|
|
+ function handleExport() {
|
|
|
|
|
+ exportHoisngFundDeclare(queryParams.value);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-function showFileList(row) {
|
|
|
|
|
- currentFileList.value = row.files.map((l) => `${baseUrl.value}${l.fileUrl}`);
|
|
|
|
|
- showViewer.value = true;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ function openFollowFile(arg) {
|
|
|
|
|
+ // console.log(arg)
|
|
|
|
|
+ const attach = arg;
|
|
|
|
|
+ window.open(`${arg.url}`, arg.fileName);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-function closeImages() {
|
|
|
|
|
- showViewer.value = false;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ function showFileList(row) {
|
|
|
|
|
+ currentFileList.value = row.files.map((l) => `${baseUrl.value}${l.fileUrl}`);
|
|
|
|
|
+ showViewer.value = true;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-function showMember(row) {
|
|
|
|
|
- memeberDialogRef.value.open({
|
|
|
|
|
- companyId: row.companyId,
|
|
|
|
|
- year: queryParams.value.year,
|
|
|
|
|
- month: queryParams.value.month,
|
|
|
|
|
- });
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ function closeImages() {
|
|
|
|
|
+ showViewer.value = false;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-function fillIn(row) {
|
|
|
|
|
- // 判断选中行的状态
|
|
|
|
|
- if (row.detail != null) {
|
|
|
|
|
- const detail = row.detail;
|
|
|
|
|
- directDialog(detail);
|
|
|
|
|
- } else {
|
|
|
|
|
- const detail = {
|
|
|
|
|
- housingFundDeclareId: row.id,
|
|
|
|
|
|
|
+ function showMember(row) {
|
|
|
|
|
+ memeberDialogRef.value.open({
|
|
|
companyId: row.companyId,
|
|
companyId: row.companyId,
|
|
|
- companyName: row.companyName,
|
|
|
|
|
- month: queryParams.value.month,
|
|
|
|
|
year: queryParams.value.year,
|
|
year: queryParams.value.year,
|
|
|
- };
|
|
|
|
|
- directDialog(detail);
|
|
|
|
|
|
|
+ month: queryParams.value.month,
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
-function directDialog(detail) {
|
|
|
|
|
- if (detail.status === 0 || detail.status == null) {
|
|
|
|
|
- if (editable()) {
|
|
|
|
|
- formDialogRef.value.open(detail);
|
|
|
|
|
- } else {
|
|
|
|
|
- proxy.$modal.msgError("没有权限");
|
|
|
|
|
- }
|
|
|
|
|
- } else if (detail.status === 1 || detail.status === 4) {
|
|
|
|
|
- if (editable()) {
|
|
|
|
|
- formDialogRef.value.open(detail);
|
|
|
|
|
- } else if (viewable() || verifiable()) {
|
|
|
|
|
- viewDialogRef.value.open(detail);
|
|
|
|
|
|
|
+ function fillIn(row) {
|
|
|
|
|
+ // 判断选中行的状态
|
|
|
|
|
+ if (row.detail != null) {
|
|
|
|
|
+ const detail = row.detail;
|
|
|
|
|
+ directDialog(detail);
|
|
|
} else {
|
|
} else {
|
|
|
- proxy.$modal.msgError("没有权限");
|
|
|
|
|
|
|
+ const detail = {
|
|
|
|
|
+ housingFundDeclareId: row.id,
|
|
|
|
|
+ companyId: row.companyId,
|
|
|
|
|
+ companyName: row.companyName,
|
|
|
|
|
+ month: queryParams.value.month,
|
|
|
|
|
+ year: queryParams.value.year,
|
|
|
|
|
+ };
|
|
|
|
|
+ directDialog(detail);
|
|
|
}
|
|
}
|
|
|
- } else if (detail.status === 2 || detail.status === 3) {
|
|
|
|
|
- if (editable() || viewable() || verifiable()) {
|
|
|
|
|
- viewDialogRef.value.open(detail);
|
|
|
|
|
- } else {
|
|
|
|
|
- proxy.$modal.msgError("没有权限");
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ function directDialog(detail) {
|
|
|
|
|
+ if (detail.status === 0 || detail.status == null) {
|
|
|
|
|
+ if (editable()) {
|
|
|
|
|
+ formDialogRef.value.open(detail);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ proxy.$modal.msgError("没有权限");
|
|
|
|
|
+ }
|
|
|
|
|
+ } else if (detail.status === 1 || detail.status === 4) {
|
|
|
|
|
+ if (editable()) {
|
|
|
|
|
+ formDialogRef.value.open(detail);
|
|
|
|
|
+ } else if (viewable() || verifiable()) {
|
|
|
|
|
+ viewDialogRef.value.open(detail);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ proxy.$modal.msgError("没有权限");
|
|
|
|
|
+ }
|
|
|
|
|
+ } else if (detail.status === 2 || detail.status === 3) {
|
|
|
|
|
+ if (editable() || viewable() || verifiable()) {
|
|
|
|
|
+ viewDialogRef.value.open(detail);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ proxy.$modal.msgError("没有权限");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
-function viewable() {
|
|
|
|
|
- return (
|
|
|
|
|
- permissions.includes(all_permission) ||
|
|
|
|
|
- permissions.includes("business:housingFundDeclare:view")
|
|
|
|
|
- );
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ function viewable() {
|
|
|
|
|
+ return (
|
|
|
|
|
+ permissions.includes(all_permission) ||
|
|
|
|
|
+ permissions.includes("business:housingFundDeclare:view")
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-function editable() {
|
|
|
|
|
- return (
|
|
|
|
|
- permissions.includes(all_permission) ||
|
|
|
|
|
- permissions.includes("business:housingFundDeclare:edit")
|
|
|
|
|
- );
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ function editable() {
|
|
|
|
|
+ return (
|
|
|
|
|
+ permissions.includes(all_permission) ||
|
|
|
|
|
+ permissions.includes("business:housingFundDeclare:edit")
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-function verifiable() {
|
|
|
|
|
- return (
|
|
|
|
|
- permissions.includes(all_permission) ||
|
|
|
|
|
- permissions.includes("business:housingFundDeclare:verify")
|
|
|
|
|
- );
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ function verifiable() {
|
|
|
|
|
+ return (
|
|
|
|
|
+ permissions.includes(all_permission) ||
|
|
|
|
|
+ permissions.includes("business:housingFundDeclare:verify")
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-function showFiles(row) {
|
|
|
|
|
- fileListDialogRef.value.open(row.detail);
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ function showFiles(row) {
|
|
|
|
|
+ fileListDialogRef.value.open(row.detail);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-function getStatusStyle(row) {
|
|
|
|
|
- if (row.detail == null) {
|
|
|
|
|
- return { color: getStatusColor(0), verticalAlign: "middle" };
|
|
|
|
|
- } else {
|
|
|
|
|
- return {
|
|
|
|
|
- color: getStatusColor(row.detail.status),
|
|
|
|
|
- verticalAlign: "middle",
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ function getStatusStyle(row) {
|
|
|
|
|
+ if (row.detail == null) {
|
|
|
|
|
+ return { color: getStatusColor(0), verticalAlign: "middle" };
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return {
|
|
|
|
|
+ color: getStatusColor(row.detail.status),
|
|
|
|
|
+ verticalAlign: "middle",
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ function getStatusColor(status) {
|
|
|
|
|
+ const index = selectStatus.value.findIndex((v) => v.value === status);
|
|
|
|
|
+ return index >= 0 ? selectStatus.value[index].color : "#fff";
|
|
|
|
|
+ }
|
|
|
|
|
+ function getStatusLabel(row) {
|
|
|
|
|
+ const index = selectStatus.value.findIndex(
|
|
|
|
|
+ (v) => v.value === (row.detail == null ? 0 : row.detail.status)
|
|
|
|
|
+ );
|
|
|
|
|
+ return index >= 0 ? selectStatus.value[index].label : "";
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
-function getStatusColor(status) {
|
|
|
|
|
- const index = selectStatus.value.findIndex((v) => v.value === status);
|
|
|
|
|
- return index >= 0 ? selectStatus.value[index].color : "#fff";
|
|
|
|
|
-}
|
|
|
|
|
-function getStatusLabel(row) {
|
|
|
|
|
- const index = selectStatus.value.findIndex(
|
|
|
|
|
- (v) => v.value === (row.detail == null ? 0 : row.detail.status)
|
|
|
|
|
- );
|
|
|
|
|
- return index >= 0 ? selectStatus.value[index].label : "";
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
-function turnBack(detail) {
|
|
|
|
|
- turnBackDetail(detail)
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- getList();
|
|
|
|
|
- })
|
|
|
|
|
- .catch((err) => {
|
|
|
|
|
- proxy.$modal.msgError(err.message);
|
|
|
|
|
- });
|
|
|
|
|
-}
|
|
|
|
|
-function checkPermission(templatePermission) {
|
|
|
|
|
|
|
+ function turnBack(detail) {
|
|
|
|
|
+ turnBackDetail(detail)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ getList();
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch((err) => {
|
|
|
|
|
+ proxy.$modal.msgError(err.message);
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ function checkPermission(templatePermission) {
|
|
|
const all_permission = "*:*:*";
|
|
const all_permission = "*:*:*";
|
|
|
const permissions = useUserStore().permissions;
|
|
const permissions = useUserStore().permissions;
|
|
|
const hasPermissions = permissions.some((permission) => {
|
|
const hasPermissions = permissions.some((permission) => {
|
|
@@ -651,24 +497,24 @@ function checkPermission(templatePermission) {
|
|
|
handleOneself()
|
|
handleOneself()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-function currentMonthChange(arg) {
|
|
|
|
|
- const year = proxy.moment(arg).format("YYYY");
|
|
|
|
|
- const month = proxy.moment(arg).format("MM");
|
|
|
|
|
- queryParams.value.year = year;
|
|
|
|
|
- queryParams.value.month = month;
|
|
|
|
|
- handleQuery();
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ function currentMonthChange(arg) {
|
|
|
|
|
+ const year = proxy.moment(arg).format("YYYY");
|
|
|
|
|
+ const month = proxy.moment(arg).format("MM");
|
|
|
|
|
+ queryParams.value.year = year;
|
|
|
|
|
+ queryParams.value.month = month;
|
|
|
|
|
+ handleQuery();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-function clearStatus() {
|
|
|
|
|
- queryParams.value.status = null;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ function clearStatus() {
|
|
|
|
|
+ queryParams.value.status = null;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
-function disabledDateHandler(date) {
|
|
|
|
|
- if (date <= proxy.moment()) {
|
|
|
|
|
- return false;
|
|
|
|
|
- } else {
|
|
|
|
|
- return true;
|
|
|
|
|
|
|
+ function disabledDateHandler(date) {
|
|
|
|
|
+ if (date <= proxy.moment()) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
-getList();
|
|
|
|
|
-</script>
|
|
|
|
|
|
|
+ getList();
|
|
|
|
|
+</script>
|