优化
This commit is contained in:
@@ -21,6 +21,7 @@ import { type ColumnItem, GiForm } from '@/components/GiForm'
|
||||
import { useResetReactive } from '@/hooks'
|
||||
import { materialType } from "@/hooks/app/materialType";
|
||||
import {materialProcess} from "@/hooks/app/materialProcess";
|
||||
import {useDict} from "@/hooks/app";
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'save-success'): void
|
||||
@@ -36,6 +37,7 @@ const formRef = ref<InstanceType<typeof GiForm>>()
|
||||
|
||||
const { materialTypeList, getMaterialTypeSelect } = materialType()
|
||||
const { materialProcessList, getMaterialProcessSelect } = materialProcess()
|
||||
const { light_level } = useDict('light_level')
|
||||
|
||||
|
||||
|
||||
@@ -77,6 +79,16 @@ const columns: ColumnItem[] = reactive([
|
||||
allowSearch: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '灯光等级',
|
||||
field: 'lightLevel',
|
||||
type: 'select',
|
||||
span: 24,
|
||||
props: {
|
||||
options: light_level,
|
||||
allowClear: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '物料流程编码',
|
||||
field: 'materialProcessId',
|
||||
@@ -155,10 +167,11 @@ const onUpdate = async (id: string) => {
|
||||
await getMaterialProcessSelect();
|
||||
}
|
||||
Object.assign(form, data)
|
||||
form.lightLevel = data.lightLevel ? JSON.stringify(data.lightLevel) : ''
|
||||
visible.value = true
|
||||
}
|
||||
|
||||
defineExpose({ onAdd, onUpdate })
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
||||
<style scoped lang="scss"></style>
|
||||
Reference in New Issue
Block a user