|
@ -36,24 +36,25 @@ |
|
|
<el-table :data="processData" ref="tableProcess" style="width: 100%; height: 80%" @cell-dblclick="userAddNode"> |
|
|
<el-table :data="processData" ref="tableProcess" style="width: 100%; height: 80%" @cell-dblclick="userAddNode"> |
|
|
<el-table-column prop="code" label="工序编码" /> |
|
|
<el-table-column prop="code" label="工序编码" /> |
|
|
<el-table-column prop="name" label="工序名称" /> |
|
|
<el-table-column prop="name" label="工序名称" /> |
|
|
<el-table-column prop="opera" label="" width="60"> |
|
|
<!-- <el-table-column prop="opera" label="" width="60"> |
|
|
<template #header> |
|
|
<template #header> |
|
|
<span>操作</span> |
|
|
<span>操作</span> |
|
|
</template> |
|
|
</template> |
|
|
<!-- <template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<el-button type="danger" size="mini" text @click="deleteNode(scope.row)" |
|
|
<el-button type="danger" size="mini" text @click="deleteNode(scope.row)" |
|
|
>移除</el-button |
|
|
>移除</el-button |
|
|
> |
|
|
> |
|
|
</template> --> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> --> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-card> |
|
|
</el-card> |
|
|
</el-aside> |
|
|
</el-aside> |
|
|
<el-main style="height: 320px;width: calc(100% - 980px);padding: 0px; margin:0px 20px"> |
|
|
<el-main style="height: 480px; width: calc(100% - 980px);padding: 0px; margin:0px 20px"> |
|
|
<div ref="graphContainer"></div |
|
|
<div ref="graphContainer"></div |
|
|
></el-main> |
|
|
></el-main> |
|
|
<el-aside width="640px"> |
|
|
<el-aside width="640px"> |
|
|
<el-tabs v-model="activeName"> |
|
|
<el-tag>工序编码:{{currentNode.id}} -工序名称:{{currentNode.attrs.title.text }}</el-tag> |
|
|
|
|
|
<el-tabs v-model="activeName" > |
|
|
<el-tab-pane label="工序工位" name="workstation"> |
|
|
<el-tab-pane label="工序工位" name="workstation"> |
|
|
<el-table :data="workstationData" ref="tableWorkstations" style="width: 100%; height: 80%"> |
|
|
<el-table :data="workstationData" ref="tableWorkstations" style="width: 100%; height: 80%"> |
|
|
<el-table-column prop="stationName" label="工位名称" /> |
|
|
<el-table-column prop="stationName" label="工位名称" /> |
|
@ -76,7 +77,17 @@ |
|
|
<el-table-column prop="sourceMaterialCounts" label="需求物料数"> |
|
|
<el-table-column prop="sourceMaterialCounts" label="需求物料数"> |
|
|
<template #default="scope">{{ getTotalcounts(scope.row.repMaterialCounts) }}</template> |
|
|
<template #default="scope">{{ getTotalcounts(scope.row.repMaterialCounts) }}</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="replaceFlag" label="是否替换" /> |
|
|
<el-table-column prop="replaceFlag" label="是否替换" > |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
<el-switch |
|
|
|
|
|
v-model="scope.row.replaceFlag" |
|
|
|
|
|
active-color="#13ce66" |
|
|
|
|
|
inactive-color="#ff4949" |
|
|
|
|
|
active-text="是" |
|
|
|
|
|
inactive-text="否" |
|
|
|
|
|
/> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="工序人员" name="workers"> |
|
|
<el-tab-pane label="工序人员" name="workers"> |
|
@ -211,7 +222,7 @@ const graphContainer = ref<HTMLElement | null>(null) |
|
|
const graph = ref<Graph>() |
|
|
const graph = ref<Graph>() |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const { t } = useI18n() // 国际化 |
|
|
const { t } = useI18n() // 国际化 |
|
|
const activeName = ref('process') |
|
|
const activeName = ref('workstation') |
|
|
const formLoading = ref(false) |
|
|
const formLoading = ref(false) |
|
|
const dialogFormVisibleUser = ref(false) |
|
|
const dialogFormVisibleUser = ref(false) |
|
|
const processData = ref([]) |
|
|
const processData = ref([]) |
|
@ -249,6 +260,7 @@ const workstationData=ref([]) |
|
|
const dialogVisible = ref(false) // 弹窗的是否展示 |
|
|
const dialogVisible = ref(false) // 弹窗的是否展示 |
|
|
const dialogTitle = ref('') // 弹窗的标题 |
|
|
const dialogTitle = ref('') // 弹窗的标题 |
|
|
const graphJson =ref() |
|
|
const graphJson =ref() |
|
|
|
|
|
const currentNode = ref({}) |
|
|
/*班组数据*/ |
|
|
/*班组数据*/ |
|
|
const teamData = ref([]) |
|
|
const teamData = ref([]) |
|
|
/*班组弹窗搜索条件*/ |
|
|
/*班组弹窗搜索条件*/ |
|
@ -309,9 +321,9 @@ const open = async (type: string, row?: any, titleName?: any) => { |
|
|
queryParams.batchCode=row.batchCode |
|
|
queryParams.batchCode=row.batchCode |
|
|
//获取配置的 |
|
|
//获取配置的 |
|
|
if (titleName) { |
|
|
if (titleName) { |
|
|
dialogTitle.value = t('action.' + titleName) |
|
|
dialogTitle.value = titleName |
|
|
} else { |
|
|
} else { |
|
|
dialogTitle.value = t('action.' + type) |
|
|
dialogTitle.value = type |
|
|
} |
|
|
} |
|
|
nextTick?.(() => { |
|
|
nextTick?.(() => { |
|
|
graph.value = createGraph(graphContainer.value as HTMLElement, true, 240, 320) |
|
|
graph.value = createGraph(graphContainer.value as HTMLElement, true, 240, 320) |
|
@ -388,6 +400,7 @@ const nodeClick = (e, x, y, node, view) => { |
|
|
getConfigProcessWorker(node.id) |
|
|
getConfigProcessWorker(node.id) |
|
|
getConfigProcessEquipment(node.id) |
|
|
getConfigProcessEquipment(node.id) |
|
|
processCode.value = node.id |
|
|
processCode.value = node.id |
|
|
|
|
|
currentNode.value=node |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const searchTableRef = ref() |
|
|
const searchTableRef = ref() |
|
@ -453,9 +466,10 @@ const doPublishPlan= ()=>{ |
|
|
endTime: detailData.value.endTime, |
|
|
endTime: detailData.value.endTime, |
|
|
taskMode: detailData.value.taskMode |
|
|
taskMode: detailData.value.taskMode |
|
|
} |
|
|
} |
|
|
//console.log("-------",data) |
|
|
|
|
|
let res = OrderDayApi.publishPlan(data) |
|
|
let res = OrderDayApi.publishPlan(data) |
|
|
if(res.code==0){ |
|
|
console.log("---doPublishPlan-- 458--",res) |
|
|
|
|
|
if(res.code===0){ |
|
|
message.success("计划发布成功") |
|
|
message.success("计划发布成功") |
|
|
}else { |
|
|
}else { |
|
|
message.error(res.msg) |
|
|
message.error(res.msg) |
|
|