7acbb05e by 蔡俊立

终止任务

1 parent a10cb771
......@@ -184,3 +184,11 @@ export function getSlsqBdcqzList (params) {
params
})
}
// 终止任务
export function stopTask (data) {
return request({
url: '/business/workFlow/stopTask',
method: 'post',
data
})
}
......
<template>
<div class="from-clues">
<div class="invalid-title">
<i class="el-icon-question invalid-icon"></i>
<div class="invalid-body">您是否确定终止该业务办理?</div>
</div>
<div class="invalid-reson">终止原因:</div>
<el-input v-model="stopMessage" placeholder="请输入终止原因" type="textarea" :rows="4"></el-input>
</div>
</template>
<script>
import { stopTask } from "@/api/fqsq.js"
export default {
props: {
formData: {
type: Object,
default: {}
}
},
data () {
return {
stopMessage: ''
}
},
methods: {
childFn () {
stopTask({
bsmSlsq: this.formData.bsmSlsq,
bestepid: this.formData.bestepid,
stopMessage: this.stopMessage
}).then(res => {
this.$message.success('终止成功')
setTimeout(() => {
window.opener = null;
window.open("about:blank", "_self");
window.close();
this.$emit('input', false)
}, 1000);
})
},
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
.invalid-title {
display: flex;
align-content: center;
.invalid-icon {
color: rgb(254, 148, 0);
font-size: 34px;
margin-right: 10px;
}
.invalid-body {
line-height: 40px;
margin-bottom: 10px;
}
}
.invalid-reson {
margin-bottom: 10px;
}
.dialog-footer {
margin-top: 10px;
display: flex;
justify-content: flex-end;
}
</style>
......@@ -45,7 +45,7 @@ export default {
getBackNode () {
getTaskBackNode(this.formData).then(res => {
if (res.code == 200) {
// this.dataList = res.result
this.dataList = res.result
}
})
}
......
......@@ -18,6 +18,7 @@
</el-form-item>
</el-form>
</div>
<div class="aaaa">{{bdcqz.bdcqzlx == '1' ? '不动产权证书' : '不动产权证明'}}</div>
<div class="zsyl-box">
<div class="zsyl-left">
<div class="zsyl-title">
......@@ -219,4 +220,10 @@ export default {
background: rgb(251,249,229);
}
}
.aaaa{
background: #FAFBE5;
text-align: center;
padding-top: 10px;
font-size: 20px;
}
</style>
......
......@@ -343,6 +343,25 @@ export default {
}
});
break;
case "stop": //终止按钮
this.$popup({
title: "终止",
editItem: "workflow/components/stop",
height: "330px",
width: '30%',
formData: {
bsmSlsq: this.bsmSlsq,
bestepid: this.bestepid,
},
btnShow: true,
cancel: () => {
console.log("取消回调");
},
confirm: () => {
console.log("确认回调");
},
})
break;
case "signout":
window.close();
break;
......