1
lzhe
2025-08-16 2787475ce84a48c957f567cd363f4e22ac314c64
src/views/wel/todolist.vue
@@ -281,8 +281,18 @@
        };
    },
    watch: {
        // 'form.category'() {
        //     const category = func.toInt(this.form.category);
        //     this.$refs.crud.option.column.filter(item => {
        //         if (item.prop === 'path') {
        //             item.rules[0].required = category === 1;
        //         }
        //         if (item.prop === 'isOpen') {
        //             item.disabled = category === 2;
        //         }
        //     });
        // },
        'formApprove.approve'(val) {
            console.log('>>>>>>>>>>')
            if (val === 'Y' && ["approveTask", 'seniorApproveTask'].includes(this.row.taskDefinitionKey)) {// 高师
                this.optionApprove.column[1].disabled = true;
                this.formApprove.assignee = ''; // 如果是通过,则默认指派给自己
@@ -290,15 +300,13 @@
               this.setAssignee(this.row);
            } else if(val === 'N') {
                this.formApprove.assignee = ''
                console.log('>>>>>>>>>>')
                this.optionApprove.column[1].disabled = true;
                // this.formApprove.assignee = row.variables.senior;
            }
            // if(val === 'Y' && ['confirmIsUseableTask'].includes(this.row.taskDefinitionKey) && this.row.variables.isProcessEditionSame=='N') {
            //     this.optionApprove.column[2].display = true; // 显示工序版次
            // } else {
            //     this.optionApprove.column[2].display = false; // 隐藏工序版次
            // }
            if(val === 'Y' && ['confirmIsUseableTask'].includes(this.row.taskDefinitionKey) && this.row.variables.isProcessEditionSame=='N') {
                this.optionApprove.column[2].display = true; // 显示工序版次
            } else {
                this.optionApprove.column[2].display = false; // 隐藏工序版次
            }
            
        },
    },