|
|
@ -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) => { |
|
|
|