| | |
| | | <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;"> |
| | |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'radio'}" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'checkbox'}" |
| | | :customRow="clickThenSelect" |
| | | @change="handleTableChange"> |
| | | |
| | |
| | | <a-tabs defaultActiveKey="1"> |
| | | <a-tab-pane tab="工艺参数" key="1" > |
| | | <EquipmentProcessParametersList |
| | | :mainId="equipmentProcessParametersMainId" |
| | | :mainId="selectedMainId" |
| | | :isOpen="isOpenProcess" |
| | | /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="设备精度" key="2" forceRender> |
| | | <EquipmentPrecisionParametersList |
| | | :isOpen="isOpenPrecision" |
| | | :mainId="equipmentPrecisionParametersMainId" /> |
| | | :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="设备文档" key="3" forceRender> |
| | | <EquipmentDocumentList :mainId="equipmentDocumentMainId" /> |
| | | <EquipmentDocumentList :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="ABC标识变更记录" key="4" forceRender> |
| | | <equipment-update-ABC-list :mainId="selectedMainId" /> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="质保期变更记录" key="5" 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> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | 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.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' |
| | | |
| | | |
| | | |
| | | |
| | | export default { |
| | |
| | | JSearchSelectTag, |
| | | ProcessEditModel, |
| | | PrecisionEditModel, |
| | | EquipmentUpdateABCList , |
| | | EquipmentUpdateWarrantyList, |
| | | ABCUpdateEditModel, |
| | | WarrantyUpdateModel, |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | mainId:'', |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | if(selectedRowKeys.length==1){ |
| | | this.equipmentProcessParametersMainId = selectionRows[0]['id'] |
| | | this.equipmentDocumentMainId = selectionRows[0]['id'] |
| | | this.equipmentPrecisionParametersMainId = selectionRows[0]['id'] |
| | | this.selectedMainId=selectedRowKeys[0] |
| | | this.isOpenProcess = selectionRows[0].processParameters==1; |
| | | this.isOpenPrecision = selectionRows[0].precisionParameters==1; |
| | | }else{ |
| | | this.equipmentProcessParametersMainId ='' |
| | | this.equipmentDocumentMainId = '' |
| | | this.equipmentPrecisionParametersMainId = '' |
| | | this.selectedMainId='' |
| | | } |
| | | this.selectedRowKeys = selectedRowKeys; |
| | |
| | | } |
| | | }) |
| | | }, |
| | | handleUpdateABC(){ |
| | | this.$refs.updateABC.add(); |
| | | }, |
| | | handleUpdateWarranty(){ |
| | | this.$refs.updateWarranty.add(); |
| | | } |
| | | |
| | | } |
| | | } |