申请
Showing
2 changed files
with
84 additions
and
43 deletions
| ... | @@ -17,6 +17,14 @@ export function getTaskBackNode (params) { | ... | @@ -17,6 +17,14 @@ export function getTaskBackNode (params) { |
| 17 | params: params | 17 | params: params |
| 18 | }) | 18 | }) |
| 19 | } | 19 | } |
| 20 | // 退回确认接口 | ||
| 21 | export function sendBackTask (data) { | ||
| 22 | return request({ | ||
| 23 | url: '/business/workFlow/sendBackTask', | ||
| 24 | method: 'post', | ||
| 25 | data | ||
| 26 | }) | ||
| 27 | } | ||
| 20 | // 获取左侧列表 | 28 | // 获取左侧列表 |
| 21 | export function leftMenu (data) { | 29 | export function leftMenu (data) { |
| 22 | return request({ | 30 | return request({ | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <dialogBox title="转出" @submitForm="submitForm" :saveloding="saveloding" saveButton="确认转出" width="80%" | 2 | <dialogBox title="退回" @submitForm="submitForm" :saveloding="saveloding" saveButton="确认退回" width="80%" |
| 3 | @closeDialog="closeDialog" v-model="value"> | 3 | @closeDialog="closeDialog" v-model="value"> |
| 4 | <div class="from-clues"> | 4 | <div class="from-clues"> |
| 5 | <!-- 表单部分 --> | 5 | <!-- 表单部分 --> |
| 6 | <div class="from-clues-header"> | 6 | <div class="from-clues-header"> |
| 7 | <div v-for='(item,index) in arr' :key='item.bdcdyid'> | 7 | <el-form ref="queryForm" label-width="120px"> |
| 8 | <p>不动产单元号:{{item.bdcdyh}}</p> | 8 | <div v-for='(item,index) in tableData' :key='item.bdcdyid'> |
| 9 | <el-form-item label="不动产单元号:"> | ||
| 10 | <p>{{item.bdcdyh}}</p> | ||
| 11 | </el-form-item> | ||
| 9 | <lb-table :column="columns" border :heightNum="390" :pagination="false" heightNumSetting | 12 | <lb-table :column="columns" border :heightNum="390" :pagination="false" heightNumSetting |
| 10 | :data="item.nodeList"> | 13 | :data="item.nodeList"> |
| 11 | </lb-table> | 14 | </lb-table> |
| 15 | <el-form-item label="退回意见:"> | ||
| 16 | <el-input class="textArea" type="textarea" v-model="outstepopinion"></el-input> | ||
| 17 | </el-form-item> | ||
| 12 | </div> | 18 | </div> |
| 13 | |||
| 14 | <el-form :model="queryForm" ref="queryForm" label-width="120px"> | ||
| 15 | <el-form-item label="退回意见:"> | ||
| 16 | <el-input type="textarea" v-model="queryForm.shyj"></el-input> | ||
| 17 | </el-form-item> | ||
| 18 | </el-form> | 19 | </el-form> |
| 19 | </div> | 20 | </div> |
| 20 | </div> | 21 | </div> |
| ... | @@ -22,7 +23,7 @@ | ... | @@ -22,7 +23,7 @@ |
| 22 | </template> | 23 | </template> |
| 23 | 24 | ||
| 24 | <script> | 25 | <script> |
| 25 | import { getTaskBackNode } from "@/api/fqsq.js" | 26 | import { getTaskBackNode,sendBackTask } from "@/api/fqsq.js" |
| 26 | export default { | 27 | export default { |
| 27 | components: { | 28 | components: { |
| 28 | }, | 29 | }, |
| ... | @@ -31,15 +32,28 @@ export default { | ... | @@ -31,15 +32,28 @@ export default { |
| 31 | queryForm:{type:Object} | 32 | queryForm:{type:Object} |
| 32 | }, | 33 | }, |
| 33 | data () { | 34 | data () { |
| 34 | return { | 35 | const columns=[ |
| 35 | saveloding:false, | 36 | // { |
| 36 | columns:[ | 37 | // label: '', |
| 38 | // align: 'center', | ||
| 39 | // render: (h, scope) => { | ||
| 40 | // return <el-radio label={scope.row.taskid} v-model={this.radioVal} >{''}</el-radio> | ||
| 41 | // } | ||
| 42 | // }, | ||
| 37 | { | 43 | { |
| 38 | label: '', | 44 | label: "", |
| 39 | align: 'center', | 45 | width: "36px", |
| 40 | render: (h, scope) => { | 46 | render: (h, scope) => { |
| 41 | return <el-radio label={scope.row.taskid} v-model={scope.row.radio}>{''}</el-radio> | 47 | return ( |
| 42 | } | 48 | <div class="orgColumn"> |
| 49 | <el-radio v-model={this.radioVal} label={scope.row.taskid} onChange={() => {this.radioClick(scope.row); | ||
| 50 | }}> | ||
| 51 | {" "} | ||
| 52 |   | ||
| 53 | </el-radio> | ||
| 54 | </div> | ||
| 55 | ); | ||
| 56 | }, | ||
| 43 | }, | 57 | }, |
| 44 | { | 58 | { |
| 45 | prop: "fromstepname", | 59 | prop: "fromstepname", |
| ... | @@ -50,52 +64,71 @@ export default { | ... | @@ -50,52 +64,71 @@ export default { |
| 50 | label: "办理人", | 64 | label: "办理人", |
| 51 | }, | 65 | }, |
| 52 | 66 | ||
| 53 | ], | 67 | ]; |
| 54 | arr:[{ | 68 | return { |
| 55 | bdcdyh:'123123123', | 69 | saveloding:false, |
| 56 | bdcdyid:'456789', | 70 | columns, |
| 57 | nodeList:[{ | 71 | radioVal:"", |
| 58 | fromstepname:'录入', | 72 | outstepopinion:"", |
| 59 | username:'超级管理员', | 73 | tableData:[], |
| 60 | radio:"", | 74 | list:{ |
| 61 | },{ | 75 | bsmSlsq:"", |
| 62 | fromstepname:'测试', | 76 | backNodeList:[], |
| 63 | username:'超级管理员', | 77 | }, |
| 64 | radio:"", | ||
| 65 | }] | ||
| 66 | },{ | ||
| 67 | bdcdyh:'222222', | ||
| 68 | bdcdyid:'333333', | ||
| 69 | nodeList:[{ | ||
| 70 | fromstepname:'扫描', | ||
| 71 | username:'超级管理员', | ||
| 72 | radio:"" | ||
| 73 | }] | ||
| 74 | }], | ||
| 75 | tableData:[], | ||
| 76 | radio:3 | ||
| 77 | } | 78 | } |
| 78 | }, | 79 | }, |
| 79 | mounted(){ | 80 | mounted(){ |
| 81 | if(this.$route.query.bsmSlsq){ | ||
| 82 | this.list.bsmSlsq = this.$route.query.bsmSlsq | ||
| 83 | } | ||
| 80 | }, | 84 | }, |
| 81 | methods: { | 85 | methods: { |
| 82 | tablelistFn(){ | 86 | tablelistFn(){ |
| 83 | getTaskBackNode(this.queryForm).then(res => { | 87 | getTaskBackNode(this.queryForm).then(res => { |
| 84 | if (res.code === 200) { | 88 | if (res.code === 200) { |
| 85 | console.log(res) | 89 | this.tableData = res.result |
| 86 | } | 90 | } |
| 87 | }) | 91 | }) |
| 88 | }, | 92 | }, |
| 93 | radioClick(scope){ | ||
| 94 | this.taskid = scope.taskid | ||
| 95 | |||
| 96 | }, | ||
| 89 | submitForm () { | 97 | submitForm () { |
| 90 | 98 | if(this.taskid==undefined){ | |
| 99 | this.$message.error('请至少选择一条数据'); | ||
| 100 | return | ||
| 101 | } | ||
| 102 | this.list.backNodeList = this.tableData.map((item,index)=>{ | ||
| 103 | return { | ||
| 104 | id:item.id, | ||
| 105 | taskid:this.taskid, | ||
| 106 | processInstanceId:item.processInstanceId, | ||
| 107 | outstepopinion:this.outstepopinion | ||
| 108 | } | ||
| 109 | }) | ||
| 110 | sendBackTask(this.list).then(res => { | ||
| 111 | console.log(res,11) | ||
| 112 | if (res.code === 200) { | ||
| 113 | window.opener = null; | ||
| 114 | window.open("about:blank", "_self"); | ||
| 115 | window.close(); | ||
| 116 | this.$emit('input', false) | ||
| 117 | } | ||
| 118 | }) | ||
| 91 | }, | 119 | }, |
| 92 | closeDialog () { | 120 | closeDialog () { |
| 93 | this.$emit("input", false); | 121 | this.$emit("input", false); |
| 94 | }, | 122 | }, |
| 123 | |||
| 95 | } | 124 | } |
| 96 | } | 125 | } |
| 97 | </script> | 126 | </script> |
| 98 | <style scoped lang="scss"> | 127 | <style scoped lang="scss"> |
| 99 | @import "~@/styles/mixin.scss"; | 128 | @import "~@/styles/mixin.scss"; |
| 100 | 129 | .textArea { | |
| 130 | /deep/.el-textarea__inner { | ||
| 131 | min-height: 90px !important; | ||
| 132 | } | ||
| 133 | } | ||
| 101 | </style> | 134 | </style> | ... | ... |
-
Please register or sign in to post a comment