| | |
| | | :value="item"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-button style="margin-left: 10px;">自动</el-button> |
| | | <!-- <el-button style="margin-left: 10px;">自动</el-button> --> |
| | | </div> |
| | | <div> |
| | | <div :class="['lineStatus', stationValue.status ? 'device-status-0' : 'device-status-1']"> |
| | |
| | | <div> |
| | | <el-form label-position="left" label-width="80px"> |
| | | <el-row :gutter="25"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="任务号"> |
| | | <el-input v-model="stationValue.taskNo"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="任务类型"> |
| | | <el-select clearable="" v-model="stationValue.taskType" placeholder="请选择状态"> |
| | | <el-option v-for="(item, index) in dl('TaskTypeEnum')" :key="index" |
| | | :value="Number(item.value)" :label="`${item.name} [${item.value}] `" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="起始工位"> |
| | | <el-input v-model="stationValue.startLocatNo"></el-input> |
| | |
| | | |
| | | <el-col :span="12"> |
| | | <el-form-item label="取货排"> |
| | | <el-input></el-input> |
| | | <el-input v-model="stationValue.pickRow"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="放货排"> |
| | | <el-input></el-input> |
| | | <el-input v-model="stationValue.releaseRow"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="取货列"> |
| | | <el-input></el-input> |
| | | <el-input v-model="stationValue.pickCol"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="放货列"> |
| | | <el-input></el-input> |
| | | <el-input v-model="stationValue.releaseCol"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="取货层"> |
| | | <el-input></el-input> |
| | | <el-input v-model="stationValue.pickStorey"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="放货层"> |
| | | <el-input></el-input> |
| | | <el-input v-model="stationValue.releaseStorey"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="托盘码"> |
| | | <el-input v-model="stationValue.palletNo"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="状态"> |
| | | <el-input :value="stationValue.status ? '在线' : '离线'" readonly></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-button class="button" size="large" @click="write(stationValue)">写入数据</el-button> |
| | | </div> |
| | | </div> |
| | | <template #footer> |
| | | <!-- <template #footer> |
| | | <div class="card-footer"> |
| | | <el-button class="button" size="large">正 转</el-button> |
| | | <el-button class="button" size="large">反 转</el-button> |
| | | <el-button class="button" size="large">移栽上升</el-button> |
| | | <el-button class="button" size="large">移栽下降</el-button> |
| | | </div> |
| | | </template> |
| | | </template> --> |
| | | </el-card> |
| | | |
| | | <!-- <template #footer> |
| | |
| | | <script lang="ts" setup> |
| | | import { ref, defineModel } from 'vue'; |
| | | import { writeValue } from '/@/api/wcs/wcsDevice'; |
| | | import { ElMessageBox,ElMessage } from 'element-plus'; |
| | | import { ElMessageBox, ElMessage } from 'element-plus'; |
| | | import { getDictDataItem as di, getDictDataList as dl } from '/@/utils/dict-utils'; |
| | | const listStationsData = defineModel<any>("listStationsData") |
| | | const stationValue = defineModel<any>("stationValue") |
| | | |
| | |
| | | // }; |
| | | const write = async (row: any) => { |
| | | await writeValue(row); |
| | | ElMessage.success('写入成功!'); |
| | | ElMessage.success('写入成功!'); |
| | | } |
| | | const isShowDialog = ref(false); |
| | | |