|
|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
<el-form-item label="单号:" prop="feedingRecordCode">
|
|
|
|
|
<el-input disabled v-model="formData.feedingRecordCode" placeholder="保存自动生成单号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="制浆线:" prop="feedingPipeline">
|
|
|
|
|
<!-- <el-form-item label="制浆线:" prop="feedingPipeline">
|
|
|
|
|
<el-tree-select
|
|
|
|
|
v-model="formData.feedingPipeline"
|
|
|
|
|
:data="organizationTree"
|
|
|
|
|
@ -19,7 +19,23 @@
|
|
|
|
|
default-expand-all
|
|
|
|
|
placeholder="请选择制浆线"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form-item> -->
|
|
|
|
|
<el-form-item label="生产计划" prop="planId">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="formData.planId"
|
|
|
|
|
@change="handleQuery"
|
|
|
|
|
clearable
|
|
|
|
|
filterable
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in planList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.code"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item prop="feedingType">
|
|
|
|
|
<template #label>
|
|
|
|
|
<span>
|
|
|
|
|
@ -91,6 +107,8 @@ import FeedingRecordDetailForm from './components/FeedingRecordDetailForm.vue'
|
|
|
|
|
import {ProductApi, ProductVO} from "@/api/erp/product/product";
|
|
|
|
|
import { OrganizationApi, OrganizationVO } from '@/api/mes/organization'
|
|
|
|
|
import { defaultProps, handleTree } from '@/utils/tree'
|
|
|
|
|
import {PlanApi, PlanVO} from "@/api/mes/plan";
|
|
|
|
|
const planList = ref<PlanVO[]>([]) // 列表
|
|
|
|
|
|
|
|
|
|
/** 投料记录 表单 */
|
|
|
|
|
defineOptions({ name: 'FeedingRecordForm' })
|
|
|
|
|
@ -148,6 +166,7 @@ const open = async (type: string, id?: number) => {
|
|
|
|
|
productList.value = await ProductApi.getMesProductSimpleList()
|
|
|
|
|
// 加载组织
|
|
|
|
|
await getOrganizationTree()
|
|
|
|
|
planList.value = await PlanApi.getPlanByStatus(1)
|
|
|
|
|
}
|
|
|
|
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
|
|
|
|
|
|
|
|
|
|