我的已办添加行政处罚修复的打印文书按钮
This commit is contained in:
parent
4b71de9878
commit
71c5c61c62
|
|
@ -78,3 +78,12 @@ export function downloadTSWrits(writsid) {
|
|||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取行政处罚信用修复决定书
|
||||
*/
|
||||
export function getRemPunishWrit(bizSeq) {
|
||||
return request({
|
||||
url: '/tswrittemplate/getRemPunishWrit?bizSeq=' + bizSeq,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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="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>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
@ -221,7 +222,7 @@
|
|||
import { finishTaskUnionPage } from '@/api/task'
|
||||
import { getSteps } from '@/api/personate'
|
||||
import { isPassDissentApply } from '@/api/abnormal'
|
||||
import { getCreditRepairDecision } from '@/api/writs'
|
||||
import { getCreditRepairDecision, getRemPunishWrit } from '@/api/writs'
|
||||
import { isMenHu } from '@/utils/utils'
|
||||
import { tSUsualInspectListFile } from '@/api/market'
|
||||
import { getUsualInspectInfo } from '@/api/market'
|
||||
|
|
@ -1090,6 +1091,15 @@ export default {
|
|||
}).finally(() => {
|
||||
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)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -269,11 +269,11 @@
|
|||
</template>
|
||||
<template v-else-if="punishInfo.linkType === '0'">
|
||||
<el-radio label="approveRemPunish">提交至审批人</el-radio>
|
||||
<el-radio label="returnRemPunish">回退上一步</el-radio>
|
||||
<el-radio label="returnRemPunish">回退至上一操作人</el-radio>
|
||||
</template>
|
||||
<template v-else-if="punishInfo.linkType === '2'">
|
||||
<el-radio label="endRemPunish">业务结束</el-radio>
|
||||
<el-radio label="returnRemPunish">回退上一步</el-radio>
|
||||
<el-radio label="returnRemPunish">回退至上一操作人</el-radio>
|
||||
</template>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
|
|
@ -298,6 +298,7 @@
|
|||
filterable
|
||||
class="custom"
|
||||
style="width:40%"
|
||||
@change="handlePerformerChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in reviewer"
|
||||
|
|
@ -390,7 +391,7 @@ export default {
|
|||
bizseq: '',
|
||||
writsType: '',
|
||||
isTemplate: '',
|
||||
type: 'punishment' // 设置为行政处罚类型
|
||||
type: 'punishment' // 设置为行政处罚类型
|
||||
},
|
||||
formRules: {
|
||||
applyDate: [
|
||||
|
|
@ -414,7 +415,8 @@ export default {
|
|||
isAgreeRepair: '',
|
||||
formData: {
|
||||
opinion: '',
|
||||
nextPerformerids: ''
|
||||
nextPerformerids: '',
|
||||
nextPerformerName: ''
|
||||
},
|
||||
reviewer: []
|
||||
}
|
||||
|
|
@ -461,6 +463,15 @@ export default {
|
|||
this.loadReviewer()
|
||||
},
|
||||
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
|
||||
getOperatorLabel() {
|
||||
if (this.punishInfo.linkType === '1') {
|
||||
|
|
@ -707,6 +718,8 @@ export default {
|
|||
this.$set(this.tswrittemplate, 'content', 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, 'eidtContent', res.data.content)
|
||||
})
|
||||
} else {
|
||||
this.$message.error(res.msg)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue