|
@@ -95,7 +95,7 @@ import PlanChangeDialog from "@/views/sop/sop-manage/plan-change/plan-change-dia
|
|
|
import {reactive, ref} from "vue";
|
|
|
import {MessagePlugin} from "tdesign-vue-next";
|
|
|
import ViolationFlowDialog from "@/views/sop/sop-monitor/violation-registration/flow-dialog.vue";
|
|
|
-import {getViolationBy} from "@/api/my-workbenches";
|
|
|
+import {getViolationBy, setMyMessagesRead} from "@/api/my-workbenches";
|
|
|
import {sopListApi} from "@/api/sop";
|
|
|
|
|
|
const { tableData, pagination, onChange } = defineProps([
|
|
@@ -112,13 +112,14 @@ const showPlanChangeDialog = ref(false);
|
|
|
const showQualityIssueDialog = ref(false);
|
|
|
const showViolationFlowDialog = ref(false);
|
|
|
const curSopData = ref({});
|
|
|
+const curRow = ref({});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const editSopFlowHandle = (row) => {
|
|
|
-
|
|
|
+ curRow.value = row;
|
|
|
if (row.messageType === 'AFTER' || row.messageType === 'BEFORE') {
|
|
|
const params = reactive({
|
|
|
pageNumber: 1,
|
|
@@ -161,6 +162,10 @@ const editSopFlowHandle = (row) => {
|
|
|
MessagePlugin.error('未知类型待办');
|
|
|
};
|
|
|
const sopStepConfirm = () => {
|
|
|
+ setMyMessagesRead(curRow.id).then(() => {
|
|
|
+ // search()
|
|
|
+ workStore.updateWorkCounts();
|
|
|
+ });
|
|
|
emit('success');
|
|
|
};
|
|
|
</script>
|