From ce06a4939dcc655dfb1e260375cc81e6794f7b98 Mon Sep 17 00:00:00 2001 From: gengby <858962040@qq.com> Date: Thu, 2 Jul 2026 17:36:41 +0800 Subject: [PATCH] =?UTF-8?q?rev:=E8=BE=93=E9=80=81=E7=BA=BF=E3=80=81OPC?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/acs/device/driver/belt_conveyor.vue | 297 +++++------------- .../one_conveyor/box_subvolumes_conveyor.vue | 137 +------- ...d_product_out_with_bind_lable_conveyor.vue | 136 +------- .../driver/one_conveyor/fold_disc_site.vue | 136 +------- .../one_conveyor/un_box_lable_conveyor.vue | 102 +----- .../src/views/acs/device/opc/index.vue | 23 +- 6 files changed, 114 insertions(+), 717 deletions(-) diff --git a/acs2/nladmin-ui/src/views/acs/device/driver/belt_conveyor.vue b/acs2/nladmin-ui/src/views/acs/device/driver/belt_conveyor.vue index 3a0be88..3022c52 100644 --- a/acs2/nladmin-ui/src/views/acs/device/driver/belt_conveyor.vue +++ b/acs2/nladmin-ui/src/views/acs/device/driver/belt_conveyor.vue @@ -1,109 +1,107 @@ @@ -325,19 +285,13 @@ export default { inspect_in_stocck: true, ignore_pickup_check: false, ignore_release_check: true, - targetDeviceCode: null, - apply_task: false, + apply_task: true, link_three_lamp: '', manual_create_task: true, is_pickup: true, is_release: true, link_device_code: [], - checkoutStartDeviceCode: null, - ship_device_update: true, - isTwoWayPoint: false, - isCreateInst: false, - cacheDeviceCode: null, - maxInstNum: null + ship_device_update: true }, rules: {} } @@ -644,81 +598,4 @@ export default { diff --git a/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/box_subvolumes_conveyor.vue b/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/box_subvolumes_conveyor.vue index 16452b9..aca9143 100644 --- a/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/box_subvolumes_conveyor.vue +++ b/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/box_subvolumes_conveyor.vue @@ -43,42 +43,6 @@ - -
- 开关: -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -118,97 +82,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -375,19 +248,13 @@ export default { inspect_in_stocck: true, ignore_pickup_check: true, ignore_release_check: true, - apply_task: false, + apply_task: true, link_three_lamp: '', manual_create_task: true, - targetDeviceCode: null, - checkoutStartDeviceCode: null, is_pickup: true, is_release: true, link_device_code: [], - ship_device_update: true, - isTwoWayPoint: false, - isCreateInst: false, - cacheDeviceCode: null, - maxInstNum: null + ship_device_update: true }, rules: {} } diff --git a/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/finished_product_out_with_bind_lable_conveyor.vue b/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/finished_product_out_with_bind_lable_conveyor.vue index d8ad9b3..5536822 100644 --- a/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/finished_product_out_with_bind_lable_conveyor.vue +++ b/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/finished_product_out_with_bind_lable_conveyor.vue @@ -44,43 +44,6 @@ - -
- 开关: -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
输送系统: @@ -119,97 +82,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -382,13 +254,7 @@ export default { is_pickup: true, is_release: true, link_device_code: [], - ship_device_update: true, - checkoutStartDeviceCode: null, - isTwoWayPoint: false, - isCreateInst: false, - targetDeviceCode: null, - cacheDeviceCode: null, - maxInstNum: null + ship_device_update: true }, rules: {} } diff --git a/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/fold_disc_site.vue b/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/fold_disc_site.vue index a32255f..8c0e12a 100644 --- a/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/fold_disc_site.vue +++ b/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/fold_disc_site.vue @@ -43,42 +43,7 @@ - -
- 开关: -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
输送系统: @@ -117,97 +82,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -380,13 +254,7 @@ export default { is_pickup: true, is_release: true, link_device_code: [], - checkoutStartDeviceCode: null, - ship_device_update: true, - isTwoWayPoint: false, - isCreateInst: false, - targetDeviceCode: null, - cacheDeviceCode: null, - maxInstNum: null + ship_device_update: true }, rules: {} } diff --git a/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/un_box_lable_conveyor.vue b/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/un_box_lable_conveyor.vue index 0b92257..41eeb16 100644 --- a/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/un_box_lable_conveyor.vue +++ b/acs2/nladmin-ui/src/views/acs/device/driver/one_conveyor/un_box_lable_conveyor.vue @@ -43,42 +43,6 @@ - -
- 开关: -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -118,66 +82,6 @@ - - - - - - - - - - - - - - - - - - - - - - - @@ -350,11 +254,7 @@ export default { is_pickup: true, is_release: true, link_device_code: [], - checkoutStartDeviceCode: null, - ship_device_update: true, - isTwoWayPoint: false, - isCreateInst: false, - targetDeviceCode: null + ship_device_update: true }, rules: {} } diff --git a/acs2/nladmin-ui/src/views/acs/device/opc/index.vue b/acs2/nladmin-ui/src/views/acs/device/opc/index.vue index c5d7477..332b53d 100644 --- a/acs2/nladmin-ui/src/views/acs/device/opc/index.vue +++ b/acs2/nladmin-ui/src/views/acs/device/opc/index.vue @@ -108,8 +108,8 @@ style="width: 100%" row-key="opc_id" border - default-expand-all - :tree-props="{children: 'children', has_children: 'has_children'}" + :default-expand-all="true" + :tree-props="{children: 'children', hasChildren: 'hasChildren'}" @select="crud.selectChange" @select-all="crud.selectAllChange" @selection-change="crud.selectionChangeHandler" @@ -232,6 +232,25 @@ export default { [CRUD.HOOK.beforeRefresh]() { return true }, + [CRUD.HOOK.afterRefresh]() { + this.crud.data = this.processTreeData(this.crud.data) + }, + processTreeData(data) { + if (!data || !Array.isArray(data)) return data + return data.map(item => { + if (item.hasOwnProperty('hasChildren')) { + item.hasChildren = item.hasChildren === '1' || item.hasChildren === 1 || item.hasChildren === true + } else if (item.children && item.children.length > 0) { + item.hasChildren = true + } else { + item.hasChildren = false + } + if (item.children && Array.isArray(item.children)) { + item.children = this.processTreeData(item.children) + } + return item + }) + }, handleClick(row, flag) { // flag为0是新增,flag为1是编辑,flag为2是删除 // 如果是父类操作