“linengliang”
2023-12-13 fd6e935f391501358357f3e6bc1957764510b8bc
src/views/eam/modules/equipmentScrap/EquipmentSelectModal.vue
@@ -8,7 +8,7 @@
    @cancel="close"
    style="top:50px"
    cancelText="关闭"
    :width="1200"
    :width="1400"
  >
    <a-card :bordered="false">
      <div class="table-page-search-wrapper">
@@ -21,9 +21,9 @@
              :md="8"
              :sm="6"
            >
              <a-form-item label="设备编码">
              <a-form-item label="统一编码">
                <a-input
                  placeholder="请输入设备编码"
                  placeholder="请输入统一编码"
                  v-model="queryParam.num"
                />
              </a-form-item>
@@ -32,10 +32,10 @@
              :md="8"
              :sm="6"
            >
              <a-form-item label="设备编码">
              <a-form-item label="设备名称">
                <a-input
                  placeholder="请输入设备编码"
                  v-model="queryParam.num"
                  placeholder="设备名称"
                  v-model="queryParam.name"
                />
              </a-form-item>
            </a-col>
@@ -106,71 +106,53 @@
          }
        },
        {
          title: '设备编码',
          title: '统一编码',
          align: 'center',
          dataIndex: 'num'
        },
        {
          title: '资产编码',
          align: 'center',
          dataIndex: 'assetNumber'
        },
        {
          title: '特种设备',
          align: 'center',
          dataIndex: 'specificEquipment_dictText'
          dataIndex: 'num',
          width:200
        },
        {
          title: '设备名称',
          align: 'center',
          dataIndex: 'name'
          dataIndex: 'name',
          width:200
        },
        {
          title: '设备型号',
          align: 'center',
          dataIndex: 'model'
          dataIndex: 'model',
          width:200
        },
        {
          title: '设备规格',
          align: 'center',
          dataIndex: 'specification'
          dataIndex: 'specification',
          width:200
        },
        {
          title: 'ABC标识',
          align: "center",
          dataIndex: 'equipmentImportanceId',
          width:100
        },
        {
          title: '关键设备标识',
          align: "center",
          dataIndex: 'specificEquipment_dictText',
          width:100
        },
        {
          title: '设备状态',
          align: 'center',
          dataIndex: 'equipmentStatus_dictText'
          dataIndex: 'equipmentStatus_dictText',
          width:100
        },
        {
          title: '技术状态',
          align: 'center',
          dataIndex: 'technologyStatus_dictText'
          dataIndex: 'technologyStatus_dictText',
          width:100
        },
        {
          title: '设备图片',
          align: 'center',
          dataIndex: 'equipmentPhoto',
          scopedSlots: { customRender: 'equipmentPhoto' }
        },
        // {
        //   title:'设备图片',
        //   align:"center",
        //   dataIndex: 'equipmentPhoto',
        //   scopedSlots: {customRender: 'imgSlot'}
        // },
        {
          title: '位置',
          align: 'center',
          dataIndex: 'location'
        },
        {
          title: '重要度',
          align: 'center',
          dataIndex: 'equipmentImportanceId_dictText'
        }
      ],
      selectedRowKeys: [],
      oldSelectRows: [],
@@ -196,7 +178,7 @@
      visible: false,
      loading: false,
      url: {
        list: '/eam/equipment/list'
        list: '/eam/equipment/getEquipmentList'
      }
    }
  },
@@ -226,8 +208,9 @@
      }
      let that = this
      this.loading = true
      this.queryParam.isLine = 'no'
      let params = this.getQueryParams()//查询条件
      params.equipmentStatus = '1'
      // params.equipmentStatus = '1'
      await getAction(this.url.list, params).then((res) => {
        if (res.success) {
          for (let i = 0; i < res.result.records.length; i++) {
@@ -291,7 +274,7 @@
      this.loadData()
    },
    handleSubmit() {
      this.$bus.$emit('selectionRows', this.selectionRows)
      this.$emit('selectionRows', this.selectionRows)
      this.searchReset(0)
      this.close()
    },