|
|
@ -10,15 +10,20 @@ 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 WorkstationApi from '@/api/wms/workstation' |
|
|
|
|
|
|
|
import { validateYS } from '@/utils/validator' |
|
|
|
import {Team} from "@/views/wms/basicDataManage/orderManage/team/team.data"; |
|
|
|
import * as TeamApi from "@/api/wms/team"; |
|
|
|
|
|
|
|
const queryParams = { |
|
|
|
pageSize:10, |
|
|
|
pageNo:1, |
|
|
|
code:'WorkStation' |
|
|
|
} |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
const data = await getBusinesstypeApi.getBusinesstypePage(queryParams) |
|
|
|
const businesstypeData =data?.list[0]||{} |
|
|
|
/** |
|
|
|
* @returns {Array} 工位 |
|
|
|
*/ |
|
|
@ -125,6 +130,16 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '库位信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: WorkstationApi.selectAreaTypeToLocation, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'areaType', |
|
|
|
value: businesstypeData.outAreaTypes, |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -144,6 +159,16 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '库位信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: WorkstationApi.selectAreaTypeToLocation, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'areaType', |
|
|
|
value: businesstypeData.outAreaTypes, |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|