diff --git a/src/api/quality/correct/index.ts b/src/api/quality/correct/index.ts
new file mode 100644
index 0000000..a612bb8
--- /dev/null
+++ b/src/api/quality/correct/index.ts
@@ -0,0 +1,87 @@
+/**
+ * 纠正措施处理单相关接口
+ */
+import request from '../../index'
+
+// 纠正措施处理单列表查询-分页
+export function getQualityCorrectList(data: any) {
+ return request({
+ url: `/quality/bizQualityCorrectiveRecord/approval/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data,
+ })
+}
+// 取消审批
+export function cancelApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/revoke',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除-草稿箱
+export function draftDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/draftDelete',
+ method: 'post',
+ data,
+ })
+}
+// 删除 -已取消
+export function approvalDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/delete',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除
+export function delteQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/delete',
+ method: 'post',
+ data,
+ })
+}
+// 提交
+export function submitQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/submit',
+ method: 'post',
+ data,
+ })
+}
+// 审批 -拒绝
+export function refuseApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/refuse',
+ method: 'post',
+ data,
+ })
+}
+// 详情
+export function detailQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/detail',
+ method: 'get',
+ params: data,
+ })
+}
+// 新建
+export function addQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/add',
+ method: 'post',
+ data,
+ })
+}
+// 更新
+export function updateQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/update',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/quality/correct/index.ts b/src/api/quality/correct/index.ts
new file mode 100644
index 0000000..a612bb8
--- /dev/null
+++ b/src/api/quality/correct/index.ts
@@ -0,0 +1,87 @@
+/**
+ * 纠正措施处理单相关接口
+ */
+import request from '../../index'
+
+// 纠正措施处理单列表查询-分页
+export function getQualityCorrectList(data: any) {
+ return request({
+ url: `/quality/bizQualityCorrectiveRecord/approval/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data,
+ })
+}
+// 取消审批
+export function cancelApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/revoke',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除-草稿箱
+export function draftDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/draftDelete',
+ method: 'post',
+ data,
+ })
+}
+// 删除 -已取消
+export function approvalDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/delete',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除
+export function delteQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/delete',
+ method: 'post',
+ data,
+ })
+}
+// 提交
+export function submitQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/submit',
+ method: 'post',
+ data,
+ })
+}
+// 审批 -拒绝
+export function refuseApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/refuse',
+ method: 'post',
+ data,
+ })
+}
+// 详情
+export function detailQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/detail',
+ method: 'get',
+ params: data,
+ })
+}
+// 新建
+export function addQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/add',
+ method: 'post',
+ data,
+ })
+}
+// 更新
+export function updateQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/update',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/router/modules/quality.ts b/src/router/modules/quality.ts
index 95a8670..00c5831 100644
--- a/src/router/modules/quality.ts
+++ b/src/router/modules/quality.ts
@@ -492,7 +492,7 @@
},
},
{
- path: '/correcthandle/:type',
+ path: '/correcthandle/:type/:id?',
name: 'CorrectHandleEdit',
component: () => import('@/views/quality/correct/handle/components/edit.vue'),
meta: {
diff --git a/src/api/quality/correct/index.ts b/src/api/quality/correct/index.ts
new file mode 100644
index 0000000..a612bb8
--- /dev/null
+++ b/src/api/quality/correct/index.ts
@@ -0,0 +1,87 @@
+/**
+ * 纠正措施处理单相关接口
+ */
+import request from '../../index'
+
+// 纠正措施处理单列表查询-分页
+export function getQualityCorrectList(data: any) {
+ return request({
+ url: `/quality/bizQualityCorrectiveRecord/approval/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data,
+ })
+}
+// 取消审批
+export function cancelApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/revoke',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除-草稿箱
+export function draftDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/draftDelete',
+ method: 'post',
+ data,
+ })
+}
+// 删除 -已取消
+export function approvalDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/delete',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除
+export function delteQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/delete',
+ method: 'post',
+ data,
+ })
+}
+// 提交
+export function submitQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/submit',
+ method: 'post',
+ data,
+ })
+}
+// 审批 -拒绝
+export function refuseApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/refuse',
+ method: 'post',
+ data,
+ })
+}
+// 详情
+export function detailQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/detail',
+ method: 'get',
+ params: data,
+ })
+}
+// 新建
+export function addQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/add',
+ method: 'post',
+ data,
+ })
+}
+// 更新
+export function updateQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/update',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/router/modules/quality.ts b/src/router/modules/quality.ts
index 95a8670..00c5831 100644
--- a/src/router/modules/quality.ts
+++ b/src/router/modules/quality.ts
@@ -492,7 +492,7 @@
},
},
{
- path: '/correcthandle/:type',
+ path: '/correcthandle/:type/:id?',
name: 'CorrectHandleEdit',
component: () => import('@/views/quality/correct/handle/components/edit.vue'),
meta: {
diff --git a/src/views/quality/agree.ts b/src/views/quality/agree.ts
index e619ac3..6dc06cc 100644
--- a/src/views/quality/agree.ts
+++ b/src/views/quality/agree.ts
@@ -3,4 +3,5 @@
QUALITY_SUPERVISION_RECORD_APPROVAL = '/quality/bizQualitySupervisionRep/agree', // 质量监督报告
NONCONFORMITY_ANALYSIS_APPROVAL = '/quality/bizQualityNonConformanceRep/agree', // 不符合要求情况分析报告
PREVENT_MEASURE_PROCESS_SHEET_APPROVAL = '/quality/bizQualityPreventRecord/agree', // 预防措施处理单
+ CORRECT_MEASURE_PROCESS_SHEET_APPROVAL = '/quality/bizQualityCorrectiveRecord/agree', // 纠正措施处理单
}
diff --git a/src/api/quality/correct/index.ts b/src/api/quality/correct/index.ts
new file mode 100644
index 0000000..a612bb8
--- /dev/null
+++ b/src/api/quality/correct/index.ts
@@ -0,0 +1,87 @@
+/**
+ * 纠正措施处理单相关接口
+ */
+import request from '../../index'
+
+// 纠正措施处理单列表查询-分页
+export function getQualityCorrectList(data: any) {
+ return request({
+ url: `/quality/bizQualityCorrectiveRecord/approval/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data,
+ })
+}
+// 取消审批
+export function cancelApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/revoke',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除-草稿箱
+export function draftDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/draftDelete',
+ method: 'post',
+ data,
+ })
+}
+// 删除 -已取消
+export function approvalDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/delete',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除
+export function delteQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/delete',
+ method: 'post',
+ data,
+ })
+}
+// 提交
+export function submitQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/submit',
+ method: 'post',
+ data,
+ })
+}
+// 审批 -拒绝
+export function refuseApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/refuse',
+ method: 'post',
+ data,
+ })
+}
+// 详情
+export function detailQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/detail',
+ method: 'get',
+ params: data,
+ })
+}
+// 新建
+export function addQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/add',
+ method: 'post',
+ data,
+ })
+}
+// 更新
+export function updateQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/update',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/router/modules/quality.ts b/src/router/modules/quality.ts
index 95a8670..00c5831 100644
--- a/src/router/modules/quality.ts
+++ b/src/router/modules/quality.ts
@@ -492,7 +492,7 @@
},
},
{
- path: '/correcthandle/:type',
+ path: '/correcthandle/:type/:id?',
name: 'CorrectHandleEdit',
component: () => import('@/views/quality/correct/handle/components/edit.vue'),
meta: {
diff --git a/src/views/quality/agree.ts b/src/views/quality/agree.ts
index e619ac3..6dc06cc 100644
--- a/src/views/quality/agree.ts
+++ b/src/views/quality/agree.ts
@@ -3,4 +3,5 @@
QUALITY_SUPERVISION_RECORD_APPROVAL = '/quality/bizQualitySupervisionRep/agree', // 质量监督报告
NONCONFORMITY_ANALYSIS_APPROVAL = '/quality/bizQualityNonConformanceRep/agree', // 不符合要求情况分析报告
PREVENT_MEASURE_PROCESS_SHEET_APPROVAL = '/quality/bizQualityPreventRecord/agree', // 预防措施处理单
+ CORRECT_MEASURE_PROCESS_SHEET_APPROVAL = '/quality/bizQualityCorrectiveRecord/agree', // 纠正措施处理单
}
diff --git a/src/views/quality/correct/handle/components/edit.vue b/src/views/quality/correct/handle/components/edit.vue
index 7e9772c..ad606b0 100644
--- a/src/views/quality/correct/handle/components/edit.vue
+++ b/src/views/quality/correct/handle/components/edit.vue
@@ -1,154 +1,430 @@
-
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
-
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
-
+
+
+ {{ ruleForm.correctiveActionFiles.length ? `${ruleForm.correctiveActionFiles[0].fileName}` : '' }}
+
+
选择
-
- 上传
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
-
-
+
+
+
+
+
+
diff --git a/src/api/quality/correct/index.ts b/src/api/quality/correct/index.ts
new file mode 100644
index 0000000..a612bb8
--- /dev/null
+++ b/src/api/quality/correct/index.ts
@@ -0,0 +1,87 @@
+/**
+ * 纠正措施处理单相关接口
+ */
+import request from '../../index'
+
+// 纠正措施处理单列表查询-分页
+export function getQualityCorrectList(data: any) {
+ return request({
+ url: `/quality/bizQualityCorrectiveRecord/approval/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data,
+ })
+}
+// 取消审批
+export function cancelApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/revoke',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除-草稿箱
+export function draftDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/draftDelete',
+ method: 'post',
+ data,
+ })
+}
+// 删除 -已取消
+export function approvalDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/delete',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除
+export function delteQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/delete',
+ method: 'post',
+ data,
+ })
+}
+// 提交
+export function submitQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/submit',
+ method: 'post',
+ data,
+ })
+}
+// 审批 -拒绝
+export function refuseApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/refuse',
+ method: 'post',
+ data,
+ })
+}
+// 详情
+export function detailQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/detail',
+ method: 'get',
+ params: data,
+ })
+}
+// 新建
+export function addQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/add',
+ method: 'post',
+ data,
+ })
+}
+// 更新
+export function updateQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/update',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/router/modules/quality.ts b/src/router/modules/quality.ts
index 95a8670..00c5831 100644
--- a/src/router/modules/quality.ts
+++ b/src/router/modules/quality.ts
@@ -492,7 +492,7 @@
},
},
{
- path: '/correcthandle/:type',
+ path: '/correcthandle/:type/:id?',
name: 'CorrectHandleEdit',
component: () => import('@/views/quality/correct/handle/components/edit.vue'),
meta: {
diff --git a/src/views/quality/agree.ts b/src/views/quality/agree.ts
index e619ac3..6dc06cc 100644
--- a/src/views/quality/agree.ts
+++ b/src/views/quality/agree.ts
@@ -3,4 +3,5 @@
QUALITY_SUPERVISION_RECORD_APPROVAL = '/quality/bizQualitySupervisionRep/agree', // 质量监督报告
NONCONFORMITY_ANALYSIS_APPROVAL = '/quality/bizQualityNonConformanceRep/agree', // 不符合要求情况分析报告
PREVENT_MEASURE_PROCESS_SHEET_APPROVAL = '/quality/bizQualityPreventRecord/agree', // 预防措施处理单
+ CORRECT_MEASURE_PROCESS_SHEET_APPROVAL = '/quality/bizQualityCorrectiveRecord/agree', // 纠正措施处理单
}
diff --git a/src/views/quality/correct/handle/components/edit.vue b/src/views/quality/correct/handle/components/edit.vue
index 7e9772c..ad606b0 100644
--- a/src/views/quality/correct/handle/components/edit.vue
+++ b/src/views/quality/correct/handle/components/edit.vue
@@ -1,154 +1,430 @@
-
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
-
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
-
+
+
+ {{ ruleForm.correctiveActionFiles.length ? `${ruleForm.correctiveActionFiles[0].fileName}` : '' }}
+
+
选择
-
- 上传
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
-
-
+
+
+
+
+
+
diff --git a/src/views/quality/correct/handle/index.vue b/src/views/quality/correct/handle/index.vue
index 65b7e65..57c46d8 100644
--- a/src/views/quality/correct/handle/index.vue
+++ b/src/views/quality/correct/handle/index.vue
@@ -1,24 +1,39 @@
-
@@ -142,50 +277,49 @@
+
+
-
+
-
+
-
+
@@ -214,12 +348,24 @@
+
+
+
+
+
- {{ row }}
+ {{ row.approvalStatusName }}
- 详情 {{ row }}
+ 提交
+ 查看
+
+
+ 查看
+
+
+ 同意
+
+
+ 拒绝
+
+
编辑
+
+
+ 取消
+
+
删除
@@ -258,3 +456,17 @@
+
+
diff --git a/src/api/quality/correct/index.ts b/src/api/quality/correct/index.ts
new file mode 100644
index 0000000..a612bb8
--- /dev/null
+++ b/src/api/quality/correct/index.ts
@@ -0,0 +1,87 @@
+/**
+ * 纠正措施处理单相关接口
+ */
+import request from '../../index'
+
+// 纠正措施处理单列表查询-分页
+export function getQualityCorrectList(data: any) {
+ return request({
+ url: `/quality/bizQualityCorrectiveRecord/approval/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data,
+ })
+}
+// 取消审批
+export function cancelApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/revoke',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除-草稿箱
+export function draftDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/draftDelete',
+ method: 'post',
+ data,
+ })
+}
+// 删除 -已取消
+export function approvalDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/delete',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除
+export function delteQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/delete',
+ method: 'post',
+ data,
+ })
+}
+// 提交
+export function submitQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/submit',
+ method: 'post',
+ data,
+ })
+}
+// 审批 -拒绝
+export function refuseApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/refuse',
+ method: 'post',
+ data,
+ })
+}
+// 详情
+export function detailQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/detail',
+ method: 'get',
+ params: data,
+ })
+}
+// 新建
+export function addQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/add',
+ method: 'post',
+ data,
+ })
+}
+// 更新
+export function updateQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/update',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/router/modules/quality.ts b/src/router/modules/quality.ts
index 95a8670..00c5831 100644
--- a/src/router/modules/quality.ts
+++ b/src/router/modules/quality.ts
@@ -492,7 +492,7 @@
},
},
{
- path: '/correcthandle/:type',
+ path: '/correcthandle/:type/:id?',
name: 'CorrectHandleEdit',
component: () => import('@/views/quality/correct/handle/components/edit.vue'),
meta: {
diff --git a/src/views/quality/agree.ts b/src/views/quality/agree.ts
index e619ac3..6dc06cc 100644
--- a/src/views/quality/agree.ts
+++ b/src/views/quality/agree.ts
@@ -3,4 +3,5 @@
QUALITY_SUPERVISION_RECORD_APPROVAL = '/quality/bizQualitySupervisionRep/agree', // 质量监督报告
NONCONFORMITY_ANALYSIS_APPROVAL = '/quality/bizQualityNonConformanceRep/agree', // 不符合要求情况分析报告
PREVENT_MEASURE_PROCESS_SHEET_APPROVAL = '/quality/bizQualityPreventRecord/agree', // 预防措施处理单
+ CORRECT_MEASURE_PROCESS_SHEET_APPROVAL = '/quality/bizQualityCorrectiveRecord/agree', // 纠正措施处理单
}
diff --git a/src/views/quality/correct/handle/components/edit.vue b/src/views/quality/correct/handle/components/edit.vue
index 7e9772c..ad606b0 100644
--- a/src/views/quality/correct/handle/components/edit.vue
+++ b/src/views/quality/correct/handle/components/edit.vue
@@ -1,154 +1,430 @@
-
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
-
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
-
+
+
+ {{ ruleForm.correctiveActionFiles.length ? `${ruleForm.correctiveActionFiles[0].fileName}` : '' }}
+
+
选择
-
- 上传
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
-
-
+
+
+
+
+
+
diff --git a/src/views/quality/correct/handle/index.vue b/src/views/quality/correct/handle/index.vue
index 65b7e65..57c46d8 100644
--- a/src/views/quality/correct/handle/index.vue
+++ b/src/views/quality/correct/handle/index.vue
@@ -1,24 +1,39 @@
-
@@ -142,50 +277,49 @@
+
+
-
+
-
+
-
+
@@ -214,12 +348,24 @@
+
+
+
+
+
- {{ row }}
+ {{ row.approvalStatusName }}
- 详情 {{ row }}
+ 提交
+ 查看
+
+
+ 查看
+
+
+ 同意
+
+
+ 拒绝
+
+
编辑
+
+
+ 取消
+
+
删除
@@ -258,3 +456,17 @@
+
+
diff --git a/src/views/quality/prevent/handle/index.vue b/src/views/quality/prevent/handle/index.vue
index fc4a9d5..fb18676 100644
--- a/src/views/quality/prevent/handle/index.vue
+++ b/src/views/quality/prevent/handle/index.vue
@@ -348,7 +348,7 @@
diff --git a/src/api/quality/correct/index.ts b/src/api/quality/correct/index.ts
new file mode 100644
index 0000000..a612bb8
--- /dev/null
+++ b/src/api/quality/correct/index.ts
@@ -0,0 +1,87 @@
+/**
+ * 纠正措施处理单相关接口
+ */
+import request from '../../index'
+
+// 纠正措施处理单列表查询-分页
+export function getQualityCorrectList(data: any) {
+ return request({
+ url: `/quality/bizQualityCorrectiveRecord/approval/listPage?offset=${data.offset}&limit=${data.limit}`,
+ method: 'post',
+ data,
+ })
+}
+// 取消审批
+export function cancelApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/revoke',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除-草稿箱
+export function draftDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/draftDelete',
+ method: 'post',
+ data,
+ })
+}
+// 删除 -已取消
+export function approvalDelete(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/delete',
+ method: 'post',
+ data,
+ })
+}
+
+// 删除
+export function delteQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/delete',
+ method: 'post',
+ data,
+ })
+}
+// 提交
+export function submitQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/submit',
+ method: 'post',
+ data,
+ })
+}
+// 审批 -拒绝
+export function refuseApproval(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/approval/refuse',
+ method: 'post',
+ data,
+ })
+}
+// 详情
+export function detailQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/detail',
+ method: 'get',
+ params: data,
+ })
+}
+// 新建
+export function addQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/add',
+ method: 'post',
+ data,
+ })
+}
+// 更新
+export function updateQualityCorrect(data: any) {
+ return request({
+ url: '/quality/bizQualityCorrectiveRecord/update',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/router/modules/quality.ts b/src/router/modules/quality.ts
index 95a8670..00c5831 100644
--- a/src/router/modules/quality.ts
+++ b/src/router/modules/quality.ts
@@ -492,7 +492,7 @@
},
},
{
- path: '/correcthandle/:type',
+ path: '/correcthandle/:type/:id?',
name: 'CorrectHandleEdit',
component: () => import('@/views/quality/correct/handle/components/edit.vue'),
meta: {
diff --git a/src/views/quality/agree.ts b/src/views/quality/agree.ts
index e619ac3..6dc06cc 100644
--- a/src/views/quality/agree.ts
+++ b/src/views/quality/agree.ts
@@ -3,4 +3,5 @@
QUALITY_SUPERVISION_RECORD_APPROVAL = '/quality/bizQualitySupervisionRep/agree', // 质量监督报告
NONCONFORMITY_ANALYSIS_APPROVAL = '/quality/bizQualityNonConformanceRep/agree', // 不符合要求情况分析报告
PREVENT_MEASURE_PROCESS_SHEET_APPROVAL = '/quality/bizQualityPreventRecord/agree', // 预防措施处理单
+ CORRECT_MEASURE_PROCESS_SHEET_APPROVAL = '/quality/bizQualityCorrectiveRecord/agree', // 纠正措施处理单
}
diff --git a/src/views/quality/correct/handle/components/edit.vue b/src/views/quality/correct/handle/components/edit.vue
index 7e9772c..ad606b0 100644
--- a/src/views/quality/correct/handle/components/edit.vue
+++ b/src/views/quality/correct/handle/components/edit.vue
@@ -1,154 +1,430 @@
-
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
-
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
-
+
+
+ {{ ruleForm.correctiveActionFiles.length ? `${ruleForm.correctiveActionFiles[0].fileName}` : '' }}
+
+
选择
-
- 上传
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
-
-
+
+
+
+
+
+
diff --git a/src/views/quality/correct/handle/index.vue b/src/views/quality/correct/handle/index.vue
index 65b7e65..57c46d8 100644
--- a/src/views/quality/correct/handle/index.vue
+++ b/src/views/quality/correct/handle/index.vue
@@ -1,24 +1,39 @@
-
@@ -142,50 +277,49 @@
+
+
-
+
-
+
-
+
@@ -214,12 +348,24 @@
+
+
+
+
+
- {{ row }}
+ {{ row.approvalStatusName }}
- 详情 {{ row }}
+ 提交
+ 查看
+
+
+ 查看
+
+
+ 同意
+
+
+ 拒绝
+
+
编辑
+
+
+ 取消
+
+
删除
@@ -258,3 +456,17 @@
+
+
diff --git a/src/views/quality/prevent/handle/index.vue b/src/views/quality/prevent/handle/index.vue
index fc4a9d5..fb18676 100644
--- a/src/views/quality/prevent/handle/index.vue
+++ b/src/views/quality/prevent/handle/index.vue
@@ -348,7 +348,7 @@
diff --git a/src/views/quality/supervise/analysis/components/detail.vue b/src/views/quality/supervise/analysis/components/detail.vue
index bfaeff4..99216f1 100644
--- a/src/views/quality/supervise/analysis/components/detail.vue
+++ b/src/views/quality/supervise/analysis/components/detail.vue
@@ -70,6 +70,10 @@
if (sessionStorage.getItem('QualityPreventHandler-info')) {
sessionStorage.setItem('QualityPreventHandler-info-flag', '1')
}
+ // 向纠正措施单页面传递填充页面信号
+ if (sessionStorage.getItem('QualityCorrectHandler-info')) {
+ sessionStorage.setItem('QualityCorrectHandler-info-flag', '1')
+ }
$router.go(-1)
}
// 启动预防措施管理
@@ -82,13 +86,23 @@
},
})
}
+// 启动纠正措施管理
+const startCorrect = () => {
+ const data = JSON.parse($route.query.row as string)
+ $router.push({
+ path: `/correcthandle/create/${data.id}`,
+ query: {
+ row: $route.query.row as string,
+ },
+ })
+}
-
+
启动纠正措施管理