123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- import { useDictionaryStoreHook } from "@/store";
- const { dicts } = useDictionaryStoreHook();
- export const columns = [
- {
- label: "物料编号",
- prop: "materialCode",
- search: true,
- rules: [{
- required: true,
- message: "请选择物料编号",
- trigger: "blur"
- }],
- },
- {
- label: "产能",
- prop: "capacity",
- search: true,
- rules: [{
- required: true,
- message: "请填写产能",
- trigger: "blur"
- }],
- },
- {
- label: "工位类型",
- prop: "stationDictValue",
- search: true,
- rules: [{
- required: true,
- message: "请选择工位类型",
- trigger: "blur"
- }],
- type: 'select',
- dicData:dicts.station_type,
- searchClearable: false, //可清空的输入框,默认为true
- filterable: true, //添加filterable属性即可启用搜索功能
- props: {
- label: "dictLabel", // 下拉菜单显示的字段
- value: "dictValue" // 下拉菜单值的字段
- },
- },
- {
- label: "工位操作方式",
- prop: "operateDictValue",
- rules: [{
- required: true,
- message: "请选择工位方式",
- trigger: "blur"
- }],
- type: 'select',
- dicData:dicts.station_operate_type,
- props: {
- label: "dictLabel", // 下拉菜单显示的字段
- value: "dictValue" // 下拉菜单值的字
- },
- },
- {
- label: "工位负责人",
- prop: "manager",
- rules: [{
- required: true,
- message: "请选择工位负责人",
- trigger: "blur"
- }],
- type: 'select',
- dicUrl:import.meta.env.VITE_APP_BASE_API+"/api/v1/sys/user/list",
- dicMethod:"post",
- props: {
- label: "userName", // 下拉菜单显示的字段
- value: "userName" // 下拉菜单值的字段
- },
- },
- {
- label: "所属产线",
- prop: "productionLineName",
- display:false
- },
- {
- label: "工位地址",
- prop: "position",
- rules: [{
- required: true,
- message: "请填写工位地址",
- trigger: "blur"
- }],
- },
- {
- label: "工位IP地址",
- prop: "stationIp",
- rules: [{
- required: true,
- message: "请填写工位IP地址",
- trigger: "blur",
- }],
- },
- {
- label: "工位描述",
- prop: "remark",
- type: 'textarea',
- span: 24,
- },
- {
- label: "创建人",
- prop: "creator",
- display:false
- },
- {
- label: "创建时间",
- prop: "created",
- display:false
- },
- ]
|