Browse Source

解决我的代办回显bug

dev
long 2 years ago
parent
commit
7f27365208
  1. 17
      src/views/activiti/todoManage.vue

17
src/views/activiti/todoManage.vue

@ -160,7 +160,7 @@
@passTask="()=>passTask(lcModa.processData)"
@backTask="()=>backTask(lcModa.processData)" :procInstId="lcModa.procInstId"
:pictureId="lcModa.pictureId"
@close="lcModa.visible=false,lcModa.disabled = false"></component>
@close="close"></component>
</a-modal>
<!-- 审批操作 -->
<a-modal :title="modalTaskTitle" v-model="modalTaskVisible" :mask-closable="false" width="60%" style="top: 120px">
@ -516,7 +516,11 @@
let res3 = await this.getAction('/hy/processMaterialsAllot/getCurrent', param)
if (res3.success) {
if (res3.result) {
console.log(res.username, res3.result.relateId)
this.lcModa.routePlanName = res3.result.name
this.lcModa.isPlanType = false
this.lcModa.isSourceCapital = false
this.lcModa.disabled = true
this.lcModa.hieg = true
if (param.username == res3.result.relateId) {
if (res3.result.name == '生产供应站' || res3.result.name == '物装公司' || res3.result.name == '采购员') {
this.lcModa.isPlanType = true
@ -540,6 +544,9 @@
let res1 = await this.getAction('/hy/processMaterialsAllot/getCurrent', param)
if (res1.success) {
if (res1.result) {
this.lcModa.isPlanType = false
this.lcModa.isSourceCapital = false
this.lcModa.disabled = true
if (param.username == res1.result.relateId) {
if (res1.result.name == '采购员') {
this.lcModa.isPlanType = true
@ -547,6 +554,7 @@
this.lcModa.disabled = false
}
}
}
}
}
@ -694,10 +702,15 @@
}
})
},
close(){
this.lcModa.visible=false,
lcModa.disabled = false
},
afterSub() {
this.$message.success('保存成功')
this.lcModa.visible = false
this.lcModa.disabled = false
this.$refs['ruleForm'].resetFields()
},
backAll() {
if (this.selectCount <= 0) {

Loading…
Cancel
Save