|
|
@ -21,8 +21,10 @@ const emits = defineEmits(['ok', 'cancel']) |
|
|
|
const containerList = ref<Container.ContainerItem[]>([]) |
|
|
|
const solutionList = ref<Solution.SolutionItem[]>([]) |
|
|
|
const colorList = ref<Color.ColorItem[]>([]) |
|
|
|
|
|
|
|
const loading = ref(false) |
|
|
|
onMounted(async () => { |
|
|
|
loading.value = true |
|
|
|
try { |
|
|
|
containerList.value = await getContainerList() |
|
|
|
solutionList.value = (await getSolsList()).list |
|
|
|
colorList.value = (await getcolorList()).list |
|
|
@ -36,6 +38,11 @@ onMounted(async () => { |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
loading.value = false |
|
|
|
} |
|
|
|
catch (error) { |
|
|
|
loading.value = false |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
const form = ref({ |
|
|
@ -152,7 +159,7 @@ const addStep = (data: any) => { |
|
|
|
</script> |
|
|
|
|
|
|
|
<template lang="pug"> |
|
|
|
FtDialog(visible :title="form.id ? '编辑工艺' : '新增工艺'" width="80%" :ok-handle="okHandle" @cancel="cancel") |
|
|
|
FtDialog(visible :title="form.id ? '编辑工艺' : '新增工艺'" width="80%" :ok-handle="okHandle" @cancel="cancel" :loading="loading") |
|
|
|
el-form(ref="formRef" label-width="auto" :model="form" :rules="rules" class="form-box" label-position="left") |
|
|
|
el-row(:gutter="30") |
|
|
|
el-col(:span="10") |
|
|
|