feat:系统更新
This commit is contained in:
@@ -379,6 +379,7 @@ const parameterClassifyChange = v => {
|
||||
|
||||
function handleInputConfirm() {
|
||||
selectedField.value.value = inputValue.value
|
||||
syncFieldValueByEqualParamNo()
|
||||
autoNextField()
|
||||
}
|
||||
function handleDateConfirm(e) {
|
||||
@@ -703,7 +704,7 @@ const saveDetail = async () => {
|
||||
}
|
||||
|
||||
// 如果是空白样和标样就需要根据配置信息来计算质控样、分析样
|
||||
if (activeAssayTypeKey.value === 'kby' || activeAssayTypeKey.value === 'by') {
|
||||
if (activeAssayTypeKey.value === 'kby' || activeAssayTypeKey.value === 'by' || activeAssayTypeKey.value === 'zkkby') {
|
||||
// 处理其他页签的输入变化
|
||||
const configInfomation = currentAssayType.value.configQCSampleMethodInfo
|
||||
const row = currentSampleData.value
|
||||
@@ -719,8 +720,8 @@ const saveDetail = async () => {
|
||||
// 如果处理后的值不为空,重新赋值该字段到其他样品类型下的样品上,并触发每一个样品的计算
|
||||
if (item.value !== null) {
|
||||
for (const col of currentAssayType.value.columns) {
|
||||
if (col.fieldIndex === sourceKey) {
|
||||
dynamicFormData[item.target] = row[sourceKey].value
|
||||
if (col.fieldIndex === sourceKey&&item.value) {
|
||||
dynamicFormData[item.target] = item.value
|
||||
}
|
||||
}
|
||||
updateTableDataByConfigFields()
|
||||
@@ -753,7 +754,7 @@ function calcAverageValue(fieldIndex, tableData) {
|
||||
// 表格数据更新后重新计算
|
||||
function updateTableDataByConfigFields() {
|
||||
let needCalcTabs = []
|
||||
needCalcTabs = assayGroups.value.filter(t => t.value !== 'by' && t.value !== 'kby')
|
||||
needCalcTabs = assayGroups.value.filter(t => t.value !== 'by' && t.value !== 'kby' && t.value !== 'zkkby')
|
||||
if (needCalcTabs.length === 0) return
|
||||
for (const key in dynamicFormData) {
|
||||
for (const tab of needCalcTabs) {
|
||||
|
||||
Reference in New Issue
Block a user