Merge remote-tracking branch 'origin/master'
| | |
| | | <template> |
| | | <a-card |
| | | :bordered="false" |
| | | title="èªä¸»ç»´æ¤ç¹æ£å·¥å" |
| | | title="" |
| | | > |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | |
| | | style="margin-left: 8px" |
| | | >æ¥è¯¢</a-button> |
| | | <a-button |
| | | type="primary" |
| | | type="info" |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | |
| | | :md='8' |
| | | :sm='24'> |
| | | <a-form-item |
| | | label="ç»ä¸ç¼å·ç¾¤" |
| | | label="ç»ä¸ç¼ç 群" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | |
| | | v-has="'equipmentAccount:add&delete&import&Edit'" |
| | | >è´¨ä¿æåæ´</a-button> |
| | | <a-button |
| | | :disabled="selectedRowKeys.length==0" |
| | | @click="batchDel" |
| | | type="danger" |
| | | icon="delete" |
| | | v-has="'equipmentAccount:add&delete&import&Edit'" |
| | | >æ¹éå é¤</a-button> |
| | | <a-button |
| | | @click="handleUpdateKeyEquipment" |
| | | type="primary" |
| | | icon="calendar" |
| | |
| | | :length="8" |
| | | /> |
| | | </span> |
| | | <span |
| | | slot="yseNoInspectionStandard" |
| | | slot-scope="text" |
| | | > |
| | | <a-icon |
| | | type="check" |
| | | style="color: chartreuse;" |
| | | v-if="text==='0'" |
| | | /> |
| | | <a-icon |
| | | type="close" |
| | | v-else |
| | | style="color:red;" |
| | | /> |
| | | </span> |
| | | <span |
| | | slot="yseNoMaintenance2Standard" |
| | | slot-scope="text" |
| | | > |
| | | <a-icon |
| | | type="check" |
| | | style="color: chartreuse;" |
| | | v-if="text==='0'" |
| | | /> |
| | | <a-icon |
| | | type="close" |
| | | v-else |
| | | style="color:red;" |
| | | /> |
| | | </span> |
| | | <span |
| | | slot="yseNoMaintenance3Standard" |
| | | slot-scope="text" |
| | | > |
| | | <a-icon |
| | | type="check" |
| | | style="color: chartreuse;" |
| | | v-if="text==='0'" |
| | | /> |
| | | <a-icon |
| | | type="close" |
| | | v-else |
| | | style="color:red;" |
| | | /> |
| | | </span> |
| | | |
| | | <template |
| | | slot="num" |
| | |
| | | |
| | | <a-tabs defaultActiveKey="1"> |
| | | <a-tab-pane |
| | | tab="å·¥èºåæ°" |
| | | tab="è®¾å¤ææ¡£" |
| | | key="1" |
| | | forceRender |
| | | > |
| | | <EquipmentDocumentList :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab="å·¥èºåæ°" |
| | | key="2" |
| | | v-if="isOpenProcess" |
| | | > |
| | | <EquipmentProcessParametersList |
| | | :mainId="selectedMainId" |
| | |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab="设å¤ç²¾åº¦" |
| | | key="2" |
| | | forceRender |
| | | key="3" |
| | | v-if="isOpenPrecision" |
| | | > |
| | | <EquipmentPrecisionParametersList |
| | | :isOpen="isOpenPrecision" |
| | | :mainId="precisionParametersTemplateId" |
| | | /> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab="è®¾å¤ææ¡£" |
| | | key="3" |
| | | forceRender |
| | | > |
| | | <EquipmentDocumentList :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab="å¤ä»¶" |
| | |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab="æ¥ä¿æ å" |
| | | tab="ç¹æ£æ å" |
| | | key="7" |
| | | forceRender |
| | | > |
| | | <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane |
| | | tab="äºä¿æ å" |
| | | key="8" |
| | |
| | | forceRender |
| | | > |
| | | <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab="ç¹æ£å·¥å" |
| | | key="10" |
| | | forceRender |
| | | > |
| | | <daily-inspection-order-list-component :mainId="selectedMainId"></daily-inspection-order-list-component> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal |
| | |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis' |
| | | import EquipmentModal from './modules/equipmentNew/EquipmentModal' |
| | | import { getAction, downFile } from '@/api/manage' |
| | | import { getAction, downFile, deleteAction } from '@/api/manage' |
| | | import EquipmentProcessParametersList from './modules/equipmentNew/EquipmentProcessParametersList' |
| | | import EquipmentDocumentList from './modules/equipmentNew/EquipmentDocumentList' |
| | | import EquipmentPrecisionParametersList from './modules/equipmentNew/EquipmentPrecisionParametersList' |
| | |
| | | import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' |
| | | import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' |
| | | import KeyEquipmentUpdateModel from './modules/equipmentNew/edit/KeyEquipmentUpdateModel.vue' |
| | | import DailyInspectionOrderListComponent from './modules/equipmentNew/DailyInspectionOrderListComponent.vue' |
| | | |
| | | export default { |
| | | name: "EquipmentList", |
| | |
| | | ThirdMaintenanceList, |
| | | KeyEquipmentUpdateModel, |
| | | JEllipsis, |
| | | DailyInspectionOrderListComponent, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | return parseInt(index) + 1 |
| | | }, |
| | | width: 50, |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | title: '设å¤ç±»å', |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | scopedSlots: { customRender: 'num' }, |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: "center", |
| | | dataIndex: 'name', |
| | | scopedSlots: { customRender: 'name' }, |
| | | fixed: 'left', |
| | | }, |
| | | { |
| | | title: '使ç¨é¨é¨', |
| | | align: "center", |
| | | dataIndex: 'useId_dictText', |
| | | }, |
| | | { |
| | | title: 'ä¸å¿', |
| | | align: "center", |
| | | dataIndex: 'workCenterId_dictText', |
| | | }, |
| | | { |
| | | title: 'å·¥åº', |
| | | align: "center", |
| | | dataIndex: 'factoryModelId_dictText', |
| | | }, |
| | | { |
| | | title: '工段', |
| | | align: "center", |
| | | dataIndex: 'areaId_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»´æ¤é¨é¨', |
| | | align: "center", |
| | | dataIndex: 'manageId_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»´ä¿®çç»', |
| | | align: "center", |
| | | dataIndex: 'teamId_dictText', |
| | | }, |
| | | { |
| | | title: 'è®¾å¤æå±åç±»', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | title: 'ABCæ è¯', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | dataIndex: 'equipmentImportanceId', |
| | | }, |
| | | { |
| | | title: 'å
³é®è®¾å¤æ è¯', |
| | |
| | | dataIndex: 'specificEquipment_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | title: 'å®å
¨é
ç½®', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | scopedSlots: { customRender: 'num' }, |
| | | dataIndex: 'securityConfiguration', |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | title: 'å·å´ç³»ç»', |
| | | align: "center", |
| | | dataIndex: 'name', |
| | | scopedSlots: { customRender: 'name' }, |
| | | dataIndex: 'coolingSystem', |
| | | }, |
| | | { |
| | | title: 'çç«å¨', |
| | | align: "center", |
| | | dataIndex: 'fireExtinguisher', |
| | | }, |
| | | { |
| | | title: 'çç«å¨æææ', |
| | | align: "center", |
| | | dataIndex: 'fireExtinguisherValidityPeriod', |
| | | }, |
| | | { |
| | | title: 'æä½ç³»ç»', |
| | | align: "center", |
| | | dataIndex: 'operatingSystem', |
| | | }, |
| | | { |
| | | title: 'ç³»ç»', |
| | | align: "center", |
| | | dataIndex: 'system', |
| | | }, |
| | | { |
| | | title: '设å¤ç«¯å£', |
| | | align: "center", |
| | | dataIndex: 'port', |
| | | }, |
| | | { |
| | | title: 'åæ æ°é', |
| | | align: "center", |
| | | dataIndex: 'coordinateNum', |
| | | }, |
| | | { |
| | | title: '设å¤ç¶æ', |
| | | align: "center", |
| | | dataIndex: 'equipmentStatus_dictText', |
| | | }, |
| | | { |
| | | title: 'ææ¯ç¶æ', |
| | | align: "center", |
| | | dataIndex: 'technologyStatus_dictText', |
| | | scopedSlots: { customRender: 'technologyStatus' }, |
| | | }, |
| | | { |
| | | title: 'éé', |
| | | align: "center", |
| | | dataIndex: 'equipmentUda3', |
| | | }, |
| | | { |
| | | title: 'éé计éåä½', |
| | | align: "center", |
| | | dataIndex: 'equipmentUda4_dictText', |
| | | }, |
| | | { |
| | | title: 'åè½ä½ç½®', |
| | | align: "center", |
| | | dataIndex: 'equipmentUda5', |
| | | }, |
| | | { |
| | | title: 'å®è£
ä½ç½®', |
| | | align: "center", |
| | | dataIndex: 'equipmentUda2', |
| | | }, |
| | | { |
| | | title: 'åºåæ¥æ', |
| | | align: "center", |
| | | dataIndex: 'leaveFactoryDate', |
| | | }, |
| | | { |
| | | title: 'ç«é¡¹å¡å·', |
| | | align: "center", |
| | | dataIndex: 'projectApprovalNo', |
| | | }, |
| | | { |
| | | title: 'èµéæ¥æº', |
| | | align: "center", |
| | | dataIndex: 'fundSource', |
| | | }, |
| | | { |
| | | title: 'éªæ¶æ¥æ', |
| | | align: "center", |
| | | dataIndex: 'acceptanceCheckDate', |
| | | }, |
| | | { |
| | | title: 'åºåç¼å·', |
| | | align: "center", |
| | | dataIndex: 'factoryNo', |
| | | }, |
| | | { |
| | | title: 'èµäº§å¶é å', |
| | | align: "center", |
| | | dataIndex: 'constructorId_dictText', |
| | | }, |
| | | { |
| | | title: 'èµäº§çæ¥æºå½å®¶', |
| | | align: "center", |
| | | dataIndex: 'sourceCountry', |
| | | }, |
| | | { |
| | | title: 'åå·', |
| | |
| | | dataIndex: 'model', |
| | | }, |
| | | { |
| | | title: 'è§æ ¼', |
| | | title: '设å¤è§æ ¼', |
| | | align: "center", |
| | | dataIndex: 'specification', |
| | | }, |
| | |
| | | dataIndex: 'gpo', |
| | | }, |
| | | { |
| | | title: '使ç¨é¨é¨', |
| | | title: 'å建人', |
| | | align: "center", |
| | | dataIndex: 'useId_dictText', |
| | | dataIndex: 'createBy' |
| | | }, |
| | | // { |
| | | // title: 'ç»´æ¤é¨é¨', |
| | | // align: "center", |
| | | // dataIndex: 'manageId_dictText', |
| | | // }, |
| | | // { |
| | | // title: 'ç»´ä¿®çç»', |
| | | // align: "center", |
| | | // dataIndex: 'teamId_dictText', |
| | | // }, |
| | | { |
| | | title: 'ABCæ è¯', |
| | | title: 'å建æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'equipmentImportanceId', |
| | | dataIndex: 'createTime', |
| | | }, |
| | | |
| | | { |
| | | title: 'ææ¯ç¶æ', |
| | | title: 'æ´æ°äºº', |
| | | align: "center", |
| | | dataIndex: 'technologyStatus_dictText', |
| | | scopedSlots: { customRender: 'technologyStatus' }, |
| | | dataIndex: 'updateBy' |
| | | }, |
| | | { |
| | | title: 'æ´æ°æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'updateTime', |
| | | }, |
| | | { |
| | | title: 'è´¨ä¿å¼å§æ¥æ', |
| | | align: "center", |
| | | dataIndex: 'warrantyStart' |
| | | }, |
| | | { |
| | | title: 'è´¨ä¿ç»ææ¥æ', |
| | | align: "center", |
| | | dataIndex: 'warrantyEnd', |
| | | }, |
| | | { |
| | | title: 'èµäº§ç¶æ', |
| | | align: "center", |
| | | dataIndex: 'propertyStatus_dictText', |
| | | }, |
| | | { |
| | | title: 'ä¸ä¿æ¥æ', |
| | | align: "center", |
| | | dataIndex: 'thirdMaintenanceTime', |
| | | }, |
| | | { |
| | | title: 'ææ¯é´å®æ¥æ', |
| | | align: "center", |
| | | dataIndex: 'technologyStatusQualificationTime', |
| | | }, |
| | | { |
| | | title: 'ææ¯ç¶æé´å®ç±»å', |
| | |
| | | dataIndex: 'nextTechnologyStatusQualificationTime', |
| | | }, |
| | | { |
| | | title: 'æ¯å¦ç产线设å¤', |
| | | align: "center", |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: 'ç产线ç¼å·', |
| | | align: "center", |
| | | dataIndex: 'lineId_dictText', |
| | |
| | | align: "center", |
| | | dataIndex: 'isMeta_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å®å
¨é
ç½®', |
| | | // align: "center", |
| | | // dataIndex: 'securityConfiguration', |
| | | // }, |
| | | // { |
| | | // title: 'å·å´ç³»ç»', |
| | | // align: "center", |
| | | // dataIndex: 'coolingSystem', |
| | | // }, |
| | | // { |
| | | // title: 'çç«å¨', |
| | | // align: "center", |
| | | // dataIndex: 'fireExtinguisher', |
| | | // }, |
| | | |
| | | |
| | | // { |
| | | // title: 'æä½ç³»ç»', |
| | | // align: "center", |
| | | // dataIndex: 'operatingSystem', |
| | | // }, |
| | | // { |
| | | // title: 'ç³»ç»', |
| | | // align: "center", |
| | | // dataIndex: 'system', |
| | | // }, |
| | | // { |
| | | // title: '设å¤ç«¯å£', |
| | | // align: "center", |
| | | // dataIndex: 'port', |
| | | // }, |
| | | // { |
| | | // title: 'åæ æ°é', |
| | | // align: "center", |
| | | // dataIndex: 'coordinateNum', |
| | | // }, |
| | | // { |
| | | // title: '设å¤ç¶æ', |
| | | // align: "center", |
| | | // dataIndex: 'equipmentStatus_dictText', |
| | | // }, |
| | | // { |
| | | // title: 'éé', |
| | | // align: "center", |
| | | // dataIndex: 'equipmentUda3', |
| | | // }, |
| | | // { |
| | | // title: 'éé计éåä½', |
| | | // align: "center", |
| | | // dataIndex: 'equipmentUda4_dictText', |
| | | // }, |
| | | // { |
| | | // title: 'åè½ä½ç½®', |
| | | // align: "center", |
| | | // dataIndex: 'equipmentUda5', |
| | | // }, |
| | | // { |
| | | // title: 'å®è£
ä½ç½®', |
| | | // align: "center", |
| | | // dataIndex: 'equipmentUda2', |
| | | // }, |
| | | // { |
| | | // title: 'åºåæ¥æ', |
| | | // align: "center", |
| | | // dataIndex: 'leaveFactoryDate', |
| | | // }, |
| | | // { |
| | | // title: 'ç«é¡¹å¡å·', |
| | | // align: "center", |
| | | // dataIndex: 'projectApprovalNo', |
| | | // }, |
| | | // { |
| | | // title: 'èµéæ¥æº', |
| | | // align: "center", |
| | | // dataIndex: 'fundSource', |
| | | // }, |
| | | // { |
| | | // title: 'éªæ¶æ¥æ', |
| | | // align: "center", |
| | | // dataIndex: 'acceptanceCheckDate', |
| | | // }, |
| | | // { |
| | | // title: 'åºåç¼å·', |
| | | // align: "center", |
| | | // dataIndex: 'factoryNo', |
| | | // }, |
| | | // { |
| | | // title: 'èµäº§å¶é å', |
| | | // align: "center", |
| | | // dataIndex: 'constructorId_dictText', |
| | | // }, |
| | | // { |
| | | // title: 'èµäº§çæ¥æºå½å®¶', |
| | | // align: "center", |
| | | // dataIndex: 'sourceCountry', |
| | | // }, |
| | | { |
| | | title: 'å·¥èºåæ°ç®¡ç', |
| | | align: "center", |
| | |
| | | title: 'ç²¾åº¦åæ°æ¨¡æ¿', |
| | | align: "center", |
| | | dataIndex: 'precisionParametersTemplateId_dictText', |
| | | }, |
| | | { |
| | | title: 'ææ ç¹æ£æ å', |
| | | align: "center", |
| | | dataIndex: 'yseNoInspectionStandard', |
| | | scopedSlots: { customRender: 'yseNoInspectionStandard' } |
| | | }, |
| | | { |
| | | title: 'ææ äºä¿æ å', |
| | | align: "center", |
| | | dataIndex: 'yseNoMaintenance2Standard', |
| | | scopedSlots: { customRender: 'yseNoMaintenance2Standard' } |
| | | }, |
| | | { |
| | | title: 'ææ ä¸ä¿æ å', |
| | | align: "center", |
| | | dataIndex: 'yseNoMaintenance3Standard', |
| | | scopedSlots: { customRender: 'yseNoMaintenance3Standard' } |
| | | }, |
| | | // { |
| | | // title: '夿³¨', |
| | |
| | | this.selectedMainId = '' |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | if (selectedRowKeys.length == 1) { |
| | | if (selectedRowKeys.length >= 1) { |
| | | this.selectedMainId = selectedRowKeys[0] |
| | | this.precisionParametersTemplateId = selectionRows[0].precisionParametersTemplateId; |
| | | this.isOpenProcess = selectionRows[0].processParameters == 1; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | :bordered="false" |
| | | title="" |
| | | > |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <div |
| | | class="ant-alert ant-alert-info" |
| | | style="margin-bottom: 16px;" |
| | | > |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已鿩 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a |
| | | style="margin-left: 24px" |
| | | @click="onClearSelected" |
| | | >æ¸
空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{ x: 'calc(2200px + 50%)', y: 900 }" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange" |
| | | :rowClassName="tableRowClass" |
| | | > |
| | | <!-- :rowSelection="rowSelection" --> |
| | | <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" --> |
| | | |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a-popconfirm |
| | | title="ç¡®å®æ¥æ¶å·¥åå?" |
| | | @confirm="() => handleOrderIssue(record)" |
| | | v-has="'dailyInspectionOrder:issue'" |
| | | > |
| | | <a v-if="record.status == '1'">æ¥æ¶</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | v-if="record.status == '1'" |
| | | type="vertical" |
| | | /> |
| | | <a-popconfirm |
| | | title="ç¡®å®æ¤åå·¥åå?" |
| | | @confirm="() => handleOrderReset(record)" |
| | | v-has="'dailyInspectionOrder:issue'" |
| | | > |
| | | <a v-if="record.status == '2'">æ¤å</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | v-if="record.status == '2'" |
| | | type="vertical" |
| | | /> |
| | | <!-- <a-popconfirm |
| | | title="ç¡®å®æ¢å¤å·¥åå?" |
| | | @confirm="() => handleOrderRecover(record)" |
| | | v-has="'dailyInspectionOrder:recover'" |
| | | > |
| | | <a v-if="record.status == '7'">æ¢å¤</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | v-if="record.status == '7'" |
| | | type="vertical" |
| | | /> --> |
| | | <!-- <a-popconfirm |
| | | title="ç¡®å®ä½åºå·¥åå?" |
| | | @confirm="() => handleOrderCancel(record)" |
| | | v-has="'dailyInspectionOrder:recover'" |
| | | > |
| | | <a v-if="record.status == '2'">ä½åº</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | v-if="record.status == '2'" |
| | | type="vertical" |
| | | /> --> |
| | | <a-popconfirm |
| | | title="ç¡®å®é¢åå·¥åå?" |
| | | @confirm="() => handleOrderGet(record)" |
| | | v-has="'dailyInspectionOrder:get'" |
| | | > |
| | | <a v-if="record.status == '2' && record.assignMode == '1'">é¢å</a> |
| | | </a-popconfirm> |
| | | <!-- <a |
| | | v-if="record.status == '2' && record.assignMode == '2' " |
| | | @click="handleAssignOrder(record)" |
| | | v-has="'dailyInspectionOrder:assign'" |
| | | >派工</a> --> |
| | | <!-- <a |
| | | v-if="record.status == '2'&& record.assignMode == '3' && record.inspectionUserName != null " |
| | | @click="handleAssignOrder(record)" |
| | | v-has="'dailyInspectionOrder:assign'" |
| | | >æ¹æ´¾</a> |
| | | <a |
| | | v-if="record.status == '3'" |
| | | @click="handleAssignOrder(record)" |
| | | v-has="'dailyInspectionOrder:assign'" |
| | | >æ¹æ´¾</a>--> |
| | | <a-divider |
| | | v-if="record.status == '2'" |
| | | type="vertical" |
| | | /> |
| | | <a-divider |
| | | v-if="record.status === '3'" |
| | | type="vertical" |
| | | /> |
| | | <a |
| | | v-if="record.status === '3' || record.status === '4' " |
| | | @click="handleOrderExe(record)" |
| | | v-has="'dailyInspectionOrder:exe'" |
| | | >æ§è¡</a> |
| | | <a-divider |
| | | v-if="record.status === '3' || record.status === '4' " |
| | | type="vertical" |
| | | /> |
| | | <a-popconfirm |
| | | title="维修人确认å®å·¥å?" |
| | | @confirm="() => handleOrderRepairConfirm(record)" |
| | | v-has="'dailyInspectionOrder:repairConfirm'" |
| | | > |
| | | <a v-if="record.status == '5'">维修确认</a> |
| | | </a-popconfirm> |
| | | <a-divider |
| | | v-if="record.status == '5'" |
| | | type="vertical" |
| | | /> |
| | | <a |
| | | v-if="record.status === '1'" |
| | | @click="handleEdit(record)" |
| | | v-has="'dailyInspectionOrder:edit'" |
| | | >ç¼è¾</a> |
| | | <a-divider |
| | | v-if="record.status === '1'" |
| | | 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> |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-has="'dailyInspectionOrder:delete'" |
| | | > |
| | | <a v-if="record.status === '1'">å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | |
| | | <span |
| | | slot="num" |
| | | slot-scope="text, record" |
| | | > |
| | | <a |
| | | v-if="record.status === '3' || record.status === '4' ||record.status === '5' ||record.status === '6' " |
| | | class="lot" |
| | | @click="handleOrderExe(record)" |
| | | >{{record.num}}</a> |
| | | <span v-else>{{record.num}}</span> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <daily-inspection-order-modal |
| | | ref="modalForm" |
| | | @ok="modalFormOk" |
| | | ></daily-inspection-order-modal> |
| | | |
| | | <inspection-order-assign-modal |
| | | ref="InspectionOrderAssignModal" |
| | | @ok="modalFormOk" |
| | | ></inspection-order-assign-modal> |
| | | |
| | | <inspection-order-exe-modal |
| | | ref="InspectionOrderExeModal" |
| | | @ok="modalFormOk" |
| | | ></inspection-order-exe-modal> |
| | | <daily-inspection-order-exe-drawer |
| | | ref="DailyInspectionOrderExeDrawer" |
| | | @ok="modalFormOk" |
| | | ></daily-inspection-order-exe-drawer> |
| | | |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import DailyInspectionOrderModal from '@/views/eam/modules/dailyInspectionOrder/DailyInspectionOrderModal' |
| | | import InspectionOrderAssignModal from '@/views/eam/modules/dailyInspectionOrder/InspectionOrderAssignModal' |
| | | import InspectionOrderExeModal from '@/views/eam/modules/dailyInspectionOrder/InspectionOrderExeModal' |
| | | import DailyInspectionOrderExeDrawer from '@/views/eam/modules/dailyInspectionOrder/DailyInspectionOrderExeDrawer' |
| | | import { getAction, postAction, requestPut } from '@/api/manage' |
| | | import moment from 'moment' |
| | | |
| | | export default { |
| | | name: 'DailyInspectionOrderListComponent', |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | | components: { |
| | | DailyInspectionOrderModal, |
| | | InspectionOrderExeModal, |
| | | DailyInspectionOrderExeDrawer, |
| | | InspectionOrderAssignModal |
| | | }, |
| | | props:{ |
| | | mainId:{ |
| | | type:String, |
| | | default:'', |
| | | required:false |
| | | } |
| | | }, |
| | | watch:{ |
| | | mainId:{ |
| | | immediate: true, |
| | | handler(val) { |
| | | if(!this.mainId){ |
| | | this.queryParam['equipmentId'] = 'NAN' |
| | | this.loadData(1); |
| | | }else{ |
| | | this.queryParam['equipmentId'] = val |
| | | this.loadData(1); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | description: 'èªä¸»ç»´æ¤ç¹æ£å·¥å', |
| | | finishTime: [], |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: "center", |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1; |
| | | } |
| | | }, |
| | | |
| | | { |
| | | title: 'ç¹æ£å·¥åå·', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | scopedSlots: { customRender: 'num' } |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: "center", |
| | | dataIndex: 'equipmentNum' |
| | | }, |
| | | { |
| | | title: 'ç¶æ', |
| | | align: "center", |
| | | width: 100, |
| | | dataIndex: 'statusName' |
| | | }, |
| | | { |
| | | title: 'ç¹æ£å¨æ', |
| | | align: "center", |
| | | width: 100, |
| | | dataIndex: 'inspectionCycleName' |
| | | }, |
| | | // { |
| | | // title: 'ç¹æ£æ¥æ', |
| | | // align: "center", |
| | | // dataIndex: 'inspectionDate', |
| | | // customRender: function (text) { |
| | | // return !text ? "" : (text.length > 10 ? text.substr(0, 10) : text) |
| | | // } |
| | | // }, |
| | | // { |
| | | // title: 'ç¹æ£æ¶é´', |
| | | // align: "center", |
| | | // dataIndex: 'inspectionTime', |
| | | // // customRender: function (text) { |
| | | // // return !text ? "" : (text.length > 10 ? text.substr(11, 20) : text) |
| | | // // } |
| | | // }, |
| | | // { |
| | | // title: 'æªæ¢æ¶é´', |
| | | // align: "center", |
| | | // dataIndex: 'inspectionDeadline', |
| | | // }, |
| | | |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: "center", |
| | | dataIndex: 'equipmentName' |
| | | }, |
| | | { |
| | | title: '设å¤åå·', |
| | | align: "center", |
| | | dataIndex: 'equipmentModel' |
| | | }, |
| | | { |
| | | title: '使ç¨é¨é¨', |
| | | align: "center", |
| | | dataIndex: 'useDepartName' |
| | | }, |
| | | { |
| | | title: '责任çç»', |
| | | align: "center", |
| | | dataIndex: 'teamName' |
| | | }, |
| | | // { |
| | | // title: 'å¼å·¥æ¡ä»¶', |
| | | // align: "center", |
| | | // dataIndex: 'startWorkCondition', |
| | | // customRender: (text) => { |
| | | // if (text == '1') { |
| | | // return "æ¯"; |
| | | // } else if (text == '0') { |
| | | // return "å¦"; |
| | | // } |
| | | // }, |
| | | // }, |
| | | // { |
| | | // title: 'ç¹æ£æ åç¼ç ', |
| | | // align: "center", |
| | | // dataIndex: 'inspectionStandardNum' |
| | | // }, |
| | | |
| | | // { |
| | | // title: '派工æ¹å¼', |
| | | // align: "center", |
| | | // dataIndex: 'assignModeName' |
| | | // }, |
| | | // { |
| | | // title: 'ç¹æ£ç»æ', |
| | | // align: "center", |
| | | // dataIndex: 'result' |
| | | // }, |
| | | { |
| | | title: 'ç¹æ£äºº', |
| | | align: "center", |
| | | dataIndex: 'inspectionUserName' |
| | | }, |
| | | { |
| | | title: 'ç¹æ£æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'actualEndTime', |
| | | // customRender: function (text) { |
| | | // return !text ? "" : (text.length > 10 ? text.substr(0, 10) : text) |
| | | // } |
| | | }, |
| | | { |
| | | title: '维修确认人', |
| | | align: "center", |
| | | dataIndex: 'repairConfirmPerson' |
| | | }, |
| | | { |
| | | title: '确认æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'repairConfirmDate', |
| | | // customRender: function (text) { |
| | | // return !text ? "" : (text.length > 10 ? text.substr(0, 10) : text) |
| | | // } |
| | | }, |
| | | // { |
| | | // title: 'å建人', |
| | | // align: "center", |
| | | // dataIndex: 'createBy' |
| | | // }, |
| | | // { |
| | | // title: 'åå»ºæ¥æ', |
| | | // align: "center", |
| | | // dataIndex: 'createTime', |
| | | // }, |
| | | |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 230, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/inspectionOrder/getInspectionOrderList", |
| | | delete: "/eam/inspectionOrder/delete", |
| | | deleteBatch: "/eam/inspectionOrder/deleteBatch", |
| | | exportXlsUrl: "/eam/inspectionOrder/exportXls", |
| | | importExcelUrl: "eam/inspectionOrder/importExcel", |
| | | edit: "/eam/inspectionOrder/editStatus", |
| | | orderGet: "/eam/inspectionOrder/orderGet", |
| | | }, |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function () { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | rowSelection() { |
| | | return { |
| | | type: 'checkbox', |
| | | onChange: (selectedRowKeys, selectedRows) => { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.onSelectChange(selectedRows); |
| | | }, |
| | | getCheckboxProps: record => ({ |
| | | props: { |
| | | disabled: record.distable |
| | | }, |
| | | }), |
| | | selectedRowKeys: this.selectedRowKeys, |
| | | }; |
| | | }, |
| | | }, |
| | | methods: { |
| | | |
| | | // handleOrderExe(record) { |
| | | // this.$refs.InspectionOrderExeModal.visible = true |
| | | // this.$refs.InspectionOrderExeModal.title = 'æ¥å¸¸ç¹æ£æ§è¡' |
| | | // this.$refs.InspectionOrderExeModal.handleShow(record) |
| | | // }, |
| | | //æ¹æ´¾ |
| | | handleAssignOrder: function (record) { |
| | | this.$refs.InspectionOrderAssignModal.edit(record) |
| | | this.$refs.InspectionOrderAssignModal.title = 'å·¥åæ¹æ´¾' |
| | | this.$refs.InspectionOrderAssignModal.disableSubmit = false |
| | | }, |
| | | handleOrderExe(record) { |
| | | this.$refs.DailyInspectionOrderExeDrawer.visible = true |
| | | this.$refs.DailyInspectionOrderExeDrawer.title = 'èªä¸»ç»´æ¤ç¹æ£æ§è¡' |
| | | this.$refs.DailyInspectionOrderExeDrawer.handleShow(record) |
| | | if (record.status === '3') { |
| | | this.$refs.DailyInspectionOrderExeDrawer.buttonDistable = true//ä¿åãæåãæ¥å·¥ |
| | | this.$refs.DailyInspectionOrderExeDrawer.revocationDistable = true//æ¤éæé® |
| | | this.$refs.DailyInspectionOrderExeDrawer.SWbuttonDistable = false//å¼å·¥æé® |
| | | } else if (record.status === '4') { |
| | | this.$refs.DailyInspectionOrderExeDrawer.buttonDistable = false |
| | | this.$refs.DailyInspectionOrderExeDrawer.revocationDistable = true |
| | | this.$refs.DailyInspectionOrderExeDrawer.SWbuttonDistable = true |
| | | } else if (record.status === '5') { |
| | | this.$refs.DailyInspectionOrderExeDrawer.buttonDistable = true |
| | | this.$refs.DailyInspectionOrderExeDrawer.revocationDistable = false |
| | | this.$refs.DailyInspectionOrderExeDrawer.SWbuttonDistable = true |
| | | } else if (record.status === '6') { |
| | | this.$refs.DailyInspectionOrderExeDrawer.buttonDistable = true |
| | | this.$refs.DailyInspectionOrderExeDrawer.revocationDistable = true |
| | | this.$refs.DailyInspectionOrderExeDrawer.SWbuttonDistable = true |
| | | } |
| | | }, |
| | | |
| | | onSelectChange(selectionRows) { |
| | | this.selectionRows = selectionRows; |
| | | }, |
| | | |
| | | handleOrderIssue(record) { |
| | | const that = this; |
| | | requestPut(that.url.edit, { id: record.id, status: '2' }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("å·¥åä¸åæåï¼") |
| | | that.loadData() |
| | | } else { |
| | | that.$message.warning("å·¥åä¸å失败ï¼") |
| | | } |
| | | }) |
| | | }, |
| | | //æ¤å |
| | | handleOrderReset(record) { |
| | | const that = this; |
| | | requestPut(that.url.edit, { id: record.id, status: '1' }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("工忤åæåï¼") |
| | | that.loadData() |
| | | } else { |
| | | that.$message.warning("工忤å失败ï¼") |
| | | } |
| | | }) |
| | | }, |
| | | handleOrderGet(record) { |
| | | const that = this; |
| | | requestPut(that.url.orderGet, { id: record.id, status: '3' }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("å·¥åé¢åæåï¼") |
| | | that.loadData() |
| | | } else { |
| | | that.$message.warning("å·¥åé¢å失败ï¼") |
| | | } |
| | | }) |
| | | }, |
| | | //维修确认 |
| | | handleOrderRepairConfirm(record) { |
| | | const that = this; |
| | | requestPut(that.url.edit, { id: record.id, status: '6' }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("å·¥åå®å·¥æåï¼") |
| | | that.loadData() |
| | | } else { |
| | | that.$message.warning("å·¥åå®å·¥å¤±è´¥ï¼") |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | //æ¢å¤ |
| | | handleOrderRecover(record) { |
| | | const that = this; |
| | | requestPut(that.url.edit, { id: record.id, status: '2' }).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("工忢夿åï¼") |
| | | that.loadData() |
| | | } else { |
| | | that.$message.warning("工忢å¤å¤±è´¥ï¼") |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | //é¢è¦é¢è² |
| | | tableRowClass(record, index) { |
| | | if (("1" == record.status || "2" == record.status) && "1æ¥" == record.inspectionCycleName) { |
| | | if (record.redWarningTime < record.currentDateTime) { |
| | | return 'error' |
| | | } |
| | | } |
| | | }, |
| | | clearList(){ |
| | | this.dataSource=[] |
| | | this.selectedRowKeys=[] |
| | | this.ipagination.current = 1 |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | @import '~@assets/less/common.less'; |
| | | .frozenRowClass { |
| | | color: #c9c9c9; |
| | | font-weight: bold; |
| | | } |
| | | .success { |
| | | color: green; |
| | | } |
| | | .error { |
| | | color: red; |
| | | font-weight: bold; |
| | | } |
| | | .yellow { |
| | | color: rgba(255, 255, 0, 0.443); |
| | | font-weight: bold; |
| | | } |
| | | .fontweight { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .ant-table-tbody .red { |
| | | background-color: red !important; |
| | | } |
| | | </style> |
| | |
| | | </div> |
| | | </a-tab-pane> |
| | | <a-tab-pane |
| | | tab='æ£å®è®°å½' |
| | | tab='é´å®è®°å½' |
| | | key="6" |
| | | > |
| | | <div |