“linengliang”
2023-11-20 ef4e8205a30f83c5478f09182e455528df236e84
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">
@@ -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>
@@ -108,69 +108,51 @@
        {
          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: [],
@@ -227,7 +209,7 @@
      let that = this
      this.loading = true
      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 +273,7 @@
      this.loadData()
    },
    handleSubmit() {
      this.$bus.$emit('selectionRows', this.selectionRows)
      this.$emit('selectionRows', this.selectionRows)
      this.searchReset(0)
      this.close()
    },