修改表单构建

master
夜笙歌 4 months ago
parent cb0212459b
commit 59f90c5c92

@ -563,6 +563,9 @@
<el-container style='height: 500px; border: 1px solid #eee'> <el-container style='height: 500px; border: 1px solid #eee'>
<div style='width: 400px; height: 100%; overflow: auto'> <div style='width: 400px; height: 100%; overflow: auto'>
<el-divider content-position='center'>机台信息</el-divider> <el-divider content-position='center'>机台信息</el-divider>
<div style="margin-bottom: 8px">
<el-tag type="primary" v-for="i in tags">{{ i }}</el-tag>
</div>
<el-form ref='queryFormRef' :model='queryParams' :inline='true' label-width='68px'> <el-form ref='queryFormRef' :model='queryParams' :inline='true' label-width='68px'>
<span label='机台编号' prop='machineCode' style='font-weight:700; padding: 0 4px'> <span label='机台编号' prop='machineCode' style='font-weight:700; padding: 0 4px'>
机台编号 机台编号
@ -987,6 +990,7 @@ const data = reactive<PageData<PlanInfoForm, PlanInfoQuery>>({
}); });
const { queryParams, form, rules } = toRefs(data); const { queryParams, form, rules } = toRefs(data);
const tags = ref([]);
const getWorkshopId = async () => { const getWorkshopId = async () => {
const router = useRouter(); const router = useRouter();
@ -1041,6 +1045,7 @@ const handleSelectionChange = (selection: PlanInfoVO[]) => {
/** 选择机台条数 */ /** 选择机台条数 */
const handleSelectionMachineChange = (selection: ProdBaseMachineInfoVO[]) => { const handleSelectionMachineChange = (selection: ProdBaseMachineInfoVO[]) => {
machineIds.value = selection.map(item => item.machineId); machineIds.value = selection.map(item => item.machineId);
tags.value = selection.map(item => item.machineName);
}; };
/** 新增按钮操作 */ /** 新增按钮操作 */

Loading…
Cancel
Save