生产计划根据车间分表前端页面
master
xs 5 months ago
parent 6d7b947f49
commit 977e54ffa1

@ -154,6 +154,10 @@ export interface PlanInfoVO {
*/ */
remark: string; remark: string;
/**
* ID
*/
workshopId: number;
} }
export interface PlanInfoForm extends BaseEntity { export interface PlanInfoForm extends BaseEntity {
@ -312,6 +316,11 @@ export interface PlanInfoForm extends BaseEntity {
*/ */
remark?: string; remark?: string;
/**
* ID
*/
workshopId?: number;
} }
export interface PlanInfoQuery extends PageQuery { export interface PlanInfoQuery extends PageQuery {
@ -466,6 +475,11 @@ export interface PlanInfoQuery extends PageQuery {
*/ */
modelCode?: string; modelCode?: string;
/**
* ID
*/
workshopId?: number;
/** /**
* *
*/ */

@ -368,6 +368,8 @@ const bomSelectRef = ref();
const materialOpen = ref(false); const materialOpen = ref(false);
const materialSelectRef = ref(); const materialSelectRef = ref();
const workshopId = ref();
/*获取班次下拉框*/ /*获取班次下拉框*/
const getShiftSelect = async () => { const getShiftSelect = async () => {
let res = await getBaseShiftInfoList(null); let res = await getBaseShiftInfoList(null);
@ -466,6 +468,7 @@ const initFormData: PlanInfoForm = {
modelCode: undefined, modelCode: undefined,
remark: undefined, remark: undefined,
materialBoMName: undefined, materialBoMName: undefined,
workshopId: undefined
} }
const data = reactive<PageData<PlanInfoForm, PlanInfoQuery>>({ const data = reactive<PageData<PlanInfoForm, PlanInfoQuery>>({
form: {...initFormData}, form: {...initFormData},
@ -502,6 +505,7 @@ const data = reactive<PageData<PlanInfoForm, PlanInfoQuery>>({
shiftId: undefined, shiftId: undefined,
classTeamId: undefined, classTeamId: undefined,
modelCode: undefined, modelCode: undefined,
workshopId: undefined,
params: { params: {
} }
}, },
@ -523,6 +527,15 @@ const data = reactive<PageData<PlanInfoForm, PlanInfoQuery>>({
const { queryParams, form, rules } = toRefs(data); const { queryParams, form, rules } = toRefs(data);
const getWorkshopId = async () => {
const router = useRouter();
workshopId.value = router.currentRoute._rawValue.query && router.currentRoute._rawValue.query.workshopId;
queryParams.value.workshopId = workshopId.value;
console.log("----")
console.log(queryParams);
console.log(workshopId.value);
}
/** 查询生产工单信息列表 */ /** 查询生产工单信息列表 */
const getList = async () => { const getList = async () => {
loading.value = true; loading.value = true;
@ -541,6 +554,7 @@ const cancel = () => {
/** 表单重置 */ /** 表单重置 */
const reset = () => { const reset = () => {
form.value = {...initFormData}; form.value = {...initFormData};
form.value.workshopId = workshopId.value;
planInfoFormRef.value?.resetFields(); planInfoFormRef.value?.resetFields();
} }
@ -642,6 +656,7 @@ const submitMaterialForm = () => {
} }
onMounted(() => { onMounted(() => {
getWorkshopId();
getShiftSelect(); getShiftSelect();
getClassTeamSelect(); getClassTeamSelect();
getProcessSelect(); getProcessSelect();

Loading…
Cancel
Save