| | |
| | | :disabled=" |
| | | crud.selections.length < 1 || |
| | | !crud.selections.every( |
| | | selection => selection.approvalStatus === dictGoOutAppRev |
| | | selection => selection.approvalStatus === dictBussinessAppRev |
| | | ) |
| | | " |
| | | style="margin-left: 4px !important;" |
| | |
| | | :disabled=" |
| | | crud.selections.length < 1 || |
| | | !crud.selections.every( |
| | | selection => selection.approvalStatus === dictGoOutAppRev |
| | | selection => selection.approvalStatus === dictBussinessAppRev |
| | | ) |
| | | " |
| | | style="margin-left: 4px !important;" |
| | |
| | | clearable |
| | | placeholder="请选择" |
| | | style="width: 340px;" |
| | | :disabled="form.approvalStatus == dictGoOutAgree || form.approvalStatus == dictGoOutReturn || form.wecomSpNo !== null" |
| | | :disabled="form.approvalStatus == dictBussinessAppAgree || form.approvalStatus == dictBussinessAppReturn || form.wecomSpNo !== null" |
| | | > |
| | | <el-option |
| | | v-for="item in users" |
| | |
| | | clearable |
| | | placeholder="请选择" |
| | | style="width: 340px;" |
| | | :disabled="form.approvalStatus == dictGoOutAgree || form.approvalStatus == dictGoOutReturn || form.wecomSpNo !== null" |
| | | :disabled="form.approvalStatus == dictBussinessAppAgree || form.approvalStatus == dictBussinessAppReturn || form.wecomSpNo !== null" |
| | | > |
| | | <el-option |
| | | v-for="item in approvalUsers" |
| | |
| | | } |
| | | }" |
| | | :default-time="$store.state.user.user.sysRostering.workStartTime + ':00'" |
| | | :disabled="form.approvalStatus == dictGoOutAgree || form.approvalStatus == dictGoOutReturn || form.wecomSpNo !== null" |
| | | :disabled="form.approvalStatus == dictBussinessAppAgree || form.approvalStatus == dictBussinessAppReturn || form.wecomSpNo !== null" |
| | | @change="checkTime" |
| | | /> |
| | | </el-form-item> |
| | |
| | | } |
| | | }" |
| | | :default-time="$store.state.user.user.sysRostering.workEndTime + ':00'" |
| | | :disabled="form.approvalStatus == dictGoOutAgree || form.approvalStatus == dictGoOutReturn || form.wecomSpNo !== null" |
| | | :disabled="form.approvalStatus == dictBussinessAppAgree || form.approvalStatus == dictBussinessAppReturn || form.wecomSpNo !== null" |
| | | @change="checkTime" |
| | | /> |
| | | </el-form-item> |
| | |
| | | rows="3" |
| | | style="width: 340px;" |
| | | :disabled=" |
| | | form.approvalStatus == dictGoOutAgree || |
| | | form.approvalStatus == dictGoOutReturn || |
| | | form.approvalStatus == dictBussinessAppAgree || |
| | | form.approvalStatus == dictBussinessAppReturn || |
| | | form.wecomSpNo !== null |
| | | " |
| | | /> |
| | |
| | | v-model="form.departureCity" |
| | | style="width: 340px;" |
| | | :disabled=" |
| | | form.approvalStatus == dictGoOutAgree || |
| | | form.approvalStatus == dictGoOutReturn || |
| | | form.approvalStatus == dictBussinessAppAgree || |
| | | form.approvalStatus == dictBussinessAppReturn || |
| | | form.wecomSpNo !== null |
| | | " |
| | | /> |
| | |
| | | v-model="form.arrivalCity" |
| | | style="width: 340px;" |
| | | :disabled=" |
| | | form.approvalStatus == dictGoOutAgree || |
| | | form.approvalStatus == dictGoOutReturn || |
| | | form.approvalStatus == dictBussinessAppAgree || |
| | | form.approvalStatus == dictBussinessAppReturn || |
| | | form.wecomSpNo !== null |
| | | " |
| | | /> |
| | |
| | | placeholder="请选择" |
| | | style="width: 340px;" |
| | | :disabled=" |
| | | form.approvalStatus == dictGoOutAgree || |
| | | form.approvalStatus == dictGoOutReturn |
| | | form.approvalStatus == dictBussinessAppAgree || |
| | | form.approvalStatus == dictBussinessAppReturn |
| | | " |
| | | > |
| | | <el-option |
| | |
| | | placeholder="请选择" |
| | | style="width: 340px;" |
| | | :disabled=" |
| | | form.approvalStatus == dictGoOutAgree || |
| | | form.approvalStatus == dictGoOutReturn || |
| | | form.approvalStatus == dictBussinessAppAgree || |
| | | form.approvalStatus == dictBussinessAppReturn || |
| | | form.wecomSpNo !== null |
| | | " |
| | | > |
| | |
| | | rows="3" |
| | | style="width: 340px;" |
| | | :disabled=" |
| | | form.approvalStatus == dictGoOutAgree || |
| | | form.approvalStatus == dictGoOutReturn || |
| | | form.approvalStatus == dictBussinessAppAgree || |
| | | form.approvalStatus == dictBussinessAppReturn || |
| | | form.wecomSpNo !== null |
| | | " |
| | | /> |
| | |
| | | {{ form.travelReason }} |
| | | </el-form-item> |
| | | <el-form-item |
| | | v-if="form.approvalStatus === dictGoOutReturn" |
| | | v-if="form.approvalStatus === dictBussinessAppReturn" |
| | | label="退回原因" |
| | | prop="approvalDescription" |
| | | > |
| | |
| | | @click="approveFunction(1, form)" |
| | | >审核退回</el-button> |
| | | <el-button |
| | | v-if="form.approvalStatus !== dictGoOutReturn" |
| | | v-if="form.approvalStatus !== dictBussinessAppReturn" |
| | | :loading="successLoading" |
| | | type="success" |
| | | @click="approveFunction(2, form)" |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-tag |
| | | v-if="scope.row.approvalStatus === dictGoOutAppRev" |
| | | v-if="scope.row.approvalStatus === dictBussinessAppRev" |
| | | type="warning" |
| | | >{{ |
| | | dict.label[dictBussinessStatus][scope.row.approvalStatus] |
| | | }}</el-tag> |
| | | <el-tag |
| | | v-if="scope.row.approvalStatus === dictGoOutAgree" |
| | | v-if="scope.row.approvalStatus === dictBussinessAppAgree" |
| | | type="success" |
| | | >{{ |
| | | dict.label[dictBussinessStatus][scope.row.approvalStatus] |
| | | }}</el-tag> |
| | | <el-tag |
| | | v-if="scope.row.approvalStatus === dictGoOutReturn" |
| | | v-if="scope.row.approvalStatus === dictBussinessAppReturn" |
| | | type="danger" |
| | | >{{ |
| | | dict.label[dictBussinessStatus][scope.row.approvalStatus] |
| | |
| | | type="primary" |
| | | icon="el-icon-s-check" |
| | | :disabled=" |
| | | scope.row.approvalStatus === dictGoOutAppRev ? false : true |
| | | scope.row.approvalStatus === dictBussinessAppRev ? false : true |
| | | " |
| | | @click="toApprove(scope.row)" |
| | | >审核 |
| | |
| | | icon="el-icon-edit-outline" |
| | | size="mini" |
| | | :disabled=" |
| | | scope.row.approvalStatus === dictGoOutAppRev ? true : false |
| | | scope.row.approvalStatus === dictBussinessAppRev ? true : false |
| | | " |
| | | >撤销 |
| | | </el-button> |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <udOperation v-if="!scope.row.wecomSpNo" :data="scope.row" :permission="permission" /> |
| | | <el-button |
| | | v-if="scope.row.wecomSpNo && user.id === scope.row.userId && scope.row.approvalStatus === dictBussinessAppReturn" |
| | | size="mini" |
| | | type="primary" |
| | | icon="el-icon-refresh-right" |
| | | @click="reAdd(scope.row)" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | // 项目列表 |
| | | projects: [], |
| | | dictBussinessStatus: constant.BUSSINESS_APPROVE_STATUS, |
| | | dictGoOutAppRev: constant.BUSSINESS_APPROVE_STATUS_REVIEWED, |
| | | dictGoOutAgree: constant.BUSSINESS_APPROVE_STATUS_AGREE, |
| | | dictGoOutReturn: constant.BUSSINESS_APPROVE_STATUS_REFUSE, |
| | | dictBussinessAppRev: constant.BUSSINESS_APPROVE_STATUS_REVIEWED, |
| | | dictBussinessAppAgree: constant.BUSSINESS_APPROVE_STATUS_AGREE, |
| | | dictBussinessAppReturn: constant.BUSSINESS_APPROVE_STATUS_REFUSE, |
| | | dictLeaveTimeTypeDay: constant.LEAVE_TIME_TYPE_DAY, |
| | | dictLeaveTimeType: constant.LEAVE_TIME_TYPE, |
| | | dictBusinessTravelCategory: constant.BUSINESS_TRAVEL_CATEGORY, |
| | |
| | | } |
| | | if ( |
| | | (data.approvalStatus !== null && |
| | | data.approvalStatus === this.dictGoOutAgree) || |
| | | data.approvalStatus === this.dictGoOutReturn |
| | | data.approvalStatus === this.dictBussinessAppAgree) || |
| | | data.approvalStatus === this.dictBussinessAppReturn |
| | | ) { |
| | | return true |
| | | } |
| | |
| | | } |
| | | // 判断通过状态 |
| | | if (Number === 2) { |
| | | this.form.approvalStatus = this.dictGoOutAgree |
| | | this.form.approvalStatus = this.dictBussinessAppAgree |
| | | } else { |
| | | // 退回改状态显示退回原因 |
| | | this.form.approvalStatus = this.dictGoOutReturn |
| | | this.form.approvalStatus = this.dictBussinessAppReturn |
| | | if (this.form.approvalDescription == null) { |
| | | return |
| | | } |
| | |
| | | // 撤消功能 |
| | | revoke(data) { |
| | | this.toApprove(data, '1') |
| | | this.form.approvalStatus = this.dictGoOutAppRev |
| | | this.form.approvalStatus = this.dictBussinessAppRev |
| | | this.successLoading = true |
| | | crudAttendanceBusinessTravel |
| | | .approve(this.form) |
| | |
| | | // 取消 |
| | | canel(data) { |
| | | this.$refs[`popover_${data.id}`].showPopper = false |
| | | }, |
| | | // 再新增(企微) |
| | | reAdd(data) { |
| | | const that = this |
| | | that.crud.toAdd() |
| | | that.$set(that.form, 'userId', data.userId) |
| | | that.$set(that.form, 'approvalUserId', data.approvalUserId) |
| | | that.$set(that.form, 'travelStartTime', data.travelStartTime) |
| | | that.$set(that.form, 'travelEndTime', data.travelEndTime) |
| | | that.$set(that.form, 'travelDuration', data.travelDuration) |
| | | that.$set(that.form, 'travelReason', data.travelReason) |
| | | that.$set(that.form, 'departureCity', data.departureCity) |
| | | that.$set(that.form, 'arrivalCity', data.arrivalCity) |
| | | that.$set(that.form, 'projectId', data.projectId) |
| | | that.$set(that.form, 'category', data.category) |
| | | that.$set(that.form, 'remarks', data.remarks) |
| | | } |
| | | } |
| | | } |