소스 검색

Merge branch 'test' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend into test

yusheng 5 달 전
부모
커밋
c73c26bbea
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 1
      src/views/material/BOMmanage/components/detailedList.vue
  2. 4 1
      src/views/material/BOMmanage/components/workingProcedure.vue

+ 4 - 1
src/views/material/BOMmanage/components/detailedList.vue

@@ -693,8 +693,11 @@
             newVal.slice(firstDotIndex + 1).replace(/\./g, '');
         }
 
+        const match = newVal.match(/^(\d+)(\.\d{0,4})?/);
+        item.dosage = match ? match[0] : '';
+
         // 4. 更新数据
-        item.dosage = newVal;
+        // item.dosage = newVal;
       },
 
       factoriesFn(code) {

+ 4 - 1
src/views/material/BOMmanage/components/workingProcedure.vue

@@ -1431,8 +1431,11 @@
             newVal.slice(firstDotIndex + 1).replace(/\./g, '');
         }
 
+        const match = newVal.match(/^(\d+)(\.\d{0,4})?/);
+        item.count = match ? match[0] : '';
+
         // 4. 更新数据
-        item.count = newVal;
+        // item.count = newVal;
       },
 
       async detailsList() {