@@ -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) {
@@ -1431,8 +1431,11 @@
+ item.count = match ? match[0] : '';
- item.count = newVal;
+ // item.count = newVal;
async detailsList() {