|
@@ -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;
|