bug修复
This commit is contained in:
parent
b3ff9c11ca
commit
e748c728c9
|
|
@ -47,7 +47,15 @@
|
|||
v-show="btnShow"
|
||||
style="position: absolute; top: 94%; left: 80%; z-index: 999 !important; width: 250px"
|
||||
>
|
||||
<template v-if="auditTitle.includes('违章')">
|
||||
<el-button type="warning" @click="finalInstanceBtn" v-if="finalCheck != '0' && userType != '01'">
|
||||
终审
|
||||
</el-button>
|
||||
</template>
|
||||
|
||||
<template v-if="!auditTitle.includes('违章')">
|
||||
<el-button type="warning" @click="finalInstanceBtn" v-if="finalCheck != '0'">终审</el-button>
|
||||
</template>
|
||||
<el-button type="primary" @click="passBtn">通过</el-button>
|
||||
<el-button type="primary" plain @click="turnDownBtn">驳回</el-button>
|
||||
</div>
|
||||
|
|
@ -225,6 +233,10 @@ export default {
|
|||
type: String,
|
||||
default: () => '',
|
||||
},
|
||||
auditTitle: {
|
||||
type: String,
|
||||
default: () => '',
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
store() {
|
||||
|
|
@ -324,10 +336,13 @@ export default {
|
|||
// 3.31更改bug新增
|
||||
auditRecordList: [],
|
||||
endAuditingIndex: -1,
|
||||
userType: '',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.assign()
|
||||
|
||||
this.userType = this.$store.state.user.userType
|
||||
},
|
||||
methods: {
|
||||
assign() {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<!-- 违章处罚 -->
|
||||
<div class="app-container">
|
||||
<el-form v-show="showSearch" :model="queryParams" ref="queryForm" size="small" inline>
|
||||
<el-form-item label="关键字---" prop="keyWord">
|
||||
<el-form-item label="关键字" prop="keyWord">
|
||||
<el-input
|
||||
v-model="queryParams.keyWord"
|
||||
placeholder="请输入关键字"
|
||||
|
|
|
|||
|
|
@ -34,7 +34,8 @@
|
|||
type="textarea"
|
||||
v-model="dialogForm.punishmentReason"
|
||||
placeholder="请输入处罚原因"
|
||||
clearable v-no-whitespace
|
||||
clearable
|
||||
v-no-whitespace
|
||||
:autosize="{ minRows: 4, maxRows: 6 }"
|
||||
maxlength="300"
|
||||
show-word-limit
|
||||
|
|
@ -49,7 +50,8 @@
|
|||
type="textarea"
|
||||
v-model="dialogForm.punishmentBasis"
|
||||
placeholder="请输入处罚依据"
|
||||
clearable v-no-whitespace
|
||||
clearable
|
||||
v-no-whitespace
|
||||
:autosize="{ minRows: 4, maxRows: 6 }"
|
||||
maxlength="300"
|
||||
show-word-limit
|
||||
|
|
@ -75,12 +77,7 @@
|
|||
<!-- 处罚金额大写 -->
|
||||
<el-col :span="24" :offset="0">
|
||||
<el-form-item label="大写" prop="moneyUpper">
|
||||
<el-input
|
||||
v-model="dialogForm.moneyUpper"
|
||||
placeholder="处罚金额大写"
|
||||
disabled
|
||||
style="width: 400px"
|
||||
/>
|
||||
<el-input v-model="dialogForm.moneyUpper" placeholder="处罚金额大写" disabled style="width: 400px" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24" :offset="0">
|
||||
|
|
@ -228,6 +225,7 @@
|
|||
v-on:turnDown="approvalTurnDown"
|
||||
v-on:finalInstance="approvalFinalInstance"
|
||||
v-else
|
||||
:auditTitle="row.title"
|
||||
></bns-timeline-tabs>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
|
|
@ -252,7 +250,7 @@ import { getMyToDoList, getMyToDoNum, lookFaceFile } from '@/utils/bonus'
|
|||
export default {
|
||||
components: {
|
||||
bnsKkFilePreview,
|
||||
BnsTimelineTabs
|
||||
BnsTimelineTabs,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -270,10 +268,10 @@ export default {
|
|||
approvalItems: [],
|
||||
filePreview: {
|
||||
filePreviewUrl: '',
|
||||
fileName: ''
|
||||
fileName: '',
|
||||
},
|
||||
previewOpen: false,
|
||||
lookFaceFile: ''
|
||||
lookFaceFile: '',
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
@ -303,13 +301,13 @@ export default {
|
|||
this.dialogForm.receiptOfFinePhotoList = res.data.receiptOfFinePhotoList.map(item => {
|
||||
return {
|
||||
name: item.fileName,
|
||||
url: this.lookFaceFile + item.filePath
|
||||
url: this.lookFaceFile + item.filePath,
|
||||
}
|
||||
})
|
||||
this.dialogForm.improvedPhotoList = res.data.improvedPhotoList.map(item => {
|
||||
return {
|
||||
name: item.fileName,
|
||||
url: this.lookFaceFile + item.filePath
|
||||
url: this.lookFaceFile + item.filePath,
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
@ -357,8 +355,8 @@ export default {
|
|||
if (res.code === 200) {
|
||||
console.log('🚀 ~ file: PunishFormDialog.vue ~ line 97 ~ getViolationDetail ~ res', res)
|
||||
this.filePreview = {
|
||||
filePreviewUrl: "punishSheet/"+ res.msg,
|
||||
fileName: "违章处罚单"
|
||||
filePreviewUrl: 'punishSheet/' + res.msg,
|
||||
fileName: '违章处罚单',
|
||||
}
|
||||
this.previewOpen = true
|
||||
}
|
||||
|
|
@ -371,25 +369,25 @@ export default {
|
|||
approvalPass(e) {
|
||||
const param = {
|
||||
reason: e,
|
||||
agree:"1"
|
||||
agree: '1',
|
||||
}
|
||||
this.approval(param,"审批通过")
|
||||
this.approval(param, '审批通过')
|
||||
},
|
||||
/**审核驳回*/
|
||||
approvalTurnDown(e) {
|
||||
const param = {
|
||||
...e,
|
||||
agree:"2"
|
||||
agree: '2',
|
||||
}
|
||||
this.approval(param,"退回成功")
|
||||
this.approval(param, '退回成功')
|
||||
},
|
||||
/**终审*/
|
||||
approvalFinalInstance(e) {
|
||||
const param = {
|
||||
reason: e,
|
||||
agree:"3"
|
||||
agree: '3',
|
||||
}
|
||||
this.approval(param,"终审成功")
|
||||
this.approval(param, '终审成功')
|
||||
},
|
||||
/**
|
||||
* 审批方法+
|
||||
|
|
@ -403,25 +401,25 @@ export default {
|
|||
taskId: this.row.taskId,
|
||||
procInstId: this.row.procInsId,
|
||||
taskType: '13',
|
||||
uuid: this.row.violationId
|
||||
uuid: this.row.violationId,
|
||||
}
|
||||
submitPersonApproval(params).then(response => {
|
||||
this.getMyToDoNum()
|
||||
if (response.code === 200) {
|
||||
this.$message({
|
||||
message: text,
|
||||
type: 'success'
|
||||
type: 'success',
|
||||
})
|
||||
this.$tab.closePage();
|
||||
this.$tab.closePage()
|
||||
} else {
|
||||
this.$message({
|
||||
message: response.msg,
|
||||
type: 'error'
|
||||
type: 'error',
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue