From 067b96e786496ab5c5cf24dd79f09899fadc3012 Mon Sep 17 00:00:00 2001 From: bjang03 Date: Fri, 10 May 2024 08:41:20 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E6=9C=88=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=AD=90=E8=AE=A1=E5=88=92=E6=B7=BB=E5=8A=A0=E6=8A=A5?= =?UTF-8?q?=E9=94=99BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/ordermonthplan/index.vue | 10 ---------- src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts | 8 +++----- 2 files changed, 3 insertions(+), 15 deletions(-) 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' } }, {