7acbb05e by 蔡俊立

终止任务

1 parent a10cb771
...@@ -184,3 +184,11 @@ export function getSlsqBdcqzList (params) { ...@@ -184,3 +184,11 @@ export function getSlsqBdcqzList (params) {
184 params 184 params
185 }) 185 })
186 } 186 }
187 // 终止任务
188 export function stopTask (data) {
189 return request({
190 url: '/business/workFlow/stopTask',
191 method: 'post',
192 data
193 })
194 }
......
1 <template>
2 <div class="from-clues">
3 <div class="invalid-title">
4 <i class="el-icon-question invalid-icon"></i>
5 <div class="invalid-body">您是否确定终止该业务办理?</div>
6 </div>
7 <div class="invalid-reson">终止原因:</div>
8 <el-input v-model="stopMessage" placeholder="请输入终止原因" type="textarea" :rows="4"></el-input>
9 </div>
10 </template>
11
12 <script>
13 import { stopTask } from "@/api/fqsq.js"
14 export default {
15 props: {
16 formData: {
17 type: Object,
18 default: {}
19 }
20 },
21 data () {
22 return {
23 stopMessage: ''
24 }
25 },
26 methods: {
27 childFn () {
28 stopTask({
29 bsmSlsq: this.formData.bsmSlsq,
30 bestepid: this.formData.bestepid,
31 stopMessage: this.stopMessage
32 }).then(res => {
33 this.$message.success('终止成功')
34 setTimeout(() => {
35 window.opener = null;
36 window.open("about:blank", "_self");
37 window.close();
38 this.$emit('input', false)
39 }, 1000);
40 })
41 },
42 }
43 }
44 </script>
45 <style scoped lang="scss">
46 @import "~@/styles/mixin.scss";
47 .invalid-title {
48 display: flex;
49 align-content: center;
50
51 .invalid-icon {
52 color: rgb(254, 148, 0);
53 font-size: 34px;
54 margin-right: 10px;
55 }
56
57 .invalid-body {
58 line-height: 40px;
59 margin-bottom: 10px;
60 }
61 }
62
63 .invalid-reson {
64 margin-bottom: 10px;
65 }
66
67 .dialog-footer {
68 margin-top: 10px;
69 display: flex;
70 justify-content: flex-end;
71 }
72
73 </style>
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
45 getBackNode () { 45 getBackNode () {
46 getTaskBackNode(this.formData).then(res => { 46 getTaskBackNode(this.formData).then(res => {
47 if (res.code == 200) { 47 if (res.code == 200) {
48 // this.dataList = res.result 48 this.dataList = res.result
49 } 49 }
50 }) 50 })
51 } 51 }
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
18 </el-form-item> 18 </el-form-item>
19 </el-form> 19 </el-form>
20 </div> 20 </div>
21 <div class="aaaa">{{bdcqz.bdcqzlx == '1' ? '不动产权证书' : '不动产权证明'}}</div>
21 <div class="zsyl-box"> 22 <div class="zsyl-box">
22 <div class="zsyl-left"> 23 <div class="zsyl-left">
23 <div class="zsyl-title"> 24 <div class="zsyl-title">
...@@ -219,4 +220,10 @@ export default { ...@@ -219,4 +220,10 @@ export default {
219 background: rgb(251,249,229); 220 background: rgb(251,249,229);
220 } 221 }
221 } 222 }
223 .aaaa{
224 background: #FAFBE5;
225 text-align: center;
226 padding-top: 10px;
227 font-size: 20px;
228 }
222 </style> 229 </style>
......
...@@ -343,6 +343,25 @@ export default { ...@@ -343,6 +343,25 @@ export default {
343 } 343 }
344 }); 344 });
345 break; 345 break;
346 case "stop": //终止按钮
347 this.$popup({
348 title: "终止",
349 editItem: "workflow/components/stop",
350 height: "330px",
351 width: '30%',
352 formData: {
353 bsmSlsq: this.bsmSlsq,
354 bestepid: this.bestepid,
355 },
356 btnShow: true,
357 cancel: () => {
358 console.log("取消回调");
359 },
360 confirm: () => {
361 console.log("确认回调");
362 },
363 })
364 break;
346 case "signout": 365 case "signout":
347 window.close(); 366 window.close();
348 break; 367 break;
......