feat:分析管理
This commit is contained in:
@@ -101,7 +101,7 @@ const formFields = ref([])
|
||||
const staticFormSchema = [
|
||||
{ label: '指派单号', fieldKey: 'businessAssayTaskId', hidden: true },
|
||||
{ type: 'title', value: '分析原始记录单' },
|
||||
{ label: '检测方法', type: 'Input', fieldKey: 'configAssayMethodName', disabled: true },
|
||||
{ label: '检测方法', type: 'Input', fieldKey: 'configAssayMethodName' },
|
||||
{ label: '分析人', type: 'Input', fieldKey: 'assayOperator', disabled: true },
|
||||
{ label: '检测时间', type: 'date', fieldKey: 'assayTime' }
|
||||
]
|
||||
@@ -294,10 +294,11 @@ function getDynamicFormSchemaFormData(obj) {
|
||||
}
|
||||
// 检查动态字段值在空白样或者标样的(影响计算配置字段)中是否变化
|
||||
function checkPropertyEquality() {
|
||||
if (configQCSampleMethodInfos.value.length === 0) return false
|
||||
for (const config of configQCSampleMethodInfos.value) {
|
||||
const target = config.target
|
||||
if (!target) continue
|
||||
let allColumns = tabs.value.flatMap(tab => tab.columns)
|
||||
for (const column of allColumns) {
|
||||
const formula = column.formula
|
||||
if (!formula) continue
|
||||
const target = formula.split(':')[1]
|
||||
const originalValue = dynamicFormData.value[target]
|
||||
const currentValue = realFormData.value[target]
|
||||
console.log('checkPropertyEquality', originalValue, currentValue)
|
||||
|
||||
Reference in New Issue
Block a user