From 0810edc966a5fac3f1a25a56fd3b5357a2480715 Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期二, 24 十月 2023 17:05:42 +0800
Subject: [PATCH] 设备台账大全

---
 src/views/eam/EquipmentListOfWeldingMachine.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/views/eam/EquipmentListOfWeldingMachine.vue b/src/views/eam/EquipmentListOfWeldingMachine.vue
index 48de169..58034a4 100644
--- a/src/views/eam/EquipmentListOfWeldingMachine.vue
+++ b/src/views/eam/EquipmentListOfWeldingMachine.vue
@@ -436,7 +436,7 @@
       <a-tab-pane tab="璁惧绮惧害" key="2" forceRender>
         <EquipmentPrecisionParametersList 
         :isOpen="isOpenPrecision"
-        :mainId="selectedMainId" />
+        :mainId="precisionParametersTemplateId" />
       </a-tab-pane>
       <a-tab-pane tab="璁惧鏂囨。" key="3" forceRender>
         <EquipmentDocumentList :mainId="selectedMainId" />
@@ -449,6 +449,9 @@
       </a-tab-pane>
       <a-tab-pane tab="璐ㄤ繚鏈熷彉鏇磋褰�" key="6" forceRender>
         <equipment-update-warranty-list :mainId="selectedMainId" />
+      </a-tab-pane>
+      <a-tab-pane tab="淇濆吇鐐规鏍囧噯" key="7" forceRender>
+       <standard-of-maintenance :mainId="selectedMainId"/>
       </a-tab-pane>
     </a-tabs>
     <equipment-modal ref="modalForm" @ok="modalFormOk" :caytegoryParam="caytegoryParam"></equipment-modal>
@@ -480,6 +483,8 @@
   import WarrantyUpdateModel from './modules/equipmentNew/edit/WarrantyUpdateModel.vue'
   import EquipmentSpareParts from './modules/equipmentNew/EquipmentSpareParts.vue'
   import EquipmentSparePartsModal from './modules/equipmentNew/EquipmentSparePartsModal'
+  import StandardOfInspection from './modules/equipmentNew/StandardOfInspection.vue'
+  import StandardOfMaintenance from './modules/equipmentNew/StandardOfMaintenance.vue'
   export default {
     name: "EquipmentList",
     mixins:[JeecgListMixin,mixinDevice],
@@ -497,7 +502,9 @@
         ABCUpdateEditModel,
         WarrantyUpdateModel,
         EquipmentSpareParts,
-        EquipmentSparePartsModal
+        EquipmentSparePartsModal,
+        StandardOfInspection,
+        StandardOfMaintenance,
     },
     data () {
       return {
@@ -742,6 +749,7 @@
         equipmentProcessParametersMainId: '',
         equipmentDocumentMainId: '',
         equipmentPrecisionParametersMainId: '',
+        precisionParametersTemplateId:'',
         isOpenPrecision:true,
         isOpenProcess:true,
         treeData: [],
@@ -790,10 +798,12 @@
       onSelectChange(selectedRowKeys, selectionRows) {
         if(selectedRowKeys.length==1){
           this.selectedMainId=selectedRowKeys[0]
+          this.precisionParametersTemplateId = selectionRows[0].precisionParametersTemplateId;
           this.isOpenProcess = selectionRows[0].processParameters==1;
           this.isOpenPrecision = selectionRows[0].precisionParameters==1;
         }else{
           this.selectedMainId=''
+          this.precisionParametersTemplateId = ''
         }
         this.selectedRowKeys = selectedRowKeys;
         this.selectionRows = selectionRows;

--
Gitblit v1.9.3