diff --git a/src/api/wmsManagement/wmFgentryInspect.js b/src/api/wmsManagement/wmFgentryInspect.js
index d526d07..0a46694 100644
--- a/src/api/wmsManagement/wmFgentryInspect.js
+++ b/src/api/wmsManagement/wmFgentryInspect.js
@@ -95,6 +95,20 @@ export function setTheBoxToBeQualified(data) {
data: data,
})
}
+
+/**
+ * 设置全部合格
+ * @param {*} query
+ * @returns
+ */
+export function setAllQualified(query) {
+ return request({
+ url: '/mes/wm/WmFgentryInspect/setAllQualified',
+ method: 'get',
+ params: query,
+ })
+}
+
/*
批量修改不合格
*/
diff --git a/src/views/wmsManagement/WmFgentryInspect.vue b/src/views/wmsManagement/WmFgentryInspect.vue
index 66f72e6..61502a7 100644
--- a/src/views/wmsManagement/WmFgentryInspect.vue
+++ b/src/views/wmsManagement/WmFgentryInspect.vue
@@ -45,7 +45,11 @@
-
+
@@ -80,6 +84,9 @@
批量不合格
+
+ 一键全部合格
+
本页合格率
@@ -132,6 +139,7 @@ import {
listWmFgentryInspect_firstLevel,
listWmFgentryInspect_secondLevel,
setTheBoxToBeQualified,
+ setAllQualified,
setTheBoxToBeUnQualified,
addWmFgentryInspect,
delWmFgentryInspect,
@@ -251,18 +259,16 @@ export default {
// 列表数据查询
this.getList_first()
},
- computed: {
-
- },
+ computed: {},
methods: {
- calculate_percentage(result_good, result_bad,result_null) {
+ calculate_percentage(result_good, result_bad, result_null) {
if (result_good + result_bad == 0) {
return 0
}
- console.log("result_good",result_good)
- console.log("result_bad",result_bad)
- console.log("result_null",result_null)
- return Math.floor((result_good / (result_good + result_bad+result_null)) * 100)
+ console.log('result_good', result_good)
+ console.log('result_bad', result_bad)
+ console.log('result_null', result_null)
+ return Math.floor((result_good / (result_good + result_bad + result_null)) * 100)
},
//todo 一级菜单调 二级
handle_secondLevel(workorder) {
@@ -331,6 +337,15 @@ export default {
})
}
},
+ //todo 一键全部合格
+ allQualified() {
+ const query = { workorder_selected: this.workorder_selected }
+ setAllQualified(query).then((res) => {
+ if (res.code == 200) {
+ this.getList_second(this.workorder_selected)
+ }
+ })
+ },
//todo 批量不合格
batchUnqualified() {
if (this.packcode_select.length > 0) {