|
@ -4,9 +4,24 @@ |
|
|
<main class="mt-[43px] border border-[#D6D6D6] bg-white rounded-b-md rounded-tr-md px-6 py-6"> |
|
|
<main class="mt-[43px] border border-[#D6D6D6] bg-white rounded-b-md rounded-tr-md px-6 py-6"> |
|
|
<div class="flex items-center gap-6"> |
|
|
<div class="flex items-center gap-6"> |
|
|
<p class="text-lg">清洗管道</p> |
|
|
<p class="text-lg">清洗管道</p> |
|
|
<button :disabled="statusStore.workStatus !== 'idle'" class="btn-dark px-8 py-2 text-lg" @click="onStartWash('injector')">清洗注射器管路</button> |
|
|
|
|
|
<button :disabled="statusStore.workStatus !== 'idle'" class="btn-dark px-8 py-2 text-lg" @click="onStartWash('nozzle')">清洗喷涂部分</button> |
|
|
|
|
|
<button :disabled="statusStore.workStatus !== 'washing'" class="btn-dark px-8 py-2 text-lg" @click="onStopWash">停止清洗</button> |
|
|
|
|
|
|
|
|
<button |
|
|
|
|
|
:disabled="statusStore.workStatus !== 'idle'" |
|
|
|
|
|
class="btn-dark px-8 py-2 text-lg" |
|
|
|
|
|
@click="onStartWash('injector')"> |
|
|
|
|
|
清洗注射器管路 |
|
|
|
|
|
</button> |
|
|
|
|
|
<button |
|
|
|
|
|
:disabled="statusStore.workStatus !== 'idle'" |
|
|
|
|
|
class="btn-dark px-8 py-2 text-lg" |
|
|
|
|
|
@click="onStartWash('nozzle')"> |
|
|
|
|
|
清洗喷涂部分 |
|
|
|
|
|
</button> |
|
|
|
|
|
<button |
|
|
|
|
|
:disabled="statusStore.workStatus !== 'washing'" |
|
|
|
|
|
class="btn-dark px-8 py-2 text-lg" |
|
|
|
|
|
@click="onStopWash"> |
|
|
|
|
|
停止清洗 |
|
|
|
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</main> |
|
|
</main> |
|
|
<header |
|
|
<header |
|
@ -20,8 +35,18 @@ |
|
|
<main class="mt-[43px] border border-[#D6D6D6] bg-white rounded-b-md rounded-tr-md px-6 py-6"> |
|
|
<main class="mt-[43px] border border-[#D6D6D6] bg-white rounded-b-md rounded-tr-md px-6 py-6"> |
|
|
<div class="flex items-center gap-6"> |
|
|
<div class="flex items-center gap-6"> |
|
|
<p class="text-lg">预充管道</p> |
|
|
<p class="text-lg">预充管道</p> |
|
|
<button :disabled="statusStore.workStatus !== 'idle'" class="btn-dark px-8 py-2 text-lg" @click="onStartPrefill">开始预充</button> |
|
|
|
|
|
<button :disabled="statusStore.workStatus !== 'prefilling'" class="btn-dark px-8 py-2 text-lg" @click="onStopPrefill">结束预充</button> |
|
|
|
|
|
|
|
|
<button |
|
|
|
|
|
:disabled="statusStore.workStatus !== 'idle'" |
|
|
|
|
|
class="btn-dark px-8 py-2 text-lg" |
|
|
|
|
|
@click="onStartPrefill"> |
|
|
|
|
|
开始预充 |
|
|
|
|
|
</button> |
|
|
|
|
|
<button |
|
|
|
|
|
:disabled="statusStore.workStatus !== 'prefilling'" |
|
|
|
|
|
class="btn-dark px-8 py-2 text-lg" |
|
|
|
|
|
@click="onStopPrefill"> |
|
|
|
|
|
结束预充 |
|
|
|
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</main> |
|
|
</main> |
|
|
<header |
|
|
<header |
|
@ -44,7 +69,12 @@ |
|
|
class="border-none outline-none h-[32px] w-[60px] mx-2 bg-[#E8ECF7] text-primary font-medium rounded-md text-lg text-center" />%RH |
|
|
class="border-none outline-none h-[32px] w-[60px] mx-2 bg-[#E8ECF7] text-primary font-medium rounded-md text-lg text-center" />%RH |
|
|
</p> |
|
|
</p> |
|
|
|
|
|
|
|
|
<button :disabled="statusStore.workStatus !== 'idle'" class="btn-dark px-8 py-2 text-lg" @click="onStartDehumidify">开始除湿</button> |
|
|
|
|
|
|
|
|
<button |
|
|
|
|
|
:disabled="statusStore.workStatus !== 'idle'" |
|
|
|
|
|
class="btn-dark px-8 py-2 text-lg" |
|
|
|
|
|
@click="onStartDehumidify"> |
|
|
|
|
|
开始除湿 |
|
|
|
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
</main> |
|
|
</main> |
|
|
<header |
|
|
<header |
|
@ -118,12 +148,7 @@ const router = useRouter(); |
|
|
const statusStore = useEquipmentStatusStore(); |
|
|
const statusStore = useEquipmentStatusStore(); |
|
|
|
|
|
|
|
|
const dialogContent = ref<DialogParam>({ |
|
|
const dialogContent = ref<DialogParam>({ |
|
|
title: "已完成", |
|
|
|
|
|
desc: "湿度已达到50%RH,氮气已置换完毕。", |
|
|
|
|
|
type: "confirm", |
|
|
|
|
|
okText: "去喷涂", |
|
|
|
|
|
cancelText: "关闭", |
|
|
|
|
|
_brand: "humidity_complete", |
|
|
|
|
|
|
|
|
desc: "描述", |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
const showDialog = ref(false); |
|
|
const showDialog = ref(false); |
|
@ -134,35 +159,30 @@ function onStartDehumidify() { |
|
|
ElMessage.error("请输入要求湿度"); |
|
|
ElMessage.error("请输入要求湿度"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
startDehumidify({ humidity: humidity.value }).then(res => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
} else { |
|
|
|
|
|
ElMessage.error(res.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
dialogContent.value = { |
|
|
dialogContent.value = { |
|
|
title: "已完成", |
|
|
|
|
|
desc: "湿度已达到50%RH,氮气已置换完毕。", |
|
|
|
|
|
|
|
|
desc: "请确认已关闭载物台门和注射器门", |
|
|
type: "confirm", |
|
|
type: "confirm", |
|
|
okText: "去喷涂", |
|
|
|
|
|
cancelText: "关闭", |
|
|
|
|
|
_brand: "humidity_complete", |
|
|
|
|
|
|
|
|
_brand: "start_dehumidify", |
|
|
}; |
|
|
}; |
|
|
showDialog.value = true; |
|
|
showDialog.value = true; |
|
|
} |
|
|
} |
|
|
function onOk() { |
|
|
function onOk() { |
|
|
showDialog.value = false; |
|
|
showDialog.value = false; |
|
|
|
|
|
if (dialogContent.value._brand === "start_dehumidify") { |
|
|
|
|
|
startDehumidify({ humidity: humidity.value! }).then(res => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
} else { |
|
|
|
|
|
ElMessage.error(res.msg); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
router.push("/spray"); |
|
|
router.push("/spray"); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
function onGoSpray() { |
|
|
function onGoSpray() { |
|
|
dialogContent.value = { |
|
|
dialogContent.value = { |
|
|
title: "提示", |
|
|
|
|
|
desc: "请确认 清洗、预充、除湿均已完成", |
|
|
|
|
|
|
|
|
desc: "请确认 清洗、预充、除湿均已完成,\n且外部氮气压力大于0.35MPa", |
|
|
type: "confirm", |
|
|
type: "confirm", |
|
|
okText: "确认", |
|
|
|
|
|
cancelText: "取消", |
|
|
|
|
|
_brand: "goSpray", |
|
|
_brand: "goSpray", |
|
|
}; |
|
|
}; |
|
|
showDialog.value = true; |
|
|
showDialog.value = true; |
|
|