刘洋 1 anno fa
parent
commit
0d991b8445
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/views/sop/sop-manage/sop-step/index.vue

+ 4 - 0
src/views/sop/sop-manage/sop-step/index.vue

@@ -228,6 +228,7 @@ import {
 } from '@/api/sop';
 import { objCopy, timeNumberToText } from '@/utils/tool';
 import { timestampFilter } from '@/utils/filter';
+import bus from '@/utils/bus';
 
 const props = defineProps({
   type: {
@@ -323,6 +324,9 @@ const stepDuration = ref('');
 const otherRules = ref({
   DEVICE_IN_TABLE: true,
 });
+bus.on('changeOtherRules', (obj) => {
+  otherRules.value[obj.code] = obj.result;
+});
 const otherRulesPassed = computed(() => {
   let values = Object.values(otherRules.value);
   return !values.filter((item) => !item).length;