diff --git a/src/views/PBL/Billofmaterials.vue b/src/views/PBL/Billofmaterials.vue
index f5c5bf6..9d84d34 100644
--- a/src/views/PBL/Billofmaterials.vue
+++ b/src/views/PBL/Billofmaterials.vue
@@ -52,8 +52,10 @@
-
+
+ 亮灯
+ 灭灯
@@ -297,5 +299,28 @@ function handleDelete(row) {
})
}
+/// ================= 模拟操作 =================
+import { doLightUp, doLightDown } from '@/api/PBL/plc.js'
+function handleLightUp(row) {
+ const params = { workorder: '模拟数据', orderNumber: '模拟数据', assemblyPartNumber: row.productcode, version: row.version }
+ doLightUp(params).then((res) => {
+ if (res.code === 200 && res.data) {
+ proxy.$modal.msgSuccess('亮灯操作成功')
+ getList()
+ }
+ })
+}
+
+function handleLightDown(row) {
+ const params = { scan_code: row.mirrorshellCode }
+ doLightDown(params).then((res) => {
+ if (res.code === 200 && res.data) {
+ proxy.$modal.msgSuccess('关灯操作成功')
+ getList()
+ }
+ })
+}
+
+/// =============================================
handleQuery()
diff --git a/src/views/PBL/TVScreen/components/BoardTable.vue b/src/views/PBL/TVScreen/components/BoardTable.vue
index 5f3806b..83d60a5 100644
--- a/src/views/PBL/TVScreen/components/BoardTable.vue
+++ b/src/views/PBL/TVScreen/components/BoardTable.vue
@@ -4,13 +4,13 @@
-
+
- 亮灯
- 灭灯
+ 亮灯
+ 灭灯
-
+
@@ -24,7 +24,7 @@ const dataList = ref([])
const queryParams = reactive({
pageNum: 1,
pageSize: 10,
- timeRange: [proxy.dayjs().subtract(1, 'day').format('YYYY-MM-DD 00:00:00'), proxy.dayjs().format('YYYY-MM-DD 23:59:59')],
+ timeRange: [proxy.dayjs().subtract(1, 'day').format('YYYY-MM-DD 00:00:00'), proxy.dayjs().add(1, 'day').format('YYYY-MM-DD 23:59:59')],
sort: 'createdTime',
sortType: 'desc'
})
diff --git a/src/views/PBL/logging/LightLog.vue b/src/views/PBL/logging/LightLog.vue
index 9c6905c..092348a 100644
--- a/src/views/PBL/logging/LightLog.vue
+++ b/src/views/PBL/logging/LightLog.vue
@@ -29,11 +29,11 @@
- {{ scope.row.operationer == 1 ? '亮灯' : '灭灯' }}
+ {{ scope.row.lightOperation == 1 ? '亮灯' : '灭灯' }}
-
+