车间能级提升-智能设备管理系统
eims-ui-mobile/src/pages/equ/equ-list.vue
@@ -15,6 +15,7 @@
        custom-style="background: #4D80F0;"
        safeAreaInsetTop
      ></wd-navbar>
      <wd-search v-model="searchValue" placeholder="请输入关键字" @search="handleSearch" />
      <wd-drop-menu>
        <wd-drop-menu-item
          v-model="equTypeId"
@@ -39,7 +40,7 @@
          <view class="flex justify-between items-baseline">
            <view class="flex items-center menu-title-box">
              <view class="menu-indicator"></view>
              <text class="ml-1 text-xs">{{ item.assetNo }}</text>
              <text class="ml-1 text-sm">{{ item.assetNo }}</text>
              <wd-tag v-if="item.status === '0'" class="ml-2" bg-color="cyan">试用</wd-tag>
              <wd-tag v-else-if="item.status === '1'" class="ml-2" type="success">使用</wd-tag>
              <wd-tag v-else-if="item.status === '2'" class="ml-2" type="danger">停用</wd-tag>
@@ -61,7 +62,7 @@
              {{ item.equName }}
              <text class="text-color-gray ml-2 text-mini">{{ item.modelNo }}</text>
            </view>
            <view class="text-color-gray text-xs mt-1">
            <view class="text-color-gray text-sm mt-1">
              {{ item.location }} | {{ item.madeIn }}
            </view>
          </view>
@@ -85,7 +86,7 @@
const equTypeId = ref<number>(-1)
// 设备状态
const status = ref<number>(-1)
const searchValue = ref<string>('')
const isSelectEqu = ref(false)
const typeList = ref<Record<string, any>[]>([{ dictLabel: '设备类型', dictValue: -1 }])
@@ -108,6 +109,9 @@
    pageSize,
    equTypeId: equTypeId.value,
    status: status.value,
    params: {
      searchValue: searchValue.value,
    },
  }
  if (equTypeId.value === -1) {
    delete parmams.equTypeId
@@ -154,6 +158,11 @@
  }
}
function handleSearch() {
  console.log('handleSearch')
  paging.value.reload()
}
/**
 * 选择设备回调
 * @param equ