import { factorySelect, shopSelectByFactory } from "@/services/system";
export default {
  sectionCode: {
    value: null,
    type: "input",
    title: "工段编号",
    name: ["sectionCode"],
    required: true,
  },
  sectionName: {
    value: null,
    type: "input",
    title: "工段名称",
    name: ["sectionName"],
    required: true,
  },
  factoryId: {
    value: null,
    type: "select",
    title: "所属工厂",
    name: ["factoryId"],
    required: true,
    options: {
      database: factorySelect,
      params: {},
    },
    linked: true,
  },
  shopId: {
    value: null,
    type: "select",
    title: "所属车间",
    name: ["shopId"],
    required: true,
    belinked: {
      options: {
        database: shopSelectByFactory,
        params: { factoryId: "linked" },
      },
    },
  },
  remark: {
    value: null,
    type: "textarea",
    title: "描述",
    name: ["remark"],
    required: false,
    col: { span: 24 },
  },
};
