页面样式调整

main
mo 1 year ago
parent 1146b33ec5
commit fdaef1e9d5

@ -1,298 +1,321 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- 搜索工作栏 --> <el-card>
<el-form <!-- 搜索工作栏 -->
:model="queryParams" <el-form
ref="queryForm" :model="queryParams"
size="small" ref="queryForm"
:inline="true" size="small"
v-show="showSearch" :inline="true"
label-width="98px" v-show="showSearch"
> label-width="98px"
<el-form-item label="业务实体" prop="company"> >
<el-select <div class="filter-box">
v-model="queryParams.company" <div class="filter-lf">
placeholder="请选择业务实体" <el-form-item label="业务实体" prop="company">
value-key="id" <el-select
@change="handleCompanyChange1" v-model="queryParams.company"
clearable placeholder="请选择业务实体"
@keyup.enter.native="handleQuery" value-key="id"
> @change="handleCompanyChange1"
<el-option clearable
v-for="item in organizationList" @keyup.enter.native="handleQuery"
:key="item.id" >
:value="item" <el-option
:label="item.organizationName" v-for="item in organizationList"
> :key="item.id"
</el-option> :value="item"
</el-select> :label="item.organizationName"
</el-form-item> >
<el-form-item label="资产名称" prop="assetName"> </el-option>
<el-input </el-select>
v-model="queryParams.assetName" </el-form-item>
placeholder="请输入资产名称" <el-form-item label="资产名称" prop="assetName">
clearable <el-input
@keyup.enter.native="handleQuery" v-model="queryParams.assetName"
/> placeholder="请输入资产名称"
</el-form-item> clearable
<el-form-item label="归档状态" prop="fileStatus"> @keyup.enter.native="handleQuery"
<el-select />
v-model="queryParams.fileStatus" </el-form-item>
placeholder="请选择归档状态" <el-form-item label="归档状态" prop="fileStatus">
clearable <el-select
size="small" v-model="queryParams.fileStatus"
> placeholder="请选择归档状态"
<el-option clearable
v-for="dict in this.getDictDatas(DICT_TYPE.ARCHIVES_FILE_STATUS)" size="small"
:key="dict.value" >
:label="dict.label" <el-option
:value="dict.value" v-for="dict in this.getDictDatas(
/> DICT_TYPE.ARCHIVES_FILE_STATUS
</el-select> )"
</el-form-item> :key="dict.value"
<el-form-item label="归档状态" prop="fileStatus"> :label="dict.label"
<el-select :value="dict.value"
v-model="queryParams.fileStatus" />
placeholder="请选择归档状态" </el-select>
clearable </el-form-item>
size="small" <el-form-item label="归档状态" prop="fileStatus">
> <el-select
<el-option v-model="queryParams.fileStatus"
v-for="dict in this.getDictDatas(DICT_TYPE.ARCHIVES_FILE_STATUS)" placeholder="请选择归档状态"
:key="dict.value" clearable
:label="dict.label" size="small"
:value="dict.value" >
/> <el-option
</el-select> v-for="dict in this.getDictDatas(
</el-form-item> DICT_TYPE.ARCHIVES_FILE_STATUS
<el-form-item label="报废日期" prop="disposalDate"> )"
<el-date-picker :key="dict.value"
v-model="queryParams.disposalDate" :label="dict.label"
style="width: 240px" :value="dict.value"
value-format="yyyy-MM-dd HH:mm:ss" />
type="daterange" </el-select>
range-separator="-" </el-form-item>
start-placeholder="开始日期" <el-form-item label="报废日期" prop="disposalDate">
end-placeholder="结束日期" <el-date-picker
:default-time="['00:00:00', '23:59:59']" v-model="queryParams.disposalDate"
/> style="width: 240px"
</el-form-item> value-format="yyyy-MM-dd HH:mm:ss"
type="daterange"
<el-form-item label="购买渠道" prop="purchaseChannel"> range-separator="-"
<el-input start-placeholder="开始日期"
v-model="queryParams.purchaseChannel" end-placeholder="结束日期"
placeholder="请输入购买渠道" :default-time="['00:00:00', '23:59:59']"
clearable />
@keyup.enter.native="handleQuery" </el-form-item>
/>
</el-form-item>
<el-form-item label="年度" prop="year">
<el-input
v-model="queryParams.year"
placeholder="请输入年度"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="月份" prop="period">
<el-input
v-model="queryParams.period"
placeholder="请输入月份"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<!-- 操作工具栏 --> <el-form-item label="购买渠道" prop="purchaseChannel">
<el-row :gutter="10" class="mb8"> <el-input
<el-col :span="1.5"> v-model="queryParams.purchaseChannel"
<el-button placeholder="请输入购买渠道"
type="primary" clearable
plain @keyup.enter.native="handleQuery"
icon="el-icon-plus" />
size="mini" </el-form-item>
@click="handleAdd" <el-form-item label="年度" prop="year">
v-hasPermi="['ea:electronic:create']" <el-input
>新增</el-button v-model="queryParams.year"
> placeholder="请输入年度"
</el-col> clearable
<el-col :span="1.5"> @keyup.enter.native="handleQuery"
<el-button />
type="danger" </el-form-item>
plain <el-form-item label="月份" prop="period">
icon="el-icon-delete" <el-input
size="mini" v-model="queryParams.period"
:disabled="multiple" placeholder="请输入月份"
@click="handleDelete" clearable
>删除</el-button @keyup.enter.native="handleQuery"
> />
</el-col> </el-form-item>
<el-col :span="1.5"> <el-form-item>
<el-button <el-button
type="warning" type="primary"
plain icon="el-icon-search"
icon="el-icon-download" @click="handleQuery"
size="mini" >搜索</el-button
@click="handleExport" >
:loading="exportLoading" <el-button icon="el-icon-refresh" @click="resetQuery"
v-hasPermi="['ea:electronic:export']" >重置</el-button
>导出</el-button >
> </el-form-item>
</el-col> </div>
<right-toolbar </div>
:showSearch.sync="showSearch" </el-form>
@queryTable="getList"
></right-toolbar>
</el-row>
<!-- 列表 --> <!-- 操作工具栏 -->
<el-table <el-row :gutter="10" class="mb8">
v-loading="loading" <el-col :span="1.5">
:data="list"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="部门名称" align="center" prop="deptName" />
<el-table-column label="资产编号" align="center" prop="assetCode" />
<el-table-column label="资产名称" align="center" prop="assetName" />
<!-- <el-table-column label="资产描述" align="center" prop="assetDescription">
<template slot-scope="scope">
<div v-html="scope.row.assetDescription"></div>
</template>
</el-table-column> -->
<el-table-column label="资产类型" align="center" prop="assetType">
<template v-slot="scope">
<dict-tag :type="DICT_TYPE.ASSET_TYPE" :value="scope.row.assetType" />
</template>
</el-table-column>
<el-table-column
label="购买日期"
align="center"
prop="purchaseDate"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.purchaseDate) }}</span>
</template>
</el-table-column>
<el-table-column
label="报废日期"
align="center"
prop="disposalDate"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.disposalDate) }}</span>
</template>
</el-table-column>
<el-table-column label="资产状态" align="center" prop="assetStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ASSET_STATUS"
:value="scope.row.assetStatus"
/>
</template>
</el-table-column>
<el-table-column label="资产价格" align="center" prop="purchasePrice" />
<el-table-column label="资产数量" align="center" prop="assetQuantity" />
<el-table-column label="购买渠道" align="center" prop="purchaseChannel" />
<el-table-column label="文件来源" align="center" prop="source" />
<el-table-column label="年度" align="center" prop="year" />
<el-table-column label="月份" align="center" prop="period" />
<el-table-column label="借阅状态" align="center" prop="borrowStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.BORROW_STATUS"
:value="scope.row.borrowStatus"
/>
</template>
</el-table-column>
<el-table-column label="纸档位置" align="center" prop="position" />
<!-- <el-table-column label="完整性" align="center" prop="cherks">
<template v-slot="scope">
<dict-tag :type="DICT_TYPE.CHERKS" :value="scope.row.cherks" />
</template>
</el-table-column> -->
<el-table-column label="归档状态" align="center" prop="fileStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_STATUS"
:value="scope.row.fileStatus"
/>
</template>
</el-table-column>
<el-table-column
label="创建日期"
align="center"
prop="createTime"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="制单人" align="center" prop="createBy" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
v-if="scope.row.contractAttachment"
@click="handleViewFJ(scope.row)"
>查看附件
</el-button>
<el-button <el-button
type="primary"
plain
icon="el-icon-plus"
size="mini" size="mini"
type="text" @click="handleAdd"
icon="el-icon-view" v-hasPermi="['ea:electronic:create']"
@click="handleView(scope.row)" >新增</el-button
>查看 >
</el-button> </el-col>
<el-col :span="1.5">
<el-button <el-button
v-if="scope.row.fileStatus == '0'" type="danger"
plain
icon="el-icon-delete"
size="mini" size="mini"
type="text" :disabled="multiple"
icon="el-icon-edit" @click="handleDelete"
@click="handleUpdate(scope.row)" >删除</el-button
v-hasPermi="['ea:electronic:update']"
>修改</el-button
> >
</el-col>
<el-col :span="1.5">
<el-button <el-button
v-if="scope.row.fileStatus == '0'" type="warning"
plain
icon="el-icon-download"
size="mini" size="mini"
type="text" @click="handleExport"
icon="el-icon-delete" :loading="exportLoading"
@click="handleDelete(scope.row)" v-hasPermi="['ea:electronic:export']"
v-hasPermi="['ea:electronic:delete']" >导出</el-button
>删除</el-button
> >
</template> </el-col>
</el-table-column> <right-toolbar
</el-table> :showSearch.sync="showSearch"
<!-- 分页组件 --> @queryTable="getList"
<pagination ></right-toolbar>
v-show="total > 0" </el-row>
:total="total"
:page.sync="queryParams.pageNo"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 列表 -->
<el-table
v-loading="loading"
:data="list"
stripe
border
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="部门名称" align="center" prop="deptName" />
<el-table-column label="资产编号" align="center" prop="assetCode" />
<el-table-column label="资产名称" align="center" prop="assetName" />
<!-- <el-table-column label="资产描述" align="center" prop="assetDescription">
<template slot-scope="scope">
<div v-html="scope.row.assetDescription"></div>
</template>
</el-table-column> -->
<el-table-column label="资产类型" align="center" prop="assetType">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ASSET_TYPE"
:value="scope.row.assetType"
/>
</template>
</el-table-column>
<el-table-column
label="购买日期"
align="center"
prop="purchaseDate"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.purchaseDate) }}</span>
</template>
</el-table-column>
<el-table-column
label="报废日期"
align="center"
prop="disposalDate"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.disposalDate) }}</span>
</template>
</el-table-column>
<el-table-column label="资产状态" align="center" prop="assetStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ASSET_STATUS"
:value="scope.row.assetStatus"
/>
</template>
</el-table-column>
<el-table-column label="资产价格" align="center" prop="purchasePrice" />
<el-table-column label="资产数量" align="center" prop="assetQuantity" />
<el-table-column
label="购买渠道"
align="center"
prop="purchaseChannel"
/>
<el-table-column label="文件来源" align="center" prop="source" />
<el-table-column label="年度" align="center" prop="year" />
<el-table-column label="月份" align="center" prop="period" />
<el-table-column label="借阅状态" align="center" prop="borrowStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.BORROW_STATUS"
:value="scope.row.borrowStatus"
/>
</template>
</el-table-column>
<el-table-column label="纸档位置" align="center" prop="position" />
<!-- <el-table-column label="完整性" align="center" prop="cherks">
<template v-slot="scope">
<dict-tag :type="DICT_TYPE.CHERKS" :value="scope.row.cherks" />
</template>
</el-table-column> -->
<el-table-column label="归档状态" align="center" prop="fileStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_STATUS"
:value="scope.row.fileStatus"
/>
</template>
</el-table-column>
<el-table-column
label="创建日期"
align="center"
prop="createTime"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="制单人" align="center" prop="createBy" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
v-if="scope.row.contractAttachment"
@click="handleViewFJ(scope.row)"
>查看附件
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row)"
>查看
</el-button>
<el-button
v-if="scope.row.fileStatus == '0'"
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['ea:electronic:update']"
>修改</el-button
>
<el-button
v-if="scope.row.fileStatus == '0'"
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['ea:electronic:delete']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 分页组件 -->
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNo"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</el-card>
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
<el-dialog <el-dialog
:title="title" :title="title"
@ -899,3 +922,7 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss" scoped>
@import "@/assets/styles/header/index.scss";
@import "@/assets/styles/common/index.scss";
</style>

