| | |
| | | sortName: "createDate", // 默认排序字段 |
| | | }); |
| | | |
| | | // 编辑表单字段(初始为空,根据实际编辑需求配置) |
| | | const editFormFields = ref({}); |
| | | const editFormOptions = ref([]); |
| | | // 编辑表单字段 |
| | | const editFormFields = ref({ |
| | | robotTaskNum: "", |
| | | robotRoadway: "", |
| | | robotTaskType: "", |
| | | robotTaskState: "", |
| | | robotTaskTotalNum: "", |
| | | robotSourceAddress: "", |
| | | robotTargetAddress: "", |
| | | robotSourceAddressLineCode: "", |
| | | robotTargetAddressLineCode: "", |
| | | robotSourceAddressPalletCode: "", |
| | | robotTargetAddressPalletCode: "", |
| | | robotGrade: 2, |
| | | }); |
| | | |
| | | // 编辑表单配置 |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { title: "任务编号", field: "robotTaskNum", type: "int", required: true }, |
| | | { title: "巷道", field: "robotRoadway", type: "string", required: true }, |
| | | { title: "任务总数", field: "robotTaskTotalNum", type: "int", required: true }, |
| | | { |
| | | title: "优先级", |
| | | field: "robotGrade", |
| | | type: "select", |
| | | data: [ |
| | | { key: 1, value: "低" }, |
| | | { key: 2, value: "普通" }, |
| | | { key: 3, value: "高" }, |
| | | { key: 4, value: "紧急" }, |
| | | ], |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | title: "任务类型", |
| | | field: "robotTaskType", |
| | | type: "select", |
| | | dataKey: "taskType", |
| | | data: [], |
| | | required: true, |
| | | }, |
| | | { |
| | | title: "任务状态", |
| | | field: "robotTaskState", |
| | | type: "select", |
| | | dataKey: "taskState", |
| | | data: [], |
| | | required: true, |
| | | }, |
| | | { title: "来源地址", field: "robotSourceAddress", type: "string", required: true }, |
| | | { title: "目标地址", field: "robotTargetAddress", type: "string", required: true }, |
| | | ], |
| | | [ |
| | | { title: "来源线代码", field: "robotSourceAddressLineCode", type: "string" }, |
| | | { title: "目标线代码", field: "robotTargetAddressLineCode", type: "string" }, |
| | | { title: "来源托盘代码", field: "robotSourceAddressPalletCode", type: "string" }, |
| | | { title: "目标托盘代码", field: "robotTargetAddressPalletCode", type: "string" }, |
| | | ], |
| | | ]); |
| | | |
| | | // 搜索表单字段 |
| | | const searchFormFields = ref({ |