From e31be6f11825d6bde907f64cfbc6dd7c662512e5 Mon Sep 17 00:00:00 2001 From: "qianhao.xu" Date: Thu, 11 Jan 2024 14:21:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E6=A3=80=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qualityManagement/FQC/firstFQC.vue | 135 ++++++++++++++----- 1 file changed, 98 insertions(+), 37 deletions(-) diff --git a/src/views/qualityManagement/FQC/firstFQC.vue b/src/views/qualityManagement/FQC/firstFQC.vue index d98ddef..c263eda 100644 --- a/src/views/qualityManagement/FQC/firstFQC.vue +++ b/src/views/qualityManagement/FQC/firstFQC.vue @@ -21,12 +21,10 @@
{{ paint[0].inspectionModule }}
-
- +
{{ item.inspectionName }}
- +
{{ item.counter }}
-
@@ -34,9 +32,14 @@
{{ device[0].inspectionModule }}
-
+
{{ item.inspectionName }}
- +
{{ item.counter }}
@@ -45,10 +48,9 @@
{{ blank[0].inspectionModule }}
-
-
{{ item.inspectionName }}
+
+
{{ item.inspectionName }}
+
{{ item.counter }}
@@ -57,10 +59,14 @@
{{ program[0].inspectionModule }}
-
-
{{ item.inspectionName }}
+
+
{{ item.inspectionName }}
+
{{ item.counter }}
@@ -69,17 +75,16 @@
{{ team[0].inspectionModule }}
-
-
{{ item.inspectionName }}
+
+
{{ item.inspectionName }}
+
{{ item.counter }}
-
工单id:{{ ProductSituationForm.workorderid }}
+
工单id:{{ ProductSituationForm.workorderid }}
产品名称:{{ ProductSituationForm.productName }}
@@ -98,11 +103,31 @@
投入数:{{ ProductSituationForm.inputNum }}
+
+
一次合格数:{{ ProductSituationForm.inputNum }}
+
+
+
一次合格率:{{ ProductSituationForm.inputNum }}
+
+
+
打磨数:{{ ProductSituationForm.inputNum }}
+
+
+
报废数:{{ ProductSituationForm.inputNum }}
+
+ + + + +
@@ -129,6 +154,13 @@ export default { }, signal: null, data: null, + timer: null, + DMLdialog: { + visiable: false, + }, + toUpdateNum: 0, //弹窗更新值 + toname: '', + toindex: 0, //索引 } }, watch: { @@ -230,6 +262,41 @@ export default { break } }, + //todo 长按事件 + startimer(value, name, index) { + this.timer = setTimeout(() => { + this.toUpdateNum = value + this.DMLdialog.visiable = true + this.toname = name + this.toindex = index + }, 1000) + }, + clearTimer() { + clearTimeout(this.timer) + }, + //todo 弹窗确认事件 + confirm() { + switch (this.toname) { + case 'paint': + this.paint[this.toindex].counter = this.toUpdateNum + break + case 'blank': + this.device[this.toindex].counter = this.toUpdateNum + break + case 'team': + this.team[this.toindex].counter = this.toUpdateNum + break + case 'device': + this.device[this.toindex].counter = this.toUpdateNum + break + case 'program': + this.program[this.toindex].counter = this.toUpdateNum + break + } + + this.DMLdialog.visiable = false + }, + //todo 数据同步 /* 1.从后台获取数据 @@ -267,21 +334,6 @@ export default {