diff --git a/anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js b/anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js index c6fffcf013..4bf4871091 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js +++ b/anrui-buscenter/anrui-buscenter-ui/src/api/jichuxinxi/contract.js @@ -57,6 +57,65 @@ export function basefinbankExportExcel(data) { }) } +// 提交流程 +export function submitVehicleApply(params) { + return request({ + url: '/base/v1/commoncontract/submitCarSaleContractApprove', + method: 'post', + data: params, + headers: { 'Content-Type': 'application/json' } + }) +} + +// 流程审批(同意) +export function complete(params) { + return request({ + url: '/base/v1/commoncontract/complete', + method: 'post', + data: params + }) +} +// 流程审批(驳回) +export function reject(params) { + return request({ + url: '/base/v1/commoncontract/reject', + method: 'post', + data: params + }) +} +// 流程审批(终止) +export function breakProcess(params) { + return request({ + url: '/base/v1/commoncontract/breakProcess', + method: 'post', + data: params + }) +} +// 流程审批(撤回) +export function revokeProcess(params) { + return request({ + url: '/base/v1/commoncontract/revokeProcess', + method: 'post', + data: params + }) +} +// 审批流程(同意)获取下一环节 +export function getNextNodesForSubmit(data) { + return request({ + url: '/base/v1/commoncontract/getNextNodesForSubmit', + method: 'get', + params: data + }) +} +// 审批流程(驳回)获取上一环节 +export function getPreviousNodesForReject(data) { + return request({ + url: '/base/v1/commoncontract/getPreviousNodesForReject', + method: 'get', + params: data + }) +} + // ----合同模板 export function getTemplatePageList(data) { return request({ diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue index 354210bd01..d05b2a1282 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue @@ -44,12 +44,13 @@ - + @@ -79,7 +80,7 @@ @@ -123,14 +124,15 @@ - + + +
- @@ -142,6 +144,7 @@ import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar' import hetongdanganguanliAdd from './hetongdanganguanliAdd.vue' import hetongdanganguanliInfo from './hetongdanganguanliInfo.vue' +import { getStorage } from '@/utils/auth' export default { name: 'HeTongDangAnGuanLi', @@ -154,6 +157,9 @@ export default { }, data() { return { + url: '', + dialogHeight: '80%', + centerDialogVisible: false, btndisabled: false, btnList: [ { @@ -211,12 +217,43 @@ export default { } }, mounted() { + // 在外部vue的window上添加postMessage的监听,而且绑定处理函数handleMessage + window.addEventListener('message', this.handleMessage) this.$refs['btnbar'].setButtonList(this.btnList) }, created() { this.init() }, methods: { + async handleMessage(event) { + var code = '' + if (event.data.params !== null && event.data.params !== undefined) { + code = event.data.params.code + } + if (code === 1) { + this.init() + this.centerDialogVisible = false + } else if (code === 2) { + this.dialogHeight = event.data.params.data + this.setIframeHeight(document.getElementById('iframe')) + } + }, + closeIt() { + this.url = '' + this.centerDialogVisible = false + }, + setIframeHeight(iframe) { + iframe.height = this.dialogHeight + }, + flowRecord(row) { + this.centerDialogVisible = true + var params = { + deployId: row.procDefId, + procInsId: row.procInstId, + token: getStorage() + } + this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params))) + }, // 搜索条件效果 clicksearchShow() { this.isSearchShow = !this.isSearchShow diff --git a/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue b/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue index 3f75e3a78f..1b5746d0a9 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue +++ b/anrui-buscenter/anrui-buscenter-ui/src/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue @@ -113,7 +113,7 @@