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'})
// 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) => {

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

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

Loading…
Cancel
Save