diff --git a/src/api/qualityManagement/FQC/QcFinishedproductDefect.js b/src/api/qualityManagement/FQC/QcFinishedproductDefect.js
index 16904a5..76ef441 100644
--- a/src/api/qualityManagement/FQC/QcFinishedproductDefect.js
+++ b/src/api/qualityManagement/FQC/QcFinishedproductDefect.js
@@ -1,25 +1,37 @@
import request from '@/utils/request'
/**
-* 修改缺陷数
-* @param {查询条件} data
-*/
+ * 修改缺陷数
+ * @param {查询条件} data
+ */
export function UpdateDefectNum(query) {
return request({
url: 'mes/qualityManagement/FQC/QcFinishedproductDefect/update_defect_num',
method: 'get',
- params: query,
+ params: query
})
}
/**
-* 查询指定工单下的缺陷
-* @param {查询条件} data
-*/
+ * 查询指定工单下的缺陷
+ * @param {查询条件} data
+ */
export function SearchDefectList(query) {
return request({
url: 'mes/qualityManagement/FQC/QcFinishedproductDefect/search_defects',
method: 'get',
- params: query,
+ params: query
+ })
+}
+
+/**
+ * 分页查询缺陷统计
+ * @param {查询条件} data
+ */
+export function SearchDefectStatisticsPage(data) {
+ return request({
+ url: 'mes/qualityManagement/FQC/QcFinishedproductDefect/search_defect_Statistics_page',
+ method: 'post',
+ data: data
})
}
diff --git a/src/views/qualityManagement/FQC/defectCollection.vue b/src/views/qualityManagement/FQC/defectCollection.vue
index 822e4c4..38bccff 100644
--- a/src/views/qualityManagement/FQC/defectCollection.vue
+++ b/src/views/qualityManagement/FQC/defectCollection.vue
@@ -4,17 +4,21 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
@@ -35,34 +39,17 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
- 缺陷查看
+ 查看
-
-
-
-
-
-
-
-
-
@@ -115,7 +117,7 @@
-
+
@@ -206,7 +208,7 @@ function getFormDefectData(workorder) {
/// ==================== 缺陷配置 =========================
-
+const checkName = ref('')
const qualityLoading = ref(false)
const qualityOptionsClear = ref([])
const qualityOptions = ref([])
@@ -297,15 +299,23 @@ function clickQualityIte(item) {
if (workOrder === null || workOrder === '') {
dialog.show = true
dialog.class = 'bg-amber'
- dialog.title = '工单提示'
+ dialog.title = '工单未选择提示'
dialog.text = '请先扫描工单!'
return
}
+ if (checkName.value === null || checkName.value === '') {
+ dialog.show = true
+ dialog.class = 'bg-amber'
+ dialog.title = '检查员未填写提示'
+ dialog.text = '请先扫描检查员!'
+ return
+ }
const newNum = getClickItemNum(item) + 1
const params = {
WorkOrder: formData.value.workorder,
DefectCode: item.code,
num: item.num ?? 0,
+ checkName: checkName.value
}
FQCApi.AddDefectNum(params).then((res) => {
if (res.code != 200) {
@@ -329,6 +339,13 @@ function showUpdateDialog(item) {
dialog.text = '请先扫描或选择工单!'
return
}
+ if (checkName.value === null || checkName.value === '') {
+ dialog.show = true
+ dialog.class = 'bg-amber'
+ dialog.title = '检查员未填写提示'
+ dialog.text = '请先扫描检查员!'
+ return
+ }
updateName.value = item.name
updateCode.value = item.code
updateNum.value = item.num ?? 0
@@ -347,10 +364,18 @@ function updateDefectNum() {
dialog.text = '请先扫描或选择工单!'
return
}
+ if (checkName.value === null || checkName.value === '') {
+ dialog.show = true
+ dialog.class = 'bg-amber'
+ dialog.title = '检查员未填写提示'
+ dialog.text = '请先扫描检查员!'
+ return
+ }
const params = {
WorkOrder: formData.value.workorder,
DefectCode: updateCode.value,
num: updateNum.value,
+ checkName: checkName.value
}
FQCApi.UpdateDefectNum(params).then((res) => {
if (res.code === 200) {