d9c7bff7 by liangyifan

退回

1 parent e8685d48
......@@ -41,7 +41,7 @@ export function selectBdcdy (data) {
// 待办箱列表查询接口
export function searchTaskToDo (data) {
return request({
url: '/business/todoBox/searchTaskToDo',
url: '/workBox/search/searchTaskToDo',
method: 'post',
data
})
......
......@@ -5,12 +5,12 @@
<!-- 表单部分 -->
<div class="from-clues-header">
<el-form ref="queryForm" label-width="120px">
<div v-for='(item,index) in tableData' :key='item.bdcdyid'>
<el-form-item label="不动产单元号:">
<div>
<!-- <el-form-item label="不动产单元号:">
<p>{{item.bdcdyh}}</p>
</el-form-item>
</el-form-item> -->
<lb-table :column="columns" border :heightNum="390" :pagination="false" heightNumSetting
:data="item.nodeList">
:data="tableData">
</lb-table>
<el-form-item label="退回意见:">
<el-input class="textArea" type="textarea" v-model="outstepopinion"></el-input>
......@@ -29,7 +29,9 @@ export default {
},
props: {
value: { type: Boolean, default: false },
queryForm:{type:Object}
queryForm:{type:Object},
taskId:{type:String},
bsmBusiness:{type:String}
},
data () {
const columns=[
......@@ -56,11 +58,11 @@ export default {
},
},
{
prop: "fromstepname",
prop: "activityName",
label: "退回环节名称",
},
{
prop: "username",
prop: "assignee",
label: "办理人",
},
......@@ -75,6 +77,8 @@ export default {
bsmSlsq:"",
backNodeList:[],
},
sumbitList:{},
taskid:"",
}
},
mounted(){
......@@ -84,7 +88,7 @@ export default {
},
methods: {
tablelistFn(){
getTaskBackNode(this.queryForm).then(res => {
getTaskBackNode({taskId:this.taskId}).then(res => {
if (res.code === 200) {
this.tableData = res.result
}
......@@ -92,6 +96,7 @@ export default {
},
radioClick(scope){
this.taskid = scope.taskid
this.sumbitList = scope
},
submitForm () {
......@@ -99,14 +104,14 @@ export default {
this.$message.error('请至少选择一条数据');
return
}
this.list.backNodeList = this.tableData.map((item,index)=>{
return {
id:item.id,
this.list.backNodeList.push({
id:this.taskId,
taskid:this.taskid,
processInstanceId:item.processInstanceId,
processInstanceId:this.sumbitList.processInstanceId,
bsmBusiness:this.bsmBusiness,
outstepopinion:this.outstepopinion
}
})
console.log(this.list,44)
sendBackTask(this.list).then(res => {
console.log(res,11)
if (res.code === 200) {
......@@ -114,6 +119,8 @@ export default {
window.open("about:blank", "_self");
window.close();
this.$emit('input', false)
}else{
this.$message.error(res.message)
}
})
},
......
......@@ -50,7 +50,7 @@
</div>
</div>
<zc v-model="zcDialog" :queryForm='queryForm' />
<thDialog ref='thdialogRef' v-model="thflag" :queryForm='queryForm' />
<thDialog ref='thdialogRef' v-model="thflag" :taskId='taskId' :bsmBusiness='bsmBusiness' :queryForm='queryForm' />
</div>
</template>
<script>
......@@ -139,6 +139,7 @@ export default {
editItem: '',
issplitScreen: false,
unitData: [],
taskId:"",
};
},
watch: {
......@@ -173,12 +174,16 @@ export default {
this.unitData = res.result
setTimeout(() => {
that.$refs.slxx[0].list(that.unitData[0].bsmSldy)
this.taskId = that.unitData[0].taskId
this.bsmBusiness = that.unitData[0].bsmBusiness
}, 300);
}
})
},
// 左侧列表点击调用接口
unitClick (item) {
this.taskId = item.taskId
this.bsmBusiness = item.bsmBusiness
this.$nextTick(() => {
this.$refs.slxx[0].list(item.bsmSldy)
})
......