| | |
| | | <template> |
| | | <a-card |
| | | title='设备调出' |
| | | title='' |
| | | :bordered='false' |
| | | > |
| | | <div class='table-page-search-wrapper'> |
| | |
| | | style='margin-top: 15px' |
| | | @click='handleAdd' |
| | | type='primary' |
| | | v-has="'equipmentTransfer: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="'equipmentTransfer:submitAndCancel'">提交 |
| | | </a-button> |
| | | <a-button v-if="selectedRowKeys.length > 0 && selectionRows[0].auditStatus === 'pendingApproval'" |
| | | @click='handleRevocation' type='primary' icon='rollback'>撤回 |
| | |
| | | size='middle' |
| | | bordered |
| | | rowKey='id' |
| | | :scroll="{ x: 'calc(1400px + 50%)', y: 900 }" |
| | | :scroll="{ x: true }" |
| | | :columns='columns' |
| | | :dataSource='dataSource' |
| | | :pagination='ipagination' |
| | |
| | | @change='handleTableChange' |
| | | > |
| | | |
| | | |
| | | <template slot="num" slot-scope="text" > |
| | | <a-tooltip placement="top" :title="text" trigger="hover"> |
| | | <div> |
| | | <template slot="title"> </template> |
| | | <p style="cusor:pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 130px;">{{ text }}</p> |
| | | </div> |
| | | </a-tooltip> |
| | | </template> |
| | | |
| | | |
| | | <span |
| | | slot='action' |
| | | slot-scope='text, record' |
| | | > |
| | | <a v-if="record.auditStatus === 'notSubmitted'" @click='handleEdit(record)'>编辑</a> |
| | | <a v-if="record.auditStatus === 'notSubmitted'|| record.auditStatus === 'Rejected'" |
| | | @click='handleEdit(record)' v-has="'equipmentTransfer:edit'">编辑</a> |
| | | <a v-if="record.auditStatus === 'pendingApproval'" @click='handleApprove(record)'>审批</a> |
| | | |
| | | <a-divider v-if="record.auditStatus === 'notSubmitted'" type='vertical' /> |
| | | <a-dropdown v-if="record.auditStatus === 'notSubmitted'"> |
| | | <a class='ant-dropdown-link'>更多 <a-icon type='down' /></a> |
| | | <a-divider |
| | | v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected' || record.auditStatus === 'pendingApproval'" |
| | | type='vertical' |
| | | /> |
| | | <a-dropdown > |
| | | <a class='ant-dropdown-link'>更多 <a-icon type='down'/></a> |
| | | <a-menu slot='overlay'> |
| | | <a-menu-item> |
| | | <a @click='handleDetail(record)'>详情</a> |
| | | </a-menu-item> |
| | | <a-menu-item v-if="record.auditStatus === 'notSubmitted'||record.auditStatus === 'Rejected'" v-has="'equipmentTransfer:delete'"> |
| | | <a-popconfirm title='确定删除吗?' |
| | | @confirm='() => handleDelete(record.id)'> |
| | | <a>删除</a> |
| | |
| | | { |
| | | title: '单据号', |
| | | align: 'center', |
| | | dataIndex: 'num' |
| | | dataIndex: 'num', |
| | | scopedSlots: { customRender: 'num' }, |
| | | width: 100, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: '调出公司', |
| | |
| | | }, |
| | | |
| | | handleApprove: function(record) { |
| | | let reject, approval; |
| | | let reject, approval |
| | | reject = this.url.reject |
| | | approval = this.url.approval |
| | | this.$refs.approvalModalForm.showModals(record, reject, approval) |