From 7249abf5b1425e2a79b2461e2ad0176d337a004f Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 17 Nov 2023 16:48:00 +0800 Subject: [PATCH] add BomSelector --- .../components/BomSelector.vue | 123 ++++++++++++++++++ .../components/CustomTransfer.vue | 60 +-------- .../components/ProcessBomList.vue | 7 +- .../processFlowView/components/candidate.js | 8 ++ 4 files changed, 137 insertions(+), 61 deletions(-) create mode 100644 src/views/extend/processFlowView/components/BomSelector.vue diff --git a/src/views/extend/processFlowView/components/BomSelector.vue b/src/views/extend/processFlowView/components/BomSelector.vue new file mode 100644 index 00000000..cdd9a160 --- /dev/null +++ b/src/views/extend/processFlowView/components/BomSelector.vue @@ -0,0 +1,123 @@ + + + + + + + diff --git a/src/views/extend/processFlowView/components/CustomTransfer.vue b/src/views/extend/processFlowView/components/CustomTransfer.vue index 7d78ee22..173c6c5a 100644 --- a/src/views/extend/processFlowView/components/CustomTransfer.vue +++ b/src/views/extend/processFlowView/components/CustomTransfer.vue @@ -51,65 +51,7 @@ export default { pageNo: 1, pageSize: 100, }, - candidate: { - total: 0, - tree: [ - { - id: 1, - name: '设备1', - paramBomList: [ - { name: '参数BOM1', type: 'param', id: 1 }, - { name: '参数BOM2', type: 'param', id: 2 }, - { name: '参数BOM3', type: 'param', id: 3 }, - { name: '参数BOM4', type: 'param', id: 4 }, - { name: '参数BOM5', type: 'param', id: 5 }, - ], - materialBomList: [ - { name: '物料BOM1', type: 'material', id: 1 }, - { name: '物料BOM2', type: 'material', id: 2 }, - { name: '物料BOM3', type: 'material', id: 3 }, - { name: '物料BOM4', type: 'material', id: 4 }, - { name: '物料BOM5', type: 'material', id: 5 }, - ], - }, - { - id: 2, - name: '设备2', - paramBomList: [ - { name: '参数BOM1', type: 'param', id: 1 }, - { name: '参数BOM2', type: 'param', id: 2 }, - { name: '参数BOM3', type: 'param', id: 3 }, - { name: '参数BOM4', type: 'param', id: 4 }, - { name: '参数BOM5', type: 'param', id: 5 }, - ], - materialBomList: [ - { name: '物料BOM1', type: 'material', id: 1 }, - { name: '物料BOM2', type: 'material', id: 2 }, - { name: '物料BOM3', type: 'material', id: 3 }, - { name: '物料BOM4', type: 'material', id: 4 }, - { name: '物料BOM5', type: 'material', id: 5 }, - ], - }, - { - id: 3, - name: '设备3', - paramBomList: [ - { name: '参数BOM1', type: 'param', id: 1 }, - { name: '参数BOM2', type: 'param', id: 2 }, - { name: '参数BOM3', type: 'param', id: 3 }, - { name: '参数BOM4', type: 'param', id: 4 }, - { name: '参数BOM5', type: 'param', id: 5 }, - ], - materialBomList: [ - { name: '物料BOM1', type: 'material', id: 1 }, - { name: '物料BOM2', type: 'material', id: 2 }, - { name: '物料BOM3', type: 'material', id: 3 }, - { name: '物料BOM4', type: 'material', id: 4 }, - { name: '物料BOM5', type: 'material', id: 5 }, - ], - }, - ], - }, + candidate: [], selectedList: [], }; }, diff --git a/src/views/extend/processFlowView/components/ProcessBomList.vue b/src/views/extend/processFlowView/components/ProcessBomList.vue index 5908eba4..1667dc7d 100644 --- a/src/views/extend/processFlowView/components/ProcessBomList.vue +++ b/src/views/extend/processFlowView/components/ProcessBomList.vue @@ -63,20 +63,23 @@ - + +