@ -1,184 +1,202 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- 搜索工作栏 --> <el-card>
<el-form <!-- 搜索工作栏 -->
:model="queryParams" <el-form
ref="queryForm" :model="queryParams"
size="small" ref="queryForm"
:inline="true" size="small"
v-show="showSearch" :inline="true"
label-width="98px" v-show="showSearch"
> label-width="98px"
<el-form-item label="咨询编号 " prop="consultationId"> >
<el-input <div class="filter-box">
v-model="queryParams.consultationId" <div class="filter-lf">
placeholder="请输入咨询编号 " <el-form-item label="咨询编号 " prop="consultationId">
clearable <el-input
@keyup.enter.native="handleQuery" v-model="queryParams.consultationId"
/> placeholder="请输入咨询编号 "
</el-form-item> clearable
<el-form-item label="咨询类型 " prop="consultationType"> @keyup.enter.native="handleQuery"
<el-select />
v-model="queryParams.consultationType" </el-form-item>
placeholder="请选择咨询类型 " <el-form-item label="咨询类型 " prop="consultationType">
clearable <el-select
size="small" v-model="queryParams.consultationType"
> placeholder="请选择咨询类型 "
<el-option clearable
v-for="dict in this.getDictDatas(DICT_TYPE.CONSULTATION_TYPE)" size="small"
:key="dict.value" >
:label="dict.label" <el-option
:value="dict.value" v-for="dict in this.getDictDatas(DICT_TYPE.CONSULTATION_TYPE)"
/> :key="dict.value"
</el-select> :label="dict.label"
</el-form-item> :value="dict.value"
<el-form-item label="处理结果 " prop="handleResult"> />
<el-select </el-select>
v-model="queryParams.handleResult" </el-form-item>
placeholder="请选择处理结果" <el-form-item label="处理结果 " prop="handleResult">
clearable <el-select
size="small" v-model="queryParams.handleResult"
> placeholder="请选择处理结果"
<el-option clearable
v-for="dict in this.getDictDatas(DICT_TYPE.HANDLE_RESULT)" size="small"
:key="dict.value" >
:label="dict.label" <el-option
:value="dict.value" v-for="dict in this.getDictDatas(DICT_TYPE.HANDLE_RESULT)"
/> :key="dict.value"
</el-select> :label="dict.label"
</el-form-item> :value="dict.value"
<el-form-item label="年度 " prop="year"> />
<el-date-picker </el-select>
popper-class="due_year" </el-form-item>
v-model="queryParams.year" <el-form-item label="年度 " prop="year">
value-format="yyyy" <el-date-picker
type="year" popper-class="due_year"
placeholder="请选择会计年份" v-model="queryParams.year"
@keyup.enter.native="handleQuery" value-format="yyyy"
> type="year"
</el-date-picker> placeholder="请选择会计年份"
</el-form-item> @keyup.enter.native="handleQuery"
<el-form-item label="月份 " prop="period"> >
<el-date-picker </el-date-picker>
popper-class="due_month" </el-form-item>
v-model="queryParams.period" <el-form-item label="月份 " prop="period">
format="M月" <el-date-picker
value-format="M" popper-class="due_month"
type="month" v-model="queryParams.period"
placeholder="请选择会计月份" format="M月"
@keyup.enter.native="handleQuery" value-format="M"
> type="month"
</el-date-picker> placeholder="请选择会计月份"
</el-form-item> @keyup.enter.native="handleQuery"
<el-form-item label="借阅状态 " prop="borrowStatus"> >
<el-select </el-date-picker>
v-model="queryParams.borrowStatus" </el-form-item>
placeholder="请选择借阅状态 " <el-form-item label="借阅状态 " prop="borrowStatus">
clearable <el-select
size="small" v-model="queryParams.borrowStatus"
> placeholder="请选择借阅状态 "
<el-option clearable
v-for="dict in this.getDictDatas(DICT_TYPE.BORROW_STATUS)" size="small"
:key="dict.value" >
:label="dict.label" <el-option
:value="dict.value" v-for="dict in this.getDictDatas(DICT_TYPE.BORROW_STATUS)"
/> :key="dict.value"
</el-select> :label="dict.label"
</el-form-item> :value="dict.value"
<el-form-item label="归档状态" prop="fileStatus"> />
<el-select </el-select>
v-model="queryParams.fileStatus" </el-form-item>
placeholder="请选择归档状态" <el-form-item label="归档状态" prop="fileStatus">
clearable <el-select
size="small" v-model="queryParams.fileStatus"
> placeholder="请选择归档状态"
<el-option clearable
v-for="dict in this.getDictDatas(DICT_TYPE.ARCHIVES_FILE_STATUS)" size="small"
:key="dict.value" >
:label="dict.label" <el-option
:value="dict.value" v-for="dict in this.getDictDatas(
/> DICT_TYPE.ARCHIVES_FILE_STATUS
</el-select> )"
</el-form-item> :key="dict.value"
<el-form-item> :label="dict.label"
<el-button type="primary" icon="el-icon-search" @click="handleQuery" :value="dict.value"
>搜索</el-button />
> </el-select>
<el-button icon="el-icon-refresh" @click="resetQuery"></el-button> </el-form-item>
</el-form-item> <el-form-item>
</el-form> <el-button
type="primary"
icon="el-icon-search"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</div>
</div>
</el-form>
<!-- 操作工具栏 --> <!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="primary" type="primary"
plain plain
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['ea:electronic-consultation:create']" v-hasPermi="['ea:electronic-consultation:create']"
>新增 >新增
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="danger" type="danger"
plain plain
icon="el-icon-delete" icon="el-icon-delete"
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
>删除</el-button >删除</el-button
> >
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
plain plain
icon="el-icon-download" icon="el-icon-download"
size="mini" size="mini"
@click="handleExport" @click="handleExport"
:loading="exportLoading" :loading="exportLoading"
v-hasPermi="['ea:electronic-consultation:export']" v-hasPermi="['ea:electronic-consultation:export']"
>导出 >导出
</el-button> </el-button>
</el-col> </el-col>
<right-toolbar <right-toolbar
:showSearch.sync="showSearch" :showSearch.sync="showSearch"
@queryTable="getList" @queryTable="getList"
></right-toolbar> ></right-toolbar>
</el-row> </el-row>
<!-- 列表 --> <!-- 列表 -->
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="list" :data="list"
@selection-change="handleSelectionChange" stripe
> border
<el-table-column type="selection" width="55" align="center" /> @selection-change="handleSelectionChange"
<el-table-column label="业务实体 " align="center" prop="company" />
<el-table-column label="所属部门 " align="center" prop="systemDept" />
<el-table-column label="咨询编号 " align="center" prop="consultationId" />
<el-table-column
label="咨询类型 "
align="center"
prop="consultationType"
width="98px"
> >
<template v-slot="scope"> <el-table-column type="selection" width="55" align="center" />
<dict-tag <el-table-column label="业务实体 " align="center" prop="company" />
:type="DICT_TYPE.CONSULTATION_TYPE" <el-table-column label="所属部门 " align="center" prop="systemDept" />
:value="scope.row.consultationType" <el-table-column
/> label="咨询编号 "
</template> align="center"
</el-table-column> prop="consultationId"
<el-table-column />
label="咨询标题 " <el-table-column
align="center" label="咨询类型 "
prop="consultationTitle" align="center"
/> prop="consultationType"
<!-- <el-table-column width="98px"
>
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.CONSULTATION_TYPE"
:value="scope.row.consultationType"
/>
</template>
</el-table-column>
<el-table-column
label="咨询标题 "
align="center"
prop="consultationTitle"
/>
<!-- <el-table-column
label="咨询内容 " label="咨询内容 "
align="center" align="center"
prop="consultationContent" prop="consultationContent"
@ -187,136 +205,137 @@
<span v-html="scope.row.consultationContent"></span> <span v-html="scope.row.consultationContent"></span>
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column label="咨询人 " align="center" prop="consultorName" /> <el-table-column label="咨询人 " align="center" prop="consultorName" />
<el-table-column <el-table-column
label="咨询时间 " label="咨询时间 "
align="center" align="center"
prop="consultationTime" prop="consultationTime"
width="98px" width="98px"
> >
<template v-slot="scope"> <template v-slot="scope">
<span>{{ parseTime(scope.row.consultationTime) }}</span> <span>{{ parseTime(scope.row.consultationTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="处理人员 " align="center" prop="handler" /> <el-table-column label="处理人员 " align="center" prop="handler" />
<el-table-column <el-table-column
label="处理日期 " label="处理日期 "
align="center" align="center"
prop="handleTime" prop="handleTime"
width="98px" width="98px"
> >
<template v-slot="scope"> <template v-slot="scope">
<span>{{ parseTime2(scope.row.handleTime) }}</span> <span>{{ parseTime2(scope.row.handleTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="处理结果 " align="center" prop="handleResult"> <el-table-column label="处理结果 " align="center" prop="handleResult">
<template v-slot="scope"> <template v-slot="scope">
<dict-tag <dict-tag
:type="DICT_TYPE.HANDLE_RESULT" :type="DICT_TYPE.HANDLE_RESULT"
:value="scope.row.handleResult" :value="scope.row.handleResult"
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="年度 " align="center" prop="year" /> <el-table-column label="年度 " align="center" prop="year" />
<el-table-column label="月份 " align="center" prop="period" /> <el-table-column label="月份 " align="center" prop="period" />
<el-table-column label="借阅状态 " align="center" prop="borrowStatus"> <el-table-column label="借阅状态 " align="center" prop="borrowStatus">
<template v-slot="scope"> <template v-slot="scope">
<dict-tag <dict-tag
:type="DICT_TYPE.BORROW_STATUS" :type="DICT_TYPE.BORROW_STATUS"
:value="scope.row.borrowStatus" :value="scope.row.borrowStatus"
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="归档时间 " label="归档时间 "
align="center" align="center"
prop="recordTime" prop="recordTime"
width="98px" width="98px"
> >
<template v-slot="scope"> <template v-slot="scope">
<span>{{ parseTime2(scope.row.recordTime) }}</span> <span>{{ parseTime2(scope.row.recordTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="纸档位置 " align="center" prop="position" /> <el-table-column label="纸档位置 " align="center" prop="position" />
<el-table-column label="完整性 " align="center" prop="cherks"> <el-table-column label="完整性 " align="center" prop="cherks">
<template v-slot="scope"> <template v-slot="scope">
<dict-tag <dict-tag
:type="DICT_TYPE.ACCOUNTING_FILE_STATUS" :type="DICT_TYPE.ACCOUNTING_FILE_STATUS"
:value="scope.row.cherks" :value="scope.row.cherks"
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="归档状态" align="center" prop="fileStatus"> <el-table-column label="归档状态" align="center" prop="fileStatus">
<template v-slot="scope"> <template v-slot="scope">
<dict-tag <dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_STATUS" :type="DICT_TYPE.ARCHIVES_FILE_STATUS"
:value="scope.row.fileStatus" :value="scope.row.fileStatus"
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="制单人 " align="center" prop="createBy" /> <el-table-column label="制单人 " align="center" prop="createBy" />
<el-table-column <el-table-column
label="创建日期 " label="创建日期 "
align="center" align="center"
prop="createTime" prop="createTime"
width="98px" width="98px"
> >
<template v-slot="scope"> <template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span> <span>{{ parseTime(scope.row.createTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
fixed="right" fixed="right"
width="180px" width="180px"
> >
<template v-slot="scope"> <template v-slot="scope">
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-view" icon="el-icon-view"
v-if="scope.row.contractAttachment" v-if="scope.row.contractAttachment"
@click="handleViewFJ(scope.row)" @click="handleViewFJ(scope.row)"
>查看附件 >查看附件
</el-button> </el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-view" icon="el-icon-view"
@click="handleView(scope.row)" @click="handleView(scope.row)"
>查看 >查看
</el-button> </el-button>
<el-button <el-button
v-if="scope.row.fileStatus == '0'" v-if="scope.row.fileStatus == '0'"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['ea:electronic-consultation:update']" v-hasPermi="['ea:electronic-consultation:update']"
>修改 >修改
</el-button> </el-button>
<el-button <el-button
v-if="scope.row.fileStatus == '0'" v-if="scope.row.fileStatus == '0'"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['ea:electronic-consultation:delete']" v-hasPermi="['ea:electronic-consultation:delete']"
>删除 >删除
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 分页组件 --> <!-- 分页组件 -->
<pagination <pagination
v-show="total > 0" v-show="total > 0"
:total="total" :total="total"
:page.sync="queryParams.pageNo" :page.sync="queryParams.pageNo"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
@pagination="getList" @pagination="getList"
/> />
</el-card>
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
<el-dialog <el-dialog
:title="title" :title="title"
@ -692,7 +711,7 @@ export default {
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.data.name+"上传成功", message: res.data.name + "上传成功",
type: "success", type: "success",
}); });
}, },
@ -932,3 +951,7 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss" scoped>
@import "@/assets/styles/header/index.scss";
@import "@/assets/styles/common/index.scss";
</style>

@ -1,327 +1,341 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- 搜索工作栏 --> <el-card>
<el-form <!-- 搜索工作栏 -->
:model="queryParams" <el-form
ref="queryForm" :model="queryParams"
size="small" ref="queryForm"
:inline="true" size="small"
v-show="showSearch" :inline="true"
label-width="98px" v-show="showSearch"
> label-width="98px"
<el-form-item label="客诉编号" prop="complaintCode">
<el-input
v-model="queryParams.complaintCode"
placeholder="请输入客诉编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="客诉类型" prop="complaintType">
<el-select
v-model="queryParams.complaintType"
placeholder="请选择客诉类型"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.COMPLAINT_TYPE)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="客诉时间" prop="complaintTime">
<el-date-picker
v-model="queryParams.complaintTime"
style="width: 240px"
value-format="yyyy-MM-dd HH:mm:ss"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
/>
</el-form-item>
<el-form-item label="处理结果" prop="handleResult">
<el-select
v-model="queryParams.handleResult"
placeholder="请选择处理结果"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.HANDLE_RESULT)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="年度" prop="year">
<el-date-picker
popper-class="due_year"
v-model="queryParams.year"
value-format="yyyy"
type="year"
placeholder="请选择会计年份"
@keyup.enter.native="handleQuery"
>
</el-date-picker>
</el-form-item>
<el-form-item label="月份" prop="period">
<el-date-picker
popper-class="due_month"
v-model="queryParams.period"
format="M月"
value-format="M"
type="month"
placeholder="请选择会计月份"
@keyup.enter.native="handleQuery"
>
</el-date-picker>
</el-form-item>
<el-form-item label="借阅状态" prop="borrowStatus">
<el-select
v-model="queryParams.borrowStatus"
placeholder="请选择借阅状态"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.BORROW_STATUS)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="归档状态" prop="fileStatus">
<el-select
v-model="queryParams.fileStatus"
placeholder="请选择归档状态"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.ARCHIVES_FILE_STATUS)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['ea:electronic-customer-complaint:create']"
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
:loading="exportLoading"
v-hasPermi="['ea:electronic-customer-complaint:export']"
>导出
</el-button>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<!-- 列表 -->
<el-table
v-loading="loading"
:data="list"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="所属部门" align="center" prop="deptName" />
<el-table-column label="客诉编号" align="center" prop="complaintCode" />
<el-table-column label="客户名称" align="center" prop="customerName" />
<el-table-column label="客户电话" align="center" prop="customerPhone" />
<el-table-column
label="客诉时间"
align="center"
prop="complaintTime"
width="98px"
>
<template v-slot="scope">
<span>{{ parseTime2(scope.row.complaintTime) }}</span>
</template>
</el-table-column>
<el-table-column
label="客诉类型"
align="center"
prop="complaintType"
width="98px"
>
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.COMPLAINT_TYPE"
:value="scope.row.complaintType"
/>
</template>
</el-table-column>
<!-- <el-table-column label="客诉内容" align="center" prop="complaintContent">
<template v-slot="scope">
<span v-html="scope.row.complaintContent"></span>
</template>
</el-table-column> -->
<el-table-column label="处理人" align="center" prop="handler" />
<el-table-column
label="处理时间"
align="center"
prop="handleTime"
width="98px"
>
<template v-slot="scope">
<span>{{ parseTime2(scope.row.handleTime) }}</span>
</template>
</el-table-column>
<el-table-column label="处理结果" align="center" prop="handleResult">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.HANDLE_RESULT"
:value="scope.row.handleResult"
/>
</template>
</el-table-column>
<el-table-column label="年度" align="center" prop="year" />
<el-table-column label="月份" align="center" prop="period" />
<el-table-column label="借阅状态" align="center" prop="borrowStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.BORROW_STATUS"
:value="scope.row.borrowStatus"
/>
</template>
</el-table-column>
<el-table-column
label="归档时间"
align="center"
prop="recordTime"
width="98px"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.recordTime) }}</span>
</template>
</el-table-column>
<el-table-column label="纸档位置" align="center" prop="position" />
<el-table-column label="完整性" align="center" prop="cherks">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ACCOUNTING_FILE_STATUS"
:value="scope.row.cherks"
/>
</template>
</el-table-column>
<el-table-column label="归档状态" align="center" prop="fileStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_STATUS"
:value="scope.row.fileStatus"
/>
</template>
</el-table-column>
<el-table-column label=" 制单人" align="center" prop="createBy" />
<el-table-column
label="创建日期"
align="center"
prop="createTime"
width="98px"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
> >
<template v-slot="scope"> <div class="filter-box">
<el-button <div class="filter-lf">
size="mini" <el-form-item label="客诉编号" prop="complaintCode">
type="text" <el-input
icon="el-icon-view" v-model="queryParams.complaintCode"
v-if="scope.row.contractAttachment" placeholder="请输入客诉编号"
@click="handleViewFJ(scope.row)" clearable
>查看附件 @keyup.enter.native="handleQuery"
</el-button> />
</el-form-item>
<el-form-item label="客诉类型" prop="complaintType">
<el-select
v-model="queryParams.complaintType"
placeholder="请选择客诉类型"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.COMPLAINT_TYPE)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="客诉时间" prop="complaintTime">
<el-date-picker
v-model="queryParams.complaintTime"
style="width: 240px"
value-format="yyyy-MM-dd HH:mm:ss"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
/>
</el-form-item>
<el-form-item label="处理结果" prop="handleResult">
<el-select
v-model="queryParams.handleResult"
placeholder="请选择处理结果"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.HANDLE_RESULT)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="年度" prop="year">
<el-date-picker
popper-class="due_year"
v-model="queryParams.year"
value-format="yyyy"
type="year"
placeholder="请选择会计年份"
@keyup.enter.native="handleQuery"
>
</el-date-picker>
</el-form-item>
<el-form-item label="月份" prop="period">
<el-date-picker
popper-class="due_month"
v-model="queryParams.period"
format="M月"
value-format="M"
type="month"
placeholder="请选择会计月份"
@keyup.enter.native="handleQuery"
>
</el-date-picker>
</el-form-item>
<el-form-item label="借阅状态" prop="borrowStatus">
<el-select
v-model="queryParams.borrowStatus"
placeholder="请选择借阅状态"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.BORROW_STATUS)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="归档状态" prop="fileStatus">
<el-select
v-model="queryParams.fileStatus"
placeholder="请选择归档状态"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(
DICT_TYPE.ARCHIVES_FILE_STATUS
)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</div>
</div>
</el-form>
<!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button <el-button
type="primary"
plain
icon="el-icon-plus"
size="mini" size="mini"
type="text" @click="handleAdd"
icon="el-icon-view" v-hasPermi="['ea:electronic-customer-complaint:create']"
@click="handleView(scope.row)" >新增
>查看
</el-button> </el-button>
</el-col>
<el-col :span="1.5">
<el-button <el-button
v-if="scope.row.fileStatus == '0'" type="danger"
plain
icon="el-icon-delete"
size="mini" size="mini"
type="text" :disabled="multiple"
icon="el-icon-edit" @click="handleDelete"
@click="handleUpdate(scope.row)" >删除</el-button
v-hasPermi="['ea:electronic-customer-complaint:update']" >
>修改 </el-col>
</el-button> <el-col :span="1.5">
<el-button <el-button
v-if="scope.row.fileStatus == '0'" type="warning"
plain
icon="el-icon-download"
size="mini" size="mini"
type="text" @click="handleExport"
icon="el-icon-delete" :loading="exportLoading"
@click="handleDelete(scope.row)" v-hasPermi="['ea:electronic-customer-complaint:export']"
v-hasPermi="['ea:electronic-customer-complaint:delete']" >导出
>删除
</el-button> </el-button>
</template> </el-col>
</el-table-column> <right-toolbar
</el-table> :showSearch.sync="showSearch"
<!-- 分页组件 --> @queryTable="getList"
<pagination ></right-toolbar>
v-show="total > 0" </el-row>
:total="total"
:page.sync="queryParams.pageNo"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 列表 -->
<el-table
v-loading="loading"
:data="list"
stripe
border
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="所属部门" align="center" prop="deptName" />
<el-table-column label="客诉编号" align="center" prop="complaintCode" />
<el-table-column label="客户名称" align="center" prop="customerName" />
<el-table-column label="客户电话" align="center" prop="customerPhone" />
<el-table-column
label="客诉时间"
align="center"
prop="complaintTime"
width="98px"
>
<template v-slot="scope">
<span>{{ parseTime2(scope.row.complaintTime) }}</span>
</template>
</el-table-column>
<el-table-column
label="客诉类型"
align="center"
prop="complaintType"
width="98px"
>
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.COMPLAINT_TYPE"
:value="scope.row.complaintType"
/>
</template>
</el-table-column>
<!-- <el-table-column label="客诉内容" align="center" prop="complaintContent">
<template v-slot="scope">
<span v-html="scope.row.complaintContent"></span>
</template>
</el-table-column> -->
<el-table-column label="处理人" align="center" prop="handler" />
<el-table-column
label="处理时间"
align="center"
prop="handleTime"
width="98px"
>
<template v-slot="scope">
<span>{{ parseTime2(scope.row.handleTime) }}</span>
</template>
</el-table-column>
<el-table-column label="处理结果" align="center" prop="handleResult">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.HANDLE_RESULT"
:value="scope.row.handleResult"
/>
</template>
</el-table-column>
<el-table-column label="年度" align="center" prop="year" />
<el-table-column label="月份" align="center" prop="period" />
<el-table-column label="借阅状态" align="center" prop="borrowStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.BORROW_STATUS"
:value="scope.row.borrowStatus"
/>
</template>
</el-table-column>
<el-table-column
label="归档时间"
align="center"
prop="recordTime"
width="98px"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.recordTime) }}</span>
</template>
</el-table-column>
<el-table-column label="纸档位置" align="center" prop="position" />
<el-table-column label="完整性" align="center" prop="cherks">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ACCOUNTING_FILE_STATUS"
:value="scope.row.cherks"
/>
</template>
</el-table-column>
<el-table-column label="归档状态" align="center" prop="fileStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_STATUS"
:value="scope.row.fileStatus"
/>
</template>
</el-table-column>
<el-table-column label=" 制单人" align="center" prop="createBy" />
<el-table-column
label="创建日期"
align="center"
prop="createTime"
width="98px"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
v-if="scope.row.contractAttachment"
@click="handleViewFJ(scope.row)"
>查看附件
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row)"
>查看
</el-button>
<el-button
v-if="scope.row.fileStatus == '0'"
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['ea:electronic-customer-complaint:update']"
>修改
</el-button>
<el-button
v-if="scope.row.fileStatus == '0'"
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['ea:electronic-customer-complaint:delete']"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<!-- 分页组件 -->
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNo"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</el-card>
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
<el-dialog <el-dialog
:title="title" :title="title"
@ -712,7 +726,7 @@ export default {
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.data.name+"上传成功", message: res.data.name + "上传成功",
type: "success", type: "success",
}); });
}, },
@ -958,3 +972,7 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss" scoped>
@import "@/assets/styles/header/index.scss";
@import "@/assets/styles/common/index.scss";
</style>

