| | |
| | | <template> |
| | | <a-card :bordered='false' :class="'cust-erp-sub-tab'"> |
| | | <a-card |
| | | :bordered='false' |
| | | :class="'cust-erp-sub-tab'" |
| | | > |
| | | <!-- 查询区域 --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form |
| | |
| | | <!-- 查询区域-END --> |
| | | |
| | | <!-- 操作按钮区域 --> |
| | | <div class='table-operator' v-if='mainId.id'> |
| | | <div |
| | | class='table-operator' |
| | | v-if='mainId.id' |
| | | > |
| | | <a-dropdown v-if='selectedRowKeys.length > 0'> |
| | | <a-menu slot='overlay'> |
| | | <a-menu-item key='1' @click='batchDel'> |
| | | <a-menu-item |
| | | key='1' |
| | | @click='batchDel' |
| | | > |
| | | <a-icon type='delete' /> |
| | | 删除 |
| | | </a-menu-item> |
| | |
| | | :dataSource='dataSource' |
| | | :pagination='ipagination' |
| | | :loading='loading' |
| | | @change='handleTableChange'> |
| | | @change='handleTableChange' |
| | | > |
| | | <!-- :rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}' --> |
| | | |
| | | |
| | | |
| | | <span slot='action' slot-scope='text, record'> |
| | | <span |
| | | slot='action' |
| | | slot-scope='text, record' |
| | | > |
| | | <!-- <a @click='handleEdit(record)'>编辑</a> |
| | | <a-divider type='vertical' /> --> |
| | | <a-popconfirm title='确定删除吗?' @confirm='() => handleDelete(record.id)'> |
| | | <a v-if="record.isLock=='no'&&mainId.status=='3'">删除</a> |
| | | <a-popconfirm |
| | | title='确定删除吗?' |
| | | @confirm='() => handleDelete(record.id)' |
| | | > |
| | | <a :disabled="mainId.status=='4'">删除</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | |
| | | </a-table> |
| | | <a-button |
| | | style="width: 100%; margin-top: 16px; margin-bottom: 8px" |
| | | type="dashed" |
| | | icon="plus" |
| | | @click="handleAdd" |
| | | :disabled="mainId.status=='4'" |
| | | >添加故障分析 |
| | | </a-button> |
| | | style="width: 100%; margin-top: 16px; margin-bottom: 8px" |
| | | type="dashed" |
| | | icon="plus" |
| | | @click="handleAdd" |
| | | :disabled="mainId.status=='4' ||mainId.status=='2'" |
| | | >添加故障分析 |
| | | </a-button> |
| | | </div> |
| | | <repair-order-fault-analysis-report-model |
| | | ref='modalForm' |
| | | @ok='modalFormOk' |
| | | ></repair-order-fault-analysis-report-model> |
| | | </a-card> |
| | | |
| | | |
| | | </template> |
| | | |
| | |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | |
| | | this.selectedRowKeys = [] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | handleAdd: function() { |
| | | handleAdd: function () { |
| | | this.$refs.modalForm.add(this.mainId) |
| | | this.$refs.modalForm.title = '新增' |
| | | this.$refs.modalForm.disableSubmit = false |