From 9e0a038387707684c2222d188528f9cecb8b4681 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 25 四月 2024 09:48:51 +0800
Subject: [PATCH] 检测标准bug

---
 src/router/router.js                                       |    1 +
 src/views/quality/teststandard/index.vue                   |   11 +++++------
 src/api/technology/document.js                             |   13 +++++++++++++
 src/views/plan/customerorder/sample-customerorder-form.vue |    2 +-
 4 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/src/api/technology/document.js b/src/api/technology/document.js
index 0f5e30a..4c1ac31 100644
--- a/src/api/technology/document.js
+++ b/src/api/technology/document.js
@@ -285,3 +285,16 @@
     responseType: 'blob'
   })
 }
+
+
+/**
+ * 妫�娴嬫爣鍑嗗弬鏁�
+ * @param query
+ */
+export function getTestStandardParams(query) {
+  return request({
+    url: '/mes/document/list',
+    method: 'get',
+    params: query
+  })
+}
\ No newline at end of file
diff --git a/src/router/router.js b/src/router/router.js
index 392c20c..35ea479 100644
--- a/src/router/router.js
+++ b/src/router/router.js
@@ -8,6 +8,7 @@
 //鍒涘缓璺敱
 const createRouter = () => {
   return new VueRouter({
+    mode: 'history',
     scrollBehavior (to, from, savedPosition) {
       if (savedPosition) {
         return savedPosition
diff --git a/src/views/plan/customerorder/sample-customerorder-form.vue b/src/views/plan/customerorder/sample-customerorder-form.vue
index 262d1fc..b7ab36f 100644
--- a/src/views/plan/customerorder/sample-customerorder-form.vue
+++ b/src/views/plan/customerorder/sample-customerorder-form.vue
@@ -34,7 +34,7 @@
               <el-input
                 v-model="dataForm.contractNo"
                 placeholder=""
-                disabled
+                
               ></el-input>
             </el-form-item>
           </el-col>
diff --git a/src/views/quality/teststandard/index.vue b/src/views/quality/teststandard/index.vue
index ff128d8..df01346 100644
--- a/src/views/quality/teststandard/index.vue
+++ b/src/views/quality/teststandard/index.vue
@@ -869,13 +869,12 @@
       if (this.testStandardParams.length > 0) {
         for(let standardParam in this.testStandardParams) {
             let value = this.testStandardParams[standardParam].referenceValue
-            if( value !== undefined) {
+            if( value !=null) {
                 value = value.replace(',','锛�').replace('(','锛�').replace(')','锛�')
-          } else{
-            this.$message.warning('瑕佹眰鑼冨洿娌℃湁濉啓!')
-            this.isSubmit = false
-            return;
-          }
+                if (!isNaN(value)) {
+                  value='='+value
+                }
+            }
         }
         addTestStandardParam(this.testStandardParams)
           .then((response) => {

--
Gitblit v1.9.3