| | |
| | | <el-tab-pane label="物料清单" name="物料清单">Role</el-tab-pane> |
| | | </el-tabs> |
| | | </template> |
| | | <template #middleBlock3> 任务详情 </template> |
| | | <template #middleBlock4 |
| | | >人员信息 |
| | | <template #middleBlock3> |
| | | <SubTitle>任务详情</SubTitle> |
| | | <div class="task-detail"> |
| | | <TaskControl :task="activeTask"></TaskControl> |
| | | </div> |
| | | <ColorInfo :order="order" :type="1"></ColorInfo> |
| | | <ColorInfo :order="order" :type="2"></ColorInfo> |
| | | </template> |
| | | <template #middleBlock4> |
| | | <SubTitle>人员信息</SubTitle> |
| | | <PersonInfo :person="person"></PersonInfo> |
| | | </template> |
| | | <template #rightBlock1> |
| | |
| | | <CurrentDateTime></CurrentDateTime> |
| | | </div> |
| | | </template> |
| | | <template #rightBlock2>状态面板</template> |
| | | <template #rightBlock3>知识库</template> |
| | | <template #rightBlock2> |
| | | <DeviceStatusInfo :device="device" :type="1"></DeviceStatusInfo> |
| | | <DeviceStatusInfo :device="device" :type="2"></DeviceStatusInfo> |
| | | </template> |
| | | <template #rightBlock3> |
| | | <SubTitle>知识库</SubTitle> |
| | | </template> |
| | | </DashboardLayout> |
| | | </template> |
| | | <script setup lang="ts"> |
| | | import { computed, ref } from 'vue' |
| | | import ChannelCollapse from '@/views/dashboard/components/ChannelCollapse.vue' |
| | | import type { Worker } from '@/api/task' |
| | | import type { Worker, Order } from '@/api/task' |
| | | import type { PLCResponse } from '@/api/plc' |
| | | import PersonInfo from '@/views/dashboard/components/PersonInfo.vue' |
| | | import ProcessInfo from '@/views/dashboard/components/ProcessInfo.vue' |
| | | import ColorInfo from '@/views/dashboard/components/ColorInfo.vue' |
| | | import DeviceStatusInfo from '@/views/dashboard/components/DeviceStatusInfo.vue' |
| | | import type { LabelValue } from '@/views/dashboard/components/TaskTabs.vue' |
| | | import TaskTabs from '@/views/dashboard/components/TaskTabs.vue' |
| | | import CurrentDateTime from '@/views/dashboard/components/CurrentDateTime.vue' |
| | | import { useTasksStore } from '@/stores/tasks' |
| | | import { storeToRefs } from 'pinia' |
| | | import ProcessingInfo from '@/views/dashboard/components/ProcessingInfo.vue' |
| | | import TaskControl from '@/views/dashboard/components/TaskControl.vue' |
| | | import SubTitle from '@/views/dashboard/components/SubTitle.vue' |
| | | |
| | | defineOptions({ |
| | | name: 'DashboardView' |
| | |
| | | } as unknown as Worker |
| | | }) |
| | | const process = computed(() => { |
| | | return { name: '工艺名称', number: '111' } |
| | | return { product: '产品名称', number: '111', procedure: '工艺名称', isUpdate: true } |
| | | }) |
| | | |
| | | const order = computed(() => { |
| | | return { |
| | | finishNumber: 0, |
| | | unit: '个', |
| | | amount: '10' |
| | | } as unknown as Order |
| | | }) |
| | | const device = computed(() => { |
| | | return { |
| | | plcStatus: 1, |
| | | plcNotConnected: false |
| | | } as unknown as PLCResponse |
| | | }) |
| | | const taskTabsList = [ |
| | | { |