| | |
| | | <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> |
| | |
| | | <CurrentDateTime></CurrentDateTime> |
| | | </div> |
| | | </template> |
| | | <template #rightBlock2>状态面板</template> |
| | | <template #rightBlock2> |
| | | <DeviceStatusInfo :device="device" :type="1"></DeviceStatusInfo> |
| | | <DeviceStatusInfo :device="device" :type="2"></DeviceStatusInfo> |
| | | </template> |
| | | <template #rightBlock3> |
| | | <SubTitle>知识库</SubTitle> |
| | | </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' |
| | |
| | | } 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 = [ |
| | | { |