diff --git a/src/views/mes/ordermonthplan/index.vue b/src/views/mes/ordermonthplan/index.vue index fc5c30e21..afc9d1bd9 100644 --- a/src/views/mes/ordermonthplan/index.vue +++ b/src/views/mes/ordermonthplan/index.vue @@ -292,7 +292,6 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { //formRef.setValues({standardBom:'bomddd'}) // getProcessroutes(val[0][searchField]) productName = val[0].name - getBoms(val[0][searchField]) } if(formField=='factoryCode'){ factoryName = val[0].name @@ -304,15 +303,6 @@ const searchTableSuccess = (formField, searchField, val, formRef) => { }) } -const bomOptions=ref([]) -const getBoms = async (code: String) => { - bomOptions.value = await OrderDayApi.getBoms(code) - MesOrderMonthSub.allSchemas.formSchema.forEach(item => { - if (item.field == 'bomCode') { - item.componentProps.options = bomOptions.value - } - }) -} const createMesOrderMonthSub = async (data: MesOrderMonthSubVO) => { diff --git a/src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts b/src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts index f4a25613e..c44addc8c 100644 --- a/src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts +++ b/src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts @@ -67,11 +67,9 @@ export const MesOrderMonthSub = useCrudSchemas(reactive([ sort: 'custom', isTable: false, isSearch: true, - form: { - component:'Select', - componentProps: { - options: [{lablel:'bom',value:'bom'}] - } + table: { + width: 200, + fixed: 'left' } }, {