b044f47a by xiaomiao

显示当前流程

1 parent 3d72b588
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
12 <li 12 <li
13 @click="operation(item)" 13 @click="operation(item)"
14 v-for="(item, index) in leftButtonList" 14 v-for="(item, index) in leftButtonList"
15 :key="index"> 15 :key="index"
16 >
16 <svg-icon class="icon" :icon-class="item.icon" /> 17 <svg-icon class="icon" :icon-class="item.icon" />
17 <span class="iconName">{{ item.name }}</span> 18 <span class="iconName">{{ item.name }}</span>
18 </li> 19 </li>
...@@ -21,7 +22,8 @@ ...@@ -21,7 +22,8 @@
21 <li 22 <li
22 @click="operation(item)" 23 @click="operation(item)"
23 v-for="(item, index) in rightButtonList" 24 v-for="(item, index) in rightButtonList"
24 :key="index"> 25 :key="index"
26 >
25 <svg-icon class="icon" :icon-class="item.icon" /> 27 <svg-icon class="icon" :icon-class="item.icon" />
26 <span class="iconName">{{ item.name }}</span> 28 <span class="iconName">{{ item.name }}</span>
27 </li> 29 </li>
...@@ -43,18 +45,25 @@ ...@@ -43,18 +45,25 @@
43 </div> 45 </div>
44 <!-- 表单内容区域 --> 46 <!-- 表单内容区域 -->
45 <div class="rightContainer"> 47 <div class="rightContainer">
48 <div class="count">
49 当前流程所在环节:
50 <span>{{ this.zbhj }}</span>
51 </div>
46 <el-tabs v-model="tabName" :before-leave="beforeLeave"> 52 <el-tabs v-model="tabName" :before-leave="beforeLeave">
47 <el-tab-pane 53 <el-tab-pane
48 :label="item.name" 54 :label="item.name"
49 :name="item.value" 55 :name="item.value"
50 v-for="item in tabList" 56 v-for="item in tabList"
51 :key="item.value"> 57 :key="item.value"
58 >
52 </el-tab-pane> 59 </el-tab-pane>
53 </el-tabs> 60 </el-tabs>
61
54 <component 62 <component
55 :key="fresh" 63 :key="fresh"
56 :is="componentTag" 64 :is="componentTag"
57 v-bind="currentSelectProps" /> 65 v-bind="currentSelectProps"
66 />
58 </div> 67 </div>
59 </div> 68 </div>
60 </div> 69 </div>
...@@ -63,26 +72,26 @@ ...@@ -63,26 +72,26 @@
63 </div> 72 </div>
64 </template> 73 </template>
65 <style scoped lang="scss"> 74 <style scoped lang="scss">
66 @import "~@/styles/mixin.scss"; 75 @import "~@/styles/mixin.scss";
67 @import "./workFrame.scss"; 76 @import "./workFrame.scss";
68 </style> 77 </style>
69 <script> 78 <script>
70 import WorkFlow from "./mixin/index"; 79 import WorkFlow from "./mixin/index";
71 import { getForm } from "./flowform"; 80 import { getForm } from "./flowform";
72 import { getStepFormInfo } from "@/api/workFlow.js"; 81 import { getStepFormInfo } from "@/api/workFlow.js";
73 import NoticeBar from "@/components/NoticeBar/index"; 82 import NoticeBar from "@/components/NoticeBar/index";
74 // import ProcessViewer from "./components/processViewer.vue"; 83 // import ProcessViewer from "./components/processViewer.vue";
75 84
76 import ordinaryMenu from "./components/leftmenu/ordinaryMenu.vue"; 85 import ordinaryMenu from "./components/leftmenu/ordinaryMenu.vue";
77 import qllxDailog from "./djbBook/components/qllxDailog"; 86 import qllxDailog from "./djbBook/components/qllxDailog";
78 import selectBdc from "@/views/ywbl/ywsq/selectBdc.vue"; 87 import selectBdc from "@/views/ywbl/ywsq/selectBdc.vue";
79 import { loadTreeData, getNode } from "./components/leftmenu/djbFrameData.js"; 88 import { loadTreeData, getNode } from "./components/leftmenu/djbFrameData.js";
80 // 登记簿数据信息 89 // 登记簿数据信息
81 import { addRepairRecord } from "@/api/djbRepair.js"; 90 import { addRepairRecord } from "@/api/djbRepair.js";
82 // 获取权利类型数组 91 // 获取权利类型数组
83 92
84 import { getBdcqljqtsx } from "@/api/djbDetail.js"; 93 import { getBdcqljqtsx } from "@/api/djbDetail.js";
85 export default { 94 export default {
86 components: { 95 components: {
87 selectBdc, 96 selectBdc,
88 NoticeBar, 97 NoticeBar,
...@@ -90,11 +99,13 @@ ...@@ -90,11 +99,13 @@
90 qllxDailog, 99 qllxDailog,
91 }, 100 },
92 mixins: [WorkFlow], 101 mixins: [WorkFlow],
93 data () { 102 data() {
94 return { 103 return {
95 bsmSlsq: this.$route.query.bsmSlsq, 104 bsmSlsq: this.$route.query.bsmSlsq,
96 //当前流程所在环节 105 //当前流程所在环节
97 bestepid: this.$route.query.bestepid, 106 bestepid: this.$route.query.bestepid,
107 //当前流程所在环节
108 zbhj: this.$route.query.zbhj,
98 //设置那个表单选中 109 //设置那个表单选中
99 tabName: "", 110 tabName: "",
100 isEdit: true, 111 isEdit: true,
...@@ -114,17 +125,17 @@ ...@@ -114,17 +125,17 @@
114 _beforeUnload_time: "", 125 _beforeUnload_time: "",
115 treedata: {}, 126 treedata: {},
116 tabdata: [], 127 tabdata: [],
117 bsmRepair:"", 128 bsmRepair: "",
118 defaultNode: {}, 129 defaultNode: {},
119 clxxForm: "", 130 clxxForm: "",
120 //材料信息选择卡索引 131 //材料信息选择卡索引
121 clxxIndex: "", 132 clxxIndex: "",
122 //材料信息选项卡对象 133 //材料信息选项卡对象
123 clxxTab: {}, 134 clxxTab: {},
124 ableOperation:false 135 ableOperation: false,
125 }; 136 };
126 }, 137 },
127 mounted () { 138 mounted() {
128 // this.getleftMenubl() 139 // this.getleftMenubl()
129 }, 140 },
130 141
...@@ -134,17 +145,17 @@ ...@@ -134,17 +145,17 @@
134 * @param {*} qllx 145 * @param {*} qllx
135 * @author: renchao 146 * @author: renchao
136 */ 147 */
137 stepForm (qllx) { 148 stepForm(qllx) {
138 this.oneSelectProps.qllx = qllx; 149 this.oneSelectProps.qllx = qllx;
139 if (this.$refs.Menu.supplementarylist.length) { 150 if (this.$refs.Menu.supplementarylist.length) {
140 getStepFormInfo(this.oneSelectProps).then((res) => { 151 getStepFormInfo(this.oneSelectProps).then((res) => {
141 this.$nextTick(function () { 152 this.$nextTick(function () {
142 this.tabList = res.result; 153 this.tabList = res.result;
143 this.tabName = this.tabList[0].value; 154 this.tabName = this.tabList[0].value;
144 this.ableOperation=this.tabList[0].ableOperation 155 this.ableOperation = this.tabList[0].ableOperation;
145 this.getFromRouter(this.tabName); 156 this.getFromRouter(this.tabName);
146 157
147 if(this.tabList.length!=8){ 158 if (this.tabList.length != 8) {
148 let that = this; 159 let that = this;
149 this.tabList.forEach(function (item, index) { 160 this.tabList.forEach(function (item, index) {
150 if (item.value == "clxx") { 161 if (item.value == "clxx") {
...@@ -152,7 +163,7 @@ ...@@ -152,7 +163,7 @@
152 that.clxxForm = getForm(item.value, that.$route.query.sqywbm); 163 that.clxxForm = getForm(item.value, that.$route.query.sqywbm);
153 that.clxxTab = item; 164 that.clxxTab = item;
154 } 165 }
155 }) 166 });
156 } 167 }
157 }); 168 });
158 }); 169 });
...@@ -164,8 +175,8 @@ ...@@ -164,8 +175,8 @@
164 * @param {*} val 175 * @param {*} val
165 * @author: renchao 176 * @author: renchao
166 */ 177 */
167 getCurrentSelectProps (val) { 178 getCurrentSelectProps(val) {
168 this.bsmRepair= val.bsmRepair 179 this.bsmRepair = val.bsmRepair;
169 if (val.bdcdyid) { 180 if (val.bdcdyid) {
170 this.oneSelectProps = val; 181 this.oneSelectProps = val;
171 } 182 }
...@@ -185,7 +196,7 @@ ...@@ -185,7 +196,7 @@
185 * @description: 获取渲染登记簿列表 196 * @description: 获取渲染登记簿列表
186 * @author: renchao 197 * @author: renchao
187 */ 198 */
188 getdjblist () { 199 getdjblist() {
189 getBdcqljqtsx({ 200 getBdcqljqtsx({
190 bdcdyid: this.currentSelectProps.bdcdyid, 201 bdcdyid: this.currentSelectProps.bdcdyid,
191 bdcdyh: this.currentSelectProps.bdcdyh, 202 bdcdyh: this.currentSelectProps.bdcdyh,
...@@ -219,7 +230,7 @@ ...@@ -219,7 +230,7 @@
219 * @param {*} activeName 230 * @param {*} activeName
220 * @author: renchao 231 * @author: renchao
221 */ 232 */
222 beforeLeave (activeName) { 233 beforeLeave(activeName) {
223 if (activeName && activeName != 0) this.getFromRouter(activeName); 234 if (activeName && activeName != 0) this.getFromRouter(activeName);
224 }, 235 },
225 //切换选项卡内容组件 236 //切换选项卡内容组件
...@@ -228,7 +239,7 @@ ...@@ -228,7 +239,7 @@
228 * @param {*} tabname 239 * @param {*} tabname
229 * @author: renchao 240 * @author: renchao
230 */ 241 */
231 getFromRouter (tabname) { 242 getFromRouter(tabname) {
232 this.componentTag = getForm(tabname); 243 this.componentTag = getForm(tabname);
233 }, 244 },
234 // closefp () { 245 // closefp () {
...@@ -245,7 +256,7 @@ ...@@ -245,7 +256,7 @@
245 * @param {*} del 256 * @param {*} del
246 * @author: renchao 257 * @author: renchao
247 */ 258 */
248 addRepairRecord (row, del) { 259 addRepairRecord(row, del) {
249 let from = { 260 let from = {
250 bsmQlxx: "", 261 bsmQlxx: "",
251 bsmSlsq: this.bsmSlsq, 262 bsmSlsq: this.bsmSlsq,
...@@ -282,7 +293,7 @@ ...@@ -282,7 +293,7 @@
282 }) 293 })
283 .catch((res) => { 294 .catch((res) => {
284 console.log("错", res); 295 console.log("错", res);
285 }) 296 });
286 }, 297 },
287 // openDialog () { 298 // openDialog () {
288 // this.$store.dispatch('user/refreshPage', false) 299 // this.$store.dispatch('user/refreshPage', false)
...@@ -296,7 +307,22 @@ ...@@ -296,7 +307,22 @@
296 307
297 // this.$popupDialog(title, "ywbl/ywsq/selectBdc", { 'djywbm': this.$route.query.sqywbm, 'isJump': true, 'sqywInfo': data }, "80%", true) 308 // this.$popupDialog(title, "ywbl/ywsq/selectBdc", { 'djywbm': this.$route.query.sqywbm, 'isJump': true, 'sqywInfo': data }, "80%", true)
298 // } 309 // }
299 } 310 },
300 }; 311 };
301 </script> 312 </script>
302 <style scoped lang="scss"></style> 313 <style scoped lang="scss">
314 .rightContainer {
315 position: relative;
316 }
317 .count {
318 font-size: 14px;
319 position: absolute;
320 right: 25px;
321 top: 12px;
322 height: 30px;
323 span {
324 font-weight: 600;
325 color: #3498db;
326 }
327 }
328 </style>
......
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
35 </div> 35 </div>
36 <!-- 表单内容区域 --> 36 <!-- 表单内容区域 -->
37 <div class="rightContainer"> 37 <div class="rightContainer">
38 <div class="count">
39 当前流程所在环节:
40 <span>{{ this.zbhj }}</span>
41 </div>
38 <el-tabs v-model="tabName" :before-leave="beforeLeave"> 42 <el-tabs v-model="tabName" :before-leave="beforeLeave">
39 <el-tab-pane :label="item.name" :name="item.value" v-for="item in tabList" :key="item.value"> 43 <el-tab-pane :label="item.name" :name="item.value" v-for="item in tabList" :key="item.value">
40 </el-tab-pane> 44 </el-tab-pane>
...@@ -84,6 +88,8 @@ ...@@ -84,6 +88,8 @@
84 bsmSlsq: this.$route.query.bsmSlsq, 88 bsmSlsq: this.$route.query.bsmSlsq,
85 //当前流程所在环节 89 //当前流程所在环节
86 bestepid: this.$route.query.bestepid, 90 bestepid: this.$route.query.bestepid,
91 //当前流程所在环节
92 zbhj: this.$route.query.zbhj,
87 //设置那个表单选中 93 //设置那个表单选中
88 tabName: "", 94 tabName: "",
89 //设置那个表单选择 95 //设置那个表单选择
...@@ -201,4 +207,19 @@ ...@@ -201,4 +207,19 @@
201 } 207 }
202 } 208 }
203 </script> 209 </script>
204 210 <style scoped lang="scss">
211 .rightContainer {
212 position: relative;
213 }
214 .count {
215 font-size: 14px;
216 position: absolute;
217 right: 25px;
218 top: 12px;
219 height: 30px;
220 span {
221 font-weight: 600;
222 color: #3498db;
223 }
224 }
225 </style>
......