8cd577ea by 任超

style:退回

1 parent 5aef2321
...@@ -98,11 +98,7 @@ export default { ...@@ -98,11 +98,7 @@ export default {
98 } 98 }
99 } 99 }
100 </script> 100 </script>
101 <style scoped> 101 <style scoped lang="scss" >
102 #app {
103 overflow: hidden;
104 }
105
106 .ls-mask { 102 .ls-mask {
107 width: 100%; 103 width: 100%;
108 height: 100%; 104 height: 100%;
...@@ -152,10 +148,13 @@ export default { ...@@ -152,10 +148,13 @@ export default {
152 display: flex; 148 display: flex;
153 justify-content: center; 149 justify-content: center;
154 width: 100%; 150 width: 100%;
155 box-shadow: 0px 0px 0.5px 0px;
156 position: absolute; 151 position: absolute;
152 border-top: 1px solid $borderColor;
157 bottom: 0; 153 bottom: 0;
158 background: #ffffff; 154 background: #ffffff;
155 border-bottom-left-radius: 5px;
156 border-bottom-right-radius: 5px;
157 overflow: hidden;
159 } 158 }
160 159
161 160
......
1 <template> 1 <template>
2 <dialogBox title="退回" @submitForm="submitForm" saveButton="确认退回" width="80%" @closeDialog="closeDialog" 2 <div class="from-clues">
3 v-model="value"> 3 <!-- 表单部分 -->
4 <div class="from-clues"> 4 <div class="from-clues-header">
5 <!-- 表单部分 --> 5 <el-form ref="queryForm" label-width="90px">
6 <div class="from-clues-header"> 6 <ul style="margin-bottom:15px">
7 <el-form ref="queryForm" label-width="120px"> 7 <li v-for="(item,index) in list" class="listDetail">
8 <div> 8 <p class="icon">
9 <lb-table :column="columns" border :heightNum="390" :pagination="false" heightNumSetting :data="tableData"> 9 <i class="el-icon-circle-check"></i>
10 </lb-table> 10 </p>
11 <el-form-item label="退回意见:"> 11 <p>{{item.title}}</p>
12 <el-input class="textArea" type="textarea" v-model="outstepopinion"></el-input> 12 <p>{{item.value}}</p>
13 </el-form-item> 13 </li>
14 </div> 14 </ul>
15 </el-form> 15 <el-form-item label="退回意见:">
16 </div> 16 <el-input class="textArea" type="textarea" v-model="outstepopinion"></el-input>
17 </el-form-item>
18 </el-form>
17 </div> 19 </div>
18 </dialogBox> 20 </div>
19 </template> 21 </template>
20 22
21 <script> 23 <script>
22 import { getTaskBackNode, sendBackTask } from "@/api/fqsq.js" 24 import { getTaskBackNode, sendBackTask } from "@/api/fqsq.js"
23 export default { 25 export default {
24 components: {
25 },
26 props: { 26 props: {
27 value: { type: Boolean, default: false },
28 queryForm: { type: Object },
29 taskId: { type: String },
30 bsmBusiness: { type: String }
31 }, 27 },
32 data () { 28 data () {
33 const columns = [
34 {
35 label: "",
36 width: "36px",
37 render: (h, scope) => {
38 return (
39 <div class="orgColumn">
40 <el-radio v-model={this.radioVal} label={scope.row.taskid} onChange={() => {
41 this.radioClick(scope.row);
42 }}>
43 {" "}
44 &ensp;
45 </el-radio>
46 </div>
47 );
48 },
49 },
50 {
51 prop: "activityName",
52 label: "退回环节名称",
53 },
54 {
55 prop: "assignee",
56 label: "办理人",
57 },
58 ];
59 return { 29 return {
60 columns, 30 list: [
61 radioVal: "", 31 {
62 outstepopinion: "", 32 title: "初审",
63 tableData: [], 33 value: '',
64 list: { 34 },
65 bsmSlsq: "", 35 {
66 backNodeList: [], 36 title: "复审",
67 }, 37 value: '',
68 sumbitList: {}, 38 },
69 activityId: "", 39 {
70 } 40 title: "录入",
71 }, 41 value: '',
72 mounted () { 42 }
73 if (this.$route.query.bsmSlsq) { 43 ],
74 this.list.bsmSlsq = this.$route.query.bsmSlsq 44 outstepopinion: ''
75 } 45 }
76 }, 46 },
77 methods: { 47 methods: {
78 tablelistFn () {
79 getTaskBackNode({ bsmBusiness: this.bsmBusiness }).then(res => {
80 if (res.code === 200) {
81 this.tableData = res.result
82 }
83 })
84 },
85 radioClick (scope) {
86 this.activityId = scope.activityId
87 this.sumbitList = scope
88
89 },
90 submitForm () {
91 if (this.activityId == undefined) {
92 this.$message.error('请至少选择一条数据');
93 return
94 }
95 this.list.backNodeList.push({
96 id: this.taskId,
97 taskid: this.activityId,
98 processInstanceId: this.sumbitList.processInstanceId,
99 bsmBusiness: this.bsmBusiness,
100 outstepopinion: this.outstepopinion
101 })
102 sendBackTask(this.list).then(res => {
103 if (res.code === 200) {
104 this.$message.success('退回成功')
105 setTimeout(() => {
106 window.opener = null;
107 window.open("about:blank", "_self");
108 window.close();
109 this.$emit('input', false)
110 }, 1000);
111
112 } else {
113 this.$message.error(res.message)
114 }
115 })
116 },
117 closeDialog () {
118 this.$emit("input", false);
119 },
120
121 } 48 }
122 } 49 }
123 </script> 50 </script>
124 <style scoped lang="scss"> 51 <style scoped lang="scss">
125 @import "~@/styles/mixin.scss"; 52 @import "~@/styles/mixin.scss";
126 53
54 .listDetail {
55 display: flex;
56 align-items: center;
57 width: 100%;
58
59 p {
60 line-height: 30px;
61 height: 30px;
62 @include flex-center;
63 flex: 1;
64 width: 100%;
65 border: 1px solid rgb(233, 235, 237);
66 margin-top: -1px;
67 margin-left: -1px;
68 }
69
70 .icon {
71 flex: 0 0 60px;
72 }
73 }
74
127 .textArea { 75 .textArea {
128 /deep/.el-textarea__inner { 76 /deep/.el-textarea__inner {
129 min-height: 90px !important; 77 min-height: 90px !important;
......
...@@ -280,6 +280,20 @@ export default { ...@@ -280,6 +280,20 @@ export default {
280 }) 280 })
281 break; 281 break;
282 case "back": //退回按钮 282 case "back": //退回按钮
283 this.$popup({
284 title: "退回",
285 editItem: "workflow/components/th",
286 height: "330px",
287 width: '30%',
288 formData: {},
289 btnShow: true,
290 cancel: () => {
291 console.log("取消回调");
292 },
293 confirm: () => {
294 console.log("确认回调");
295 },
296 })
283 break; 297 break;
284 case "transfer": //转件按钮 298 case "transfer": //转件按钮
285 getNextLinkInfo({ 299 getNextLinkInfo({
......