qushaowei
2023-08-21 c120699170354666327cc3c1d7f1cc1eb5f90c4f
src/views/eam/modules/equipment/EquipmentAccount2List.vue
@@ -210,11 +210,11 @@
        slot-scope="text, record"
      >
        <!-- class="table-operation" -->
        <a
        <!-- <a
          href="javascript:;"
          @click="equipmentStructuresShow(record)"
        >设备结构</a>
        <a-divider type="vertical" />
        <a-divider type="vertical" /> -->
        <a
          href="javascript:;"
          @click="handleEdit(record)"
@@ -249,7 +249,7 @@
      type="card"
      defaultActiveKey="1"
    >
      <a-tab-pane key="1">
      <!-- <a-tab-pane key="1">
        <span slot="tab">
          <a-badge v-if="showTabsFlag">工艺参数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a-badge>
          <a-badge
@@ -265,7 +265,7 @@
        >
          <process-parameters-list ref="ProcessParametersList"></process-parameters-list>
        </div>
      </a-tab-pane>
      </a-tab-pane> -->
      <a-tab-pane
        key="2"
@@ -402,11 +402,6 @@
          dataIndex: 'num',
        },
        {
          title: '资产编码',
          align: "center",
          dataIndex: 'assetNumber',
        },
        {
          title: '设备名称',
          align: "center",
          dataIndex: 'name',
@@ -422,6 +417,11 @@
          dataIndex: 'specification',
        },
        {
          title: '资产编码',
          align: "center",
          dataIndex: 'assetNumber',
        },
        {
          title: '设备状态',
          align: "center",
          dataIndex: 'equipmentStatus_dictText',
@@ -434,12 +434,7 @@
        {
          title: '特种设备',
          align: "center",
          dataIndex: 'specificEquipment',
        },
        {
          title: '特种设备',
          align: "center",
          dataIndex: 'sourceId_dictText',
          dataIndex: 'specificEquipment_dictText',
        },
        {
          title: '设备图片',
@@ -512,17 +507,17 @@
          align: "center",
          dataIndex: 'equipmentImportanceId_dictText',
        },
        {
          title: '工艺参数管理',
          align: "center",
          dataIndex: 'processParameters',
          scopedSlots: { customRender: 'processParameters' },
        },
        {
          title: '工艺参数模板',
          align: "center",
          dataIndex: 'processParametersTemplateName',
        },
        // {
        //   title: '工艺参数管理',
        //   align: "center",
        //   dataIndex: 'processParameters',
        //   scopedSlots: { customRender: 'processParameters' },
        // },
        // {
        //   title: '工艺参数模板',
        //   align: "center",
        //   dataIndex: 'processParametersTemplateName',
        // },
        {
          title: '设备精度管理',
          align: "center",
@@ -534,27 +529,27 @@
          align: "center",
          dataIndex: 'precisionParametersTemplateName',
        },
        {
          title: '检定管理',
          align: "center",
          dataIndex: 'verification',
          scopedSlots: { customRender: 'verification' },
        },
        {
          title: '检定周期/月',
          align: "center",
          dataIndex: 'verificationPeriod',
        },
        {
          title: '上次检定日期',
          align: "center",
          dataIndex: 'lastVerificationDate',
        },
        {
          title: '下次检定日期',
          align: "center",
          dataIndex: 'nextVerificationDate',
        },
        // {
        //   title: '检定管理',
        //   align: "center",
        //   dataIndex: 'verification',
        //   scopedSlots: { customRender: 'verification' },
        // },
        // {
        //   title: '检定周期/月',
        //   align: "center",
        //   dataIndex: 'verificationPeriod',
        // },
        // {
        //   title: '上次检定日期',
        //   align: "center",
        //   dataIndex: 'lastVerificationDate',
        // },
        // {
        //   title: '下次检定日期',
        //   align: "center",
        //   dataIndex: 'nextVerificationDate',
        // },
        // {
        //   title: '状态',
        //   align: 'center',
@@ -626,11 +621,11 @@
    onSelectChange(selectedRowKeys, selectionRows) {
      if (selectedRowKeys.length == 1) {
        this.$refs.ProcessParametersList.equipmentId = selectedRowKeys[0]
        // this.$refs.ProcessParametersList.equipmentId = selectedRowKeys[0]
        this.$refs.EquipmentFileList.equipmentId = selectedRowKeys[0]
        this.$refs.PrecisionParametersList.equipmentId = selectedRowKeys[0]
      } else {
        this.$refs.ProcessParametersList.equipmentId = '-1'
        // this.$refs.ProcessParametersList.equipmentId = '-1'
        this.$refs.PrecisionParametersList.equipmentId = '-1'
        this.$refs.EquipmentFileList.equipmentId = '-1'
      }
@@ -746,7 +741,7 @@
      }
      this.selectedRowKeys = []
      this.selectionRows = []
      this.$refs.ProcessParametersList.equipmentId = '-1'
      // this.$refs.ProcessParametersList.equipmentId = '-1'
      this.$refs.PrecisionParametersList.equipmentId = '-1'
      this.$refs.EquipmentFileList.equipmentId = '-1'
      this.loadData(1);
@@ -755,7 +750,7 @@
    searchQuery() {
      this.selectedRowKeys = []
      this.selectionRows = []
      this.$refs.ProcessParametersList.equipmentId = '-1'
      // this.$refs.ProcessParametersList.equipmentId = '-1'
      this.$refs.PrecisionParametersList.equipmentId = '-1'
      this.$refs.EquipmentFileList.equipmentId = '-1'
      this.loadData(1);
@@ -767,7 +762,7 @@
      //清空列表选中
      this.onClearSelected()
      this.$refs.ProcessParametersList.equipmentId = '-1'
      // this.$refs.ProcessParametersList.equipmentId = '-1'
      this.$refs.PrecisionParametersList.equipmentId = '-1'
      this.$refs.EquipmentFileList.equipmentId = '-1'
    },
@@ -789,7 +784,7 @@
      }
      this.selectedRowKeys = []
      this.selectionRows = []
      this.$refs.ProcessParametersList.equipmentId = '-1'
      // this.$refs.ProcessParametersList.equipmentId = '-1'
      this.$refs.PrecisionParametersList.equipmentId = '-1'
      this.$refs.EquipmentFileList.equipmentId = '-1'
      this.loadData(1);