|
@ -96,10 +96,11 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<el-table :data="materialData" ref="tableMaterial" style="width: 100%; height: 80%;overflow-y: auto;"> |
|
|
<el-table :data="materialData" ref="tableMaterial" style="width: 100%; height: 80%;overflow-y: auto;"> |
|
|
<el-table-column prop="name" label="物料名称"/> |
|
|
<!-- <el-table-column prop="name" label="物料名称"/> --> |
|
|
= |
|
|
<el-table-column prop="componentItemCode" label="物料编码"/> |
|
|
<el-table-column prop="code" label="物料编码"/> |
|
|
<el-table-column prop="version" label="版本号"/> |
|
|
<el-table-column prop="desc1" label="是否替代"/> |
|
|
<el-table-column prop="componentQty" label="物料数量"/> |
|
|
|
|
|
|
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-card></el-col |
|
|
</el-card></el-col |
|
|
> |
|
|
> |
|
@ -210,6 +211,7 @@ const deleteNode=(row)=>{ |
|
|
processData.value.splice(processData.value.indexOf(row),1) |
|
|
processData.value.splice(processData.value.indexOf(row),1) |
|
|
graph.value.removeNode(row.code) |
|
|
graph.value.removeNode(row.code) |
|
|
} |
|
|
} |
|
|
|
|
|
const productCode=ref() |
|
|
//初始化图形组件 |
|
|
//初始化图形组件 |
|
|
const graph = ref<Graph>() |
|
|
const graph = ref<Graph>() |
|
|
const rowData = ref() |
|
|
const rowData = ref() |
|
@ -219,6 +221,7 @@ const openDetail = (row: any) => { |
|
|
titleNameRef.value = rowData.value.processrouteCode |
|
|
titleNameRef.value = rowData.value.processrouteCode |
|
|
titleValueRef.value = rowData.value.processName |
|
|
titleValueRef.value = rowData.value.processName |
|
|
processRouteId.value = rowData.value.id |
|
|
processRouteId.value = rowData.value.id |
|
|
|
|
|
productCode.value=rowData.value.productCode |
|
|
routeVersion.value=rowData.value.routeVersion |
|
|
routeVersion.value=rowData.value.routeVersion |
|
|
remarksData.data = { |
|
|
remarksData.data = { |
|
|
tableId: rowData.value.id, |
|
|
tableId: rowData.value.id, |
|
@ -261,11 +264,17 @@ const getProcessInfo = async (id: any) => { |
|
|
/** 获取产品信息 */ |
|
|
/** 获取产品信息 */ |
|
|
const getItembasicInfo = async (code: String) => { |
|
|
const getItembasicInfo = async (code: String) => { |
|
|
const res = await ProcessrouteApi.getProductInfo(code) |
|
|
const res = await ProcessrouteApi.getProductInfo(code) |
|
|
|
|
|
console.log('productData',res) |
|
|
productData.value = res |
|
|
productData.value = res |
|
|
} |
|
|
} |
|
|
/** 获取物料列表 */ |
|
|
/** 获取物料列表 */ |
|
|
const getItembasicPage = async (code) => { |
|
|
const getProcessBomList = async (pcode,processCode) => { |
|
|
return await ProcessrouteApi.getItembasicPage(code); |
|
|
let params={ |
|
|
|
|
|
code:pcode ,//"产品编码" |
|
|
|
|
|
//version:version,//bom版本" |
|
|
|
|
|
processCode:processCode |
|
|
|
|
|
} |
|
|
|
|
|
return await ProcessrouteApi.getProcessBomList(params); |
|
|
} |
|
|
} |
|
|
/** 查询模具基本信息列表 */ |
|
|
/** 查询模具基本信息列表 */ |
|
|
const getPatternPage = async (code) => { |
|
|
const getPatternPage = async (code) => { |
|
@ -290,7 +299,7 @@ const getWorkstationPage = async (code) => { |
|
|
// } |
|
|
// } |
|
|
/**获取工艺路线定义的工序列表 */ |
|
|
/**获取工艺路线定义的工序列表 */ |
|
|
const getProcessList = async (code) => { |
|
|
const getProcessList = async (code) => { |
|
|
console.log('code',code) |
|
|
//console.log('code',code) |
|
|
const res = await ProcessrouteApi.getProcessrouteNodeList(code) |
|
|
const res = await ProcessrouteApi.getProcessrouteNodeList(code) |
|
|
processData.value = res |
|
|
processData.value = res |
|
|
//return res |
|
|
//return res |
|
@ -299,15 +308,15 @@ const getProcessList = async (code) => { |
|
|
const nodeClick = (e, x, y, node, view) => { |
|
|
const nodeClick = (e, x, y, node, view) => { |
|
|
Promise.all([ |
|
|
Promise.all([ |
|
|
getProcessInfo(node.id), |
|
|
getProcessInfo(node.id), |
|
|
getItembasicPage(node.id), |
|
|
getProcessBomList(productCode.value,node.id), |
|
|
getPatternPage(node.id), |
|
|
getPatternPage(node.id), |
|
|
getWorkstationPage(node.id) |
|
|
getWorkstationPage(node.id) |
|
|
]).then(([processIndoList,itembasicPage, patternPage,workstationInfoList]) => { |
|
|
]).then(([processIndoList,basicBom, patternPage,workstationInfoList]) => { |
|
|
// 在这里处理所有异步操作的结果 |
|
|
// 在这里处理所有异步操作的结果 |
|
|
message.info(JSON.stringify(processIndoList)) |
|
|
//message.info(JSON.stringify(processIndoList)) |
|
|
console.log(processIndoList) |
|
|
console.log('basicBom',basicBom) |
|
|
//获取绑定的物料信息 |
|
|
//获取绑定的物料信息 |
|
|
materialData.value = itembasicPage.list |
|
|
materialData.value = basicBom |
|
|
//获取绑定的模具信息 |
|
|
//获取绑定的模具信息 |
|
|
mouldData.value = patternPage.list |
|
|
mouldData.value = patternPage.list |
|
|
//获取绑定的工位信息 |
|
|
//获取绑定的工位信息 |
|
|