@ -1,254 +1,268 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- 搜索工作栏 --> <el-card>
<el-form <!-- 搜索工作栏 -->
:model="queryParams" <el-form
ref="queryForm" :model="queryParams"
size="small" ref="queryForm"
:inline="true" size="small"
v-show="showSearch" :inline="true"
label-width="98px" v-show="showSearch"
> label-width="98px"
<el-form-item label="所属部门" prop="deptName">
<treeselect
style="width: 190px"
v-model="queryParams.deptId"
:options="deptOptions"
:show-count="true"
:clearable="true"
placeholder="请选择部门"
:normalizer="normalizer"
/>
</el-form-item>
<el-form-item label="员工姓名" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入员工姓名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="性别" prop="gender">
<el-select
v-model="queryParams.gender"
placeholder="请选择性别"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.SYSTEM_USER_SEX)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="身份证号" prop="idCardNumber">
<el-input
v-model="queryParams.idCardNumber"
placeholder="请输入身份证号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="借阅状态" prop="borrowStatus">
<el-select
v-model="queryParams.borrowStatus"
placeholder="请选择借阅状态"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.BORROW_STATUS)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="归档状态" prop="fileStatus">
<el-select
v-model="queryParams.fileStatus"
placeholder="请选择归档状态"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.ARCHIVES_FILE_STATUS)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['ea:electronic-employee:create']"
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
:loading="exportLoading"
v-hasPermi="['ea:electronic-employee:export']"
>导出
</el-button>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<!-- 列表 -->
<el-table
v-loading="loading"
:data="list"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="所属部门" align="center" prop="deptName" />
<el-table-column label="员工姓名" align="center" prop="name" />
<el-table-column label="性别" align="center" prop="gender">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.SYSTEM_USER_SEX"
:value="scope.row.gender"
/>
</template>
</el-table-column>
<el-table-column label="国籍" align="center" prop="nationality" />
<el-table-column label="联系方式" align="center" prop="contactNumber" />
<el-table-column label="身份证号" align="center" prop="idCardNumber" />
<el-table-column label="年度" align="center" prop="year" />
<el-table-column label="月份" align="center" prop="period" />
<el-table-column label="借阅状态" align="center" prop="borrowStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.BORROW_STATUS"
:value="scope.row.borrowStatus"
/>
</template>
</el-table-column>
<el-table-column
label="归档时间"
align="center"
prop="recordTime"
width="98px"
/>
<el-table-column label="纸档位置" align="center" prop="position" />
<el-table-column label="完整性" align="center" prop="cherks">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ACCOUNTING_FILE_STATUS"
:value="scope.row.cherks"
/>
</template>
</el-table-column>
<el-table-column label="归档状态" align="center" prop="fileStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_STATUS"
:value="scope.row.fileStatus"
/>
</template>
</el-table-column>
<el-table-column label="制单人" align="center" prop="createBy" />
<el-table-column
label="创建日期"
align="center"
prop="createTime"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
> >
<template v-slot="scope"> <div class="filter-box">
<el-button <div class="filter-lf">
size="mini" <el-form-item label="所属部门" prop="deptName">
type="text" <treeselect
icon="el-icon-view" style="width: 190px"
v-if="scope.row.contractAttachment" v-model="queryParams.deptId"
@click="handleViewFJ(scope.row)" :options="deptOptions"
>查看附件 :show-count="true"
</el-button> :clearable="true"
placeholder="请选择部门"
:normalizer="normalizer"
/>
</el-form-item>
<el-form-item label="员工姓名" prop="name">
<el-input
v-model="queryParams.name"
placeholder="请输入员工姓名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="性别" prop="gender">
<el-select
v-model="queryParams.gender"
placeholder="请选择性别"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.SYSTEM_USER_SEX)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="身份证号" prop="idCardNumber">
<el-input
v-model="queryParams.idCardNumber"
placeholder="请输入身份证号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="借阅状态" prop="borrowStatus">
<el-select
v-model="queryParams.borrowStatus"
placeholder="请选择借阅状态"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.BORROW_STATUS)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="归档状态" prop="fileStatus">
<el-select
v-model="queryParams.fileStatus"
placeholder="请选择归档状态"
clearable
size="small"
>
<el-option
v-for="dict in this.getDictDatas(
DICT_TYPE.ARCHIVES_FILE_STATUS
)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</div>
</div>
</el-form>
<!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button <el-button
type="primary"
plain
icon="el-icon-plus"
size="mini" size="mini"
type="text" @click="handleAdd"
icon="el-icon-view" v-hasPermi="['ea:electronic-employee:create']"
@click="handleView(scope.row)" >新增
>查看
</el-button> </el-button>
</el-col>
<el-col :span="1.5">
<el-button <el-button
v-if="scope.row.fileStatus == '0'" type="danger"
plain
icon="el-icon-delete"
size="mini" size="mini"
type="text" :disabled="multiple"
icon="el-icon-edit" @click="handleDelete"
@click="handleUpdate(scope.row)" >删除</el-button
v-hasPermi="['ea:electronic-employee:update']" >
>修改 </el-col>
</el-button> <el-col :span="1.5">
<el-button <el-button
v-if="scope.row.fileStatus == '0'" type="warning"
plain
icon="el-icon-download"
size="mini" size="mini"
type="text" @click="handleExport"
icon="el-icon-delete" :loading="exportLoading"
@click="handleDelete(scope.row)" v-hasPermi="['ea:electronic-employee:export']"
v-hasPermi="['ea:electronic-employee:delete']" >导出
>删除
</el-button> </el-button>
</template> </el-col>
</el-table-column> <right-toolbar
</el-table> :showSearch.sync="showSearch"
<!-- 分页组件 --> @queryTable="getList"
<pagination ></right-toolbar>
v-show="total > 0" </el-row>
:total="total"
:page.sync="queryParams.pageNo"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 列表 -->
<el-table
v-loading="loading"
:data="list"
stripe
border
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="所属部门" align="center" prop="deptName" />
<el-table-column label="员工姓名" align="center" prop="name" />
<el-table-column label="性别" align="center" prop="gender">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.SYSTEM_USER_SEX"
:value="scope.row.gender"
/>
</template>
</el-table-column>
<el-table-column label="国籍" align="center" prop="nationality" />
<el-table-column label="联系方式" align="center" prop="contactNumber" />
<el-table-column label="身份证号" align="center" prop="idCardNumber" />
<el-table-column label="年度" align="center" prop="year" />
<el-table-column label="月份" align="center" prop="period" />
<el-table-column label="借阅状态" align="center" prop="borrowStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.BORROW_STATUS"
:value="scope.row.borrowStatus"
/>
</template>
</el-table-column>
<el-table-column
label="归档时间"
align="center"
prop="recordTime"
width="98px"
/>
<el-table-column label="纸档位置" align="center" prop="position" />
<el-table-column label="完整性" align="center" prop="cherks">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ACCOUNTING_FILE_STATUS"
:value="scope.row.cherks"
/>
</template>
</el-table-column>
<el-table-column label="归档状态" align="center" prop="fileStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_STATUS"
:value="scope.row.fileStatus"
/>
</template>
</el-table-column>
<el-table-column label="制单人" align="center" prop="createBy" />
<el-table-column
label="创建日期"
align="center"
prop="createTime"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
v-if="scope.row.contractAttachment"
@click="handleViewFJ(scope.row)"
>查看附件
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row)"
>查看
</el-button>
<el-button
v-if="scope.row.fileStatus == '0'"
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['ea:electronic-employee:update']"
>修改
</el-button>
<el-button
v-if="scope.row.fileStatus == '0'"
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['ea:electronic-employee:delete']"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<!-- 分页组件 -->
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNo"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</el-card>
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
<el-dialog <el-dialog
:title="title" :title="title"
@ -844,10 +858,9 @@ export default {
handleSuccess(res) { handleSuccess(res) {
console.log(res); console.log(res);
this.form.contractAttachment = res.data.url; this.form.contractAttachment = res.data.url;
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.data.name+"上传成功", message: res.data.name + "上传成功",
type: "success", type: "success",
}); });
}, },
@ -1107,3 +1120,8 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss" scoped>
@import "@/assets/styles/header/index.scss";
@import "@/assets/styles/common/index.scss";
</style>

