提交
This commit is contained in:
1 parent
731bbf878a
commit
f4bbe3e06e
56 files changed
+13599
-11335
No files matched your search
@@ -69,9 +69,7 @@
|
||||
>
|
||||
<dt>实验室入库编码</dt>
|
||||
<dd>
|
||||
{{
|
||||
row.acceptConclusion === 'js' ? row.labStorageCode || '—' : '—'
|
||||
}}
|
||||
{{ row.labStorageCode || '—' }}
|
||||
</dd>
|
||||
</div>
|
||||
<div class="sample-reception-card__meta-item">
|
||||
|
||||
@@ -293,11 +293,7 @@
|
||||
<el-radio value="bj">拒收</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
v-if="showLabStorageCodeField"
|
||||
label="实验室入库编码"
|
||||
prop="labStorageCode"
|
||||
>
|
||||
<el-form-item label="实验室入库编码" prop="labStorageCode">
|
||||
<el-input
|
||||
v-model="receiveForm.labStorageCode"
|
||||
placeholder="请填写"
|
||||
@@ -462,10 +458,7 @@
|
||||
><span class="label">接收温度(℃)</span
|
||||
>{{ viewRow.receiveTemperature ? viewRow.receiveTemperature + '℃' : '-' }}</div
|
||||
>
|
||||
<div
|
||||
v-if="viewRow.acceptConclusion === 'js'"
|
||||
class="readonly-item"
|
||||
>
|
||||
<div class="readonly-item">
|
||||
<span class="label">实验室入库编码</span>{{ viewRow.labStorageCode || '-' }}
|
||||
</div>
|
||||
<div class="readonly-item">
|
||||
@@ -653,10 +646,10 @@
|
||||
<el-radio value="bj">拒收</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="entry.acceptConclusion === 'js'" label="实验室入库编码" required>
|
||||
<template #label>
|
||||
实验室入库编码
|
||||
</template>
|
||||
<el-form-item
|
||||
label="实验室入库编码"
|
||||
:required="entry.acceptConclusion === 'js'"
|
||||
>
|
||||
<el-input
|
||||
v-model="entry.labStorageCode"
|
||||
placeholder="请填写"
|
||||
@@ -891,10 +884,6 @@
|
||||
const labStorageCodeManuallyEdited = ref(false)
|
||||
const lastAllocatedReceptionDate = ref('')
|
||||
|
||||
const showLabStorageCodeField = computed(
|
||||
() => receiveForm.acceptConclusion === 'js'
|
||||
)
|
||||
|
||||
const receiveRules = {
|
||||
receptionTime: [{ required: true, message: '请选择样本接收时间', trigger: 'change' }],
|
||||
handlerUserId: [{ required: true, message: '请选择经手人', trigger: 'change' }],
|
||||
@@ -1137,10 +1126,7 @@
|
||||
}
|
||||
|
||||
function refreshReceiveLabStorageCode(force = false) {
|
||||
if (receiveForm.acceptConclusion !== 'js') {
|
||||
receiveForm.labStorageCode = ''
|
||||
return
|
||||
}
|
||||
if (receiveForm.acceptConclusion !== 'js') return
|
||||
if (!force && labStorageCodeManuallyEdited.value) return
|
||||
|
||||
const row = currentRow.value
|
||||
@@ -1166,23 +1152,13 @@
|
||||
}
|
||||
|
||||
function onReceiveAcceptConclusionChange(val: string | number | boolean | undefined) {
|
||||
if (val === 'bj') {
|
||||
receiveForm.labStorageCode = ''
|
||||
labStorageCodeManuallyEdited.value = false
|
||||
lastAllocatedReceptionDate.value = ''
|
||||
return
|
||||
}
|
||||
if (val === 'bj') return
|
||||
refreshReceiveLabStorageCode(true)
|
||||
}
|
||||
|
||||
function allocateBatchLabStorageCodes() {
|
||||
for (const entry of batchEntries.value) {
|
||||
if (entry.acceptConclusion !== 'js') {
|
||||
entry.labStorageCode = ''
|
||||
entry.labStorageCodeManuallyEdited = false
|
||||
entry.lastAllocatedReceptionDate = ''
|
||||
continue
|
||||
}
|
||||
if (entry.acceptConclusion !== 'js') continue
|
||||
if (entry.labStorageCodeManuallyEdited) continue
|
||||
entry.labStorageCode = resolvePrefilledLabStorageCode(
|
||||
entry.sourceType,
|
||||
@@ -1194,12 +1170,7 @@
|
||||
}
|
||||
|
||||
function refreshBatchEntryLabStorageCode(entry: BatchReceiveEntry, force = false) {
|
||||
if (entry.acceptConclusion !== 'js') {
|
||||
entry.labStorageCode = ''
|
||||
entry.labStorageCodeManuallyEdited = false
|
||||
entry.lastAllocatedReceptionDate = ''
|
||||
return
|
||||
}
|
||||
if (entry.acceptConclusion !== 'js') return
|
||||
if (!force && entry.labStorageCodeManuallyEdited) return
|
||||
entry.labStorageCode = resolvePrefilledLabStorageCode(
|
||||
entry.sourceType,
|
||||
@@ -1219,12 +1190,7 @@
|
||||
}
|
||||
|
||||
function onBatchAcceptConclusionChange(entry: BatchReceiveEntry) {
|
||||
if (entry.acceptConclusion === 'bj') {
|
||||
entry.labStorageCode = ''
|
||||
entry.labStorageCodeManuallyEdited = false
|
||||
entry.lastAllocatedReceptionDate = ''
|
||||
return
|
||||
}
|
||||
if (entry.acceptConclusion === 'bj') return
|
||||
refreshBatchEntryLabStorageCode(entry, true)
|
||||
}
|
||||
|
||||
@@ -1370,8 +1336,7 @@
|
||||
receiveTemperature: entry.receiveTemperature || undefined,
|
||||
checks: buildChecksFromEntry(entry),
|
||||
acceptConclusion: entry.acceptConclusion,
|
||||
labStorageCode:
|
||||
entry.acceptConclusion === 'js' ? entry.labStorageCode || undefined : undefined,
|
||||
labStorageCode: String(entry.labStorageCode || '').trim() || undefined,
|
||||
receiveAttachments: financeAttachmentsToUrlString(entry.attachments) || undefined,
|
||||
remark: entry.remark || undefined
|
||||
})
|
||||
@@ -1582,10 +1547,7 @@
|
||||
checked: !!checkValues[item.id]
|
||||
})),
|
||||
acceptConclusion: receiveForm.acceptConclusion,
|
||||
labStorageCode:
|
||||
receiveForm.acceptConclusion === 'js'
|
||||
? receiveForm.labStorageCode || undefined
|
||||
: undefined,
|
||||
labStorageCode: String(receiveForm.labStorageCode || '').trim() || undefined,
|
||||
receiveAttachments: financeAttachmentsToUrlString(attachments.value) || undefined,
|
||||
remark: receiveForm.remark || undefined
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user