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"
3 v-model="value">
4 <div class="from-clues"> 2 <div class="from-clues">
5 <!-- 表单部分 --> 3 <!-- 表单部分 -->
6 <div class="from-clues-header"> 4 <div class="from-clues-header">
7 <el-form ref="queryForm" label-width="120px"> 5 <el-form ref="queryForm" label-width="90px">
8 <div> 6 <ul style="margin-bottom:15px">
9 <lb-table :column="columns" border :heightNum="390" :pagination="false" heightNumSetting :data="tableData"> 7 <li v-for="(item,index) in list" class="listDetail">
10 </lb-table> 8 <p class="icon">
9 <i class="el-icon-circle-check"></i>
10 </p>
11 <p>{{item.title}}</p>
12 <p>{{item.value}}</p>
13 </li>
14 </ul>
11 <el-form-item label="退回意见:"> 15 <el-form-item label="退回意见:">
12 <el-input class="textArea" type="textarea" v-model="outstepopinion"></el-input> 16 <el-input class="textArea" type="textarea" v-model="outstepopinion"></el-input>
13 </el-form-item> 17 </el-form-item>
14 </div>
15 </el-form> 18 </el-form>
16 </div> 19 </div>
17 </div> 20 </div>
18 </dialogBox>
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 = [ 29 return {
30 list: [
34 { 31 {
35 label: "", 32 title: "初审",
36 width: "36px", 33 value: '',
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 }, 34 },
50 { 35 {
51 prop: "activityName", 36 title: "复审",
52 label: "退回环节名称", 37 value: '',
53 }, 38 },
54 { 39 {
55 prop: "assignee", 40 title: "录入",
56 label: "办理人", 41 value: '',
57 },
58 ];
59 return {
60 columns,
61 radioVal: "",
62 outstepopinion: "",
63 tableData: [],
64 list: {
65 bsmSlsq: "",
66 backNodeList: [],
67 },
68 sumbitList: {},
69 activityId: "",
70 } 42 }
71 }, 43 ],
72 mounted () { 44 outstepopinion: ''
73 if (this.$route.query.bsmSlsq) {
74 this.list.bsmSlsq = this.$route.query.bsmSlsq
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 } 48 }
83 }) 49 }
84 }, 50 </script>
85 radioClick (scope) { 51 <style scoped lang="scss">
86 this.activityId = scope.activityId 52 @import "~@/styles/mixin.scss";
87 this.sumbitList = scope
88 53
89 }, 54 .listDetail {
90 submitForm () { 55 display: flex;
91 if (this.activityId == undefined) { 56 align-items: center;
92 this.$message.error('请至少选择一条数据'); 57 width: 100%;
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 58
112 } else { 59 p {
113 this.$message.error(res.message) 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;
114 } 68 }
115 })
116 },
117 closeDialog () {
118 this.$emit("input", false);
119 },
120 69
70 .icon {
71 flex: 0 0 60px;
121 } 72 }
122 } 73 }
123 </script>
124 <style scoped lang="scss">
125 @import "~@/styles/mixin.scss";
126 74
127 .textArea { 75 .textArea {
128 /deep/.el-textarea__inner { 76 /deep/.el-textarea__inner {
......
...@@ -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({
......