d9c7bff7 by liangyifan

退回

1 parent e8685d48
...@@ -41,7 +41,7 @@ export function selectBdcdy (data) { ...@@ -41,7 +41,7 @@ export function selectBdcdy (data) {
41 // 待办箱列表查询接口 41 // 待办箱列表查询接口
42 export function searchTaskToDo (data) { 42 export function searchTaskToDo (data) {
43 return request({ 43 return request({
44 url: '/business/todoBox/searchTaskToDo', 44 url: '/workBox/search/searchTaskToDo',
45 method: 'post', 45 method: 'post',
46 data 46 data
47 }) 47 })
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
5 <!-- 表单部分 --> 5 <!-- 表单部分 -->
6 <div class="from-clues-header"> 6 <div class="from-clues-header">
7 <el-form ref="queryForm" label-width="120px"> 7 <el-form ref="queryForm" label-width="120px">
8 <div v-for='(item,index) in tableData' :key='item.bdcdyid'> 8 <div>
9 <el-form-item label="不动产单元号:"> 9 <!-- <el-form-item label="不动产单元号:">
10 <p>{{item.bdcdyh}}</p> 10 <p>{{item.bdcdyh}}</p>
11 </el-form-item> 11 </el-form-item> -->
12 <lb-table :column="columns" border :heightNum="390" :pagination="false" heightNumSetting 12 <lb-table :column="columns" border :heightNum="390" :pagination="false" heightNumSetting
13 :data="item.nodeList"> 13 :data="tableData">
14 </lb-table> 14 </lb-table>
15 <el-form-item label="退回意见:"> 15 <el-form-item label="退回意见:">
16 <el-input class="textArea" type="textarea" v-model="outstepopinion"></el-input> 16 <el-input class="textArea" type="textarea" v-model="outstepopinion"></el-input>
...@@ -29,7 +29,9 @@ export default { ...@@ -29,7 +29,9 @@ export default {
29 }, 29 },
30 props: { 30 props: {
31 value: { type: Boolean, default: false }, 31 value: { type: Boolean, default: false },
32 queryForm:{type:Object} 32 queryForm:{type:Object},
33 taskId:{type:String},
34 bsmBusiness:{type:String}
33 }, 35 },
34 data () { 36 data () {
35 const columns=[ 37 const columns=[
...@@ -56,11 +58,11 @@ export default { ...@@ -56,11 +58,11 @@ export default {
56 }, 58 },
57 }, 59 },
58 { 60 {
59 prop: "fromstepname", 61 prop: "activityName",
60 label: "退回环节名称", 62 label: "退回环节名称",
61 }, 63 },
62 { 64 {
63 prop: "username", 65 prop: "assignee",
64 label: "办理人", 66 label: "办理人",
65 }, 67 },
66 68
...@@ -75,6 +77,8 @@ export default { ...@@ -75,6 +77,8 @@ export default {
75 bsmSlsq:"", 77 bsmSlsq:"",
76 backNodeList:[], 78 backNodeList:[],
77 }, 79 },
80 sumbitList:{},
81 taskid:"",
78 } 82 }
79 }, 83 },
80 mounted(){ 84 mounted(){
...@@ -84,7 +88,7 @@ export default { ...@@ -84,7 +88,7 @@ export default {
84 }, 88 },
85 methods: { 89 methods: {
86 tablelistFn(){ 90 tablelistFn(){
87 getTaskBackNode(this.queryForm).then(res => { 91 getTaskBackNode({taskId:this.taskId}).then(res => {
88 if (res.code === 200) { 92 if (res.code === 200) {
89 this.tableData = res.result 93 this.tableData = res.result
90 } 94 }
...@@ -92,6 +96,7 @@ export default { ...@@ -92,6 +96,7 @@ export default {
92 }, 96 },
93 radioClick(scope){ 97 radioClick(scope){
94 this.taskid = scope.taskid 98 this.taskid = scope.taskid
99 this.sumbitList = scope
95 100
96 }, 101 },
97 submitForm () { 102 submitForm () {
...@@ -99,14 +104,14 @@ export default { ...@@ -99,14 +104,14 @@ export default {
99 this.$message.error('请至少选择一条数据'); 104 this.$message.error('请至少选择一条数据');
100 return 105 return
101 } 106 }
102 this.list.backNodeList = this.tableData.map((item,index)=>{ 107 this.list.backNodeList.push({
103 return { 108 id:this.taskId,
104 id:item.id,
105 taskid:this.taskid, 109 taskid:this.taskid,
106 processInstanceId:item.processInstanceId, 110 processInstanceId:this.sumbitList.processInstanceId,
111 bsmBusiness:this.bsmBusiness,
107 outstepopinion:this.outstepopinion 112 outstepopinion:this.outstepopinion
108 }
109 }) 113 })
114 console.log(this.list,44)
110 sendBackTask(this.list).then(res => { 115 sendBackTask(this.list).then(res => {
111 console.log(res,11) 116 console.log(res,11)
112 if (res.code === 200) { 117 if (res.code === 200) {
...@@ -114,6 +119,8 @@ export default { ...@@ -114,6 +119,8 @@ export default {
114 window.open("about:blank", "_self"); 119 window.open("about:blank", "_self");
115 window.close(); 120 window.close();
116 this.$emit('input', false) 121 this.$emit('input', false)
122 }else{
123 this.$message.error(res.message)
117 } 124 }
118 }) 125 })
119 }, 126 },
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
50 </div> 50 </div>
51 </div> 51 </div>
52 <zc v-model="zcDialog" :queryForm='queryForm' /> 52 <zc v-model="zcDialog" :queryForm='queryForm' />
53 <thDialog ref='thdialogRef' v-model="thflag" :queryForm='queryForm' /> 53 <thDialog ref='thdialogRef' v-model="thflag" :taskId='taskId' :bsmBusiness='bsmBusiness' :queryForm='queryForm' />
54 </div> 54 </div>
55 </template> 55 </template>
56 <script> 56 <script>
...@@ -139,6 +139,7 @@ export default { ...@@ -139,6 +139,7 @@ export default {
139 editItem: '', 139 editItem: '',
140 issplitScreen: false, 140 issplitScreen: false,
141 unitData: [], 141 unitData: [],
142 taskId:"",
142 }; 143 };
143 }, 144 },
144 watch: { 145 watch: {
...@@ -173,12 +174,16 @@ export default { ...@@ -173,12 +174,16 @@ export default {
173 this.unitData = res.result 174 this.unitData = res.result
174 setTimeout(() => { 175 setTimeout(() => {
175 that.$refs.slxx[0].list(that.unitData[0].bsmSldy) 176 that.$refs.slxx[0].list(that.unitData[0].bsmSldy)
177 this.taskId = that.unitData[0].taskId
178 this.bsmBusiness = that.unitData[0].bsmBusiness
176 }, 300); 179 }, 300);
177 } 180 }
178 }) 181 })
179 }, 182 },
180 // 左侧列表点击调用接口 183 // 左侧列表点击调用接口
181 unitClick (item) { 184 unitClick (item) {
185 this.taskId = item.taskId
186 this.bsmBusiness = item.bsmBusiness
182 this.$nextTick(() => { 187 this.$nextTick(() => {
183 this.$refs.slxx[0].list(item.bsmSldy) 188 this.$refs.slxx[0].list(item.bsmSldy)
184 }) 189 })
......