From 08a370a9e96e1e7772551b97c381be7d9fa61aa4 Mon Sep 17 00:00:00 2001
From: kyy <3283105747@qq.com>
Date: 星期五, 19 十二月 2025 17:53:57 +0800
Subject: [PATCH] 首检巡检检验方式更改
---
H5/Js/IPQC_XJ/Add.js | 42 +++++++++++++++++++++++++++++++++++++++++-
1 files changed, 41 insertions(+), 1 deletions(-)
diff --git a/H5/Js/IPQC_XJ/Add.js b/H5/Js/IPQC_XJ/Add.js
index 5351162..dc4da5e 100644
--- a/H5/Js/IPQC_XJ/Add.js
+++ b/H5/Js/IPQC_XJ/Add.js
@@ -1,4 +1,4 @@
-锘縱ar vm = new Vue({
+var vm = new Vue({
el: '#app',
data: function () {
return {
@@ -192,6 +192,46 @@
},
+ getInputOK() {
+ var that = this;
+ var jys = parseFloat(that.tableData[that.tabActive].checkQyt); //妫�楠岄」鐩殑妫�楠屾暟
+
+ if (!that.okValue) {
+ this.$toast.fail("OK鏁颁笉鑳戒负绌�");
+ that.isLoading = false;
+ return;
+ }
+
+ if (jys < parseFloat(that.okValue)) {
+ that.$toast.fail("褰曞叆鏁伴噺涓嶈兘澶т簬妫�楠屾暟锛�");
+ that.okValue = null;
+ return;
+ }
+ // 鍒囨崲鎸囧畾绱㈠紩鐨� popup 鐘舵��
+ var resultValue = "OK-" + this.okValue;
+ this.addJyzIpqc(resultValue);
+ that.okValue = null;
+ },
+ getInputNG() {
+ var that = this;
+ var jys = parseFloat(that.tableData[that.tabActive].checkQyt); //妫�楠岄」鐩殑妫�楠屾暟
+
+ if (!that.ngValue) {
+ this.$toast.fail("NG鏁颁笉鑳戒负绌�");
+ that.isLoading = false;
+ return;
+ }
+ if (jys < parseFloat(that.ngValue)) {
+ that.$toast.fail("褰曞叆鏁伴噺涓嶈兘澶т簬妫�楠屾暟锛�");
+ that.ngValue = null;
+ return;
+ }
+ // 鍒囨崲鎸囧畾绱㈠紩鐨� popup 鐘舵��
+ var resultValue = "NG-" + this.ngValue;
+ this.addJyzIpqc(resultValue);
+ that.ngValue = null;
+ },
+
addJyzIpqc(input) {
var that = this;
var guid1 = that.formData.guid;//涓昏〃id
--
Gitblit v1.9.3