|
|
@ -1,7 +1,6 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
|
|
|
|
|
import * as ProductionlineApi from '@/api/wms/productionline' |
|
|
@ -10,20 +9,17 @@ import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/prod |
|
|
|
import * as WorkshopApi from '@/api/wms/workshop' |
|
|
|
import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data' |
|
|
|
|
|
|
|
import * as getBusinesstypeApi from '@/api/wms/businesstype/index' |
|
|
|
import * as confgiApi from '@/api/infra/config' |
|
|
|
|
|
|
|
import * as WorkstationApi from '@/api/wms/workstation' |
|
|
|
|
|
|
|
import { validateYS } from '@/utils/validator' |
|
|
|
|
|
|
|
const queryParams = { |
|
|
|
pageSize:10, |
|
|
|
pageNo:1, |
|
|
|
code:'WorkStation' |
|
|
|
} |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
const data = await getBusinesstypeApi.getBusinesstypePage(queryParams) |
|
|
|
const businesstypeData =data?.list[0]||{} |
|
|
|
const confgiDataOne = await confgiApi.queryByKey("WorkStation-IN") |
|
|
|
const confgiDataTwo = await confgiApi.queryByKey("WorkStation-OUT") |
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 工位 |
|
|
|
*/ |
|
|
@ -137,7 +133,7 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'areaType', |
|
|
|
value: businesstypeData.outAreaTypes, |
|
|
|
value: confgiDataOne.areaType, |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
@ -166,7 +162,7 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'areaType', |
|
|
|
value: businesstypeData.outAreaTypes, |
|
|
|
value: confgiDataTwo.areaType, |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|