|
@@ -44,6 +44,13 @@
|
|
|
:selected-row-keys="selectedRowKeys"
|
|
|
@select-change="selectChange"
|
|
|
>
|
|
|
+ <template #sopNo="{ col, row }">
|
|
|
+ <more-content
|
|
|
+ v-if="col?.colKey === 'sopNo'"
|
|
|
+ :content="row[col.colKey]"
|
|
|
+ @action="editSopFlowHandle(row.sopNo, 'view')"
|
|
|
+ ></more-content>
|
|
|
+ </template>
|
|
|
<template #problemNo="{ col, row }">
|
|
|
<more-content
|
|
|
:content="row[col.colKey]"
|
|
@@ -91,6 +98,12 @@
|
|
|
:type="curType"
|
|
|
@confirm="fetchData"
|
|
|
></quality-issue-dialog>
|
|
|
+ <sop-step-dialog
|
|
|
+ v-model:visible="showSopStepDialog"
|
|
|
+ :sop="curSopData2"
|
|
|
+ :type="curSopType"
|
|
|
+ @confirm="fetchData"
|
|
|
+ ></sop-step-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -119,6 +132,21 @@ import {
|
|
|
ISSUES_TYPE,
|
|
|
} from '@/config/constants';
|
|
|
import usePermission from '@/hooks/usePermission';
|
|
|
+import { getSopDataBySopNo } from '@/api/sop';
|
|
|
+import SopStepDialog from '@/views/sop/sop-manage/sop-step/sop-step-dialog.vue';
|
|
|
+
|
|
|
+const curSopData2 = ref({});
|
|
|
+const showSopStepDialog = ref(false);
|
|
|
+const curSopType = ref('');
|
|
|
+const editSopFlowHandle = async (sopNo, type = 'fill') => {
|
|
|
+ curSopType.value = type;
|
|
|
+ getSopDataBySopNo(sopNo).then((res) => {
|
|
|
+ if (res?.records?.length) {
|
|
|
+ curSopData2.value = res.records[0];
|
|
|
+ showSopStepDialog.value = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+};
|
|
|
const { perm } = usePermission();
|
|
|
|
|
|
const selectedRowKeys = ref([]);
|
|
@@ -250,11 +278,12 @@ const columns = [
|
|
|
fixed: 'left',
|
|
|
},
|
|
|
{ colKey: 'problemNo', title: '质量问题编号', width: 200 },
|
|
|
- { colKey: 'crmNo', title: '项目单号', width: 200 },
|
|
|
+ // { colKey: 'crmNo', title: '项目单号', width: 200 },
|
|
|
+ { colKey: 'sopNo', title: 'SOP流水号', width: 200 },
|
|
|
{ colKey: 'customType', title: '客户类型', cell: 'custom-type', width: 120 },
|
|
|
{ colKey: 'custom', title: '客户名称', width: 140 },
|
|
|
// { colKey: 'productName', title: '实施产品' },
|
|
|
- { colKey: 'sopTypeStr', title: '实施产品' },
|
|
|
+ { colKey: 'sopTypeStr', title: '实施产品', width: 120 },
|
|
|
{ colKey: 'summary', title: '问题简要' },
|
|
|
{ colKey: 'userNames', title: '责任人', width: 140 },
|
|
|
{ colKey: 'type', title: '问题类型', cell: 'issues-type', width: 120 },
|