From dd61d0f5d1176107de45e0d23e25cc0a761b7124 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 26 六月 2024 15:09:45 +0800
Subject: [PATCH] 修改标准库

---
 src/components/do/b1-inspect-order-plan/Inspection.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index 1a6e052..629895c 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -482,6 +482,7 @@
 <script>
   import ValueTable from '../../tool/value-table.vue'
   import file from '../../../util/file'
+  import excelFountion from '../../../util/excelFountion'
   export default {
     props: ['sonLaboratory', 'orderId', 'state'],
     components: {
@@ -626,6 +627,7 @@
       this.componentData.entity.sonLaboratory = this.sonLaboratory;
       this.id = this.orderId;
       this.getUserInfo()
+      // excelFountion.handel('SUM(MAX(SUM(A1,B1,C1),2,3)*2-MIN(A1:D3),1,2)')
     },
     mounted() {
       this.getTypeDicts()
@@ -1087,12 +1089,12 @@
               } else {
                 this.param[b.i].resValue = b
               } */
-              if (b.i !== undefined) {
+              if (b.i !== undefined&&!this.param[b.i].resValue) {
                 this.param[b.i].resValue = b
               }
             }
             if (b.v.ps != undefined && b.v.ps.value === '缁撹') {
-              if (b.i !== undefined) {
+              if (b.i !== undefined&&!this.param[b.i].insResult) {
                 this.param[b.i].insResult = b
                 conclusionList.forEach((n, i) => {
                   if (n.r == b.r && n.c == b.c) {
@@ -1235,6 +1237,7 @@
                 } else {
                   item.v.v = 0
                 }
+                console.log(this.param)
                 this.saveInsContext()
               }
             } else {
@@ -1304,7 +1307,6 @@
                   str = str.replaceAll('MAX', 'Math.max')
                   str = str.replaceAll('MIN', 'Math.min')
                   str = str.replaceAll('锛�', ',')
-                  console.log(str)
                   try {
                     if(this.getInspectionValueType(item.i)==1){
                       comResult = eval(str)

--
Gitblit v1.9.3