| | |
| | | type="vertical" |
| | | /> |
| | | <a @click="handleEdit(record)" v-if="record.auditStatus == 'created'">编辑</a> |
| | | <a @click="handleCommit(record,'approved')" v-if="record.auditStatus == 'submitted'">审批</a> |
| | | <a @click="handleCommit(record,'audited')" v-if="record.auditStatus == 'approved'">审核</a> |
| | | <a-popconfirm |
| | | v-if="record.auditStatus == 'submitted'" |
| | | title="确认通过审批吗?" |
| | | @confirm="() =>handleCommit(record, 'approved')" |
| | | > |
| | | <a>审批</a> |
| | | </a-popconfirm> |
| | | <a-popconfirm |
| | | v-if="record.auditStatus == 'approved'" |
| | | title="确认通过审核吗?" |
| | | @confirm="() =>handleCommit(record, 'audited')" |
| | | > |
| | | <a>审核</a> |
| | | </a-popconfirm> |
| | | <a-divider type="vertical" v-if="record.auditStatus == 'created' || record.auditStatus == 'submitted' || record.auditStatus == 'approved'"/> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | isAchievement:false, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | |
| | | default: false, |
| | | required: false |
| | | }, |
| | | isAchievement: { |
| | | achievement: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | |
| | | return this.disabled |
| | | }, |
| | | achievementDisabled() { |
| | | return this.isAchievement |
| | | return this.achievement |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | console.log("formData===>",formData); |
| | | httpAction(url, formData, method).then((res) => { |
| | | if (res.success) { |
| | | httpAction(this.url.addOperationCertificate, formData.operationCertificateApplyDetailList, 'post').then((res) => { |
| | | if (res.success) { |
| | | this.$message.success(res.message) |
| | | }else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | if(this.achievementDisabled){ |
| | | httpAction(this.url.addOperationCertificate, formData.operationCertificateApplyDetailList, 'post').then((res) => { |
| | | if (res.success) { |
| | | this.$message.success(res.message) |
| | | }else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | } |
| | | this.$message.success(res.message) |
| | | this.$emit('ok') |
| | | this.close() |
| | |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel"> |
| | | <operation-certificate-apply-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" isAchievement="isAchievement"/> |
| | | <operation-certificate-apply-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" :achievement="isAchievement"/> |
| | | </j-modal> |
| | | </template> |
| | | |
| | |
| | | width:800, |
| | | visible: false, |
| | | disableSubmit: false, |
| | | isAchievement:false |
| | | isAchievement: false |
| | | } |
| | | }, |
| | | methods:{ |