123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- import { useDictionaryStore } from "@/store";
- const { dicts } = useDictionaryStore();
- const switchOp = [
- {
- label: "否",
- value: 0,
- },
- {
- label: "是",
- value: 1,
- },
- ];
- export const formOption = {
- submitBtn: false,
- emptyBtn: false,
- column: [
- {
- label: "工序类型",
- prop: "operationType",
- type: "select",
- search: true,
- dicData: dicts.process_type,
- props: {
- label: "dictLabel",
- value: "dictValue",
- },
- span: 24,
- rules: [
- {
- required: true,
- message: "请选择工序类型",
- trigger: "change",
- },
- ],
- },
- {
- label: "技能要求",
- prop: "skillAsk",
- span: 24,
- type: "select",
- search: true,
- filterable: true,
- dicData: dicts.skill_requirements,
- props: {
- label: "dictLabel",
- value: "dictValue",
- },
- rules: [
- {
- required: true,
- message: "请选择技能要求",
- trigger: "change",
- },
- ],
- },
- {
- label: "工位类型",
- prop: "stanType",
- search: true,
- type: "select",
- dicData: dicts.station_type,
- props: {
- label: "dictLabel",
- value: "dictValue",
- },
- span: 24,
- row: true,
- rules: [
- {
- required: true,
- message: "请选择工位类型",
- trigger: "blur",
- },
- ],
- },
- {
- label: "标准工时",
- prop: "standardWorktime",
- span: 24,
- value: 0,
- append: "分钟",
- rules: [
- {
- required: true,
- message: "标准工时不能为空",
- trigger: "blur",
- },
- ],
- },
- /* {
- label: "标准机时",
- prop: "timeingNum",
- span: 24,
- value: 0,
- append: "分钟",
- // rules: [
- // {
- // required: true,
- // message: "标准机时不能为空",
- // trigger: "blur",
- // },
- // ],
- },*/
- {
- label: "前置时间",
- prop: "forceTime",
- span: 24,
- value: 0,
- append: "分钟",
- rules: [
- {
- required: true,
- message: "前置时间不能为空",
- trigger: "blur",
- },
- ],
- // slot:true, // 自定义列
- },
- {
- label: "是否外协",
- prop: "outsourcing",
- span: 24,
- type: "switch",
- dicData: switchOp,
- value: 0,
- },
- /*{
- label: "是否首检",
- prop: "firstCheck",
- span: 24,
- type: "switch",
- dicData: switchOp,
- value: 0,
- },*/
- {
- label: "是否巡检",
- prop: "inspection",
- span: 24,
- type: "switch",
- dicData: switchOp,
- value: 0,
- },
- {
- label: "是否自检",
- prop: "selfCheck",
- span: 24,
- type: "switch",
- dicData: switchOp,
- value: 0,
- },
- {
- label: "批量报工",
- prop: "batchReport",
- span: 24,
- type: "switch",
- dicData: switchOp,
- value: 0,
- },
- {
- label: "是否可跳过",
- prop: "skipped",
- span: 24,
- type: "switch",
- dicData: switchOp,
- value: 0,
- },
- {
- label: "工艺条件",
- prop: "processAsk",
- span: 24,
- },
- {
- label: "工序描述",
- prop: "operationDesc",
- span: 24,
- type: "textarea",
- },
- /*{
- label: "tbom文件",
- prop: "tbomUrl",
- span: 24,
- },*/
- ],
- };
|