c3614e79 by 田浩浩

修改单元对应的表单信息

1 parent 9185df97
...@@ -86,6 +86,14 @@ export function getNextLinkInfo (params) { ...@@ -86,6 +86,14 @@ export function getNextLinkInfo (params) {
86 }); 86 });
87 } 87 }
88 88
89 //获取单元对应的环节表单信息
90 export function getStepFormInfo(data){
91 return request({
92 url: '/business/workFlow/getStepFormInfo',
93 method: 'post',
94 data
95 });
96 }
89 // 环节扩展信息 97 // 环节扩展信息
90 export function stepExpandInfo (data) { 98 export function stepExpandInfo (data) {
91 return request({ 99 return request({
......
...@@ -77,6 +77,7 @@ import { ...@@ -77,6 +77,7 @@ import {
77 record, 77 record,
78 getNextLinkInfo, 78 getNextLinkInfo,
79 completeTask, 79 completeTask,
80 getStepFormInfo,
80 } from "@/api/fqsq.js"; 81 } from "@/api/fqsq.js";
81 import { mapGetters } from "vuex" 82 import { mapGetters } from "vuex"
82 import { deleteBdcdy } from "@/api/ywbl.js"; 83 import { deleteBdcdy } from "@/api/ywbl.js";
...@@ -200,19 +201,19 @@ export default { ...@@ -200,19 +201,19 @@ export default {
200 if (res.code === 200) { 201 if (res.code === 200) {
201 this.leftButtonList = res.result.button; 202 this.leftButtonList = res.result.button;
202 this.rightButtonList = res.result.operation; 203 this.rightButtonList = res.result.operation;
203 this.tabList = res.result.form; 204 //this.tabList = res.result.form;
204 //默认选择第一个选项卡内容 205 //默认选择第一个选项卡内容
205 this.tabName = res.result.form[0].value; 206 // this.tabName = res.result.form[0].value;
206 let that = this; 207 // let that = this;
207 this.tabList.forEach(function (item, index) { 208 // this.tabList.forEach(function (item, index) {
208 if (item.value == "clxx") { 209 // if (item.value == "clxx") {
209 that.clxxIndex = index; 210 // that.clxxIndex = index;
210 that.clxxForm = getForm(item.value, that.$route.query.sqywbm); 211 // that.clxxForm = getForm(item.value, that.$route.query.sqywbm);
211 that.clxxTab = item; 212 // that.clxxTab = item;
212 } 213 // }
213 }); 214 // });
214 //默认加载第一个选项卡的组件内容 215 // //默认加载第一个选项卡的组件内容
215 this.getFromRouter(res.result.form[0].value); 216 // this.getFromRouter(res.result.form[0].value);
216 } 217 }
217 }); 218 });
218 }, 219 },
...@@ -394,15 +395,34 @@ export default { ...@@ -394,15 +395,34 @@ export default {
394 if (res.code === 200) { 395 if (res.code === 200) {
395 this.unitData = res.result; 396 this.unitData = res.result;
396 this.currentSelectProps = res.result[0]; 397 this.currentSelectProps = res.result[0];
398 this.unitClick(0);
397 } 399 }
398 }); 400 });
399 }, 401 },
400 //申请单元点击事件 402 //申请单元点击事件
401 unitClick (index) { 403 unitClick (index) {
402 if (this.currentSelectProps.bsmSldy != this.unitData[index].bsmSldy) {
403 this.currentSelectProps = this.unitData[index]; 404 this.currentSelectProps = this.unitData[index];
404 this.fresh += 1; 405 getStepFormInfo(this.unitData[index]).then((res) => {
406 if (res.code === 200) {
407 //获取单元对应的所有表单信息
408 this.tabList = res.result;
409 //默认加载第一个表单信息
410 this.tabName = res.result[0].value;
411 //处理分屏材料信息
412 let that = this;
413 this.tabList.forEach(function (item, index) {
414 if (item.value == "clxx") {
415 that.clxxIndex = index;
416 that.clxxForm = getForm(item.value, that.$route.query.sqywbm);
417 that.clxxTab = item;
418 }
419 });
405 } 420 }
421 });
422 // if (this.currentSelectProps.bsmSldy != this.unitData[index].bsmSldy) {
423 // this.currentSelectProps = this.unitData[index];
424 // this.fresh += 1;
425 // }
406 }, 426 },
407 //表单选项卡事件 427 //表单选项卡事件
408 beforeLeave (activeName, oldActiveName) { 428 beforeLeave (activeName, oldActiveName) {
......