| | |
| | | >
|
| | | <!-- 左侧按钮组 -->
|
| | | <div>
|
| | | <el-button type="success" size="mini" @click="storage()"
|
| | | <el-button type="success" @click="storage()"
|
| | | >原片仓储详情</el-button
|
| | | >
|
| | | <el-button type="success" size="mini" @click="handleInbound()"
|
| | | <el-button type="success" @click="handleInbound()"
|
| | | >入库</el-button
|
| | | >
|
| | | <el-button type="success" size="mini">吊装位入库</el-button>
|
| | | <el-button type="success" >吊装位入库</el-button>
|
| | | </div>
|
| | | <!-- 右侧选择框 -->
|
| | | <el-form-item style="margin-top: 15px; width: 150px;margin-left: 10px;">
|
| | |
| | | <template #default="{ row }">
|
| | | <el-button
|
| | | type="primary"
|
| | | size="mini"
|
| | | @click="edithandleRowClick(row)"
|
| | | >修改</el-button
|
| | | >
|
| | | <el-button type="danger" size="mini" @click="handleDelete(row)"
|
| | | <el-button type="danger" @click="handleDelete(row)"
|
| | | >删除</el-button
|
| | | >
|
| | | <el-button type="warning" size="mini" @click="handleCheckout(row)"
|
| | | <el-button type="warning" @click="handleCheckout(row)"
|
| | | >出库</el-button
|
| | | >
|
| | | <!-- <el-button type="success" size="mini" @click="addglass()">添加原片</el-button> -->
|
| | | <!-- <el-button type="success" @click="addglass()">添加原片</el-button> -->
|
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|
| | |
| | | <!-- 操作列 -->
|
| | | <el-table-column label="操作" width="350">
|
| | | <template #default="{ row }">
|
| | | <el-button type="primary" size="mini" @click="handleRestart(row)"
|
| | | <el-button type="primary" @click="handleRestart(row)"
|
| | | >重新开始</el-button
|
| | | >
|
| | | <el-button type="danger" size="mini" @click="handleDeletetask(row)"
|
| | | <el-button type="danger" @click="handleDeletetask(row)"
|
| | | >删除任务</el-button
|
| | | >
|
| | | <el-button type="success" size="mini" @click="handleComplete(row)"
|
| | | <el-button type="success" @click="handleComplete(row)"
|
| | | >任务完成</el-button
|
| | | >
|
| | | </template>
|
| | |
| | | }
|
| | | });
|
| | | onBeforeUnmount(() => {
|
| | | console.log("关闭了");
|
| | | closeWebSocket();
|
| | | });
|
| | | const tasktableData = ref([]);
|
| | |
| | | const handleConfirmInbound = () => {
|
| | | inStorage(formData.value);
|
| | | // 处理确认入库逻辑,可以在这里提交表单或者执行其他操作
|
| | | console.log("Confirm Inbound:", formData.value);
|
| | | // 关闭对话框
|
| | | dialogVisible.value = false;
|
| | | };
|
| | |
| | | formData.value[field] = "";
|
| | | };
|
| | | const submitForm = () => {
|
| | | console.log("提交数据:", formData.value);
|
| | | dialogVisible3.value = false;
|
| | | // Add your submit logic here
|
| | | };
|
| | |
| | | // 处理行点击事件
|
| | | const edithandleRowClick = (row) => {
|
| | | currentRow.value = row;
|
| | | console.log(row);
|
| | | editForm.value.pieces = row.pieces.toString();
|
| | | editForm.value.batchId = row.batchId;
|
| | | editForm.value.rawWidth = row.rawWidth;
|
| | |
| | | editForm.value.rawThickness = row.rawThickness;
|
| | | editForm.value.id = row.number;
|
| | | editdialogVisible.value = true;
|
| | | console.log(editForm.value);
|
| | | };
|
| | | // 添加保存编辑内容
|
| | | const editsaveEdit = () => {
|