@ -1,168 +1,185 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<!-- 搜索工作栏 --> <el-card>
<el-form <!-- 搜索工作栏 -->
:model="queryParams" <el-form
ref="queryForm" :model="queryParams"
size="small" ref="queryForm"
:inline="true" size="small"
v-show="showSearch" :inline="true"
label-width="88px" v-show="showSearch"
> label-width="88px"
<el-form-item label="业务类型" prop="businessType">
<el-select v-model="form.businessType" placeholder="请选择业务类型 ">
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.OTHER_BUSINESS_TYPE)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
<!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['ea:electronic-other:create']"
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
:loading="exportLoading"
v-hasPermi="['ea:electronic-other:export']"
>导出
</el-button>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<!-- 列表 -->
<el-table
v-loading="loading"
:data="list"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="流程编号 " align="center" prop="flowCode" />
<el-table-column label="文件来源" align="center" prop="source" />
<el-table-column label="年度" align="center" prop="year" />
<el-table-column label="月份" align="center" prop="period" />
<el-table-column label="业务类型" align="center" prop="businessType">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.OTHER_BUSINESS_TYPE"
:value="scope.row.businessType"
/>
</template>
</el-table-column>
<el-table-column
label="创建时间"
align="center"
prop="createTime"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="制单人" align="center" prop="createBy" />
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="摘要" align="center" prop="note" />
<el-table-column label="所属部门" align="center" prop="deptName" />
<el-table-column label="归档状态" align="center" prop="fileStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_STATUS"
:value="scope.row.fileStatus"
/>
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
> >
<template v-slot="scope"> <div class="filter-box">
<el-button <div class="filter-lf">
size="mini" <el-form-item label="业务类型" prop="businessType">
type="text" <el-select
icon="el-icon-view" v-model="form.businessType"
v-if="scope.row.contractAttachment" placeholder="请选择业务类型 "
@click="handleViewFJ(scope.row)" >
>查看附件 <el-option
</el-button> v-for="dict in this.getDictDatas(
DICT_TYPE.OTHER_BUSINESS_TYPE
)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</div>
</div>
</el-form>
<!-- 操作工具栏 -->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button <el-button
type="primary"
plain
icon="el-icon-plus"
size="mini" size="mini"
type="text" @click="handleAdd"
icon="el-icon-view" v-hasPermi="['ea:electronic-other:create']"
@click="handleView(scope.row)" >新增
>查看
</el-button> </el-button>
</el-col>
<el-col :span="1.5">
<el-button <el-button
v-if="scope.row.fileStatus == '0'" type="danger"
plain
icon="el-icon-delete"
size="mini" size="mini"
type="text" :disabled="multiple"
icon="el-icon-edit" @click="handleDelete"
@click="handleUpdate(scope.row)" >删除</el-button
v-hasPermi="['ea:electronic-other:update']" >
>修改 </el-col>
</el-button> <el-col :span="1.5">
<el-button <el-button
v-if="scope.row.fileStatus == '0'" type="warning"
plain
icon="el-icon-download"
size="mini" size="mini"
type="text" @click="handleExport"
icon="el-icon-delete" :loading="exportLoading"
@click="handleDelete(scope.row)" v-hasPermi="['ea:electronic-other:export']"
v-hasPermi="['ea:electronic-other:delete']" >导出
>删除
</el-button> </el-button>
</template> </el-col>
</el-table-column> <right-toolbar
</el-table> :showSearch.sync="showSearch"
<!-- 分页组件 --> @queryTable="getList"
<pagination ></right-toolbar>
v-show="total > 0" </el-row>
:total="total"
:page.sync="queryParams.pageNo"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 列表 -->
<el-table
v-loading="loading"
:data="list"
stripe
border
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="流程编号 " align="center" prop="flowCode" />
<el-table-column label="文件来源" align="center" prop="source" />
<el-table-column label="年度" align="center" prop="year" />
<el-table-column label="月份" align="center" prop="period" />
<el-table-column label="业务类型" align="center" prop="businessType">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.OTHER_BUSINESS_TYPE"
:value="scope.row.businessType"
/>
</template>
</el-table-column>
<el-table-column
label="创建时间"
align="center"
prop="createTime"
width="180"
>
<template v-slot="scope">
<span>{{ parseTime(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column label="制单人" align="center" prop="createBy" />
<el-table-column label="业务实体" align="center" prop="company" />
<el-table-column label="摘要" align="center" prop="note" />
<el-table-column label="所属部门" align="center" prop="deptName" />
<el-table-column label="归档状态" align="center" prop="fileStatus">
<template v-slot="scope">
<dict-tag
:type="DICT_TYPE.ARCHIVES_FILE_STATUS"
:value="scope.row.fileStatus"
/>
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
fixed="right"
width="180px"
>
<template v-slot="scope">
<el-button
size="mini"
type="text"
icon="el-icon-view"
v-if="scope.row.contractAttachment"
@click="handleViewFJ(scope.row)"
>查看附件
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-view"
@click="handleView(scope.row)"
>查看
</el-button>
<el-button
v-if="scope.row.fileStatus == '0'"
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['ea:electronic-other:update']"
>修改
</el-button>
<el-button
v-if="scope.row.fileStatus == '0'"
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['ea:electronic-other:delete']"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<!-- 分页组件 -->
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNo"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</el-card>
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
<el-dialog <el-dialog
:title="title" :title="title"
@ -545,7 +562,7 @@ export default {
this.form.contractAttachment = res.data.url; this.form.contractAttachment = res.data.url;
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.data.name+"上传成功", message: res.data.name + "上传成功",
type: "success", type: "success",
}); });
}, },
@ -667,3 +684,7 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss" scoped>
@import "@/assets/styles/header/index.scss";
@import "@/assets/styles/common/index.scss";
</style>

Loading…
Cancel
Save