085bfe00 by 杨威

按钮展示判断

1 parent 5d813b73
...@@ -192,8 +192,10 @@ export default { ...@@ -192,8 +192,10 @@ export default {
192 // 退回 192 // 退回
193 rollback(data){ 193 rollback(data){
194 rollbackProcess(data).then((res) => { 194 rollbackProcess(data).then((res) => {
195 this.sprList = res[0].masterActors; 195 this.$message.success("操作成功!")
196 this.spr = res[0].masterActors[0].accountNo; 196 this.$router.push({
197 path: '/dbx'
198 })
197 }); 199 });
198 }, 200 },
199 //终止 201 //终止
......
...@@ -198,8 +198,8 @@ ...@@ -198,8 +198,8 @@
198 <el-button type="primary" @click="registerCall">登记调用</el-button> 198 <el-button type="primary" @click="registerCall">登记调用</el-button>
199 </div> 199 </div>
200 <div class="sh-btn"> 200 <div class="sh-btn">
201 <el-button type="primary" @click="lczz" v-if="workFlowData.properties.phase == 'modify'">终止</el-button> 201 <el-button type="primary" @click="lczz" v-show="workFlowphase == 'modify'">终止</el-button>
202 <el-button type="primary" @click="thdz" v-if="workFlowData.rollbackDetails.length>0">退回</el-button> 202 <el-button type="primary" @click="thzd" v-show="rollbackDetails.length>0">退回</el-button>
203 <el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button> 203 <el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button>
204 <el-button type="primary" @click="shdz" v-if="workFlowState">审核</el-button> 204 <el-button type="primary" @click="shdz" v-if="workFlowState">审核</el-button>
205 </div> 205 </div>
...@@ -293,11 +293,11 @@ ...@@ -293,11 +293,11 @@
293 value: '', 293 value: '',
294 ytTitleRowspan:1, //用途的单元格垂直合并数量 294 ytTitleRowspan:1, //用途的单元格垂直合并数量
295 mainBoxWidth: 0, 295 mainBoxWidth: 0,
296
297 rules:[], 296 rules:[],
298
299 workFlowState:false, 297 workFlowState:false,
300 workFlowData:{} 298 workFlowData:{},
299 workFlowphase:'',
300 rollbackDetails:[]
301 } 301 }
302 }, 302 },
303 created() { 303 created() {
...@@ -327,6 +327,9 @@ ...@@ -327,6 +327,9 @@
327 "workitemInstanceId": this.$route.query.workitemInstanceId 327 "workitemInstanceId": this.$route.query.workitemInstanceId
328 } 328 }
329 getActivityDetail(params).then(res => { 329 getActivityDetail(params).then(res => {
330 this.workFlowData= res;
331 this.workFlowphase = res.properties.phase;
332 this.rollbackDetails = res.rollbackDetails;
330 this.workFlowState = res.workitemInstance.apps.some(function(item) { 333 this.workFlowState = res.workitemInstance.apps.some(function(item) {
331 return item == 'shenpibiao'; 334 return item == 'shenpibiao';
332 }); 335 });
......
...@@ -369,8 +369,8 @@ ...@@ -369,8 +369,8 @@
369 </div> 369 </div>
370 </div> 370 </div>
371 <div class="sh-btn"> 371 <div class="sh-btn">
372 <el-button type="primary" @click="lczz" v-if="workFlowData.properties.phase == 'modify'">终止</el-button> 372 <el-button type="primary" @click="lczz" v-show="workFlowphase == 'modify'">终止</el-button>
373 <el-button type="primary" @click="thzd" v-if="workFlowData.rollbackDetails.length>0">退回</el-button> 373 <el-button type="primary" @click="thzd" v-show="rollbackDetails.length>0">退回</el-button>
374 <el-button type="primary" @click="submitZDxx" :disabled="disabled" v-if="!workFlowState">提交</el-button> 374 <el-button type="primary" @click="submitZDxx" :disabled="disabled" v-if="!workFlowState">提交</el-button>
375 <el-button type="primary" @click="shzd" v-if="workFlowState">审核</el-button> 375 <el-button type="primary" @click="shzd" v-if="workFlowState">审核</el-button>
376 </div> 376 </div>
...@@ -484,7 +484,9 @@ ...@@ -484,7 +484,9 @@
484 SYQLXID: "", 484 SYQLXID: "",
485 }, 485 },
486 workFlowState:false, 486 workFlowState:false,
487 workFlowData:{} 487 workFlowData:{},
488 workFlowphase:'',
489 rollbackDetails:[]
488 }; 490 };
489 }, 491 },
490 mixins: [geoUtils], 492 mixins: [geoUtils],
...@@ -507,6 +509,8 @@ ...@@ -507,6 +509,8 @@
507 } 509 }
508 getActivityDetail(params).then(res => { 510 getActivityDetail(params).then(res => {
509 this.workFlowData= res; 511 this.workFlowData= res;
512 this.workFlowphase = res.properties.phase;
513 this.rollbackDetails = res.rollbackDetails;
510 this.workFlowState = res.workitemInstance.apps.some(function(item) { 514 this.workFlowState = res.workitemInstance.apps.some(function(item) {
511 return item == 'shenpibiao'; 515 return item == 'shenpibiao';
512 }); 516 });
......
...@@ -279,8 +279,8 @@ ...@@ -279,8 +279,8 @@
279 </div> 279 </div>
280 </div> 280 </div>
281 <div class="sh-btn"> 281 <div class="sh-btn">
282 <el-button type="primary" @click="lczz" v-if="workFlowData.properties.phase == 'modify'">终止</el-button> 282 <el-button type="primary" @click="lczz" v-show="workFlowphase == 'modify'">终止</el-button>
283 <el-button type="primary" @click="thzrz" v-if="workFlowData.rollbackDetails.length>0">退回</el-button> 283 <el-button type="primary" @click="thzd" v-show="rollbackDetails.length>0">退回</el-button>
284 <el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button> 284 <el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button>
285 <el-button type="primary" @click="shzrz" v-if="workFlowState">审核</el-button> 285 <el-button type="primary" @click="shzrz" v-if="workFlowState">审核</el-button>
286 </div> 286 </div>
...@@ -417,7 +417,9 @@ ...@@ -417,7 +417,9 @@
417 rules:[], 417 rules:[],
418 mainBoxWidth:0, 418 mainBoxWidth:0,
419 workFlowState:false, 419 workFlowState:false,
420 workFlowData:{} 420 workFlowData:{},
421 workFlowphase:'',
422 rollbackDetails:[]
421 } 423 }
422 }, 424 },
423 mixins:[geoUtils], 425 mixins:[geoUtils],
...@@ -430,6 +432,9 @@ ...@@ -430,6 +432,9 @@
430 "workitemInstanceId": this.$route.query.workitemInstanceId 432 "workitemInstanceId": this.$route.query.workitemInstanceId
431 } 433 }
432 getActivityDetail(params).then(res => { 434 getActivityDetail(params).then(res => {
435 this.workFlowData= res;
436 this.workFlowphase = res.properties.phase;
437 this.rollbackDetails = res.rollbackDetails;
433 this.workFlowState = res.workitemInstance.apps.some(function(item) { 438 this.workFlowState = res.workitemInstance.apps.some(function(item) {
434 return item == 'shenpibiao'; 439 return item == 'shenpibiao';
435 }); 440 });
......