fields.js 1.05 KB
Newer Older
krysent's avatar
krysent committed
1 2 3 4 5 6 7 8
import {
  factorySelect,
  shopSelectByFactory,
  productionLineSelectByShop,
  sectionSelectByShop,
} from "@/services/system";
import regValue from "@/utils/regValue";
export default {
krysent's avatar
krysent committed
9
  stationNo: {
krysent's avatar
krysent committed
10 11 12
    value: null,
    type: "input",
    title: "工位编号",
krysent's avatar
krysent committed
13
    name: ["stationNo"],
krysent's avatar
krysent committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
    required: true,
  },
  stationName: {
    value: null,
    type: "input",
    title: "工位名称",
    name: ["stationName"],
    required: true,
  },
  factoryId: {
    value: null,
    type: "select",
    title: "所属工厂",
    name: ["factoryId"],
    required: true,
    options: {
      database: factorySelect,
      params: {},
    },
    linked: true,
  },
krysent's avatar
krysent committed
35
  status: {
krysent's avatar
krysent committed
36 37
    value: null,
    type: "select",
krysent's avatar
krysent committed
38
    title: "启用状态",
krysent's avatar
krysent committed
39
    name: ["status"],
krysent's avatar
krysent committed
40
    required: true,
krysent's avatar
krysent committed
41 42
    options: [
      {
krysent's avatar
krysent committed
43 44
        label: "启用",
        value: 1,
krysent's avatar
krysent committed
45 46
      },
      {
krysent's avatar
krysent committed
47
        label: "禁用",
krysent's avatar
krysent committed
48
        value: 0,
krysent's avatar
krysent committed
49 50 51 52 53 54 55 56 57
      },
    ],
  },
  remark: {
    value: null,
    type: "textarea",
    title: "描述",
    name: ["remark"],
    required: false,
krysent's avatar
krysent committed
58

krysent's avatar
krysent committed
59 60 61
    col: { span: 24 },
  },
};