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