| | |
| | | const that = this |
| | | if (that.eventData.processList) { |
| | | const processList = JSON.parse(that.eventData.processList) |
| | | console.log(processList) |
| | | return processList[0].NodeList ? processList[0].NodeList.map((item, index) => { |
| | | if (item.NodeType && item.NodeType === 2) { |
| | | if (index === 0) { |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && dict[dictApprovalSiteType].length > 0)"> |
| | | <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && wecomApprovalVisible)"> |
| | | <el-select |
| | | v-model="form.approvalUserId" |
| | | filterable |
| | |
| | | // 角色级别:普通用户 |
| | | roleLevelOrdinary: constant.ROLE_LEVEL_ORDINARY, |
| | | // 角色级别: 总经理 |
| | | roleLevelGenerl: constant.ROLE_LEVEL_GENERAL |
| | | roleLevelGenerl: constant.ROLE_LEVEL_GENERAL, |
| | | // 企微审核判断 |
| | | wecomApprovalVisible: false |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(['user']) |
| | | }, |
| | | created() { |
| | | this.getUsers() |
| | | this.getApprovalUsers() |
| | | const that = this |
| | | that.getUsers() |
| | | that.getApprovalUsers() |
| | | that.$on('dictReady', () => { |
| | | const dictData = { ...that.dict } |
| | | const filterData = dictData[constant.APPROVAL_SITE_TYPE].filter(item => item.value.toLowerCase() === 'wecom') |
| | | if (filterData.length > 0) { |
| | | that.wecomApprovalVisible = true |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | // 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
| | |
| | | this.form.userId = this.user.id |
| | | } |
| | | |
| | | if (this.dict[this.dictApprovalSiteType].length > 0) { |
| | | if (this.wecomApprovalVisible) { |
| | | this.form.approvalUserId = 0 |
| | | } |
| | | }, |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && dict[dictApprovalSiteType].length > 0)"> |
| | | <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && wecomApprovalVisible)"> |
| | | <el-select v-model="form.approvalUserId" clearable filterable placeholder="请选择" style="width: 370px;" :disabled="form.approvalStatus == dictCardApproveStatusAgree || form.approvalStatus == dictCardApproveStatusRefuse || form.wecomSpNo !== null"> |
| | | <el-option |
| | | v-for="item in approvalUsers" |
| | |
| | | // 角色级别:普通用户 |
| | | roleLevelOrdinary: constant.ROLE_LEVEL_ORDINARY, |
| | | // 角色级别: 总经理 |
| | | roleLevelGenerl: constant.ROLE_LEVEL_GENERAL } |
| | | roleLevelGenerl: constant.ROLE_LEVEL_GENERAL, |
| | | // 企微审核判断 |
| | | wecomApprovalVisible: false |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters([ |
| | |
| | | // } |
| | | // } |
| | | // }, |
| | | created() { |
| | | const that = this |
| | | that.$on('dictReady', () => { |
| | | const dictData = { ...that.dict } |
| | | const filterData = dictData[constant.APPROVAL_SITE_TYPE].filter(item => item.value.toLowerCase() === 'wecom') |
| | | if (filterData.length > 0) { |
| | | that.wecomApprovalVisible = true |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | // 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
| | | [CRUD.HOOK.beforeRefresh]() { |
| | |
| | | this.form.userId = this.user.id |
| | | } |
| | | |
| | | if (this.dict[this.dictApprovalSiteType].length > 0) { |
| | | if (this.wecomApprovalVisible) { |
| | | this.form.approvalUserId = 0 |
| | | } |
| | | }, |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && dict[dictApprovalSiteType].length > 0)"> |
| | | <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && wecomApprovalVisible)"> |
| | | <el-select |
| | | v-model="form.approvalUserId" |
| | | filterable |
| | |
| | | // 角色级别:普通用户 |
| | | roleLevelOrdinary: constant.ROLE_LEVEL_ORDINARY, |
| | | // 角色级别: 总经理 |
| | | roleLevelGenerl: constant.ROLE_LEVEL_GENERAL |
| | | roleLevelGenerl: constant.ROLE_LEVEL_GENERAL, |
| | | // 企微审核判断 |
| | | wecomApprovalVisible: false |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(['user']) |
| | | }, |
| | | created() { |
| | | this.getUsers() |
| | | this.getApprovalUsers() |
| | | const that = this |
| | | that.getUsers() |
| | | that.getApprovalUsers() |
| | | that.$on('dictReady', () => { |
| | | const dictData = { ...that.dict } |
| | | const filterData = dictData[constant.APPROVAL_SITE_TYPE].filter(item => item.value.toLowerCase() === 'wecom') |
| | | if (filterData.length > 0) { |
| | | that.wecomApprovalVisible = true |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | // 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
| | |
| | | this.form.userId = this.user.id |
| | | } |
| | | |
| | | if (this.dict[this.dictApprovalSiteType].length > 0) { |
| | | if (this.wecomApprovalVisible) { |
| | | this.form.approvalUserId = 0 |
| | | } |
| | | }, |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && dict[dictApprovalSiteType].length > 0)"> |
| | | <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && wecomApprovalVisible)"> |
| | | <el-select v-model="form.approvalUserId" filterable clearable placeholder="请选择" style="width: 340px;" :disabled="form.approvalStatus == dictAppRovalStatusPassed || form.approvalStatus == dictAppRovalStatusReturn || form.wecomSpNo !== null"> |
| | | <el-option |
| | | v-for="item in approvalUsers" |
| | |
| | | successLoading: false, |
| | | userRolesLevelMin: null, |
| | | // 角色级别: 总经理 |
| | | roleLevelGenerl: constant.ROLE_LEVEL_GENERAL |
| | | roleLevelGenerl: constant.ROLE_LEVEL_GENERAL, |
| | | // 企微审核判断 |
| | | wecomApprovalVisible: false |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | ]) |
| | | }, |
| | | created() { |
| | | this.getUsers() |
| | | this.getApprovalUsers() |
| | | const that = this |
| | | that.getUsers() |
| | | that.getApprovalUsers() |
| | | // this.getUserTimes() |
| | | that.$on('dictReady', () => { |
| | | const dictData = { ...that.dict } |
| | | const filterData = dictData[constant.APPROVAL_SITE_TYPE].filter(item => item.value.toLowerCase() === 'wecom') |
| | | if (filterData.length > 0) { |
| | | that.wecomApprovalVisible = true |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | // 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
| | |
| | | // 表单赋值 |
| | | this.form.userId = this.user.id |
| | | } |
| | | if (this.dict[this.dictApprovalSiteType].length > 0) { |
| | | if (this.wecomApprovalVisible) { |
| | | this.form.approvalUserId = 0 |
| | | } |
| | | }, |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && dict[dictApprovalSiteType].length > 0)"> |
| | | <el-form-item label="审批者" prop="approvalUserId" :hidden="form.wecomSpNo !== null || (form.id == null && wecomApprovalVisible)"> |
| | | <el-select v-model="form.approvalUserId" filterable clearable placeholder="请选择" style="width: 340px;" :disabled="form.approvalStatus == dictAppRovalStatusPassed || form.approvalStatus == dictAppRovalStatusReturn || form.wecomSpNo !== null"> |
| | | <el-option |
| | | v-for="item in approvalUsers" |
| | |
| | | dictAppRovalStatusReturn: constant.OVERTIME_RETURN, |
| | | dictApprovalSiteType: constant.APPROVAL_SITE_TYPE, |
| | | successLoading: false, |
| | | makeUpCardVisible: false |
| | | makeUpCardVisible: false, |
| | | // 企微审核判断 |
| | | wecomApprovalVisible: false |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | ]) |
| | | }, |
| | | created() { |
| | | this.getUsers() |
| | | this.getApprovalUsers() |
| | | const that = this |
| | | that.getUsers() |
| | | that.getApprovalUsers() |
| | | that.$on('dictReady', () => { |
| | | const dictData = { ...that.dict } |
| | | const filterData = dictData[constant.APPROVAL_SITE_TYPE].filter(item => item.value.toLowerCase() === 'wecom') |
| | | if (filterData.length > 0) { |
| | | that.wecomApprovalVisible = true |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | | // 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
| | |
| | | this.form.userId = this.user.id |
| | | } |
| | | |
| | | if (this.dict[this.dictApprovalSiteType].length > 0) { |
| | | if (this.wecomApprovalVisible) { |
| | | this.form.approvalUserId = 0 |
| | | } |
| | | }, |