提交
This commit is contained in:
1 parent
195c4c0a34
commit
64219a68c7
317 files changed
+66845
-33515
No files matched your search
@@ -17,7 +17,7 @@
|
||||
>操作,每条各记一次变更。
|
||||
</p>
|
||||
<p v-else-if="targets.length === 1" class="status-change-hint">
|
||||
协议号:<strong>{{ targets[0].protocolNo || '—' }}</strong>
|
||||
<strong>{{ formatProtocolDocSubject('cell_storage', targets[0]) }}</strong>
|
||||
</p>
|
||||
|
||||
<el-form
|
||||
@@ -69,11 +69,12 @@
|
||||
import { fetchUpdateCollectionProtocol } from '@/api/collection-protocol'
|
||||
import { fetchConvertFromStorage } from '@/api/research-donation'
|
||||
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
|
||||
import { formatProtocolDocSubject } from '@/utils/protocol-doc-label'
|
||||
|
||||
export type StatusChangeAction = 'activate' | 'expire' | 'void' | 'toResearch'
|
||||
export type StatusChangeTarget = {
|
||||
id: string
|
||||
protocolNo?: string
|
||||
motherName?: string
|
||||
}
|
||||
|
||||
defineOptions({ name: 'ProtocolStatusChangeDialog' })
|
||||
@@ -173,7 +174,7 @@
|
||||
if (props.actionType === 'toResearch') {
|
||||
try {
|
||||
await ElMessageBox.confirm(
|
||||
'确定将该协议转为科研捐赠吗?将创建新的科研捐赠记录,初始协议号与样本编码与源单一致。',
|
||||
'确定将该协议转为科研捐赠吗?将创建新的科研捐赠记录,样本编码与源单一致。',
|
||||
'转科研确认',
|
||||
{ confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }
|
||||
)
|
||||
@@ -191,7 +192,7 @@
|
||||
await fetchConvertFromStorage(String(row.id))
|
||||
ok += 1
|
||||
} catch {
|
||||
failed.push(row.protocolNo || String(row.id))
|
||||
failed.push(row.motherName || String(row.id))
|
||||
}
|
||||
}
|
||||
if (isBatch) {
|
||||
@@ -231,7 +232,7 @@
|
||||
await fetchUpdateCollectionProtocol(String(row.id), payload)
|
||||
ok += 1
|
||||
} catch {
|
||||
failed.push(row.protocolNo || String(row.id))
|
||||
failed.push(row.motherName || String(row.id))
|
||||
}
|
||||
}
|
||||
if (isBatch) {
|
||||
|
||||
Reference in new issue
Block a user