From c0a2ab50151b4d75b3cc5003f4e66c194414507d Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 13 Feb 2023 16:45:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=90=88=E5=90=8C=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/jichuxinxi/contract.js | 59 +++++ .../hetongdanganguanli/hetongdanganguanli.vue | 49 +++- .../hetongdanganguanliAdd.vue | 14 +- .../hetongdanganguanliInfo.vue | 6 +- .../hetongdanganDaiBanByFileInfo.vue | 223 ++++++++++++++++- .../hetongdanganDaiBanInfo.vue | 230 +++++++++++++++++- .../hetongdanganYiBanInfo.vue | 97 +++++++- 7 files changed, 637 insertions(+), 41 deletions(-) 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 @@