<template>
  <div class="commonTitle">物料替换</div>
  <div class="scanBox">
    <ScanCodeInput class="scanBoxInput" v-model="scanCode" />
  </div>
  <el-scrollbar class="scrollbarHeight">
    <div class="item" v-for="(item, index) in listData" @click="openPop" :key="index">
      <div class="titleText">1</div>
      <div class="describleText">2</div>
      <div class="bottomText">
        <div class="describleText" style="width: 100px">213</div>
        <div class="bottomStyle">
          <div class="describleText">123</div>
          <div class="describleText">123</div>
          <div class="describleText">123</div>
        </div>
      </div>
    </div>
    <Empty />
  </el-scrollbar>
  <ReplacePop v-model="showStatus" />
</template>
<script lang="ts" setup>
import { getEscalationFaultById } from "@/api/repair";
import ReplacePop from "@/views/repair/popUpView/replacePop.vue";
const scanCode = ref("");
const listData = inject("listData");
const showStatus = ref(false);
const openPop = () => {
  showStatus.value = true;
};
</script>

<style lang="scss" scoped>
.scanBox {
  height: 50px;
  margin-bottom: $p10;

  .scanBoxInput {
    width: 60%;
    min-width: 250px;
  }
}

.scrollbarHeight {
  height: calc(100vh - 244px);

  .item {
    background-color: white;
    border-radius: 16px;
    height: 140px;
    padding: $p20;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: $p20;

    .bottomText {
      display: flex;
      width: 80%;

      .bottomStyle {
        flex: 1;
        display: flex;
        justify-content: space-between;
        width: 60%;
      }
    }
  }
}
</style>
