Commit 7c10ec2b authored by 姬鋆屾's avatar 姬鋆屾

推更新

parent 0edd87c4
// 表单通用的保存和取消按钮,可以通过默认slot方式替换 // 表单通用的保存和取消按钮,可以通过默认slot方式替换
<template> <template>
<el-form-item> <el-form-item>
<slot name="prepend"></slot> <slot name="prepend"></slot>
<slot> <slot>
<el-button v-if="!noSaveBtn" type="primary" @click='$emit("submit")' size='small' icon='el-icon-circle-check-outline'>保存</el-button> <el-button
<el-button v-if="!noCancelBtn" @click="$router.go(-1)" size='small' icon='el-icon-circle-close-outline'>取消</el-button> v-if="!noSaveBtn"
</slot> type="primary"
<slot name="append"></slot> @click="$emit('submit')"
</el-form-item> size="small"
icon="el-icon-circle-check-outline"
>保存</el-button
>
<el-button
v-if="!noCancelBtn"
@click="$router.go(-1)"
size="small"
icon="el-icon-circle-close-outline"
>取消</el-button
>
</slot>
<slot name="append"></slot>
</el-form-item>
</template> </template>
<script> <script>
export default { export default {
props: { props: {
noSaveBtn: { noSaveBtn: {
type: Boolean, type: Boolean,
default: false, default: false,
},
noCancelBtn: {
type: Boolean,
default: false,
},
}, },
methods: {}, noCancelBtn: {
data() { type: Boolean,
return {}; default: false,
}, },
},
methods: {},
data() {
return {};
},
}; };
</script> </script>
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
direction: "rtl", direction: "rtl",
toString: ["leaveType","deptId","approverId"], toString: ["leaveType", "deptId", "approverId"],
toDate: ["startTime", "endTime"], toDate: ["startTime", "endTime"],
// 表单校验 // 表单校验
rules: { rules: {
...@@ -223,6 +223,7 @@ export default { ...@@ -223,6 +223,7 @@ export default {
if (this.form.endTime.valueOf() > this.form.startTime.valueOf()) { if (this.form.endTime.valueOf() > this.form.startTime.valueOf()) {
this.form.duration = getMinu(this.form.startTime, this.form.endTime); this.form.duration = getMinu(this.form.startTime, this.form.endTime);
} else { } else {
this.$message.closeAll();
this.$message.error("结束日期需大于请假日期"); this.$message.error("结束日期需大于请假日期");
} }
} }
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { 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 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}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -172,13 +172,13 @@ export default { ...@@ -172,13 +172,13 @@ export default {
{ {
name: "checkStatus", name: "checkStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
...@@ -249,6 +249,8 @@ export default { ...@@ -249,6 +249,8 @@ export default {
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{ label: "巡查人员", prop: "createUserId", formatter: this.formatter },
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
{ {
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { 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 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}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -173,19 +173,19 @@ export default { ...@@ -173,19 +173,19 @@ export default {
{ {
name: "checkStatus", name: "checkStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "complainSource", name: "complainSource",
type: "select", type: "select",
label: "全部来源", label: "投诉来源",
fuzzy: false, fuzzy: false,
}, },
{ {
...@@ -255,6 +255,11 @@ export default { ...@@ -255,6 +255,11 @@ export default {
{ label: "核查结果", prop: "checkResult", formatter: this.formatter }, { label: "核查结果", prop: "checkResult", formatter: this.formatter },
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { 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 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}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -172,13 +172,13 @@ export default { ...@@ -172,13 +172,13 @@ export default {
{ {
name: "status", name: "status",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
...@@ -229,7 +229,7 @@ export default { ...@@ -229,7 +229,7 @@ export default {
formatter: this.formatterDate, formatter: this.formatterDate,
}, },
{ {
label: "图片凭证", label: "图片凭证",
prop: "filePaths", prop: "filePaths",
width: 150, width: 150,
...@@ -256,6 +256,12 @@ export default { ...@@ -256,6 +256,12 @@ export default {
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
{ {
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { 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 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}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -173,13 +173,13 @@ export default { ...@@ -173,13 +173,13 @@ export default {
{ {
name: "checkStatus", name: "checkStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
...@@ -244,6 +244,12 @@ export default { ...@@ -244,6 +244,12 @@ export default {
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
{ {
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { 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 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}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -172,13 +172,13 @@ export default { ...@@ -172,13 +172,13 @@ export default {
{ {
name: "checkStatus", name: "checkStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
...@@ -225,7 +225,7 @@ export default { ...@@ -225,7 +225,7 @@ export default {
// }, // },
// { label: "绩效规则id", prop: "ruleId", formatter: this.formatter }, // { label: "绩效规则id", prop: "ruleId", formatter: this.formatter },
{ {
label: "图片凭证", label: "图片凭证",
prop: "filePaths", prop: "filePaths",
width: 150, width: 150,
...@@ -252,6 +252,12 @@ export default { ...@@ -252,6 +252,12 @@ export default {
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
{ {
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { 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 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}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -172,19 +172,19 @@ export default { ...@@ -172,19 +172,19 @@ export default {
{ {
name: "checkStatus", name: "checkStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "reviewSource", name: "reviewSource",
type: "select", type: "select",
label: "全部来源", label: "差评来源",
fuzzy: false, fuzzy: false,
}, },
{ {
...@@ -253,6 +253,12 @@ export default { ...@@ -253,6 +253,12 @@ export default {
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
{ {
......
...@@ -122,14 +122,40 @@ ...@@ -122,14 +122,40 @@
<span v-if="!form.performAttendAppealFilesList"> <span v-if="!form.performAttendAppealFilesList">
-- --
</span> </span>
<div class="img_content" v-else> <div class="img_content" v-else>
<div <div
class="imgBox" class="imgBox"
v-for="val in form.performAttendAppealFilesList" v-for="val in form.performAttendAppealFilesList"
:key="val.id" :key="val.id"
@click="hanldeDownloadFile(val)"
> >
<img src="../../../../assets/images/fileImg.png" alt="" /> <el-image
v-if="
val.filePath.includes(
'.png' || '.jpg' || '.jpeg' || 'bmp'
)
"
style="width: 100px; height: 100px"
:src="
`${
val.filePath.indexOf('http') == -1
? baseUrl + val.filePath
: val.filePath
}`
"
:preview-src-list="
val.filePath.indexOf('http') == -1
? [baseUrl + val.filePath]
: [val.filePath]
"
>
</el-image>
<img
src="../../../../assets/images/fileImg.png"
v-else
alt=""
@click="hanldeDownloadFile(val)"
/>
{{ val.fileName }} {{ val.fileName }}
</div> </div>
</div> </div>
...@@ -502,6 +528,7 @@ export default { ...@@ -502,6 +528,7 @@ export default {
"checkTime", "checkTime",
"appealTime", "appealTime",
], ],
baseUrl: process.env.VUE_APP_API_BASE_URL + "/",
// 表单校验 // 表单校验
rules: { rules: {
staffName: [ staffName: [
......
...@@ -180,13 +180,13 @@ export default { ...@@ -180,13 +180,13 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
......
...@@ -180,19 +180,19 @@ export default { ...@@ -180,19 +180,19 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "complainSource", name: "complainSource",
type: "select", type: "select",
label: "全部来源", label: "投诉来源",
fuzzy: false, fuzzy: false,
}, },
{ {
......
...@@ -180,13 +180,13 @@ export default { ...@@ -180,13 +180,13 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
......
...@@ -180,13 +180,13 @@ export default { ...@@ -180,13 +180,13 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
......
...@@ -180,13 +180,13 @@ export default { ...@@ -180,13 +180,13 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { 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 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}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -180,19 +180,19 @@ export default { ...@@ -180,19 +180,19 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "reviewSource", name: "reviewSource",
type: "select", type: "select",
label: "全部来源", label: "差评来源",
fuzzy: false, fuzzy: false,
}, },
{ {
......
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