Commit 68619396 authored by 姬鋆屾's avatar 姬鋆屾

pref:代码优化

parent 8cd12952
......@@ -8,59 +8,45 @@
<script>
/** 表单弹出框模式需引入 */
import dialogShow from "./dialogshow";
import table from "@/assets/mixins/table";
import dialogShow from './dialogshow';
import table from '@/assets/mixins/table';
export default {
name: "AttendanceStaffStatList",
name: 'AttendanceStaffStatList',
components: {
dialogShow,
dialogShow
},
mixins: [table],
created() {},
methods: {
/** 重写新增方法 */
toAdd(row) {
this.$refs.dialogform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.dialogform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.dialogform.view(row);
},
},
data() {
return {
// 表格配置项
config: {
isshowTabPane: true,
search: [
{
name: "staffName",
type: "text",
label: "员工姓名",
fuzzy: true,
},
name: 'staffName',
type: 'text',
label: '员工姓名',
fuzzy: true
}
],
columns: [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ type: 'selection', width: 60 },
{ type: 'index', label: '序号', width: 50 },
{ label: "员工姓名", prop: "staffName" },
{ label: '员工姓名', prop: 'staffName' },
{
label: "考勤汇总信息,如迟到*1,旷工*2等",
prop: "attendanceSummary",
label: '考勤汇总信息,如迟到*1,旷工*2等',
prop: 'attendanceSummary'
},
{
label: "创建用户",
prop: "createUserId",
formatter: this.formatter,
label: '创建用户',
prop: 'createUserId',
formatter: this.formatter
},
{
label: "操作",
label: '操作',
width: 240,
formatter: (row) => {
return (
......@@ -72,11 +58,26 @@ export default {
onDel={this.toDel}
/>
);
},
},
],
},
}
}
]
}
};
},
created() {},
methods: {
/** 重写新增方法 */
toAdd(row) {
this.$refs.dialogform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.dialogform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.dialogform.view(row);
}
}
};
</script>
<template>
<div class="page">
<!-- S 表格主体部分 -->
<LayoutTable :data="tableData" :config="tableConfig" notAdd notDel>
<el-button
type="primary"
......@@ -7,136 +8,103 @@
:disabled="isExport"
size="mini"
slot="table-head-left2"
style="margin-left: 10px;"
style="margin-left: 10px"
>导出</el-button
>
</LayoutTable>
<!-- E 表格主体部分 -->
<!-- S 抽屉层 -->
<drawer-show ref="drawerform" @ok="getData" />
<!-- E 抽屉层 -->
</div>
</template>
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
import drawerShow from './drawershow';
import table from '@/assets/mixins/table';
export default {
name: "AttendanceVacationBalanceList",
name: 'AttendanceVacationBalanceList',
components: {
drawerShow,
drawerShow
},
mixins: [table],
created() {},
methods: {
// 导出
doExport() {
this.isExport = true;
let params = {};
for (let value of this.config.search) {
if (this.query[value.name]) {
params[value.name] = this.query[value.name];
}
}
if (this.selection.length > 0) {
params["idList"] = this.selection;
}
this.$download(
"/attendance/vacation/balance/exportExcel",
{
...params,
},
{ type: "excel", name: "员工假期余额" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 查看不同类型假期记录 */
handleCountDays(row, column, val) {
this.$refs.drawerform.view({
type: this.util_formatter("AllHolidays", column.property),
staffId: row.staffId,
id: row.id,
val,
});
},
},
data() {
return {
// 表格配置项
config: {
isshowTabPane: true,
search: [
{
name: "salaId",
type: "selectSalaId",
label: "大厅",
fuzzy: false,
name: 'salaId',
type: 'selectSalaId',
label: '大厅',
fuzzy: false
},
{
name: "deptId",
type: "selectDeptId",
label: "部门",
fuzzy: false,
name: 'deptId',
type: 'selectDeptId',
label: '部门',
fuzzy: false
},
{
name: "staffName",
type: "text",
label: "员工姓名",
fuzzy: true,
},
name: 'staffName',
type: 'text',
label: '员工姓名',
fuzzy: true
}
],
columns: [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ label: "员工姓名", prop: "staffName" },
{ type: 'selection', width: 60 },
{ type: 'index', label: '序号', width: 50 },
{ label: '员工姓名', prop: 'staffName' },
{
label: "大厅",
prop: "salaName",
label: '大厅',
prop: 'salaName',
formatter: this.formatter,
show: true,
show: true
},
{
label: "部门",
prop: "deptName",
label: '部门',
prop: 'deptName',
formatter: this.formatter,
show: true,
show: true
},
{
label: "入职时间",
prop: "entryTime",
formatter: this.formatterDate,
label: '入职时间',
prop: 'entryTime',
formatter: this.formatterDate
},
{
label: "事假(天)",
prop: "personalLeaveDays",
formatter: this.formatterDay,
label: '事假(天)',
prop: 'personalLeaveDays',
formatter: this.formatterDay
},
{
label: "调休(天)",
prop: "compensatedLeaveDays",
formatter: this.formatterDay,
label: '调休(天)',
prop: 'compensatedLeaveDays',
formatter: this.formatterDay
},
{
label: "病假(天)",
prop: "sickLeaveDays",
formatter: this.formatterDay,
label: '病假(天)',
prop: 'sickLeaveDays',
formatter: this.formatterDay
},
{
label: "年假(天)",
prop: "annualLeaveDays",
formatter: this.formatterDay,
label: '年假(天)',
prop: 'annualLeaveDays',
formatter: this.formatterDay
},
{
label: "婚假(天)",
prop: "marriageLeaveDays",
formatter: this.formatterDay,
label: '婚假(天)',
prop: 'marriageLeaveDays',
formatter: this.formatterDay
},
{
label: "哺乳假(天)",
prop: "breastfeedingLeaveDays",
formatter: this.formatterDay,
},
label: '哺乳假(天)',
prop: 'breastfeedingLeaveDays',
formatter: this.formatterDay
}
// {label: "创建用户", prop: "createUserId", formatter: this.formatter},
// {
// label: "操作",
......@@ -149,9 +117,47 @@ export default {
// }
// }
],
isExport: false,
},
// 导出按钮加载状态
isExport: false
}
};
},
created() {},
methods: {
// 导出
doExport() {
this.isExport = true;
let params = {};
for (let value of this.config.search) {
if (this.query[value.name]) {
params[value.name] = this.query[value.name];
}
}
if (this.selection.length > 0) {
params['idList'] = this.selection;
}
this.$download(
'/attendance/vacation/balance/exportExcel',
{
...params
},
{ type: 'excel', name: '员工假期余额' }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 查看不同类型假期记录 */
handleCountDays(row, column, val) {
this.$refs.drawerform.view({
type: this.util_formatter('AllHolidays', column.property),
staffId: row.staffId,
id: row.id,
val
});
}
}
};
</script>
<template>
<div class="page">
<!-- 表格主体 -->
<LayoutTable notAdd notDel :data="tableData" :config="tableConfig">
<el-button
slot="table-head-left2"
......@@ -13,12 +14,7 @@
</LayoutTable>
<!-- 考勤绩效记录核查信息导入对话框 -->
<el-dialog
:title="upload.title"
:visible.sync="upload.open"
width="400px"
append-to-body
>
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
<el-upload
ref="upload"
:limit="1"
......@@ -38,10 +34,7 @@
</div>
<div class="el-upload__tip" slot="tip">
<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的数据
<el-link
type="primary"
style="font-size: 14px"
@click="downloadTemplate"
<el-link type="primary" style="font-size: 14px" @click="downloadTemplate"
>下载模板</el-link
>
</div>
......@@ -61,96 +54,17 @@
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
import { downloadFile } from "@/assets/utils/index";
import drawerShow from './drawershow';
import table from '@/assets/mixins/table';
import { downloadFile } from '@/assets/utils/index';
export default {
name: "CheckAttendRecordList",
name: 'CheckAttendRecordList',
components: {
drawerShow,
drawerShow
},
mixins: [table],
created() {},
methods: {
handleCellClick(row, column, event, cell) {
if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = "考勤绩效记录核查信息导入";
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download(
"/check/attend/record/downloadTemplate",
{},
{ type: "excel" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
"/check/attend/record/exportExcel",
{
...this.query,
page: 1,
size: -1,
},
{ type: "excel", name: "考勤绩效记录核查信息" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = "核查";
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = "查看";
this.$refs.drawerform.view(row);
},
},
data() {
return {
// 用户导入参数
......@@ -158,102 +72,102 @@ export default {
// 是否显示弹出层(考勤绩效记录核查信息导入)
open: false,
// 弹出层标题(考勤绩效记录核查信息导入)
title: "导入考勤绩效记录核查信息数据",
title: '导入考勤绩效记录核查信息数据',
// 是否禁用上传
isUploading: false,
// 是否更新已经存在的数据
updateSupport: 0,
// 上传的地址
url: "/attendance/check/attend/record/importData",
url: '/attendance/check/attend/record/importData'
},
isExport: false,
config: {
isshowTabPane: true,
search: [
{
name: "checkStatus",
type: "select",
label: "处理状态",
fuzzy: false,
name: 'checkStatus',
type: 'select',
label: '处理状态',
fuzzy: false
},
{
name: "salaId",
type: "selectSalaId",
label: "大厅",
fuzzy: false,
name: 'salaId',
type: 'selectSalaId',
label: '大厅',
fuzzy: false
},
{
name: "deptId",
type: "selectDeptId",
label: "部门",
fuzzy: false,
name: 'deptId',
type: 'selectDeptId',
label: '部门',
fuzzy: false
},
{
name: "createTimeMonth",
type: "month",
label: "请选择异常时间",
fuzzy: false,
name: 'createTimeMonth',
type: 'month',
label: '请选择异常时间',
fuzzy: false
},
{
name: "staffName",
type: "text",
label: "员工姓名搜索",
fuzzy: true,
},
name: 'staffName',
type: 'text',
label: '员工姓名搜索',
fuzzy: true
}
],
columns: [
{ type: "selection", width: 50, fixed: "left" },
{ type: "index", label: "序号", width: 50, fixed: "left" },
{ type: 'selection', width: 50, fixed: 'left' },
{ type: 'index', label: '序号', width: 50, fixed: 'left' },
{
label: "姓名",
prop: "staffName",
label: '姓名',
prop: 'staffName',
formatter: this.formatter,
fixed: "left",
fixed: 'left'
},
{ label: "窗口编号", prop: "windowNum", formatter: this.formatter },
{ label: '窗口编号', prop: 'windowNum', formatter: this.formatter },
{ label: "所属大厅", prop: "salaName", formatter: this.formatter },
{ label: '所属大厅', prop: 'salaName', formatter: this.formatter },
{ label: "所属部门", prop: "deptName", formatter: this.formatter },
{ label: '所属部门', prop: 'deptName', formatter: this.formatter },
{
label: "考勤组",
prop: "attendanceGroupName",
formatter: this.formatter,
label: '考勤组',
prop: 'attendanceGroupName',
formatter: this.formatter
},
{
label: "异常时间",
prop: "errorTime",
label: '异常时间',
prop: 'errorTime',
width: 100,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "上下班时间",
label: '上下班时间',
width: 110,
prop: "goOffTimeStr",
prop: 'goOffTimeStr'
},
{
label: "实际打卡时间",
prop: "actualAttendTime",
label: '实际打卡时间',
prop: 'actualAttendTime',
width: 100,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{ label: "异常结果", prop: "errorResult", formatter: this.formatter },
{ label: '异常结果', prop: 'errorResult', formatter: this.formatter },
{
label: "图片凭证",
label: '图片凭证',
width: 150,
formatter: (row) => {
row.snapPath && row.snapPath !== ""
row.snapPath && row.snapPath !== ''
? (row.filePaths =
row.filePaths && row.filePaths !== ""
? row.filePaths + "," + row.snapPath
row.filePaths && row.filePaths !== ''
? row.filePaths + ',' + row.snapPath
: row.snapPath)
: (row.filePaths = row.filePaths);
return (
......@@ -266,35 +180,35 @@ export default {
// ></el-image>
<filepReview src={row.filePaths} />
);
},
}
},
{ label: "绩效规则", prop: "ruleName", formatter: this.formatter },
{ label: '绩效规则', prop: 'ruleName', formatter: this.formatter },
{
label: "加分/扣分方式",
prop: "subMethod",
formatter: this.formatter,
label: '加分/扣分方式',
prop: 'subMethod',
formatter: this.formatter
},
{
label: "加分/扣分时间",
prop: "deductTime",
label: '加分/扣分时间',
prop: 'deductTime',
width: 100,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "加分/扣分人员",
prop: "deductPerson",
formatter: this.formatter,
label: '加分/扣分人员',
prop: 'deductPerson',
formatter: this.formatter
},
{ label: "核查结果", prop: "checkResult", formatter: this.formatter },
{ label: '核查结果', prop: 'checkResult', formatter: this.formatter },
{ label: "说明", prop: "checkDesc", formatter: this.formatter },
{ label: '说明', prop: 'checkDesc', formatter: this.formatter },
{ label: "核查人员", prop: "checkPerson", formatter: this.formatter },
{ label: '核查人员', prop: 'checkPerson', formatter: this.formatter },
// {
// label: "核查时间",
......@@ -303,18 +217,18 @@ export default {
// formatter: this.formatterDate,
// },
{ label: "分值", prop: "score", formatter: this.formatter },
{ label: '分值', prop: 'score', formatter: this.formatter },
{
label: "处理状态",
prop: "checkStatus",
formatter: this.formatter,
label: '处理状态',
prop: 'checkStatus',
formatter: this.formatter
},
{
label: "操作",
label: '操作',
width: 110,
fixed: "right",
fixed: 'right',
formatter: (row) => {
return row.checkStatus == 1 ? (
<table-buttons
......@@ -322,7 +236,7 @@ export default {
noDel
noEdit
reCheck
text={"考勤核查"}
text={'考勤核查'}
noView
row={row}
onEdit={this.toEdit}
......@@ -340,11 +254,88 @@ export default {
onDel={this.toDel}
/>
);
},
},
],
},
}
}
]
}
};
},
created() {},
methods: {
// 图片凭证点击事件
handleCellClick(row, column, event, cell) {
if (column.label == '图片凭证') {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = '考勤绩效记录核查信息导入';
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download('/check/attend/record/downloadTemplate', {}, { type: 'excel' })
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, '导入结果', { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
'/check/attend/record/exportExcel',
{
...this.query,
page: 1,
size: -1
},
{ type: 'excel', name: '考勤绩效记录核查信息' }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = '核查';
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = '查看';
this.$refs.drawerform.view(row);
}
}
};
</script>
......@@ -13,12 +13,7 @@
</LayoutTable>
<!-- 评价绩效投诉核查信息导入对话框 -->
<el-dialog
:title="upload.title"
:visible.sync="upload.open"
width="400px"
append-to-body
>
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
<el-upload
ref="upload"
:limit="1"
......@@ -38,10 +33,7 @@
</div>
<div class="el-upload__tip" slot="tip">
<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的数据
<el-link
type="primary"
style="font-size: 14px"
@click="downloadTemplate"
<el-link type="primary" style="font-size: 14px" @click="downloadTemplate"
>下载模板</el-link
>
</div>
......@@ -61,96 +53,17 @@
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
import { downloadFile } from "@/assets/utils/index";
import drawerShow from './drawershow';
import table from '@/assets/mixins/table';
import { downloadFile } from '@/assets/utils/index';
export default {
name: "CheckComplainRecordList",
name: 'CheckComplainRecordList',
components: {
drawerShow,
drawerShow
},
mixins: [table],
created() {},
methods: {
handleCellClick(row, column, event, cell) {
if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = "评价绩效投诉核查信息导入";
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download(
"/check/complain/record/downloadTemplate",
{},
{ type: "excel" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
"/check/complain/record/exportExcel",
{
...this.query,
page: 1,
size: -1,
},
{ type: "excel", name: "评价绩效投诉核查信息" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = "核查";
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = "查看";
this.$refs.drawerform.view(row);
},
},
data() {
return {
// 用户导入参数
......@@ -158,13 +71,13 @@ export default {
// 是否显示弹出层(评价绩效投诉核查信息导入)
open: false,
// 弹出层标题(评价绩效投诉核查信息导入)
title: "导入评价绩效投诉核查信息数据",
title: '导入评价绩效投诉核查信息数据',
// 是否禁用上传
isUploading: false,
// 是否更新已经存在的数据
updateSupport: 0,
// 上传的地址
url: "/m/check/complain/record/importData",
url: '/m/check/complain/record/importData'
},
isExport: false,
......@@ -172,95 +85,95 @@ export default {
isshowTabPane: true,
search: [
{
name: "checkStatus",
type: "select",
label: "处理状态",
fuzzy: false,
name: 'checkStatus',
type: 'select',
label: '处理状态',
fuzzy: false
},
{
name: "salaId",
type: "selectSalaId",
label: "大厅",
fuzzy: false,
name: 'salaId',
type: 'selectSalaId',
label: '大厅',
fuzzy: false
},
{
name: "deptId",
type: "selectDeptId",
label: "部门",
fuzzy: false,
name: 'deptId',
type: 'selectDeptId',
label: '部门',
fuzzy: false
},
{
name: "complainSource",
type: "select",
label: "投诉来源",
fuzzy: false,
name: 'complainSource',
type: 'select',
label: '投诉来源',
fuzzy: false
},
{
name: "createTimeMonth",
type: "month",
label: "请选择投诉时间",
fuzzy: false,
name: 'createTimeMonth',
type: 'month',
label: '请选择投诉时间',
fuzzy: false
},
{
name: "staffName",
type: "text",
label: "员工姓名搜索",
fuzzy: true,
},
name: 'staffName',
type: 'text',
label: '员工姓名搜索',
fuzzy: true
}
],
columns: [
{ type: "selection", width: 50 },
{ type: "index", label: "序号", width: 50 },
{ type: 'selection', width: 50 },
{ type: 'index', label: '序号', width: 50 },
{ label: "姓名", prop: "staffName", formatter: this.formatter },
{ label: '姓名', prop: 'staffName', formatter: this.formatter },
{ label: "窗口编号", prop: "windowNum", formatter: this.formatter },
{ label: '窗口编号', prop: 'windowNum', formatter: this.formatter },
{ label: "所属大厅", prop: "salaName", formatter: this.formatter },
{ label: '所属大厅', prop: 'salaName', formatter: this.formatter },
{ label: "所属部门", prop: "deptName", formatter: this.formatter },
{ label: '所属部门', prop: 'deptName', formatter: this.formatter },
{
label: "投诉标题",
prop: "complainTitle",
formatter: this.formatter,
label: '投诉标题',
prop: 'complainTitle',
formatter: this.formatter
},
{
label: "投诉内容",
prop: "complainContent",
formatter: this.formatter,
label: '投诉内容',
prop: 'complainContent',
formatter: this.formatter
},
{
label: "投诉人真实姓名",
prop: "complainRealName",
formatter: this.formatter,
label: '投诉人真实姓名',
prop: 'complainRealName',
formatter: this.formatter
},
{ label: "联系电话", prop: "contact", formatter: this.formatter },
{ label: '联系电话', prop: 'contact', formatter: this.formatter },
{
label: "投诉时间",
prop: "complainTime",
label: '投诉时间',
prop: 'complainTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "投诉来源",
prop: "complainSource",
formatter: this.formatter,
label: '投诉来源',
prop: 'complainSource',
formatter: this.formatter
},
{
label: "图片凭证",
label: '图片凭证',
width: 150,
formatter: (row) => {
row.snapPath && row.snapPath !== ""
row.snapPath && row.snapPath !== ''
? (row.filePaths =
row.filePaths && row.filePaths !== ""
? row.filePaths + "," + row.snapPath
row.filePaths && row.filePaths !== ''
? row.filePaths + ',' + row.snapPath
: row.snapPath)
: (row.filePaths = row.filePaths);
return (
......@@ -273,60 +186,60 @@ export default {
// ></el-image>
<filepReview src={row.filePaths} />
);
},
}
},
{
label: "投诉设备",
prop: "complainDevice",
formatter: this.formatter,
label: '投诉设备',
prop: 'complainDevice',
formatter: this.formatter
},
{ label: "绩效规则", prop: "ruleName", formatter: this.formatter },
{ label: '绩效规则', prop: 'ruleName', formatter: this.formatter },
{
label: "加分/扣分方式",
prop: "subMethod",
formatter: this.formatter,
label: '加分/扣分方式',
prop: 'subMethod',
formatter: this.formatter
},
{
label: "加分/扣分时间",
prop: "deductTime",
label: '加分/扣分时间',
prop: 'deductTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "加分/扣分人员",
prop: "deductPerson",
formatter: this.formatter,
label: '加分/扣分人员',
prop: 'deductPerson',
formatter: this.formatter
},
{ label: "核查结果", prop: "checkResult", formatter: this.formatter },
{ label: '核查结果', prop: 'checkResult', formatter: this.formatter },
{ label: "说明", prop: "checkDesc", formatter: this.formatter },
{ label: '说明', prop: 'checkDesc', formatter: this.formatter },
{ label: "核查人员", prop: "checkPerson", formatter: this.formatter },
{ label: '核查人员', prop: 'checkPerson', formatter: this.formatter },
{
label: "核查时间",
prop: "checkTime",
label: '核查时间',
prop: 'checkTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{ label: "分值", prop: "score", formatter: this.formatter },
{ label: '分值', prop: 'score', formatter: this.formatter },
{
label: "处理状态",
prop: "checkStatus",
formatter: this.formatter,
label: '处理状态',
prop: 'checkStatus',
formatter: this.formatter
},
{
label: "操作",
fixed: "right",
label: '操作',
fixed: 'right',
formatter: (row) => {
return row.checkStatus == 1 ? (
<table-buttons
......@@ -335,7 +248,7 @@ export default {
noEdit
reCheck
noView
text={"投诉核查"}
text={'投诉核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
......@@ -352,11 +265,88 @@ export default {
onDel={this.toDel}
/>
);
},
},
],
},
}
}
]
}
};
},
created() {},
methods: {
// 图片凭证点击事件
handleCellClick(row, column, event, cell) {
if (column.label == '图片凭证') {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = '评价绩效投诉核查信息导入';
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download('/check/complain/record/downloadTemplate', {}, { type: 'excel' })
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, '导入结果', { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
'/check/complain/record/exportExcel',
{
...this.query,
page: 1,
size: -1
},
{ type: 'excel', name: '评价绩效投诉核查信息' }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = '核查';
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = '查看';
this.$refs.drawerform.view(row);
}
}
};
</script>
......@@ -13,12 +13,7 @@
</LayoutTable>
<!-- 效能绩效核查信息导入对话框 -->
<el-dialog
:title="upload.title"
:visible.sync="upload.open"
width="400px"
append-to-body
>
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
<el-upload
ref="upload"
:limit="1"
......@@ -38,10 +33,7 @@
</div>
<div class="el-upload__tip" slot="tip">
<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的数据
<el-link
type="primary"
style="font-size: 14px"
@click="downloadTemplate"
<el-link type="primary" style="font-size: 14px" @click="downloadTemplate"
>下载模板</el-link
>
</div>
......@@ -61,97 +53,17 @@
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
import { downloadFile } from "@/assets/utils/index";
const baseUrl = process.env.VUE_APP_API_BASE_URL + "/";
const zwfwUrl = process.env.VUE_APP_API_ZWFW_URL + "/";
import drawerShow from './drawershow';
import table from '@/assets/mixins/table';
import { downloadFile } from '@/assets/utils/index';
const baseUrl = process.env.VUE_APP_API_BASE_URL + '/';
const zwfwUrl = process.env.VUE_APP_API_ZWFW_URL + '/';
export default {
name: "CheckEffectRecordList",
name: 'CheckEffectRecordList',
components: {
drawerShow,
drawerShow
},
mixins: [table],
created() {},
methods: {
handleCellClick(row, column, event, cell) {
if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = "效能绩效核查信息导入";
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download(
"/check/effect/record/downloadTemplate",
{},
{ type: "excel" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
"/check/effect/record/exportExcel",
{
...this.query,
page: 1,
size: -1,
},
{ type: "excel", name: "效能绩效核查信息" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = "核查";
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = "查看";
this.$refs.drawerform.view(row);
},
},
data() {
return {
// 用户导入参数
......@@ -159,96 +71,94 @@ export default {
// 是否显示弹出层(效能绩效核查信息导入)
open: false,
// 弹出层标题(效能绩效核查信息导入)
title: "导入效能绩效核查信息数据",
title: '导入效能绩效核查信息数据',
// 是否禁用上传
isUploading: false,
// 是否更新已经存在的数据
updateSupport: 0,
// 上传的地址
url: "/m/check/effect/record/importData",
url: '/m/check/effect/record/importData'
},
isExport: false,
config: {
isshowTabPane: true,
search: [
{
name: "checkStatus",
type: "select",
label: "处理状态",
fuzzy: false,
name: 'checkStatus',
type: 'select',
label: '处理状态',
fuzzy: false
},
{
name: "salaId",
type: "selectSalaId",
label: "大厅",
fuzzy: false,
name: 'salaId',
type: 'selectSalaId',
label: '大厅',
fuzzy: false
},
{
name: "deptId",
type: "selectDeptId",
label: "部门",
fuzzy: false,
name: 'deptId',
type: 'selectDeptId',
label: '部门',
fuzzy: false
},
{
name: "createTimeMonth",
type: "month",
label: "请选择发生时间",
fuzzy: false,
name: 'createTimeMonth',
type: 'month',
label: '请选择发生时间',
fuzzy: false
},
{
name: "staffName",
type: "text",
label: "员工姓名搜索",
fuzzy: true,
},
name: 'staffName',
type: 'text',
label: '员工姓名搜索',
fuzzy: true
}
],
columns: [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ type: 'selection', width: 60 },
{ type: 'index', label: '序号', width: 50 },
{ label: "姓名", prop: "staffName", formatter: this.formatter },
{ label: '姓名', prop: 'staffName', formatter: this.formatter },
{ label: "窗口编号", prop: "windowNum", formatter: this.formatter },
{ label: '窗口编号', prop: 'windowNum', formatter: this.formatter },
{ label: "所属大厅", prop: "salaName", formatter: this.formatter },
{ label: '所属大厅', prop: 'salaName', formatter: this.formatter },
{ label: "所属部门", prop: "deptName", formatter: this.formatter },
{ label: '所属部门', prop: 'deptName', formatter: this.formatter },
{
label: "违规类型",
prop: "irregularType",
formatter: this.formatter,
label: '违规类型',
prop: 'irregularType',
formatter: this.formatter
},
{
label: "发生时间",
prop: "happenTime",
label: '发生时间',
prop: 'happenTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "时长",
prop: "duration",
label: '时长',
prop: 'duration',
formatter: (row) => {
return row.duration && row.duration !== ""
? row.duration + "s"
: "--";
},
return row.duration && row.duration !== '' ? row.duration + 's' : '--';
}
},
{
label: "报警时间",
prop: "alarmTime",
label: '报警时间',
prop: 'alarmTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "图片凭证",
label: '图片凭证',
formatter: (row) => {
let src = "";
let src = '';
if (row.snapPath && row.filePaths) {
src = row.snapPath + row.filePaths;
} else {
......@@ -258,11 +168,11 @@ export default {
src = row.filePaths;
}
}
row.fileList = src ? src.split(",") : [];
row.fileList = src ? src.split(',') : [];
row.fileList &&
row.fileList.forEach((val) => {
val.indexOf("zwfw_api_xnjc") == -1
? val.indexOf("http") == -1
val.indexOf('zwfw_api_xnjc') == -1
? val.indexOf('http') == -1
? (val = baseUrl + val)
: (val = val)
: (val = zwfwUrl + val);
......@@ -270,7 +180,7 @@ export default {
return row.snapPath || row.filePaths ? (
<buttonReview row={row} fileList={row.fileList} />
) : (
"--"
'--'
);
// row.snapPath && row.snapPath !== ""
// ? row.filePaths && row.filePaths !== ""
......@@ -287,54 +197,54 @@ export default {
// // ></el-image>
// <filepReview src={row.filePaths} />
// );
},
}
},
{ label: "绩效规则", prop: "ruleName", formatter: this.formatter },
{ label: '绩效规则', prop: 'ruleName', formatter: this.formatter },
{
label: "加分/扣分方式",
prop: "subMethod",
formatter: this.formatter,
label: '加分/扣分方式',
prop: 'subMethod',
formatter: this.formatter
},
{
label: "加分/扣分时间",
prop: "deductTime",
label: '加分/扣分时间',
prop: 'deductTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "加分/扣分人员",
prop: "deductPerson",
formatter: this.formatter,
label: '加分/扣分人员',
prop: 'deductPerson',
formatter: this.formatter
},
{ label: "核查结果", prop: "checkResult", formatter: this.formatter },
{ label: '核查结果', prop: 'checkResult', formatter: this.formatter },
{ label: "说明", prop: "checkDesc", formatter: this.formatter },
{ label: '说明', prop: 'checkDesc', formatter: this.formatter },
{ label: "核查人员", prop: "checkPerson", formatter: this.formatter },
{ label: '核查人员', prop: 'checkPerson', formatter: this.formatter },
{
label: "核查时间",
prop: "checkTime",
label: '核查时间',
prop: 'checkTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{ label: "分值", prop: "score", formatter: this.formatter },
{ label: '分值', prop: 'score', formatter: this.formatter },
{
label: "处理状态",
prop: "checkStatus",
formatter: this.formatter,
label: '处理状态',
prop: 'checkStatus',
formatter: this.formatter
},
{
label: "操作",
fixed: "right",
label: '操作',
fixed: 'right',
formatter: (row) => {
return row.checkStatus == 1 ? (
<table-buttons
......@@ -343,7 +253,7 @@ export default {
noEdit
reCheck
noView
text={"监察绩效核查"}
text={'监察绩效核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
......@@ -360,11 +270,88 @@ export default {
onDel={this.toDel}
/>
);
},
},
],
},
}
}
]
}
};
},
created() {},
methods: {
// 图片凭证点击事件
handleCellClick(row, column, event, cell) {
if (column.label == '图片凭证') {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = '效能绩效核查信息导入';
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download('/check/effect/record/downloadTemplate', {}, { type: 'excel' })
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, '导入结果', { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
'/check/effect/record/exportExcel',
{
...this.query,
page: 1,
size: -1
},
{ type: 'excel', name: '效能绩效核查信息' }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = '核查';
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = '查看';
this.$refs.drawerform.view(row);
}
}
};
</script>
......@@ -13,12 +13,7 @@
</LayoutTable>
<!-- 办件绩效核查信息导入对话框 -->
<el-dialog
:title="upload.title"
:visible.sync="upload.open"
width="400px"
append-to-body
>
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
<el-upload
ref="upload"
:limit="1"
......@@ -38,10 +33,7 @@
</div>
<div class="el-upload__tip" slot="tip">
<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的数据
<el-link
type="primary"
style="font-size: 14px"
@click="downloadTemplate"
<el-link type="primary" style="font-size: 14px" @click="downloadTemplate"
>下载模板</el-link
>
</div>
......@@ -61,96 +53,16 @@
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
import { downloadFile } from "@/assets/utils/index";
import drawerShow from './drawershow';
import table from '@/assets/mixins/table';
import { downloadFile } from '@/assets/utils/index';
export default {
name: "CheckGoworkRecordList",
name: 'CheckGoworkRecordList',
components: {
drawerShow,
drawerShow
},
mixins: [table],
created() {},
methods: {
handleCellClick(row, column, event, cell) {
if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = "办件绩效核查信息导入";
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download(
"/check/gowork/record/downloadTemplate",
{},
{ type: "excel" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
"/check/gowork/record/exportExcel",
{
...this.query,
page: 1,
size: -1,
},
{ type: "excel", name: "办件绩效核查信息" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = "核查";
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = "查看";
this.$refs.drawerform.view(row);
},
},
data() {
return {
// 用户导入参数
......@@ -158,13 +70,13 @@ export default {
// 是否显示弹出层(办件绩效核查信息导入)
open: false,
// 弹出层标题(办件绩效核查信息导入)
title: "导入办件绩效核查信息数据",
title: '导入办件绩效核查信息数据',
// 是否禁用上传
isUploading: false,
// 是否更新已经存在的数据
updateSupport: 0,
// 上传的地址
url: "/m/check/gowork/record/importData",
url: '/m/check/gowork/record/importData'
},
isExport: false,
......@@ -172,73 +84,73 @@ export default {
isshowTabPane: true,
search: [
{
name: "checkStatus",
type: "select",
label: "处理状态",
fuzzy: false,
name: 'checkStatus',
type: 'select',
label: '处理状态',
fuzzy: false
},
{
name: "salaId",
type: "selectSalaId",
label: "大厅",
fuzzy: false,
name: 'salaId',
type: 'selectSalaId',
label: '大厅',
fuzzy: false
},
{
name: "deptId",
type: "selectDeptId",
label: "部门",
fuzzy: false,
name: 'deptId',
type: 'selectDeptId',
label: '部门',
fuzzy: false
},
{
name: "createTimeMonth",
type: "month",
label: "请选择办理时间",
fuzzy: false,
name: 'createTimeMonth',
type: 'month',
label: '请选择办理时间',
fuzzy: false
},
{
name: "staffName",
type: "text",
label: "员工姓名搜索",
fuzzy: true,
},
name: 'staffName',
type: 'text',
label: '员工姓名搜索',
fuzzy: true
}
],
columns: [
{ type: "selection", width: 50 },
{ type: "index", label: "序号", width: 50 },
{ type: 'selection', width: 50 },
{ type: 'index', label: '序号', width: 50 },
{ label: "姓名", prop: "staffName", formatter: this.formatter },
{ label: '姓名', prop: 'staffName', formatter: this.formatter },
{ label: "窗口编号", prop: "windowNum", formatter: this.formatter },
{ label: '窗口编号', prop: 'windowNum', formatter: this.formatter },
{ label: "所属大厅", prop: "salaName", formatter: this.formatter },
{ label: '所属大厅', prop: 'salaName', formatter: this.formatter },
{ label: "所属部门", prop: "deptName", formatter: this.formatter },
{ label: '所属部门', prop: 'deptName', formatter: this.formatter },
{ label: "办件编码", prop: "goworkCode", formatter: this.formatter },
{ label: '办件编码', prop: 'goworkCode', formatter: this.formatter },
{
label: "办件所属部门",
prop: "goworkDepts",
formatter: this.formatter,
label: '办件所属部门',
prop: 'goworkDepts',
formatter: this.formatter
},
{ label: "事项名称", prop: "matterlName", formatter: this.formatter },
{ label: '事项名称', prop: 'matterlName', formatter: this.formatter },
{
label: "办理时间",
prop: "goworkTime",
label: '办理时间',
prop: 'goworkTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "图片凭证",
label: '图片凭证',
width: 150,
formatter: (row) => {
row.snapPath && row.snapPath !== ""
row.snapPath && row.snapPath !== ''
? (row.filePaths =
row.filePaths && row.filePaths !== ""
? row.filePaths + "," + row.snapPath
row.filePaths && row.filePaths !== ''
? row.filePaths + ',' + row.snapPath
: row.snapPath)
: (row.filePaths = row.filePaths);
return (
......@@ -251,54 +163,54 @@ export default {
// ></el-image>
<filepReview src={row.filePaths} />
);
},
}
},
{ label: "绩效规则", prop: "ruleName", formatter: this.formatter },
{ label: '绩效规则', prop: 'ruleName', formatter: this.formatter },
{
label: "加分/扣分方式",
prop: "subMethod",
formatter: this.formatter,
label: '加分/扣分方式',
prop: 'subMethod',
formatter: this.formatter
},
{
label: "加分/扣分时间",
prop: "deductTime",
label: '加分/扣分时间',
prop: 'deductTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "加分/扣分人员",
prop: "deductPerson",
formatter: this.formatter,
label: '加分/扣分人员',
prop: 'deductPerson',
formatter: this.formatter
},
{ label: "核查结果", prop: "checkResult", formatter: this.formatter },
{ label: '核查结果', prop: 'checkResult', formatter: this.formatter },
{ label: "说明", prop: "checkDesc", formatter: this.formatter },
{ label: '说明', prop: 'checkDesc', formatter: this.formatter },
{ label: "核查人员", prop: "checkPerson", formatter: this.formatter },
{ label: '核查人员', prop: 'checkPerson', formatter: this.formatter },
{
label: "核查时间",
prop: "checkTime",
label: '核查时间',
prop: 'checkTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{ label: "分值", prop: "score", formatter: this.formatter },
{ label: '分值', prop: 'score', formatter: this.formatter },
{
label: "处理状态",
prop: "checkStatus",
formatter: this.formatter,
label: '处理状态',
prop: 'checkStatus',
formatter: this.formatter
},
{
label: "操作",
fixed: "right",
label: '操作',
fixed: 'right',
formatter: (row) => {
return row.checkStatus == 1 ? (
<table-buttons
......@@ -307,7 +219,7 @@ export default {
noEdit
reCheck
noView
text={"办件核查"}
text={'办件核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
......@@ -324,11 +236,88 @@ export default {
onDel={this.toDel}
/>
);
},
},
],
},
}
}
]
}
};
},
created() {},
methods: {
// 图片凭证点击事件
handleCellClick(row, column, event, cell) {
if (column.label == '图片凭证') {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = '办件绩效核查信息导入';
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download('/check/gowork/record/downloadTemplate', {}, { type: 'excel' })
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, '导入结果', { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
'/check/gowork/record/exportExcel',
{
...this.query,
page: 1,
size: -1
},
{ type: 'excel', name: '办件绩效核查信息' }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = '核查';
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = '查看';
this.$refs.drawerform.view(row);
}
}
};
</script>
......@@ -13,12 +13,7 @@
</LayoutTable>
<!-- 其它绩效核查信息导入对话框 -->
<el-dialog
:title="upload.title"
:visible.sync="upload.open"
width="400px"
append-to-body
>
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
<el-upload
ref="upload"
:limit="1"
......@@ -38,10 +33,7 @@
</div>
<div class="el-upload__tip" slot="tip">
<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的数据
<el-link
type="primary"
style="font-size: 14px"
@click="downloadTemplate"
<el-link type="primary" style="font-size: 14px" @click="downloadTemplate"
>下载模板</el-link
>
</div>
......@@ -61,96 +53,17 @@
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
import { downloadFile } from "@/assets/utils/index";
import drawerShow from './drawershow';
import table from '@/assets/mixins/table';
import { downloadFile } from '@/assets/utils/index';
export default {
name: "CheckOtherRecordList",
name: 'CheckOtherRecordList',
components: {
drawerShow,
drawerShow
},
mixins: [table],
created() {},
methods: {
handleCellClick(row, column, event, cell) {
if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = "其它绩效核查信息导入";
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download(
"/check/other/record/downloadTemplate",
{},
{ type: "excel" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
"/check/other/record/exportExcel",
{
...this.query,
page: 1,
size: -1,
},
{ type: "excel", name: "其他绩效核查信息" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = "核查";
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = "查看";
this.$refs.drawerform.view(row);
},
},
data() {
return {
// 用户导入参数
......@@ -158,79 +71,79 @@ export default {
// 是否显示弹出层(其它绩效核查信息导入)
open: false,
// 弹出层标题(其它绩效核查信息导入)
title: "导入其它绩效核查信息数据",
title: '导入其它绩效核查信息数据',
// 是否禁用上传
isUploading: false,
// 是否更新已经存在的数据
updateSupport: 0,
// 上传的地址
url: "/m/check/other/record/importData",
url: '/m/check/other/record/importData'
},
isExport: false,
config: {
isshowTabPane: true,
search: [
{
name: "checkStatus",
type: "select",
label: "处理状态",
fuzzy: false,
name: 'checkStatus',
type: 'select',
label: '处理状态',
fuzzy: false
},
{
name: "salaId",
type: "selectSalaId",
label: "大厅",
fuzzy: false,
name: 'salaId',
type: 'selectSalaId',
label: '大厅',
fuzzy: false
},
{
name: "deptId",
type: "selectDeptId",
label: "部门",
fuzzy: false,
name: 'deptId',
type: 'selectDeptId',
label: '部门',
fuzzy: false
},
{
name: "createTimeMonth",
type: "month",
label: "请选择发生时间",
fuzzy: false,
name: 'createTimeMonth',
type: 'month',
label: '请选择发生时间',
fuzzy: false
},
{
name: "staffName",
type: "text",
label: "员工姓名搜索",
fuzzy: true,
},
name: 'staffName',
type: 'text',
label: '员工姓名搜索',
fuzzy: true
}
],
columns: [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ type: 'selection', width: 60 },
{ type: 'index', label: '序号', width: 50 },
{ label: "姓名", prop: "staffName", formatter: this.formatter },
{ label: '姓名', prop: 'staffName', formatter: this.formatter },
{ label: "窗口编号", prop: "windowNum", formatter: this.formatter },
{ label: '窗口编号', prop: 'windowNum', formatter: this.formatter },
{ label: "所属大厅", prop: "salaName", formatter: this.formatter },
{ label: '所属大厅', prop: 'salaName', formatter: this.formatter },
{ label: "所属部门", prop: "deptName", formatter: this.formatter },
{ label: '所属部门', prop: 'deptName', formatter: this.formatter },
{
label: "违规类型",
prop: "irregularOtherType",
formatter: this.formatter,
label: '违规类型',
prop: 'irregularOtherType',
formatter: this.formatter
},
{
label: "发生时间",
prop: "happenTime",
label: '发生时间',
prop: 'happenTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "评分标准",
label: '评分标准',
width: 200,
prop: "ruleDesc",
formatter: this.formatter,
prop: 'ruleDesc',
formatter: this.formatter
},
// {
......@@ -241,13 +154,13 @@ export default {
// { label: "绩效规则id", prop: "ruleId", formatter: this.formatter },
{
label: "图片凭证",
label: '图片凭证',
width: 150,
formatter: (row) => {
row.snapPath && row.snapPath !== ""
row.snapPath && row.snapPath !== ''
? (row.filePaths =
row.filePaths && row.filePaths !== ""
? row.filePaths + "," + row.snapPath
row.filePaths && row.filePaths !== ''
? row.filePaths + ',' + row.snapPath
: row.snapPath)
: (row.filePaths = row.filePaths);
return (
......@@ -260,54 +173,54 @@ export default {
// ></el-image>
<filepReview src={row.filePaths} />
);
},
}
},
{ label: "绩效规则", prop: "ruleName", formatter: this.formatter },
{ label: '绩效规则', prop: 'ruleName', formatter: this.formatter },
{
label: "加分/扣分方式",
prop: "subMethod",
formatter: this.formatter,
label: '加分/扣分方式',
prop: 'subMethod',
formatter: this.formatter
},
{
label: "加分/扣分时间",
prop: "deductTime",
label: '加分/扣分时间',
prop: 'deductTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "加分/扣分人员",
prop: "deductPerson",
formatter: this.formatter,
label: '加分/扣分人员',
prop: 'deductPerson',
formatter: this.formatter
},
{ label: "核查结果", prop: "checkResult", formatter: this.formatter },
{ label: '核查结果', prop: 'checkResult', formatter: this.formatter },
{ label: "说明", prop: "checkDesc", formatter: this.formatter },
{ label: '说明', prop: 'checkDesc', formatter: this.formatter },
{ label: "核查人员", prop: "checkPerson", formatter: this.formatter },
{ label: '核查人员', prop: 'checkPerson', formatter: this.formatter },
{
label: "核查时间",
prop: "checkTime",
label: '核查时间',
prop: 'checkTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{ label: "分值", prop: "score", formatter: this.formatter },
{ label: '分值', prop: 'score', formatter: this.formatter },
{
label: "处理状态",
prop: "checkStatus",
formatter: this.formatter,
label: '处理状态',
prop: 'checkStatus',
formatter: this.formatter
},
{
label: "操作",
fixed: "right",
label: '操作',
fixed: 'right',
formatter: (row) => {
return row.checkStatus == 1 ? (
<table-buttons
......@@ -316,7 +229,7 @@ export default {
noEdit
reCheck
noView
text={"绩效核查"}
text={'绩效核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
......@@ -333,11 +246,88 @@ export default {
onDel={this.toDel}
/>
);
},
},
],
},
}
}
]
}
};
},
created() {},
methods: {
// 图片凭证点击事件
handleCellClick(row, column, event, cell) {
if (column.label == '图片凭证') {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = '其它绩效核查信息导入';
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download('/check/other/record/downloadTemplate', {}, { type: 'excel' })
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, '导入结果', { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
'/check/other/record/exportExcel',
{
...this.query,
page: 1,
size: -1
},
{ type: 'excel', name: '其他绩效核查信息' }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = '核查';
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = '查看';
this.$refs.drawerform.view(row);
}
}
};
</script>
......@@ -13,12 +13,7 @@
</LayoutTable>
<!-- 评价差评绩效核查信息导入对话框 -->
<el-dialog
:title="upload.title"
:visible.sync="upload.open"
width="400px"
append-to-body
>
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
<el-upload
ref="upload"
:limit="1"
......@@ -38,10 +33,7 @@
</div>
<div class="el-upload__tip" slot="tip">
<el-checkbox v-model="upload.updateSupport" />是否更新已经存在的数据
<el-link
type="primary"
style="font-size: 14px"
@click="downloadTemplate"
<el-link type="primary" style="font-size: 14px" @click="downloadTemplate"
>下载模板</el-link
>
</div>
......@@ -61,96 +53,16 @@
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
import { downloadFile } from "@/assets/utils/index";
import drawerShow from './drawershow';
import table from '@/assets/mixins/table';
import { downloadFile } from '@/assets/utils/index';
export default {
name: "CheckReviewRecordList",
name: 'CheckReviewRecordList',
components: {
drawerShow,
drawerShow
},
mixins: [table],
created() {},
methods: {
handleCellClick(row, column, event, cell) {
if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = "评价差评绩效核查信息导入";
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download(
"/check/review/record/downloadTemplate",
{},
{ type: "excel" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
"/check/review/record/exportExcel",
{
...this.query,
page: 1,
size: -1,
},
{ type: "excel", name: "评价差评绩效核查信息" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = "核查";
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = "查看";
this.$refs.drawerform.view(row);
},
},
data() {
return {
// 用户导入参数
......@@ -158,100 +70,100 @@ export default {
// 是否显示弹出层(评价差评绩效核查信息导入)
open: false,
// 弹出层标题(评价差评绩效核查信息导入)
title: "导入评价差评绩效核查信息数据",
title: '导入评价差评绩效核查信息数据',
// 是否禁用上传
isUploading: false,
// 是否更新已经存在的数据
updateSupport: 0,
// 上传的地址
url: "/m/check/review/record/importData",
url: '/m/check/review/record/importData'
},
isExport: false,
config: {
isshowTabPane: true,
search: [
{
name: "checkStatus",
type: "select",
label: "处理状态",
fuzzy: false,
name: 'checkStatus',
type: 'select',
label: '处理状态',
fuzzy: false
},
{
name: "salaId",
type: "selectSalaId",
label: "大厅",
fuzzy: false,
name: 'salaId',
type: 'selectSalaId',
label: '大厅',
fuzzy: false
},
{
name: "deptId",
type: "selectDeptId",
label: "部门",
fuzzy: false,
name: 'deptId',
type: 'selectDeptId',
label: '部门',
fuzzy: false
},
{
name: "reviewSource",
type: "select",
label: "差评来源",
fuzzy: false,
name: 'reviewSource',
type: 'select',
label: '差评来源',
fuzzy: false
},
{
name: "createTimeMonth",
type: "month",
label: "请选择评价时间",
fuzzy: false,
name: 'createTimeMonth',
type: 'month',
label: '请选择评价时间',
fuzzy: false
},
{
name: "staffName",
type: "text",
label: "员工姓名搜索",
fuzzy: true,
},
name: 'staffName',
type: 'text',
label: '员工姓名搜索',
fuzzy: true
}
],
columns: [
{ type: "selection", width: 50 },
{ type: "index", label: "序号", width: 50 },
{ type: 'selection', width: 50 },
{ type: 'index', label: '序号', width: 50 },
{ label: "姓名", prop: "staffName", formatter: this.formatter },
{ label: '姓名', prop: 'staffName', formatter: this.formatter },
{ label: "窗口编号", prop: "windowNum", formatter: this.formatter },
{ label: '窗口编号', prop: 'windowNum', formatter: this.formatter },
{ label: "所属大厅", prop: "salaName", formatter: this.formatter },
{ label: '所属大厅', prop: 'salaName', formatter: this.formatter },
{ label: "所属部门", prop: "deptName", formatter: this.formatter },
{ label: '所属部门', prop: 'deptName', formatter: this.formatter },
{
label: "评价结果",
prop: "reviewResult",
formatter: this.formatter,
label: '评价结果',
prop: 'reviewResult',
formatter: this.formatter
},
{
label: "评价来源",
prop: "reviewSource",
formatter: this.formatter,
label: '评价来源',
prop: 'reviewSource',
formatter: this.formatter
},
{
label: "评价设备",
prop: "reviewDevice",
formatter: this.formatter,
label: '评价设备',
prop: 'reviewDevice',
formatter: this.formatter
},
{
label: "评价时间",
prop: "reviewTime",
label: '评价时间',
prop: 'reviewTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "图片凭证",
label: '图片凭证',
width: 150,
formatter: (row) => {
row.snapPath && row.snapPath !== ""
row.snapPath && row.snapPath !== ''
? (row.filePaths =
row.filePaths && row.filePaths !== ""
? row.filePaths + "," + row.snapPath
row.filePaths && row.filePaths !== ''
? row.filePaths + ',' + row.snapPath
: row.snapPath)
: (row.filePaths = row.filePaths);
return (
......@@ -264,54 +176,54 @@ export default {
// ></el-image>
<filepReview src={row.filePaths} />
);
},
}
},
{ label: "绩效规则", prop: "ruleName", formatter: this.formatter },
{ label: '绩效规则', prop: 'ruleName', formatter: this.formatter },
{
label: "加分/扣分方式",
prop: "subMethod",
formatter: this.formatter,
label: '加分/扣分方式',
prop: 'subMethod',
formatter: this.formatter
},
{
label: "加分/扣分时间",
prop: "deductTime",
label: '加分/扣分时间',
prop: 'deductTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "加分/扣分人员",
prop: "deductPerson",
formatter: this.formatter,
label: '加分/扣分人员',
prop: 'deductPerson',
formatter: this.formatter
},
{ label: "核查结果", prop: "checkResult", formatter: this.formatter },
{ label: '核查结果', prop: 'checkResult', formatter: this.formatter },
{ label: "说明", prop: "checkDesc", formatter: this.formatter },
{ label: '说明', prop: 'checkDesc', formatter: this.formatter },
{ label: "核查人员", prop: "checkPerson", formatter: this.formatter },
{ label: '核查人员', prop: 'checkPerson', formatter: this.formatter },
{
label: "核查时间",
prop: "checkTime",
label: '核查时间',
prop: 'checkTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{ label: "分值", prop: "score", formatter: this.formatter },
{ label: '分值', prop: 'score', formatter: this.formatter },
{
label: "处理状态",
prop: "checkStatus",
formatter: this.formatter,
label: '处理状态',
prop: 'checkStatus',
formatter: this.formatter
},
{
label: "操作",
fixed: "right",
label: '操作',
fixed: 'right',
formatter: (row) => {
return row.checkStatus == 1 ? (
<table-buttons
......@@ -320,7 +232,7 @@ export default {
noEdit
reCheck
noView
text={"差评核查"}
text={'差评核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
......@@ -337,11 +249,88 @@ export default {
onDel={this.toDel}
/>
);
},
},
],
},
}
}
]
}
};
},
created() {},
methods: {
// 图片凭证点击事件
handleCellClick(row, column, event, cell) {
if (column.label == '图片凭证') {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
if (!regular.test(row.filePaths)) {
downloadFile(row.filePaths, row.fileName);
}
}
},
/** 导入 */
handleImport() {
this.upload.title = '评价差评绩效核查信息导入';
this.upload.open = true;
},
/** 下载模板操作 */
downloadTemplate() {
this.isExport = true;
this.$download('/check/review/record/downloadTemplate', {}, { type: 'excel' })
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 文件上传中处理 */
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.$alert(response.msg, '导入结果', { dangerouslyUseHTMLString: true });
this.getData();
},
/** 提交上传文件 */
submitFileForm() {
this.$refs.upload.submit();
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
'/check/review/record/exportExcel',
{
...this.query,
page: 1,
size: -1
},
{ type: 'excel', name: '评价差评绩效核查信息' }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
row.view = '核查';
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
row.view = '查看';
this.$refs.drawerform.view(row);
}
}
};
</script>
<template>
<div class="page">
<div class="btn_box" style="position: absolute;top: 54px;left: 10px;">
<div class="btn_box" style="position: absolute; top: 54px; left: 10px">
<el-radio-group v-model="radio1" @input="changeRadio">
<el-radio-button label="1">窗口考核</el-radio-button>
<el-radio-button label="2">工作人员考核</el-radio-button>
......@@ -17,8 +17,7 @@
>
</div>
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig">
</LayoutTable>
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig"> </LayoutTable>
<drawer-show ref="drawerform" @ok="getData" />
</div>
......@@ -26,164 +25,121 @@
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
import drawerShow from './drawershow';
import table from '@/assets/mixins/table';
export default {
name: "CheckWindowPerformList",
name: 'CheckWindowPerformList',
components: {
drawerShow,
drawerShow
},
mixins: [table],
created() {},
methods: {
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.drawerform.view(row);
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
"/check/window/perform/exportExcel",
{
...this.query,
page: 1,
size: -1,
},
{ type: "excel", name: "窗口考核" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
// 切换表格
changeRadio() {
this.radio1 == 1
? this.$router.push("/check/window/perform/list?page=1")
: this.radio1 == 2
? this.$router.push("/check/window/workman/perform/list?page=1")
: this.radio1 == 3
? this.$router.push("/check/window/workman/perform/detail/list?page=1")
: "";
},
},
data() {
return {
radio1: "1",
radio1: '1',
isExport: false,
config: {
isshowTabPane: true,
search: [
{
name: "salaId",
type: "selectSalaId",
label: "大厅",
fuzzy: false,
name: 'salaId',
type: 'selectSalaId',
label: '大厅',
fuzzy: false
},
{
name: "deptId",
type: "selectDeptId",
label: "部门",
fuzzy: false,
name: 'deptId',
type: 'selectDeptId',
label: '部门',
fuzzy: false
},
{
name: "checkStatus",
type: "select",
label: "核查状态",
fuzzy: false,
name: 'checkStatus',
type: 'select',
label: '核查状态',
fuzzy: false
},
{
name: "yearmonth",
type: "month",
label: "请选择登记年月",
fuzzy: false,
name: 'yearmonth',
type: 'month',
label: '请选择登记年月',
fuzzy: false
},
{
name: "ownerName",
type: "text",
name: 'ownerName',
type: 'text',
width: 200,
label: "窗口负责人姓名搜索",
fuzzy: true,
},
label: '窗口负责人姓名搜索',
fuzzy: true
}
],
columns:
JSON.parse(sessionStorage.getItem("userData")).id == 1
JSON.parse(sessionStorage.getItem('userData')).id == 1
? [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ label: "窗口首席代表", prop: "ownerName" },
{ type: 'selection', width: 60 },
{ type: 'index', label: '序号', width: 50 },
{ label: '窗口首席代表', prop: 'ownerName' },
{
label: "登记年月",
label: '登记年月',
formatter: (row) => {
return `${row.year ? row.year : "--"}-${
return `${row.year ? row.year : '--'}-${
row.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month)
? "0" + row.month
? '0' + row.month
: row.month
: "--"
: '--'
}`;
},
}
},
{
label: "所属大厅",
prop: "salaName",
formatter: this.formatter,
label: '所属大厅',
prop: 'salaName',
formatter: this.formatter
},
{
label: "所属部门",
prop: "deptName",
label: '所属部门',
prop: 'deptName'
},
{
label: "考核窗口",
label: '考核窗口',
formatter: (row) => {
return `${row.windowName ? row.windowName : "--"}`;
},
return `${row.windowName ? row.windowName : '--'}`;
}
},
{ label: "表单名称", prop: "fromName" },
{ label: '表单名称', prop: 'fromName' },
{
label: "总分分值",
prop: "sumScore",
formatter: this.formatter,
label: '总分分值',
prop: 'sumScore',
formatter: this.formatter
},
{
label: "提交时间",
prop: "submitDate",
formatter: this.formatterDate,
label: '提交时间',
prop: 'submitDate',
formatter: this.formatterDate
},
{
label: "核查人",
prop: "leaderCheckPerson",
formatter: this.formatter,
label: '核查人',
prop: 'leaderCheckPerson',
formatter: this.formatter
},
{
label: "最新核查时间",
prop: "leaderCheckTime",
formatter: this.formatterDate,
label: '最新核查时间',
prop: 'leaderCheckTime',
formatter: this.formatterDate
},
{
label: "处理状态",
prop: "checkStatus",
formatter: this.formatter,
label: '处理状态',
prop: 'checkStatus',
formatter: this.formatter
},
{
label: "操作",
label: '操作',
width: 240,
formatter: (row) => {
return row.checkStatus == 1 ? (
......@@ -192,7 +148,7 @@ export default {
noEdit
noView
reCheck
text={"自评核查"}
text={'自评核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
......@@ -202,72 +158,72 @@ export default {
<table-buttons
noAdd
noEdit
text={"自评核查"}
text={'自评核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
);
},
},
}
}
]
: [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ label: "窗口负责人", prop: "ownerName" },
{ type: 'selection', width: 60 },
{ type: 'index', label: '序号', width: 50 },
{ label: '窗口负责人', prop: 'ownerName' },
{
label: "登记年月",
label: '登记年月',
formatter: (row) => {
return `${row.year ? row.year : "--"}-${
return `${row.year ? row.year : '--'}-${
row.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month)
? "0" + row.month
? '0' + row.month
: row.month
: "--"
: '--'
}`;
},
}
},
{
label: "所属大厅",
prop: "salaName",
formatter: this.formatter,
label: '所属大厅',
prop: 'salaName',
formatter: this.formatter
},
{
label: "所属部门",
prop: "deptName",
label: '所属部门',
prop: 'deptName'
},
{
label: "考核窗口",
label: '考核窗口',
formatter: (row) => {
return `${row.windowName ? row.windowName : "--"}`;
},
return `${row.windowName ? row.windowName : '--'}`;
}
},
{ label: "表单名称", prop: "fromName" },
{ label: '表单名称', prop: 'fromName' },
{
label: "总分分值",
prop: "sumScore",
formatter: this.formatter,
label: '总分分值',
prop: 'sumScore',
formatter: this.formatter
},
{
label: "提交时间",
prop: "submitDate",
formatter: this.formatterDate,
label: '提交时间',
prop: 'submitDate',
formatter: this.formatterDate
},
{
label: "处理状态",
prop: "checkStatus",
formatter: this.formatter,
label: '处理状态',
prop: 'checkStatus',
formatter: this.formatter
},
{
label: "操作",
label: '操作',
width: 240,
formatter: (row) => {
return row.checkStatus == 1 ? (
......@@ -277,7 +233,7 @@ export default {
noEdit
noView
reCheck
text={"自评核查"}
text={'自评核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
......@@ -288,19 +244,62 @@ export default {
noAdd
noDel
noEdit
text={"自评核查"}
text={'自评核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
);
},
},
],
},
}
}
]
}
};
},
created() {},
methods: {
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.drawerform.view(row);
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
'/check/window/perform/exportExcel',
{
...this.query,
page: 1,
size: -1
},
{ type: 'excel', name: '窗口考核' }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
// 切换表格
changeRadio() {
this.radio1 == 1
? this.$router.push('/check/window/perform/list?page=1')
: this.radio1 == 2
? this.$router.push('/check/window/workman/perform/list?page=1')
: this.radio1 == 3
? this.$router.push('/check/window/workman/perform/detail/list?page=1')
: '';
}
}
};
</script>
<style lang="less" scoped>
......
<template>
<div class="page">
<div class="btn_box" style="position: absolute;top: 54px;left: 10px;">
<div class="btn_box" style="position: absolute; top: 54px; left: 10px">
<el-radio-group v-model="radio1" @input="changeRadio">
<el-radio-button label="1">窗口考核</el-radio-button>
<el-radio-button label="2">工作人员考核</el-radio-button>
......@@ -16,8 +16,7 @@
>导出</el-button
>
</div>
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig">
</LayoutTable>
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig"> </LayoutTable>
<drawer-show ref="drawerform" @ok="getData" />
</div>
......@@ -25,171 +24,128 @@
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
import drawerShow from './drawershow';
import table from '@/assets/mixins/table';
export default {
name: "CheckWindowWorkmanPerformList",
name: 'CheckWindowWorkmanPerformList',
components: {
drawerShow,
drawerShow
},
mixins: [table],
created() {
// this.getData();
},
methods: {
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.drawerform.view(row);
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
"/check/window/workman/perform/exportExcel",
{
...this.query,
page: 1,
size: -1,
},
{ type: "excel", name: "工作人员考核" }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
// 切换表格
changeRadio() {
this.radio1 == 1
? this.$router.push("/check/window/perform/list?page=1")
: this.radio1 == 2
? this.$router.push("/check/window/workman/perform/list?page=1")
: this.radio1 == 3
? this.$router.push("/check/window/workman/perform/detail/list?page=1")
: "";
},
},
data() {
return {
// 切换标签展示页
radio1: 2,
// 导出按钮加载状态
isExport: false,
config: {
isshowTabPane: true,
search: [
{
name: "salaId",
type: "selectSalaId",
label: "大厅",
fuzzy: false,
name: 'salaId',
type: 'selectSalaId',
label: '大厅',
fuzzy: false
},
{
name: "deptId",
type: "selectDeptId",
label: "部门",
fuzzy: false,
name: 'deptId',
type: 'selectDeptId',
label: '部门',
fuzzy: false
},
{
name: "checkStatus",
type: "select",
label: "核查状态",
fuzzy: false,
name: 'checkStatus',
type: 'select',
label: '核查状态',
fuzzy: false
},
{
name: "yearmonth",
type: "month",
label: "请选择登记年月",
fuzzy: false,
name: 'yearmonth',
type: 'month',
label: '请选择登记年月',
fuzzy: false
},
{
name: "ownerName",
type: "text",
name: 'ownerName',
type: 'text',
width: 200,
label: "窗口负责人姓名搜索",
fuzzy: true,
},
label: '窗口负责人姓名搜索',
fuzzy: true
}
],
columns:
JSON.parse(sessionStorage.getItem("userData")).id == 1
JSON.parse(sessionStorage.getItem('userData')).id == 1
? [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ label: "窗口首席代表", prop: "ownerName" },
{ type: 'selection', width: 60 },
{ type: 'index', label: '序号', width: 50 },
{ label: '窗口首席代表', prop: 'ownerName' },
{
label: "登记年月",
label: '登记年月',
formatter: (row) => {
return `${row.year ? row.year : "--"}-${
return `${row.year ? row.year : '--'}-${
row.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month)
? "0" + row.month
? '0' + row.month
: row.month
: "--"
: '--'
}`;
},
}
},
{
label: "所属大厅",
prop: "salaName",
formatter: this.formatter,
label: '所属大厅',
prop: 'salaName',
formatter: this.formatter
},
{
label: "所属部门",
prop: "deptName",
label: '所属部门',
prop: 'deptName'
},
{
label: "窗口(单位)名称",
label: '窗口(单位)名称',
formatter: (row) => {
return `${row.windowName ? row.windowName : "--"}`;
},
return `${row.windowName ? row.windowName : '--'}`;
}
},
{ label: "表单名称", prop: "fromName" },
{ label: '表单名称', prop: 'fromName' },
// { label: "总分分值", prop: "sumScore", formatter: this.formatter },
{
label: "提交时间",
prop: "submitDate",
label: '提交时间',
prop: 'submitDate',
width: 110,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "核查人",
label: '核查人',
formatter: (row) => {
return `${
row.leaderCheckPerson
? row.leaderCheckPerson
: row.manageCheckPerson
? row.manageCheckPerson
: "--"
: '--'
}`;
},
}
},
{
label: "最新核查时间",
prop: "manageCheckTime",
label: '最新核查时间',
prop: 'manageCheckTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "处理状态",
prop: "checkStatus",
formatter: this.formatter,
label: '处理状态',
prop: 'checkStatus',
formatter: this.formatter
},
{
label: "操作",
label: '操作',
width: 240,
formatter: (row) => {
return row.checkStatus == 1 ? (
......@@ -198,7 +154,7 @@ export default {
noEdit
reCheck
noView
text={"自评核查"}
text={'自评核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
......@@ -208,75 +164,75 @@ export default {
<table-buttons
noAdd
noEdit
text={"自评核查"}
text={'自评核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
);
},
},
}
}
]
: [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ label: "窗口负责人", prop: "ownerName" },
{ type: 'selection', width: 60 },
{ type: 'index', label: '序号', width: 50 },
{ label: '窗口负责人', prop: 'ownerName' },
{
label: "登记年月",
label: '登记年月',
formatter: (row) => {
return `${row.year ? row.year : "--"}-${
return `${row.year ? row.year : '--'}-${
row.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month)
? "0" + row.month
? '0' + row.month
: row.month
: "--"
: '--'
}`;
},
}
},
{
label: "所属大厅",
prop: "salaName",
formatter: this.formatter,
label: '所属大厅',
prop: 'salaName',
formatter: this.formatter
},
{
label: "所属部门",
prop: "deptName",
label: '所属部门',
prop: 'deptName'
},
{
label: "考核窗口",
label: '考核窗口',
formatter: (row) => {
return `${row.windowName ? row.windowName : "--"}`;
},
return `${row.windowName ? row.windowName : '--'}`;
}
},
{ label: "表单名称", prop: "fromName" },
{ label: '表单名称', prop: 'fromName' },
// { label: "总分分值", prop: "sumScore", formatter: this.formatter },
{
label: "提交时间",
prop: "submitDate",
label: '提交时间',
prop: 'submitDate',
width: 110,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "最新核查时间",
prop: "updateTime",
label: '最新核查时间',
prop: 'updateTime',
width: 150,
formatter: this.formatterDate,
formatter: this.formatterDate
},
{
label: "处理状态",
prop: "checkStatus",
formatter: this.formatter,
label: '处理状态',
prop: 'checkStatus',
formatter: this.formatter
},
{
label: "操作",
label: '操作',
width: 240,
formatter: (row) => {
return row.checkStatus == 1 ? (
......@@ -286,7 +242,7 @@ export default {
reCheck
noView
noDel
text={"自评核查"}
text={'自评核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
......@@ -297,19 +253,64 @@ export default {
noAdd
noEdit
noDel
text={"自评核查"}
text={'自评核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
);
},
},
],
},
}
}
]
}
};
},
created() {
// this.getData();
},
methods: {
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.drawerform.view(row);
},
/** 导出Excel */
doExport() {
this.isExport = true;
this.$download(
'/check/window/workman/perform/exportExcel',
{
...this.query,
page: 1,
size: -1
},
{ type: 'excel', name: '工作人员考核' }
)
.then(() => (this.isExport = false))
.catch((error) => {
this.isExport = false;
this.$message.error(error.message);
});
},
// 切换表格
changeRadio() {
this.radio1 == 1
? this.$router.push('/check/window/perform/list?page=1')
: this.radio1 == 2
? this.$router.push('/check/window/workman/perform/list?page=1')
: this.radio1 == 3
? this.$router.push('/check/window/workman/perform/detail/list?page=1')
: '';
}
}
};
</script>
<style lang="less" scoped>
......
<template>
<div class="page">
<LayoutTable
ref="layoutTable"
:data="tableData"
notAdd
notDel
:config="tableConfig"
/>
<LayoutTable ref="layoutTable" :data="tableData" notAdd notDel :config="tableConfig" />
<dialog-show ref="dialogform" @ok="getData" />
</div>
</template>
<script>
import { handleTree } from "@/assets/utils/table";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import table from "@/assets/mixins/table";
import dialogShow from "./dialogshow";
import { handleTree } from '@/assets/utils/table';
import Treeselect from '@riophae/vue-treeselect';
import '@riophae/vue-treeselect/dist/vue-treeselect.css';
import table from '@/assets/mixins/table';
import dialogShow from './dialogshow';
export default {
name: "Dept",
name: 'Dept',
mixins: [table],
components: { Treeselect, dialogShow },
created() {},
methods: {
afterRender(data) {
data.data = handleTree(data.data, "id", "parentId");
console.log("tree", data.data);
this.deptOptions = data.data;
this.$refs.layoutTable.showType = "treetable";
},
handleAdd(row) {
this.$refs.dialogform.add(row, this.deptOptions);
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.dialogform.add(row, this.deptOptions);
},
/** 重写编辑方法 */
toEdit(row) {
this.loading = true;
this.$post(this.pageInfo.exclude, { id: row.id })
.then((res) => {
if (res && res.code && res.code == 1) {
this.deptOptions = handleTree(res.data.result);
this.$refs.dialogform.edit(row, this.deptOptions);
this.loading = false;
}
})
.catch((error) => {
this.$message.error(error.message);
});
},
/** 重写查看方法 */
toView(row) {
this.$refs.dialogform.view(row, this.deptOptions);
},
},
data() {
return {
// 表格配置项
config: {
/** 树表是否默认展开 */
expand: true,
showType: "treetable",
showType: 'treetable',
search: [],
columns: [
{ label: "部门名称", prop: "deptName" },
{ label: "部门编码", prop: "deptCode" },
{ label: "顺序", prop: "orderNum" },
{ label: "部门人数", prop: "personNum" },
{ label: "绩效分数", prop: "score", formatter: this.formatterMoney },
{ label: '部门名称', prop: 'deptName' },
{ label: '部门编码', prop: 'deptCode' },
{ label: '顺序', prop: 'orderNum' },
{ label: '部门人数', prop: 'personNum' },
{ label: '绩效分数', prop: 'score', formatter: this.formatterMoney }
// {
// label: "操作",
......@@ -103,10 +61,48 @@ export default {
// );
// },
// },
],
},
]
}
};
},
created() {},
methods: {
// 获取数据处理
afterRender(data) {
data.data = handleTree(data.data, 'id', 'parentId');
console.log('tree', data.data);
this.deptOptions = data.data;
this.$refs.layoutTable.showType = 'treetable';
},
// 处理加入
handleAdd(row) {
this.$refs.dialogform.add(row, this.deptOptions);
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.dialogform.add(row, this.deptOptions);
},
/** 重写编辑方法 */
toEdit(row) {
this.loading = true;
this.$post(this.pageInfo.exclude, { id: row.id })
.then((res) => {
if (res && res.code && res.code == 1) {
this.deptOptions = handleTree(res.data.result);
this.$refs.dialogform.edit(row, this.deptOptions);
this.loading = false;
}
})
.catch((error) => {
this.$message.error(error.message);
});
},
/** 重写查看方法 */
toView(row) {
this.$refs.dialogform.view(row, this.deptOptions);
}
}
};
</script>
<style lang="scss">
......
<template>
<div class="page">
<LayoutTable
:data="tableData"
:config="tableConfig"
@cell-click="handleCellClick"
>
<LayoutTable :data="tableData" :config="tableConfig" @cell-click="handleCellClick">
</LayoutTable>
<drawer-show ref="drawerform" @ok="getData" />
......@@ -13,96 +9,76 @@
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
import drawerShow from './drawershow';
import table from '@/assets/mixins/table';
export default {
name: "WindowOwnerList",
name: 'WindowOwnerList',
components: {
drawerShow,
drawerShow
},
mixins: [table],
created() {},
methods: {
handleCellClick(row, column, cell, event) {
console.log(row, cell, column);
if (column.label == "关联人数") {
this.toEdit(row);
}
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.drawerform.view(row);
},
},
data() {
return {
config: {
isshowTabPane: true,
search: [
{
name: "salaId",
type: "selectSalaId",
label: "大厅",
fuzzy: false,
name: 'salaId',
type: 'selectSalaId',
label: '大厅',
fuzzy: false
},
{
name: "deptId",
type: "selectDeptId",
label: "部门",
fuzzy: false,
name: 'deptId',
type: 'selectDeptId',
label: '部门',
fuzzy: false
},
{
name: "roleType",
type: "select",
label: "角色",
fuzzy: false,
name: 'roleType',
type: 'select',
label: '角色',
fuzzy: false
},
{
name: "staffName",
type: "text",
label: "姓名",
fuzzy: true,
},
name: 'staffName',
type: 'text',
label: '姓名',
fuzzy: true
}
],
columns: [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ type: 'selection', width: 60 },
{ type: 'index', label: '序号', width: 50 },
{ label: "负责人姓名", prop: "staffName" },
{ label: "角色", prop: "roleType", formatter: this.formatter },
{ label: "所属大厅", prop: "salaName" },
{ label: "所属部门", prop: "deptName" },
{ label: '负责人姓名', prop: 'staffName' },
{ label: '角色', prop: 'roleType', formatter: this.formatter },
{ label: '所属大厅', prop: 'salaName' },
{ label: '所属部门', prop: 'deptName' },
{ label: "联系电话", prop: "phone", formatter: this.formatter },
{ label: '联系电话', prop: 'phone', formatter: this.formatter },
{
label: "关联人数",
prop: "staffCount",
label: '关联人数',
prop: 'staffCount',
formatter: (row) => {
return <a>{row.staffCount}</a>;
},
}
},
{
label: "更新时间",
prop: "updateTime",
formatter: this.formatterDate,
label: '更新时间',
prop: 'updateTime',
formatter: this.formatterDate
},
{
label: "更新人员",
prop: "updateUserId",
formatter: this.formatter,
label: '更新人员',
prop: 'updateUserId',
formatter: this.formatter
},
{
label: "操作",
label: '操作',
width: 240,
formatter: (row) => {
return (
......@@ -115,12 +91,33 @@ export default {
onDel={this.toDel}
/>
);
},
},
],
},
}
}
]
}
};
},
created() {},
methods: {
handleCellClick(row, column, cell, event) {
console.log(row, cell, column);
if (column.label == '关联人数') {
this.toEdit(row);
}
},
/** 重写新增方法 */
toAdd(row) {
this.$refs.drawerform.add(row);
},
/** 重写编辑方法 */
toEdit(row) {
this.$refs.drawerform.edit(row);
},
/** 重写查看方法 */
toView(row) {
this.$refs.drawerform.view(row);
}
}
};
</script>
<style lang="less" scoped>
......
<template>
<div class="page">
<div class="btn_box" style="position: absolute;top: 54px;left: 10px;">
<div class="btn_box" style="position: absolute; top: 54px; left: 10px">
<el-radio-group v-model="radio1" @input="changeRadio">
<el-radio-button label="1">窗口考核</el-radio-button>
<el-radio-button label="2">工作人员考核</el-radio-button>
......@@ -16,8 +16,7 @@
>
</div>
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig">
</LayoutTable>
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig"> </LayoutTable>
<drawer-show ref="drawerform" @ok="getData" />
</div>
......@@ -25,16 +24,16 @@
<script>
/** 表单弹出框模式需引入 */
import drawerShow from "./drawershow";
import table from "@/assets/mixins/table";
import drawerShow from './drawershow';
import table from '@/assets/mixins/table';
export default {
name: "WindowPerformList",
name: 'WindowPerformList',
components: {
drawerShow,
drawerShow
},
mixins: [table],
created() {
this.pageInfo.list = "/check/window/perform/list";
this.pageInfo.list = '/check/window/perform/list';
},
methods: {
/** 重写新增方法 */
......@@ -53,12 +52,12 @@ export default {
doExport() {
this.isExport = true;
this.$download(
"/check/window/perform/exportExcel",
'/check/window/perform/exportExcel',
{
page: 1,
size: -1,
size: -1
},
{ type: "excel", name: "窗口考核" }
{ type: 'excel', name: '窗口考核' }
)
.then(() => (this.isExport = false))
.catch((error) => {
......@@ -68,104 +67,104 @@ export default {
},
// 切换表格
changeRadio() {
this.radio1 == 2
? this.$router.push("/window/workman/perform/list?page=1")
: "";
},
this.radio1 == 2 ? this.$router.push('/window/workman/perform/list?page=1') : '';
}
},
data() {
return {
radio1: "1",
// 切换表格绑定值
radio1: '1',
// 导出按钮加载状态
isExport: false,
config: {
isshowTabPane: true,
search: [
{
name: "salaId",
type: "selectSalaId",
label: "大厅",
fuzzy: false,
name: 'salaId',
type: 'selectSalaId',
label: '大厅',
fuzzy: false
},
{
name: "deptId",
type: "selectDeptId",
label: "部门",
fuzzy: false,
name: 'deptId',
type: 'selectDeptId',
label: '部门',
fuzzy: false
},
{
name: "checkStatus",
type: "select",
label: "核查状态",
fuzzy: false,
name: 'checkStatus',
type: 'select',
label: '核查状态',
fuzzy: false
},
{
name: "yearmonth",
type: "month",
label: "请选择登记年月",
fuzzy: false,
name: 'yearmonth',
type: 'month',
label: '请选择登记年月',
fuzzy: false
},
{
name: "ownerName",
type: "text",
name: 'ownerName',
type: 'text',
width: 200,
label: "窗口首席代表姓名搜索",
fuzzy: true,
},
label: '窗口首席代表姓名搜索',
fuzzy: true
}
],
columns: [
{ type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 },
{ label: "窗口首席代表", prop: "ownerName" },
{ type: 'selection', width: 60 },
{ type: 'index', label: '序号', width: 50 },
{ label: '窗口首席代表', prop: 'ownerName' },
{
label: "登记年月",
label: '登记年月',
formatter: (row) => {
return `${row.year ? row.year : "--"}-${
return `${row.year ? row.year : '--'}-${
row.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month)
? "0" + row.month
? '0' + row.month
: row.month
: "--"
: '--'
}`;
},
}
},
{ label: "所属大厅", prop: "salaName", formatter: this.formatter },
{ label: '所属大厅', prop: 'salaName', formatter: this.formatter },
{
label: "所属部门",
prop: "deptName",
label: '所属部门',
prop: 'deptName'
},
{
label: "考核窗口",
label: '考核窗口',
formatter: (row) => {
return `${row.windowName ? row.windowName : "--"}`;
},
return `${row.windowName ? row.windowName : '--'}`;
}
},
{ label: "表单名称", prop: "fromName" },
{ label: '表单名称', prop: 'fromName' },
{ label: "总分分值", prop: "sumScore", formatter: this.formatter },
{ label: '总分分值', prop: 'sumScore', formatter: this.formatter },
{
label: "提交时间",
prop: "submitDate",
formatter: this.formatterDate,
label: '提交时间',
prop: 'submitDate',
formatter: this.formatterDate
},
{
label: "核查人",
prop: "leaderCheckPerson",
formatter: this.formatter,
label: '核查人',
prop: 'leaderCheckPerson',
formatter: this.formatter
},
{
label: "最新核查时间",
prop: "leaderCheckTime",
formatter: this.formatterDate,
label: '最新核查时间',
prop: 'leaderCheckTime',
formatter: this.formatterDate
},
{ label: "处理状态", prop: "checkStatus", formatter: this.formatter },
{ label: '处理状态', prop: 'checkStatus', formatter: this.formatter },
{
label: "操作",
label: '操作',
width: 240,
formatter: (row) => {
return (
......@@ -173,19 +172,19 @@ export default {
noAdd
noDel
noEdit
text={"自评核查"}
text={'自评核查'}
row={row}
onEdit={this.toEdit}
onView={this.toView}
onDel={this.toDel}
/>
);
},
},
],
},
}
}
]
}
};
},
}
};
</script>
<style lang="less" scoped>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment