下载决定书

This commit is contained in:
chenxf 2026-02-04 11:42:28 +08:00
parent f120a27916
commit ebd89a6e06
3 changed files with 29 additions and 5 deletions

View File

@ -78,13 +78,13 @@ service.interceptors.response.use(
location.reload()
})
} else {
Message({
message: error.response.data.msg || '请求失败,服务器开小差了',
type: 'error'
})
if (error.config.throwError || error.config.useResponseData) { // 不被拦截处理
throw error.response
} else {
Message({
message: error.response.data.msg || '请求失败,服务器开小差了',
type: 'error'
})
return error.response.data
}
}

View File

@ -144,11 +144,13 @@
v-model="entListTableData"
:fields="entListFields"
:table-config="entListTableConfig"
:buttons="entListButtons"
:emit-load-on-create="true"
:on-load="loadEntListData"
/>
</template>
</easy-form>
<Doc ref="doc" />
</div>
</template>
@ -164,12 +166,15 @@ import {
getDecisionContent, getForceNoticeContent,
xrForceDeregisterSpeListByBizSeqNo,
xrForceDeregisterSpeProcessControl,
xrForceDeregisterGetApprovalFormByBizSeqNo,
getOrgunits,
xrAttachmentDelLawFile,
xrAttachmentListByBizSepNo,
xrOpinionListByBizSeqNo
} from '@/api/force'
import Doc from './doc.vue'
export default {
components: { Doc },
data() {
return {
authItemMap: [],
@ -187,6 +192,16 @@ export default {
currentNodeID: '',
localSelection: '当前部门处理人', //
entListTableData: [],
entListButtons: [
{
label: '下载决定书',
type: 'text',
show: () => this.readonly,
handler: (scope, { row }) => {
this.printEntDoc(row)
}
}
],
entListFields: [
{
type: 'input',
@ -246,6 +261,7 @@ export default {
showIndex: true,
indexWidth: '100px',
showPagination: true,
handlerWidth: '120px',
tableProps: {
headerCellStyle: { background: '#F5F5F5!important', color: '#333333!important', padding: '0px' },
headerRowStyle: { height: '48px' },
@ -729,6 +745,14 @@ export default {
total: data.total
}
})
},
printEntDoc(row) {
xrForceDeregisterGetApprovalFormByBizSeqNo({
bizSeqNo: this.$route.query.bizSeqNo,
forceSpeId: row.forceSpeId
}).then((data = {}) => {
this.$refs.doc.open(data)
})
}
}
}

View File

@ -696,7 +696,7 @@ export default {
},
//
goToEntDetail(row) {
this.$router.push({ path: '/comprehensive/details', query: { pripid: row.pripid } })
this.$router.push({ path: '/comprehensive/details', query: { pripid: row.pripId } })
},
generateNoticeContent(scope) {
this.generatingContent = true