石墨仪设备 前端仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.9 KiB

6 months ago
6 months ago
6 months ago
  1. <template>
  2. <div class="bg-[#5294D7]/[.06] rounded-lg mb-[10px]">
  3. <section class="h-12 flex items-center text-xl px-1">
  4. <!-- <span>{{ order }}.</span> -->
  5. <span class="text-base ml-5">{{ StepCmdDescMap[step.method] }}</span>
  6. <div class="ml-auto w-11 h-11 flex justify-center items-center" @click="$emit('del', order)">
  7. <img class="w-4" src="@/assets/icon_del_s.svg" alt="del" />
  8. </div>
  9. </section>
  10. <template v-if="step.method !== 'takePhoto'">
  11. <section v-if="step.method === 'addLiquid'" class="h-12 flex items-start px-6 text-[#5e5e5e] gap-5">
  12. <!-- <div class="h-[1.875rem] rounded-sm bg-[#eaeaea] flex items-center px-3 min-w-[8.125rem]">
  13. <span>盐酸</span>
  14. <img class="ml-auto w-2" src="@/assets/icon_arr_s.svg" alt="arr" />
  15. </div> -->
  16. <el-select v-model="step.params.solId" placeholder="Select" style="width: 100px">
  17. <el-option v-for="item in settingStore.availableLiquids" :key="item.id" :label="item.name" :value="item.id" />
  18. </el-select>
  19. <div class="flex items-center">
  20. <el-input v-model.number="step.params.volume" style="width: 100px" />
  21. <span class="ml-2">ml</span>
  22. </div>
  23. </section>
  24. <section
  25. v-if="step.method === 'shaking' || step.method === 'delay'"
  26. class="h-12 flex items-start px-6 text-[#5e5e5e] gap-5">
  27. <div class="flex items-center">
  28. <el-input v-model.number="step.params.second" style="width: 100px" />
  29. <span class="ml-2"></span>
  30. </div>
  31. </section>
  32. <!-- <section
  33. v-if="
  34. step.method === 'upTray' ||
  35. step.method === 'downTray' ||
  36. step.method === 'moveToSol' ||
  37. step.method === 'moveToHeater' ||
  38. step.method === 'stopHeating'
  39. "
  40. class=" h-12 flex items-center px-6 text-[#5e5e5e] gap-5">
  41. <div class="flex items-center">
  42. <el-select v-model="step.params.heaterId" placeholder="Select" style="width: 120px">
  43. <el-option
  44. v-for="item in settingStore.areaOptions"
  45. :key="item.value"
  46. :label="item.label"
  47. :value="item.value" />
  48. </el-select>
  49. </div>
  50. </section> -->
  51. <section v-if="step.method === 'startHeating'" class="h-12 flex items-start px-6 text-[#5e5e5e] gap-5">
  52. <div class="flex items-center gap-3">
  53. <!-- <el-select v-model="step.params.heaterId" placeholder="Select" style="width: 100px">
  54. <el-option
  55. v-for="item in settingStore.areaOptions"
  56. :key="item.value"
  57. :label="item.label"
  58. :value="item.value" />
  59. </el-select> -->
  60. <el-input v-model.number="step.params.temperature" style="width: 100px" />
  61. <span class="ml-2"></span>
  62. </div>
  63. </section>
  64. </template>
  65. </div>
  66. </template>
  67. <script setup lang="ts">
  68. import { StepCmdDescMap, type StepStruct } from "@/services/globalCmd/cmdTypes";
  69. import { useSettingStore } from "@/stores/setting";
  70. const settingStore = useSettingStore();
  71. const props = defineProps<{ order: number; step: StepStruct }>();
  72. const emit = defineEmits<{
  73. (e: "del", order: number): void;
  74. }>();
  75. </script>