src/views/eam/EquipmentListOfAll.vue
@@ -13,7 +13,10 @@
          :gutter="24"
          style="margin-bottom: 1%;"
        >
          <a-col :span="24">
          <a-col :xl='6'
                :lg='7'
                :md='8'
                :sm='24'>
            <a-form-item
              label="统一编号群"
              :labelCol="labelCol"
@@ -26,9 +29,10 @@
              ></a-textarea>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="设备所属分类"
              :labelCol="labelCol"
@@ -41,7 +45,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
@@ -53,7 +60,10 @@
              ></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
@@ -65,7 +75,10 @@
              ></a-input>
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="型号"
              :labelCol="labelCol"
@@ -77,9 +90,11 @@
              ></a-input>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="工区"
              :labelCol="labelCol"
@@ -109,7 +124,10 @@
              />
            </a-form-item>
          </a-col> -->
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="维护部门"
              :labelCol="labelCol"
@@ -130,7 +148,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="使用部门"
              :labelCol="labelCol"
@@ -151,7 +172,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="是否生产线设备"
              :labelCol="labelCol"
@@ -166,9 +190,10 @@
              />
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="ABC标识"
              :labelCol="labelCol"
@@ -183,7 +208,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="技术状态"
              :labelCol="labelCol"
@@ -198,7 +226,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="设备状态"
              :labelCol="labelCol"
@@ -213,7 +244,10 @@
              />
            </a-form-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="关键设备标识"
              :labelCol="labelCol"
@@ -228,9 +262,10 @@
              />
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="24">
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-model-item
              label="质保开始日期"
              :labelCol="labelCol"
@@ -244,7 +279,10 @@
              ></j-date>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-model-item
              label="质保结束日期"
              :labelCol="labelCol"
@@ -259,7 +297,10 @@
            </a-form-model-item>
          </a-col>
          <!-- 按维修班组检索 -->
          <a-col :span="6">
          <a-col :xl='6'
                 :lg='7'
                 :md='8'
                 :sm='24'>
            <a-form-item
              label="维修班组"
              :labelCol="labelCol"
@@ -591,8 +632,16 @@
    <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"
@@ -601,20 +650,13 @@
      </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="备件"
@@ -638,7 +680,7 @@
        <equipment-update-warranty-list :mainId="selectedMainId" />
      </a-tab-pane>
      <a-tab-pane
        tab="日保标准"
        tab="点检标准"
        key="7"
        forceRender
      >
@@ -756,16 +798,61 @@
            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: '关键设备标识',
@@ -773,16 +860,110 @@
          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: '型号',
@@ -790,7 +971,7 @@
          dataIndex: 'model',
        },
        {
          title: '规格',
          title: '设备规格',
          align: "center",
          dataIndex: 'specification',
        },
@@ -800,31 +981,49 @@
          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: '技术状态鉴定类型',
@@ -837,6 +1036,11 @@
          dataIndex: 'nextTechnologyStatusQualificationTime',
        },
        {
          title: '是否生产线设备',
          align: "center",
          dataIndex: 'isLineEquip_dictText',
        },
        {
          title: '生产线编号',
          align: "center",
          dataIndex: 'lineId_dictText',
@@ -846,103 +1050,6 @@
          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",
@@ -1058,7 +1165,7 @@
      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;