|
@ -2,6 +2,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import * as ProductionLineCodeApi from '@/api/wms/productionline' |
|
|
import * as ProductionLineCodeApi from '@/api/wms/productionline' |
|
|
import { Productionline } from './../../factoryModeling/productionline/productionline.data' |
|
|
import { Productionline } from './../../factoryModeling/productionline/productionline.data' |
|
|
|
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
|
|
|
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import { Itembasic } from './../itembasic/itembasic.data' |
|
|
import { Itembasic } from './../itembasic/itembasic.data' |
|
@ -10,6 +11,7 @@ const { t } = useI18n() // 国际化 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const confgiData = await confgiApi.queryByKey("Productionlineitem") |
|
|
const confgiData = await confgiApi.queryByKey("Productionlineitem") |
|
|
|
|
|
const lineCodeData = await ProductionLineCodeApi.getProductionlinePage({isSearch:false}) |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 生产线物料关系 |
|
|
* @returns {Array} 生产线物料关系 |
|
@ -71,17 +73,25 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150, |
|
|
width: 150, |
|
|
fixed: 'left' |
|
|
fixed: 'left' |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm:true, |
|
|
form: { |
|
|
form: { |
|
|
|
|
|
show:true, |
|
|
|
|
|
component: 'SelectV2', |
|
|
|
|
|
value:'undefined', |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
|
isSearchList: true, |
|
|
// isSearchList: true,
|
|
|
searchListPlaceholder: '请选择生产线', |
|
|
placeholder:'请选择库位代码', |
|
|
searchField: 'code', |
|
|
searchField: 'code', |
|
|
searchTitle: '生产线信息', |
|
|
// searchTitle: '生产线信息',
|
|
|
searchAllSchemas: Productionline.allSchemas, |
|
|
// searchAllSchemas: Productionline.allSchemas,
|
|
|
searchPage: ProductionLineCodeApi.getProductionlinePage |
|
|
// searchPage: ProductionLineCodeApi.getProductionlinePage
|
|
|
|
|
|
options:lineCodeData.list.map(item=>({ |
|
|
|
|
|
label:item.code, |
|
|
|
|
|
value:item.code |
|
|
|
|
|
})) |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物料代码', |
|
|
label: '物料代码', |
|
|