cd41322a by 蔡俊立

退回

1 parent 9185df97
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
6 <ul style="margin-bottom:15px"> 6 <ul style="margin-bottom:15px">
7 <li v-for="(item,index) in dataList" class="listDetail" :key="index"> 7 <li v-for="(item,index) in dataList" class="listDetail" :key="index">
8 <p class="icon"> 8 <p class="icon">
9 <el-radio v-model="radio"></el-radio> 9 <el-radio v-model="selectActivity" :label="item.activityId" @change="changeSelectItem(item)"></el-radio>
10 </p> 10 </p>
11 <p>{{item.activityName}}</p> 11 <p>{{item.activityName}}</p>
12 <p v-for="(child,childIndex) in item.userInfos" :key="childIndex">{{child.name}}</p> 12 <p v-for="(child,childIndex) in item.userInfos" :key="childIndex">{{child.name}}</p>
...@@ -31,8 +31,10 @@ export default { ...@@ -31,8 +31,10 @@ export default {
31 }, 31 },
32 data () { 32 data () {
33 return { 33 return {
34 selectActivity: '',
34 dataList: [], 35 dataList: [],
35 outstepopinion: '' 36 outstepopinion: '',
37 selectItem: {}
36 } 38 }
37 }, 39 },
38 created () { 40 created () {
...@@ -40,12 +42,31 @@ export default { ...@@ -40,12 +42,31 @@ export default {
40 }, 42 },
41 methods: { 43 methods: {
42 childFn () { 44 childFn () {
43 console.log(1111); 45 this.selectItem.outstepopinion = this.outstepopinion;
46 sendBackTask({
47 bsmSlsq: this.formData.bsmSlsq,
48 backNodeList: [this.selectItem]
49 }).then(res => {
50 this.$message.success('退回成功')
51 setTimeout(() => {
52 window.opener = null;
53 window.open("about:blank", "_self");
54 window.close();
55 this.$emit('input', false)
56 }, 1000);
57 })
58 },
59 changeSelectItem(item){
60 this.selectItem = item
44 }, 61 },
45 getBackNode () { 62 getBackNode () {
46 getTaskBackNode(this.formData).then(res => { 63 getTaskBackNode(this.formData).then(res => {
47 if (res.code == 200) { 64 if (res.code == 200) {
48 this.dataList = res.result 65 this.dataList = res.result
66 if(res.result){
67 this.selectActivity = res.result[0].activityId
68 this.selectItem = res.result[0]
69 }
49 } 70 }
50 }) 71 })
51 } 72 }
...@@ -81,4 +102,7 @@ export default { ...@@ -81,4 +102,7 @@ export default {
81 min-height: 90px !important; 102 min-height: 90px !important;
82 } 103 }
83 } 104 }
105 /deep/.el-radio .el-radio__label {
106 display: none;
107 }
84 </style> 108 </style>
......
...@@ -318,7 +318,7 @@ export default { ...@@ -318,7 +318,7 @@ export default {
318 this.$popup({ 318 this.$popup({
319 title: "退回", 319 title: "退回",
320 editItem: "workflow/components/th", 320 editItem: "workflow/components/th",
321 height: "330px", 321 height: "400px",
322 width: '30%', 322 width: '30%',
323 formData: { 323 formData: {
324 bsmSlsq: this.bsmSlsq, 324 bsmSlsq: this.bsmSlsq,
......