style:文字调整
This commit is contained in:
@@ -84,7 +84,7 @@ import tools from '@/nx/utils/tools'
|
||||
|
||||
const pageLoading = ref(false)
|
||||
// 标题
|
||||
const title = ref('编辑指派单')
|
||||
const title = ref('')
|
||||
// tab标题的滚动条位置
|
||||
const scrollTop = ref(0)
|
||||
// 当前任务样品
|
||||
@@ -100,8 +100,7 @@ const formFields = ref([])
|
||||
|
||||
const staticFormSchema = [
|
||||
{ label: '指派单号', fieldKey: 'businessAssayTaskId', hidden: true },
|
||||
{ type: 'title', value: '分析原始记录单' },
|
||||
{ label: '检测方法', type: 'Input', fieldKey: 'configAssayMethodName' },
|
||||
{ label: '检测方法', type: 'Input', fieldKey: 'assayMethodName' },
|
||||
{ label: '分析人', type: 'Input', fieldKey: 'assayOperator', disabled: true },
|
||||
{ label: '检测时间', type: 'date', fieldKey: 'assayTime' }
|
||||
]
|
||||
@@ -131,7 +130,6 @@ async function loadTaskDetail() {
|
||||
} = await nx.$api.assayTask.batchSampleAndQcAnalysisByTaskId(currentTaskId.value)
|
||||
formData.value = {
|
||||
businessAssayTaskId: currentTaskId.value,
|
||||
configAssayMethodName: configAssayMethodName,
|
||||
assayOperator: assayOperator,
|
||||
assayTime: assayTime
|
||||
}
|
||||
@@ -139,7 +137,10 @@ async function loadTaskDetail() {
|
||||
formData.value = { ...formData.value, ...JSON.parse(formValue) }
|
||||
dynamicFormData.value = JSON.parse(formValue)
|
||||
}
|
||||
title.value = '样品分析-任务指派单:' + businessAssayTasNo
|
||||
if (!dynamicFormData.value.assayMethodName) {
|
||||
formData.value.assayMethodName = configAssayMethodName
|
||||
}
|
||||
title.value = '样品分析-任务单编号:' + businessAssayTasNo
|
||||
// 查询动态字段
|
||||
const dataCollectionParams = {}
|
||||
if (dataCollectionId) {
|
||||
@@ -270,7 +271,7 @@ async function handleSave(change) {
|
||||
updateTableDataByConfigFields()
|
||||
params = {
|
||||
...realFormData.value,
|
||||
formValue: JSON.stringify(getDynamicFormSchemaFormData(realFormData.value)),
|
||||
formValue: JSON.stringify(realFormData.value),
|
||||
assayTaskAnalysisDataList: tabs.value.map(item => ({
|
||||
datas: item.tableData,
|
||||
analysisType: item.name
|
||||
@@ -279,7 +280,7 @@ async function handleSave(change) {
|
||||
} else {
|
||||
params = {
|
||||
...realFormData.value,
|
||||
formValue: JSON.stringify(getDynamicFormSchemaFormData(realFormData.value))
|
||||
formValue: JSON.stringify(realFormData.value)
|
||||
}
|
||||
}
|
||||
await nx.$api.assayTask.saveBatchSmpleAndQcAnalysis(params)
|
||||
|
||||
Reference in New Issue
Block a user