我的已办添加行政处罚修复的打印文书按钮

This commit is contained in:
zhouxy 2026-02-27 14:48:03 +08:00
parent 4b71de9878
commit 71c5c61c62
3 changed files with 39 additions and 5 deletions

View File

@ -78,3 +78,12 @@ export function downloadTSWrits(writsid) {
responseType: 'blob' responseType: 'blob'
}) })
} }
/**
* 获取行政处罚信用修复决定书
*/
export function getRemPunishWrit(bizSeq) {
return request({
url: '/tswrittemplate/getRemPunishWrit?bizSeq=' + bizSeq,
method: 'get'
})
}

View File

@ -144,6 +144,7 @@
<el-button v-if="tableData[scope.$index].busstatus != 2 && tableData[scope.$index].isPassDissentApply" type="primary" size="mini" @click="gotoPrintNotice(scope.row)">打印</el-button> <el-button v-if="tableData[scope.$index].busstatus != 2 && tableData[scope.$index].isPassDissentApply" type="primary" size="mini" @click="gotoPrintNotice(scope.row)">打印</el-button>
<!-- 撤销案件登记 --> <!-- 撤销案件登记 -->
<el-button v-if="scope.row.bustype==='31'" type="primary" size="mini" @click="getStepsEvent(scope.row)">现场核查进度</el-button> <el-button v-if="scope.row.bustype==='31'" type="primary" size="mini" @click="getStepsEvent(scope.row)">现场核查进度</el-button>
<el-button v-if="scope.row.bustype==='27' && tableData[scope.$index].busstatus === '2'" type="primary" size="mini" @click="gotoPrint27(scope.row.bizseqid)">打印</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -221,7 +222,7 @@
import { finishTaskUnionPage } from '@/api/task' import { finishTaskUnionPage } from '@/api/task'
import { getSteps } from '@/api/personate' import { getSteps } from '@/api/personate'
import { isPassDissentApply } from '@/api/abnormal' import { isPassDissentApply } from '@/api/abnormal'
import { getCreditRepairDecision } from '@/api/writs' import { getCreditRepairDecision, getRemPunishWrit } from '@/api/writs'
import { isMenHu } from '@/utils/utils' import { isMenHu } from '@/utils/utils'
import { tSUsualInspectListFile } from '@/api/market' import { tSUsualInspectListFile } from '@/api/market'
import { getUsualInspectInfo } from '@/api/market' import { getUsualInspectInfo } from '@/api/market'
@ -1090,6 +1091,15 @@ export default {
}).finally(() => { }).finally(() => {
this.inputDialog.loading = false this.inputDialog.loading = false
}) })
},
gotoPrint27(bizseqid) {
getRemPunishWrit(bizseqid).then(res => {
if (res.code === 0) {
window.open(`${process.env.VUE_APP_DOWNLOAD_URL}/` + res.data, '_blank')
} else {
this.$message.error(res.msg)
}
})
} }
} }
} }

View File

@ -269,11 +269,11 @@
</template> </template>
<template v-else-if="punishInfo.linkType === '0'"> <template v-else-if="punishInfo.linkType === '0'">
<el-radio label="approveRemPunish">提交至审批人</el-radio> <el-radio label="approveRemPunish">提交至审批人</el-radio>
<el-radio label="returnRemPunish">回退上一步</el-radio> <el-radio label="returnRemPunish">回退至上一操作人</el-radio>
</template> </template>
<template v-else-if="punishInfo.linkType === '2'"> <template v-else-if="punishInfo.linkType === '2'">
<el-radio label="endRemPunish">业务结束</el-radio> <el-radio label="endRemPunish">业务结束</el-radio>
<el-radio label="returnRemPunish">回退上一步</el-radio> <el-radio label="returnRemPunish">回退至上一操作人</el-radio>
</template> </template>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -298,6 +298,7 @@
filterable filterable
class="custom" class="custom"
style="width:40%" style="width:40%"
@change="handlePerformerChange"
> >
<el-option <el-option
v-for="item in reviewer" v-for="item in reviewer"
@ -390,7 +391,7 @@ export default {
bizseq: '', bizseq: '',
writsType: '', writsType: '',
isTemplate: '', isTemplate: '',
type: 'punishment' // type: 'punishment' //
}, },
formRules: { formRules: {
applyDate: [ applyDate: [
@ -414,7 +415,8 @@ export default {
isAgreeRepair: '', isAgreeRepair: '',
formData: { formData: {
opinion: '', opinion: '',
nextPerformerids: '' nextPerformerids: '',
nextPerformerName: ''
}, },
reviewer: [] reviewer: []
} }
@ -461,6 +463,15 @@ export default {
this.loadReviewer() this.loadReviewer()
}, },
methods: { methods: {
handlePerformerChange(selectedValue) {
// reviewer nextPerformerName
const selectedReviewer = this.reviewer.find(item => item.primaryKey === selectedValue);
if (selectedReviewer) {
this.punishInfo.nextPerformerName = selectedReviewer.name;
} else {
this.punishInfo.nextPerformerName = ''; //
}
},
// label // label
getOperatorLabel() { getOperatorLabel() {
if (this.punishInfo.linkType === '1') { if (this.punishInfo.linkType === '1') {
@ -707,6 +718,8 @@ export default {
this.$set(this.tswrittemplate, 'content', res.data.content) this.$set(this.tswrittemplate, 'content', res.data.content)
this.$set(this, 'eidtContent', res.data.content) this.$set(this, 'eidtContent', res.data.content)
}) })
} else {
this.$message.error(res.msg)
} }
}) })
}, },
@ -726,6 +739,8 @@ export default {
this.$set(this.tswrittemplate, 'writsType', res.data.writsType) this.$set(this.tswrittemplate, 'writsType', res.data.writsType)
this.$set(this, 'eidtContent', res.data.content) this.$set(this, 'eidtContent', res.data.content)
}) })
} else {
this.$message.error(res.msg)
} }
}) })
} }