| | |
| | | <div class="table-page-search-wrapper" v-if="isDisplayOperation"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="12"> |
| | | <a-form-item label="统一编码"> |
| | | <lx-search-equipment-select placeholder="请输入统一编码或名称搜索" v-model="queryParam.equipmentId"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="12"> |
| | | <a-form-item label="工单号"> |
| | | <a-input placeholder="请输入工单号" v-model="queryParam.repairCode"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="12"> |
| | | <a-form-item label="维修状态"> |
| | | <j-dict-select-tag placeholder="请选择维修状态" v-model="queryParam.repairStatus" |
| | | dict-code="repair_status"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="12"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
| | |
| | | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator" v-if="isDisplayOperation"> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-dropdown :disabled="selectedRowKeys.length == 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"> |
| | | <a-icon type="delete"/> |
| | | 删除 |
| | | <a-menu-item key="1" @click="handleBatchSubmit"> |
| | | <a-icon type="form"/> |
| | | 提交 |
| | | </a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> 批量操作 |
| | |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" @change="handleTableChange" |
| | | :scroll="{x:'max-content'}"> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a v-if="record.repairStatus === 'PENDING_REPAIR' || record.repairStatus === 'UNDER_MAINTENANCE'" @click="handleFillIn(record)">填报</a> |
| | | <a-divider v-if="record.repairStatus === 'PENDING_REPAIR' || record.repairStatus === 'UNDER_MAINTENANCE'" type="vertical"/> |
| | | <a-popconfirm v-if="record.repairStatus === 'PENDING_REPAIR' || record.repairStatus === 'UNDER_MAINTENANCE'" title="确定提交吗?" @confirm="() => handleSubmit(record.id)"> |
| | | <a>提交</a> |
| | | </a-popconfirm> |
| | | <a-divider v-if="record.repairStatus === 'PENDING_REPAIR' || record.repairStatus === 'UNDER_MAINTENANCE'" type="vertical"/> |
| | | <a @click="handleDetail(record)">详情</a> |
| | | <template v-if="record.repairStatus=='PENDING_REPAIR'||record.repairStatus=='UNDER_MAINTENANCE' ||record.repairStatus=='REJECTED'"> |
| | | <a @click="handleFillIn(record)">填报</a> |
| | | <a-divider type="vertical"/> |
| | | <a-popconfirm title="确定提交吗?" @confirm="() => handleSubmit(record.id)"> |
| | | <a>提交</a> |
| | | </a-popconfirm> |
| | | </template> |
| | | |
| | | <a v-else @click="handleDetail(record)">详情</a> |
| | | </span> |
| | | |
| | | <!--字符串超长截取省略号显示--> |
| | | <span slot="faultPhenomenon" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <span slot="faultReason" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <span slot="faultAnalysis" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <span slot="faultProcess" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | <span slot="faultPrevent" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="8"/> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | |
| | | { |
| | | title: '工单号', |
| | | align: 'center', |
| | | dataIndex: 'repairCode' |
| | | dataIndex: 'repairCode', |
| | | }, |
| | | { |
| | | title: '故障类型', |
| | | align: 'center', |
| | | dataIndex: 'faultType_dictText', |
| | | }, |
| | | { |
| | | title: '报修人', |
| | | align: 'center', |
| | | dataIndex: 'reportPerson_dictText', |
| | | }, |
| | | { |
| | | title: '维修开始时间', |
| | |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: '故障现象', |
| | | align: 'center', |
| | | dataIndex: 'faultPhenomenon', |
| | | scopedSlots: {customRender: 'faultPhenomenon'}, |
| | | }, |
| | | { |
| | | title: '故障原因', |
| | | align: 'center', |
| | | dataIndex: 'faultReason' |
| | | dataIndex: 'faultReason', |
| | | scopedSlots: {customRender: 'faultReason'}, |
| | | }, |
| | | { |
| | | title: '故障分析', |
| | | align: 'center', |
| | | dataIndex: 'faultAnalysis' |
| | | dataIndex: 'faultAnalysis', |
| | | scopedSlots: {customRender: 'faultAnalysis'}, |
| | | }, |
| | | { |
| | | title: '排故过程', |
| | | align: 'center', |
| | | dataIndex: 'faultProcess' |
| | | dataIndex: 'faultProcess', |
| | | scopedSlots: {customRender: 'faultProcess'}, |
| | | }, |
| | | { |
| | | title: '预防措施', |
| | | align: 'center', |
| | | dataIndex: 'faultPrevent' |
| | | dataIndex: 'faultPrevent', |
| | | scopedSlots: {customRender: 'faultPrevent'}, |
| | | }, |
| | | { |
| | | title: '操作工', |
| | |
| | | }) |
| | | }, |
| | | |
| | | // 批量提交时触发 |
| | | handleBatchSubmit() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 点击详情触发 |
| | | * @param record 表格行信息 |
| | |
| | | this.$refs.repairOrderApprovalModal.visible = true |
| | | this.$refs.repairOrderApprovalModal.title = '详情' |
| | | this.$refs.repairOrderApprovalModal.disableSubmit = true |
| | | this.$refs.repairOrderApprovalModal.recordDetail(record) |
| | | this.$refs.repairOrderApprovalModal.handleDetail(record) |
| | | } |
| | | } |
| | | } |