¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="5"> |
| | | <a-form-item |
| | | label="è®¾å¤æå±åç±»" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-search-select-tag |
| | | dict="mom_eam_equipment_category,name,id" |
| | | placeholder="请è¾å
¥æç´¢æ¡ä»¶å¹¶éæ©" |
| | | v-model="queryParam.equipmentCategoryId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="ç»ä¸ç¼ç " |
| | | > |
| | | <j-input |
| | | placeholder="请è¾å
¥è®¾å¤ç»ä¸ç¼ç æ¥è¯¢" |
| | | v-model="queryParam.num" |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :span="5" |
| | | > |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="设å¤åç§°" |
| | | > |
| | | <j-input |
| | | placeholder="请è¾å
¥è®¾å¤åç§°æ¥è¯¢" |
| | | v-model="queryParam.name" |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="5"> |
| | | <a-form-item |
| | | label="åå·" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-input |
| | | v-model="queryParam.model" |
| | | placeholder="请è¾å
¥åå·" |
| | | ></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="4"> |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a |
| | | @click="handleToggleSearch" |
| | | style="margin-left: 8px" |
| | | > |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'" /> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="产线" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©äº§çº¿" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_work_center,name,id,del_flag!='1'" |
| | | v-model="queryParam.workCenterId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="车é´" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©èµè½¦é´" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_factory_model,name,id,del_flag!='1'" |
| | | v-model="queryParam.factoryModelId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="ç»´æ¤é¨é¨" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="è¯·éæ©ç»´æ¤é¨é¨" |
| | | tree-default-expand-all |
| | | v-model="queryParam.manageId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="使ç¨é¨é¨" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="è¯·éæ©ä½¿ç¨é¨é¨" |
| | | tree-default-expand-all |
| | | v-model="queryParam.useId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="ABCæ è¯" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©ABCæ è¯" |
| | | :triggerChange="true" |
| | | dictCode="ABC-standard-result" |
| | | v-model="queryParam.equipmentImportanceId" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="ææ¯ç¶æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©ææ¯ç¶æ" |
| | | :triggerChange="true" |
| | | dictCode="technology_status" |
| | | v-model="queryParam.technologyStatus" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="设å¤ç¶æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="è¯·éæ©è®¾å¤ç¶æ" |
| | | :triggerChange="true" |
| | | dictCode="equipment_status" |
| | | v-model="queryParam.equipmentStatus" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-item |
| | | label="å
³é®è®¾å¤æ è¯" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :triggerChange="true" |
| | | placeholder="è¯·éæ©å
³é®è®¾å¤æ è¯" |
| | | dictCode="specific_equipment" |
| | | v-model="queryParam.specificEquipment" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="è´¨ä¿å¼å§æ¥æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-date style="width: 100%;" placeholder="è¯·éæ©å¼å§æ¥æ" class="query-group-cust" v-model="queryParam.warrantyStart"></j-date> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="è´¨ä¿ç»ææ¥æ" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-date style="width: 100%;" placeholder="è¯·éæ©ç»ææ¥æ" class="query-group-cust" v-model="queryParam.warrantyEnd"></j-date> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </template> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | >æ¥è¯¢</a-button> |
| | | <a-button |
| | | @click="searchReset" |
| | | icon="reload" |
| | | >éç½®</a-button> |
| | | <a-button @click="handleAdd" type="primary" icon="plus" v-has="'equipmentAccount:add&delete&import&Edit'">æ°å¢</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('设å¤å°è´¦')" v-has="'equipmentAccount:outport'">导åº</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import" v-has="'equipmentAccount:add&delete&import&Edit'">导å
¥</a-button> |
| | | </a-upload> |
| | | <a-button :disabled="selectedRowKeys.length==0" @click="handleUpdateABC" type="primary" icon="font-colors" v-has="'equipmentAccount:add&delete&import&Edit'">ABCæ è¯åæ´</a-button> |
| | | <a-button :disabled="selectedRowKeys.length==0" @click="handleUpdateWarranty" type="primary" icon="calendar" v-has="'equipmentAccount:add&delete&import&Edit'">è´¨ä¿æåæ´</a-button> |
| | | </div> |
| | | <!-- 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" |
| | | bordered |
| | | rowKey="id" |
| | | :scroll="{x:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'checkbox'}" |
| | | :customRow="clickThenSelect" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text,record"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <!--å·¥èºåæ°ä¸ªæ§å±ç¤º--> |
| | | <span |
| | | slot="processParameters" |
| | | slot-scope="text,record" |
| | | > |
| | | <a-badge |
| | | v-if="record.processParameters==1" |
| | | status="success" |
| | | /> |
| | | <span |
| | | v-if="record.processParameters==1" |
| | | class="success" |
| | | >æ¯</span> |
| | | <a-badge |
| | | v-if="record.processParameters==0" |
| | | status="error" |
| | | /> |
| | | <span |
| | | v-if="record.processParameters==0" |
| | | class="error" |
| | | >å¦</span> |
| | | </span> |
| | | <span |
| | | slot="processParameters" |
| | | slot-scope="text,record" |
| | | > |
| | | <a-badge |
| | | v-if="record.processParameters==1" |
| | | status="success" |
| | | /> |
| | | <span |
| | | v-if="record.processParameters==1" |
| | | class="success" |
| | | >æ¯</span> |
| | | <a-badge |
| | | v-if="record.processParameters==0" |
| | | status="error" |
| | | /> |
| | | <span |
| | | v-if="record.processParameters==0" |
| | | class="error" |
| | | >å¦</span> |
| | | </span> |
| | | <span |
| | | slot="precisionParameters" |
| | | slot-scope="text,record" |
| | | > |
| | | <a-badge |
| | | v-if="record.precisionParameters==1" |
| | | status="success" |
| | | /> |
| | | <span |
| | | v-if="record.precisionParameters==1" |
| | | class="success" |
| | | >æ¯</span> |
| | | <a-badge |
| | | v-if="record.precisionParameters==0" |
| | | status="error" |
| | | /> |
| | | <span |
| | | v-if="record.precisionParameters==0" |
| | | class="error" |
| | | >å¦</span> |
| | | </span> |
| | | <span |
| | | slot="verification" |
| | | slot-scope="text,record" |
| | | > |
| | | <a-badge |
| | | v-if="record.verification==1" |
| | | status="success" |
| | | /> |
| | | <span |
| | | v-if="record.verification==1" |
| | | class="success" |
| | | >æ¯</span> |
| | | <a-badge |
| | | v-if="record.verification==0" |
| | | status="error" |
| | | /> |
| | | <span |
| | | v-if="record.verification==0" |
| | | class="error" |
| | | >å¦</span> |
| | | </span> |
| | | |
| | | <span |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <!-- class="table-operation" --> |
| | | <!-- <a |
| | | href="javascript:;" |
| | | @click="equipmentStructuresShow(record)" |
| | | >设å¤ç»æ</a> |
| | | <a-divider type="vertical" /> --> |
| | | <a |
| | | href="javascript:;" |
| | | @click='handleDetail(record)' |
| | | >详æ
</a> |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link"> |
| | | æ´å¤ |
| | | <a-icon type="down" /> |
| | | </a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="equipmentResumeShow(record)">设å¤å±¥å</a> |
| | | </a-menu-item> |
| | | <a-menu-item v-has="'accountSons:add&edit&delete&submit'" v-if="record.processParameters==1"> |
| | | <a @click="editProcess(record)">å·¥èºåæ°ç»´æ¤</a> |
| | | </a-menu-item> |
| | | <a-menu-item v-has="'accountSons:add&edit&delete&submit'" v-if="record.precisionParameters==1"> |
| | | <a @click="editPrecision(record)">ç²¾åº¦åæ°ç»´æ¤</a> |
| | | </a-menu-item> |
| | | <a-menu-item v-has="'equipmentAccount:add&delete&import&Edit'"> |
| | | <a @click="handleEdit(record)" >ç¼è¾</a> |
| | | </a-menu-item> |
| | | <a-menu-item v-has="'equipmentAccount:add&delete&import&Edit'"> |
| | | <a @click="handleEditSpareParts(record)" >ç¼è¾å¤ä»¶</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | v-has="'equipmentAccount:add&delete&import&Edit'" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | <equipment-resume-drawer |
| | | ref="EquipmentResumeDrawer" |
| | | @ok="modalFormOk" |
| | | ></equipment-resume-drawer> |
| | | |
| | | <a-tabs defaultActiveKey="1"> |
| | | <a-tab-pane tab="å·¥èºåæ°" key="1" > |
| | | <EquipmentProcessParametersList |
| | | :mainId="selectedMainId" |
| | | :isOpen="isOpenProcess" |
| | | /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="设å¤ç²¾åº¦" key="2" forceRender> |
| | | <EquipmentPrecisionParametersList |
| | | :isOpen="isOpenPrecision" |
| | | :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è®¾å¤ææ¡£" key="3" forceRender> |
| | | <EquipmentDocumentList :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="å¤ä»¶" key="4" forceRender> |
| | | <EquipmentSpareParts :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ABCæ è¯åæ´è®°å½" key="5" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="è´¨ä¿æåæ´è®°å½" key="6" forceRender> |
| | | <equipment-update-warranty-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <equipment-modal ref="modalForm" @ok="modalFormOk"></equipment-modal> |
| | | <process-edit-model ref ="processEditModel"></process-edit-model> |
| | | <precision-edit-model ref ="precisionEditModel"></precision-edit-model> |
| | | <aBC-update-edit-model @ok="modalFormOk" :updateList="selectionRows" ref="updateABC"></aBC-update-edit-model> |
| | | <warranty-update-model :updateList="selectionRows" ref="updateWarranty"></warranty-update-model> |
| | | <EquipmentSparePartsModal ref="modalFormSpareParts" @ok="modalFormOk" /> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import EquipmentModal from './modules/equipmentNew/EquipmentModal' |
| | | import { getAction } from '@/api/manage' |
| | | import EquipmentProcessParametersList from './modules/equipmentNew/EquipmentProcessParametersList' |
| | | import EquipmentDocumentList from './modules/equipmentNew/EquipmentDocumentList' |
| | | import EquipmentPrecisionParametersList from './modules/equipmentNew/EquipmentPrecisionParametersList' |
| | | import '@/assets/less/TableExpand.less' |
| | | import EquipmentResumeDrawer from './modules/equipmentNew/EquipmentResume/EquipmentResumeDrawer' |
| | | import JSearchSelectTag from '../../components/dict/JSearchSelectTag.vue' |
| | | import ProcessEditModel from './modules/equipmentNew/edit/ProcessEditModel.vue' |
| | | import PrecisionEditModel from './modules/equipmentNew/edit/PrecisionEditModel' |
| | | import EquipmentUpdateABCList from './modules/equipmentNew/EquipmentUpdateABCList.vue' |
| | | import EquipmentUpdateWarrantyList from './modules/equipmentNew/EquipmentUpdateWarrantyList.vue' |
| | | import ABCUpdateEditModel from './modules/equipmentNew/edit/ABCUpdateEditModel.vue' |
| | | import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue' |
| | | import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue' |
| | | import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal' |
| | | export default { |
| | | name: "EquipmentList", |
| | | mixins:[JeecgListMixin,mixinDevice], |
| | | components: { |
| | | EquipmentProcessParametersList, |
| | | EquipmentDocumentList, |
| | | EquipmentPrecisionParametersList, |
| | | EquipmentModal, |
| | | EquipmentResumeDrawer, |
| | | JSearchSelectTag, |
| | | ProcessEditModel, |
| | | PrecisionEditModel, |
| | | EquipmentUpdateABCList , |
| | | EquipmentUpdateWarrantyList, |
| | | ABCUpdateEditModel, |
| | | WarrantyUpdateModel, |
| | | EquipmentSpareParts, |
| | | EquipmentSparePartsModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: '设å¤å°è´¦ç®¡ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | align: 'center', |
| | | customRender: function (t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | width: 50, |
| | | }, |
| | | { |
| | | title: '设å¤ç±»å', |
| | | align: "center", |
| | | dataIndex: 'equipmentCategoryId_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: "center", |
| | | dataIndex: 'name', |
| | | }, |
| | | { |
| | | title: 'åå·', |
| | | align: "center", |
| | | dataIndex: 'model', |
| | | }, |
| | | { |
| | | title: 'è§æ ¼', |
| | | align: "center", |
| | | dataIndex: 'specification', |
| | | }, |
| | | { |
| | | title: 'æ»åç', |
| | | align: "center", |
| | | dataIndex: 'gpo', |
| | | }, |
| | | { |
| | | title: '使ç¨é¨é¨', |
| | | align: "center", |
| | | dataIndex: 'useId_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»´æ¤é¨é¨', |
| | | align: "center", |
| | | dataIndex: 'manageId_dictText', |
| | | }, |
| | | { |
| | | title: 'ç»´ä¿®çç»', |
| | | align: "center", |
| | | dataIndex: 'teamId_dictText', |
| | | }, |
| | | { |
| | | title: 'ABCæ è¯', |
| | | align: "center", |
| | | dataIndex: 'equipmentImportanceId', |
| | | }, |
| | | { |
| | | title: 'å
³é®è®¾å¤æ è¯', |
| | | align: "center", |
| | | dataIndex: 'specificEquipment_dictText', |
| | | }, |
| | | // { |
| | | // title: 'å·¥åº', |
| | | // align: "center", |
| | | // dataIndex: 'equipmentUda1', |
| | | // }, |
| | | // { |
| | | // title: 'å®å
¨é
ç½®', |
| | | // align: "center", |
| | | // dataIndex: 'securityConfiguration', |
| | | // }, |
| | | // { |
| | | // title: 'å·å´ç³»ç»', |
| | | // align: "center", |
| | | // 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: '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", |
| | | dataIndex: 'processParameters', |
| | | scopedSlots: { customRender: 'processParameters' }, |
| | | }, |
| | | { |
| | | title: 'å·¥èºåæ°æ¨¡æ¿', |
| | | align: "center", |
| | | dataIndex: 'processParametersTemplateId_dictText', |
| | | }, |
| | | { |
| | | title: '设å¤ç²¾åº¦ç®¡ç', |
| | | align: "center", |
| | | dataIndex: 'precisionParameters', |
| | | scopedSlots: { customRender: 'precisionParameters' }, |
| | | }, |
| | | { |
| | | title: 'ç²¾åº¦åæ°æ¨¡æ¿', |
| | | align: "center", |
| | | dataIndex: 'precisionParametersTemplateId_dictText', |
| | | }, |
| | | // { |
| | | // title: '夿³¨', |
| | | // align: "center", |
| | | // dataIndex: 'remark', |
| | | // }, |
| | | { |
| | | title: 'æä½', |
| | | align: "center", |
| | | dataIndex: 'action', |
| | | scopedSlots: { |
| | | customRender: 'action', |
| | | }, |
| | | width: 147, |
| | | fixed: 'right', |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/eam/equipment/getEquipmentList", |
| | | delete: "/eam/equipment/delete", |
| | | deleteBatch: "/eam/equipment/deleteBatch", |
| | | active: "/eam/equipment/active", |
| | | exportXlsUrl: '/eam/equipment/exportXls', |
| | | importExcelUrl: "/eam/equipment/importExcel", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | dictOptions:{ |
| | | }, |
| | | /* å页忰 */ |
| | | ipagination:{ |
| | | current: 1, |
| | | pageSize: 5, |
| | | pageSizeOptions: ['5', '10', '50'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " å
±" + total + "æ¡" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | selectedMainId:'', |
| | | superFieldList:[], |
| | | equipmentProcessParametersMainId: '', |
| | | equipmentDocumentMainId: '', |
| | | equipmentPrecisionParametersMainId: '', |
| | | isOpenPrecision:true, |
| | | isOpenProcess:true, |
| | | treeData: [], |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | mainId:'', |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | this.initOptions(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | equipmentResumeShow(record) { |
| | | this.$refs.EquipmentResumeDrawer.visible = true |
| | | this.$refs.EquipmentResumeDrawer.title = '设å¤å±¥å' |
| | | this.$refs.EquipmentResumeDrawer.handleShow(record) |
| | | }, |
| | | clickThenSelect(record) { |
| | | return { |
| | | on: { |
| | | click: () => { |
| | | this.onSelectChange(record.id.split(","), [record]); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | onClearSelected() { |
| | | this.selectedRowKeys = []; |
| | | this.selectionRows = []; |
| | | this.selectedMainId='' |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | if(selectedRowKeys.length==1){ |
| | | this.selectedMainId=selectedRowKeys[0] |
| | | this.isOpenProcess = selectionRows[0].processParameters==1; |
| | | this.isOpenPrecision = selectionRows[0].precisionParameters==1; |
| | | }else{ |
| | | this.selectedMainId='' |
| | | } |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows; |
| | | }, |
| | | loadData(arg) { |
| | | if(!this.url.list){ |
| | | this.$message.error("请设置url.list屿§!") |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1; |
| | | } |
| | | this.onClearSelected() |
| | | var params = this.getQueryParams();//æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records; |
| | | this.ipagination.total = res.result.total; |
| | | } |
| | | if(res.code===510){ |
| | | this.$message.warning(res.message) |
| | | } |
| | | this.loading = false; |
| | | }) |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'string',value:'num',text:'ç»ä¸ç¼ç ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'name',text:'设å¤åç§°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'model',text:'åå·',dictCode:''}) |
| | | fieldList.push({type:'string',value:'specification',text:'è§æ ¼',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentStatus',text:'设å¤ç¶æ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'technologyStatus',text:'technologyStatus',dictCode:''}) |
| | | fieldList.push({type:'string',value:'assetNumber',text:'assetNumber',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentCategoryId',text:'equipmentCategoryId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'specificEquipment',text:'specificEquipment',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentPhoto',text:'equipmentPhoto',dictCode:''}) |
| | | fieldList.push({type:'string',value:'constructorId',text:'èµäº§å¶é å',dictCode:''}) |
| | | fieldList.push({type:'string',value:'supplierId',text:'supplierId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'factoryNumber',text:'factoryNumber',dictCode:''}) |
| | | fieldList.push({type:'string',value:'leaveFactoryDate',text:'åºåæ¥æ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'acceptanceCheckDate',text:'éªæ¶æ¥æ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'affiliationId',text:'affiliationId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'manageId',text:'ç»´æ¤é¨é¨ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'manager',text:'manager',dictCode:''}) |
| | | fieldList.push({type:'string',value:'useId',text:'使ç¨é¨é¨ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'functionary',text:'functionary',dictCode:''}) |
| | | fieldList.push({type:'string',value:'location',text:'location',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentImportanceId',text:'ABCæ è¯ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'processParameters',text:'processParameters',dictCode:''}) |
| | | fieldList.push({type:'string',value:'processParametersTemplateId',text:'processParametersTemplateId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'precisionParameters',text:'precisionParameters',dictCode:''}) |
| | | fieldList.push({type:'string',value:'precisionParametersTemplateId',text:'precisionParametersTemplateId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'verification',text:'verification',dictCode:''}) |
| | | fieldList.push({type:'string',value:'verificationPeriod',text:'verificationPeriod',dictCode:''}) |
| | | fieldList.push({type:'string',value:'lastVerificationDate',text:'lastVerificationDate',dictCode:''}) |
| | | fieldList.push({type:'string',value:'nextVerificationDate',text:'nextVerificationDate',dictCode:''}) |
| | | fieldList.push({type:'string',value:'status',text:'status',dictCode:''}) |
| | | fieldList.push({type:'string',value:'remark',text:'remark',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentUda1',text:'å·¥åº',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentUda2',text:'å®è£
ä½ç½®',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentUda3',text:'éé',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentUda4',text:'éé计éåä½ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentUda5',text:'åè½ä½ç½®',dictCode:''}) |
| | | fieldList.push({type:'string',value:'tenantId',text:'tenantId',dictCode:''}) |
| | | fieldList.push({type:'int',value:'delFlag',text:'delFlag',dictCode:''}) |
| | | fieldList.push({type:'string',value:'teamId',text:'ç»´ä¿®çç»ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'sourceId',text:'sourceId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'fundSource',text:'èµéæ¥æº',dictCode:''}) |
| | | fieldList.push({type:'string',value:'factoryNo',text:'åºåç¼å·',dictCode:''}) |
| | | fieldList.push({type:'string',value:'mfr',text:'å¶é å',dictCode:''}) |
| | | fieldList.push({type:'string',value:'sourceCountry',text:'èµäº§æ¥æºå½å®¶',dictCode:''}) |
| | | fieldList.push({type:'string',value:'gpo',text:'æ»åç',dictCode:''}) |
| | | fieldList.push({type:'string',value:'keyEquipmentIdentification',text:'å
³é®è®¾å¤æ è¯',dictCode:''}) |
| | | fieldList.push({type:'string',value:'securityConfiguration',text:'å®å
¨é
ç½®',dictCode:''}) |
| | | fieldList.push({type:'string',value:'coolingSystem',text:'å·å´ç³»ç»',dictCode:''}) |
| | | fieldList.push({type:'string',value:'fireExtinguisher',text:'çç«å¨',dictCode:''}) |
| | | fieldList.push({type:'string',value:'fireExtinguisherValidityPeriod',text:'çç«å¨æææ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'operatingSystem',text:'æä½ç³»ç»',dictCode:''}) |
| | | fieldList.push({type:'string',value:'system',text:'ç³»ç»',dictCode:''}) |
| | | fieldList.push({type:'string',value:'port',text:'端å£',dictCode:''}) |
| | | fieldList.push({type:'BigDecimal',value:'coordinateNum',text:'åæ æ°é',dictCode:''}) |
| | | fieldList.push({type:'string',value:'projectApprovalNo',text:'ç«é¡¹å¡å·',dictCode:''}) |
| | | this.superFieldList = fieldList |
| | | }, |
| | | editProcess(record){ |
| | | this.$refs.processEditModel.edit(record); |
| | | }, |
| | | editPrecision(record){ |
| | | this.$refs.precisionEditModel.edit(record); |
| | | }, |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | handleUpdateABC(){ |
| | | this.$refs.updateABC.add(); |
| | | }, |
| | | handleUpdateWarranty(){ |
| | | this.$refs.updateWarranty.add(); |
| | | }, |
| | | handleEditSpareParts(record){ |
| | | this.$refs.modalFormSpareParts.edit(record); |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less' |
| | | </style> |