Browse Source

1、修复月计划子计划添加报错BUG

master_hella_20240701
bjang03 6 months ago
parent
commit
067b96e786
  1. 10
      src/views/mes/ordermonthplan/index.vue
  2. 8
      src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts

10
src/views/mes/ordermonthplan/index.vue

@ -292,7 +292,6 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
//formRef.setValues({standardBom:'bomddd'}) //formRef.setValues({standardBom:'bomddd'})
// getProcessroutes(val[0][searchField]) // getProcessroutes(val[0][searchField])
productName = val[0].name productName = val[0].name
getBoms(val[0][searchField])
} }
if(formField=='factoryCode'){ if(formField=='factoryCode'){
factoryName = val[0].name 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) => { const createMesOrderMonthSub = async (data: MesOrderMonthSubVO) => {

8
src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts

@ -67,11 +67,9 @@ export const MesOrderMonthSub = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable: false, isTable: false,
isSearch: true, isSearch: true,
form: { table: {
component:'Select', width: 200,
componentProps: { fixed: 'left'
options: [{lablel:'bom',value:'bom'}]
}
} }
}, },
{ {

Loading…
Cancel
Save