feat: There is no way the, BUSS PROCESS

This commit is contained in:
super_liu
2021-12-15 21:46:27 +08:00
parent 448484691a
commit f2b85c581a
4 changed files with 95 additions and 3 deletions
+8
View File
@@ -440,6 +440,14 @@ export function isEnd (data) {
})
}
export function processModelHisOne (data) {
return axios({
url: '/api/lawss/activiti/processModelHisOne',
method: 'get',
params: data
})
}
export function evaluationHisList (data) {
return axios({
url: '/api/lawss/activiti/evaluationHisList',
@@ -9,7 +9,8 @@
icon="el-icon-edit-outline"
size="small"
class="common-button-warning"
@click="handleOnLineEdit"
:loading="submitLoading"
@click="handleOnLineReEdit"
v-if="showEdit">在线编辑</el-button>
<!-- <el-button-->
<!-- type="primary"-->
@@ -318,6 +319,9 @@ export default {
handleTransfer(){
this.$emit('transfer')
},
handleOnLineReEdit(){
this.$emit('onLineEdit')
},
handleSendEmail() {
this.$emit('sendEmail')
},
@@ -455,8 +455,10 @@
v-show="verifySarStandard"
show-save
show-submit
show-edit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
@onLineEdit="handleOnLineEdit"
@save="handleSave"
@submit="handleSubmit"
>
@@ -805,7 +807,7 @@
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail} from "api/process";
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail,processModelHisOne} from "api/process";
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
let Base64 = require('js-base64').Base64;
@@ -2263,6 +2265,44 @@
handleTabs(name) {
this.active = name
},
processModelHisOne(pId,taskIds) {
return new Promise((resolve, reject) => {
processModelHisOne({
pid: pId,
taskId: taskIds
}).then(res => {
if (res) {
resolve(res)
} else {
reject()
}
}).catch(e => {
reject(e)
})
})
},
// 在线编辑
handleOnLineEdit(){
this.isSubmit = true
this.processModelHisOne(this.pId,this.taskIds)
.then(res => {
console.log(res)
if(res){
const editFileInfo = res
const showName = this.$store.getters.userInfo.userName + editFileInfo.taskInfo
const editFilePath = editFileInfo.editFilePath.split("/")
editFileInfo.filePath = editFilePath[0]+'/'+editFilePath[1]+'/'
editFileInfo.fileName = editFilePath[2]
editFileInfo.userName = this.$store.getters.userInfo.userName
const nowTime = new Date().getTime()
window.open('http://127.0.0.1:8080/editor?oldFileName=' + showName + '&fileType=' + 'docx' + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName+'&userId='+editFileInfo.userId+'&userName='+editFileInfo.userName)
this.isSubmit = false
}
}).catch(e => {
console.log(e)
// this.$message.warning('文件不存在,预览失败')
})
},
//保存
handleSave() {
this.form.country=this.countryArr;
@@ -455,8 +455,10 @@
v-show="verifySarStandard"
show-save
show-submit
show-edit
:saveLoading="saveLoading"
:submitLoading="isSubmit"
@onLineEdit="handleOnLineEdit"
@save="handleSave"
@submit="handleSubmit"
>
@@ -804,7 +806,7 @@
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail} from "api/process";
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail,processModelHisOne} from "api/process";
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
let Base64 = require('js-base64').Base64;
@@ -2262,6 +2264,44 @@
handleTabs(name) {
this.active = name
},
processModelHisOne(pId,taskIds) {
return new Promise((resolve, reject) => {
processModelHisOne({
pid: pId,
taskId: taskIds
}).then(res => {
if (res) {
resolve(res)
} else {
reject()
}
}).catch(e => {
reject(e)
})
})
},
// 在线编辑
handleOnLineEdit(){
this.isSubmit = true
this.processModelHisOne(this.pId,this.taskIds)
.then(res => {
console.log(res)
if(res){
const editFileInfo = res
const showName = this.$store.getters.userInfo.userName + editFileInfo.taskInfo
const editFilePath = editFileInfo.editFilePath.split("/")
editFileInfo.filePath = editFilePath[0]+'/'+editFilePath[1]+'/'
editFileInfo.fileName = editFilePath[2]
editFileInfo.userName = this.$store.getters.userInfo.userName
const nowTime = new Date().getTime()
window.open('http://127.0.0.1:8080/editor?oldFileName=' + showName + '&fileType=' + 'docx' + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName+'&userId='+editFileInfo.userId+'&userName='+editFileInfo.userName)
this.isSubmit = false
}
}).catch(e => {
console.log(e)
// this.$message.warning('文件不存在,预览失败')
})
},
//保存
handleSave() {
this.form.country=this.countryArr;