Browse Source

工艺路线配置 页面优化:

master_hella_20240701
zhousq 6 months ago
parent
commit
89b3712acc
  1. 5
      src/api/mes/processroute/index.ts
  2. 6
      src/views/mes/processroute/components/configDialog.vue
  3. 7
      src/views/mes/processroute/processroute.data.ts

5
src/api/mes/processroute/index.ts

@ -87,6 +87,11 @@ export const getProcessBomList = async (params) => {
return await request.get({ url: `/mes/common/getBomListByProductAndProcess`,params}) return await request.get({ url: `/mes/common/getBomListByProductAndProcess`,params})
} }
// 查询产品bom的工序物料列表
export const getBomListByProductBomAndProcess = async (params) => {
return await request.get({ url: `/mes/common/getBomListByProductBomAndProcess`,params})
}
export const getWorkstationPage = async (code:String) => { export const getWorkstationPage = async (code:String) => {
return await request.get({ url: `/mes/workstation/page?pageSize=25&processCode=`+code}) return await request.get({ url: `/mes/workstation/page?pageSize=25&processCode=`+code})
} }

6
src/views/mes/processroute/components/configDialog.vue

@ -189,6 +189,7 @@ const tableProcess = ref()
const productData = ref({ name: '', code: '', desc1: '--' }) // const productData = ref({ name: '', code: '', desc1: '--' }) //
const materialData=ref() const materialData=ref()
const mouldData = ref() const mouldData = ref()
//const bomVersion=ref()
const page=ref({ const page=ref({
total:0, total:0,
current:1, current:1,
@ -327,6 +328,7 @@ const getProcessBomList = async (pcode,processCode) => {
processCode:processCode processCode:processCode
} }
return await ProcessrouteApi.getProcessBomList(params); return await ProcessrouteApi.getProcessBomList(params);
//return await ProcessrouteApi.getBomListByProductBomAndProcess(params);
} }
/** 查询模具基本信息列表 */ /** 查询模具基本信息列表 */
const getPatternPage = async (code) => { const getPatternPage = async (code) => {
@ -363,10 +365,10 @@ const nodeClick = (e, x, y, node, view) => {
currentNode.value.name=node.attrs.title.text currentNode.value.name=node.attrs.title.text
Promise.all([ Promise.all([
getProcessInfo(node.id), getProcessInfo(node.id),
getProcessBomList(productCode.value,node.id), getProcessBomList(productCode.value,node.id),// rowData.value
getPatternPage(node.id), getPatternPage(node.id),
getWorkstationPage(node.id) getWorkstationPage(node.id)
]).then(([processInfoList,basicBom, patternPage,workstationInfoList]) => { ]).then(([processInfo,basicBom, patternPage,workstationInfoList]) => {
// //
//message.info(JSON.stringify(processIndoList)) //message.info(JSON.stringify(processIndoList))
//console.log('basicBom',basicBom) //console.log('basicBom',basicBom)

7
src/views/mes/processroute/processroute.data.ts

@ -98,6 +98,13 @@ export const Processroute = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
// { // {
// label: 'BOM版本号',
// field: 'BOMVersion',
// sort: 'custom',
// value: '1',
// isSearch: false,
// },
// {
// label: '版本号', // label: '版本号',
// field: 'routeVersion', // field: 'routeVersion',
// sort: 'custom', // sort: 'custom',

Loading…
Cancel
Save