Browse Source

1、工位管理增加班组、产线搜索及绑定

master_hella_20240701
bjang03 8 months ago
parent
commit
1cdf3bf642
  1. 72
      src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts

72
src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts

@ -14,6 +14,8 @@ import { Workshop } from '@/views/wms/basicDataManage/factoryModeling/workshop/w
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 { t } = useI18n() // 国际化
@ -106,6 +108,74 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '班组代码',
field: 'teamCode',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择班组代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '班组信息', // 查询弹窗标题
searchAllSchemas: Team.allSchemas, // 查询弹窗所需类
searchPage: TeamApi.getTeamPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
}
},
{
label: '设备代码',
field: 'equipmentCode',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择设备代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '设备信息', // 查询弹窗标题
searchAllSchemas: Team.allSchemas, // 查询弹窗所需类
searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}
}
},
// {
// label: '产品代码',
// field: 'productCode',
// sort: 'custom',
// table: {
// width: 150
// },
// isSearch: true
// },
// {
// label: '工序代码',
// field: 'processCode',
// sort: 'custom',
// table: {
// width: 150
// },
// isSearch: true
// },
{
label: '原料库位',
field: 'rawLocationCode',
@ -288,4 +358,4 @@ export const WorkstationRules = reactive({
fgLocationCode: [
{ required: true, message: '请选择成品库位', trigger: 'change' }
],
})
})

Loading…
Cancel
Save