|
|
@ -1,18 +1,21 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
|
import { Location } from './../../factoryModeling/location/location.data' |
|
|
|
|
|
|
|
import * as ProductionLineCodeApi from '@/api/wms/productionline' |
|
|
|
import { Productionline } from './../../factoryModeling/productionline/productionline.data' |
|
|
|
|
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import { Itembasic } from './../itembasic/itembasic.data' |
|
|
|
|
|
|
|
import { ElButton, ElInput } from 'element-plus' |
|
|
|
import * as getBusinesstypeApi from '@/api/wms/businesstype/index' |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
const queryParams = { |
|
|
|
pageSize:10, |
|
|
|
pageNo:1, |
|
|
|
code:'Productionlineitem' |
|
|
|
} |
|
|
|
const data = await getBusinesstypeApi.getBusinesstypePage(queryParams) |
|
|
|
const businesstypeData =data?.list[0]||{} |
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 生产线物料关系 |
|
|
|
*/ |
|
|
@ -112,15 +115,8 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key:'type', |
|
|
|
value:'OTS', |
|
|
|
action: '!=', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key:'type', |
|
|
|
value:'RAW', |
|
|
|
action: '!=', |
|
|
|
value:businesstypeData.itemTypes, |
|
|
|
action: 'notin', |
|
|
|
isSearch: true, |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|