| | |
| | | style='margin-top: 15px' |
| | | @click='handleAdd' |
| | | type='primary' |
| | | v-has="'equipmentChange:add'" |
| | | icon='plus' |
| | | >新增 |
| | | </a-button> |
| | | <a-button |
| | | v-if="selectedRowKeys.length > 0 && (selectionRows[0].auditStatus==='notSubmitted' || selectionRows[0].auditStatus==='Rejected')" |
| | | @click='handleSubmit' type='primary' icon='check'>提交 |
| | | @click='handleSubmit' type='primary' icon='check' v-has="'equipmentChange:submitAndCancel'">提交 |
| | | </a-button> |
| | | <a-button v-if="selectedRowKeys.length > 0 && selectionRows[0].auditStatus === 'pendingApproval'" |
| | | @click='handleRevocation' type='primary' icon='rollback'>撤回 |
| | |
| | | slot='action' |
| | | slot-scope='text, record' |
| | | > |
| | | <a v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected'" @click='handleEdit(record)'>编辑</a> |
| | | <a v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected'" @click='handleEdit(record)' v-has="'equipmentChange:edit'">编辑</a> |
| | | <a v-if="record.auditStatus === 'pendingApproval'" @click='handleApprove(record)'>审批</a> |
| | | |
| | | <a-divider |
| | |
| | | <a-menu-item> |
| | | <a @click='handleDetail(record)'>详情</a> |
| | | </a-menu-item> |
| | | <a-menu-item v-if="record.auditStatus === 'notSubmitted'||record.auditStatus === 'Rejected'"> |
| | | <a-menu-item v-if="record.auditStatus === 'notSubmitted'||record.auditStatus === 'Rejected'" v-has="'equipmentChange:delete'"> |
| | | <a-popconfirm title='确定删除吗?' |
| | | @confirm='() => handleDelete(record.id)'> |
| | | <a>删除</a> |
| | |
| | | class='table-operator' |
| | | style='margin:-16px' |
| | | > |
| | | <equipment-change-detail :equipmentChangeId='equipmentChangeId' /> |
| | | <equipment-change-detail :equipmentChangeId='equipmentChangeId'/> |
| | | </div> |
| | | </a-tab-pane> |
| | | |