diff --git a/.env.development b/.env.development index fdfc9d74e..de969391d 100644 --- a/.env.development +++ b/.env.development @@ -4,10 +4,10 @@ NODE_ENV=development VITE_DEV=false # 请求路径 -VITE_BASE_URL='http://localhost:12080' +VITE_BASE_URL='http://192.168.0.108:12080' # 上传路径 -VITE_UPLOAD_URL='http://localhost:12080/api/admin-api/infra/file/upload' +VITE_UPLOAD_URL='http://192.168.0.108:12080/api/admin-api/infra/file/upload' # 接口前缀 VITE_API_BASEPATH=/dev-api @@ -31,7 +31,7 @@ VITE_SOURCEMAP=false VITE_OUT_DIR=dist # 自定义接口路径 -VITE_INTERFACE_URL='http://localhost:12080/magic/web/index.html' +VITE_INTERFACE_URL='http://192.168.0.108:12080/magic/web/index.html' # 积木报表请求路径 -VITE_JMREPORT_BASE_URL='http://localhost:12080' \ No newline at end of file +VITE_JMREPORT_BASE_URL='http://192.168.0.108:12080' \ No newline at end of file diff --git a/src/api/mes/processroute/index.ts b/src/api/mes/processroute/index.ts index 04e7c6abd..b18879dc3 100644 --- a/src/api/mes/processroute/index.ts +++ b/src/api/mes/processroute/index.ts @@ -30,6 +30,11 @@ export const getProcessroutePage = async (params) => { export const getProcessroute = async (id: number) => { return await request.get({ url: `/mes/processroute/get?id=` + id }) } +// 查询工艺路线定义的工序列表 +export const getProcessrouteNodeList = async (code:any) => { + return await request.get({ url: `/mes/processrouteNodeDetail/getRouteNodes?code=`+code }) +} + // 新增工艺路线定义 export const createProcessroute = async (data: ProcessrouteVO) => { diff --git a/src/views/mes/processroute/components/configDialog.vue b/src/views/mes/processroute/components/configDialog.vue index d68b94120..cf4426e07 100644 --- a/src/views/mes/processroute/components/configDialog.vue +++ b/src/views/mes/processroute/components/configDialog.vue @@ -145,7 +145,6 @@ import { start_node, end_node, createGraph, getNewNode } from './graphbase.data' import {ProcessSearch} from '../../publicUtil/processSearch.data' import * as ProcessrouteApi from '@/api/mes/processroute' import { Graph } from '@antv/x6' -import { get } from 'http' const graphContainer = ref(null) defineOptions({ name: 'ProcessRouteConfig' }) const isShowDrawer = ref(false) @@ -234,11 +233,12 @@ const openDetail = (row: any) => { materialData.value = [] mouldData.value = [] workStationList.value = [] - graph.value.on('node:click', ({ e, x, y, node, view }) => { + graph.value.on('node:dblclick', ({ e, x, y, node, view }) => { nodeClick(e, x, y, node, view) }) graph.value.fromJSON(graphJson.cells) }) + getProcessList(rowData.value.processrouteCode) getItembasicInfo(rowData.value.productCode) getRemarkList() getFileList() @@ -275,17 +275,24 @@ const getPatternPage = async (code) => { const getWorkstationPage = async (code) => { return await ProcessrouteApi.getWorkstationPage(code); } -const processListParmas = ref({ - name: '', - workshopCode: '', - productionLineCode:'', - pageNum: 1, - pageSize: 50 -}) -/**获取工序列表 */ -const getProcessList = async () => { - const res = await ProcessrouteApi.getProcessList(processListParmas.value) - processData.value = res.list +// const processListParmas = ref({ +// name: '', +// workshopCode: '', +// productionLineCode:'', +// pageNum: 1, +// pageSize: 50 +// }) +// /**获取基础工序列表 */ +// const getProcessList = async () => { +// const res = await ProcessrouteApi.getProcessList(processListParmas.value) +// processData.value = res.list +// //return res +// } +/**获取工艺路线定义的工序列表 */ +const getProcessList = async (code) => { + console.log('code',code) + const res = await ProcessrouteApi.getProcessrouteNodeList(code) + processData.value = res //return res } // 并行执行所有异步操作 @@ -353,7 +360,7 @@ defineExpose({ openDetail, createGraph }) // 提供 open 方法,用于打开 onMounted?.(() => { //registerNodes() - getProcessList() + //getProcessList() }) //保存图形 const saveResult = async () => { diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue index 2146fbb56..f3a4a5498 100644 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue @@ -16,7 +16,7 @@ - +
@@ -42,9 +45,11 @@