feat(sample): 展示样本状态并支持样本废弃与作废原因
生产/质检入库卡片展示样本状态并支持【样本废弃】;市场 Web 列表与移动市场部卡片补充样本状态及问号查看作废原因;样本表新增 void_desc,人工作废不联动接收但全部作废时自动作废协议(#131)。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
7751cc0f4a
commit
0b4c8dfda8
53 files changed
+1527
-82
No files matched your search
@@ -82,6 +82,11 @@
|
||||
align="center"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column label="样本状态" min-width="140" align="center">
|
||||
<template #default="{ row }">
|
||||
<SampleStatusTag :status="row.sampleStatus" :void-desc="row.voidDesc" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="市场专员" min-width="110" align="center">
|
||||
<template #default="{ row }">{{ row.salesUserName || '—' }}</template>
|
||||
</el-table-column>
|
||||
@@ -265,6 +270,7 @@
|
||||
<script setup lang="ts">
|
||||
import { Search, RefreshLeft, Document, Close } from '@element-plus/icons-vue'
|
||||
import ProtocolViewDialog from '../protocol/ProtocolViewDialog.vue'
|
||||
import SampleStatusTag from '@/components/business/sample-status-tag/index.vue'
|
||||
import ProtocolAttachmentReadonly from '../protocol/ProtocolAttachmentReadonly.vue'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import {
|
||||
|
||||
@@ -90,6 +90,11 @@
|
||||
align="center"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column label="样本状态" min-width="140" align="center">
|
||||
<template #default="{ row }">
|
||||
<SampleStatusTag :status="row.sampleStatus" :void-desc="row.voidDesc" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="签署日期" min-width="110" align="center">
|
||||
<template #default="{ row }">{{ row.signDate || '—' }}</template>
|
||||
</el-table-column>
|
||||
@@ -295,6 +300,7 @@
|
||||
import ProtocolViewDialog from '../protocol/ProtocolViewDialog.vue'
|
||||
import ProtocolAttachmentReadonly from '../protocol/ProtocolAttachmentReadonly.vue'
|
||||
import SamplePaymentDetailDialog from '@/components/business/sample-payment-detail-dialog/index.vue'
|
||||
import SampleStatusTag from '@/components/business/sample-status-tag/index.vue'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import { fetchSamplePaymentList, fetchSamplePaymentDetail } from '@/api/protocol-sample-payment'
|
||||
import { type CollectionProtocolRow } from '@/api/collection-protocol'
|
||||
|
||||
@@ -175,6 +175,11 @@
|
||||
<span class="mono">{{ row.labStorageCode || '—' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="样本状态" min-width="140" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
<SampleStatusTag :status="row.sampleStatus" :void-desc="row.sampleVoidDesc" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="协议状态" min-width="100" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="donationStatusTagType(row.donationStatus)" size="small">
|
||||
@@ -415,6 +420,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import ProjectSelect from '@/components/business/ProjectSelect.vue'
|
||||
import SampleStatusTag from '@/components/business/sample-status-tag/index.vue'
|
||||
const projectFilter = ref('')
|
||||
const teamFilter = ref('')
|
||||
import { formatDisplayOrDash } from '@/utils/datetime-display'
|
||||
|
||||
@@ -197,6 +197,11 @@
|
||||
<span class="mono">{{ row.sampleCode || '—' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="样本状态" min-width="140" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
<SampleStatusTag :status="row.sampleStatus" :void-desc="row.sampleVoidDesc" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="sampleTypeName"
|
||||
label="样本类型"
|
||||
@@ -383,6 +388,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import ProjectSelect from '@/components/business/ProjectSelect.vue'
|
||||
import SampleStatusTag from '@/components/business/sample-status-tag/index.vue'
|
||||
const projectFilter = ref('')
|
||||
const teamFilter = ref('')
|
||||
import { formatDisplayOrDash } from '@/utils/datetime-display'
|
||||
|
||||
@@ -206,6 +206,11 @@
|
||||
<span class="cell-wrap-text">{{ row.sampleCode || '—' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="样本状态" min-width="140" align="center" header-align="center">
|
||||
<template #default="{ row }">
|
||||
<SampleStatusTag :status="row.sampleStatus" :void-desc="row.voidDesc" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="sampleTypeName"
|
||||
label="样本类型"
|
||||
@@ -320,6 +325,7 @@
|
||||
sampleFreightSpanMethod,
|
||||
type SampleFreightFlatRow
|
||||
} from '@/utils/sample-freight-flatten'
|
||||
import SampleStatusTag from '@/components/business/sample-status-tag/index.vue'
|
||||
import FreightConfigDialog from './FreightConfigDialog.vue'
|
||||
import FreightEditDialog from './FreightEditDialog.vue'
|
||||
|
||||
|
||||
@@ -207,6 +207,11 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="样本状态" min-width="140" align="center">
|
||||
<template #default="{ row }">
|
||||
<SampleStatusTag :status="row.sampleStatus" :void-desc="row.voidDesc" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="motherName" label="母亲姓名" min-width="100" align="center" />
|
||||
<el-table-column prop="motherPhone" label="母亲电话" min-width="120" align="center">
|
||||
<template #default="{ row }">{{ row.motherPhone || '—' }}</template>
|
||||
@@ -368,6 +373,11 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="样本状态" min-width="140" align="center">
|
||||
<template #default="{ row }">
|
||||
<SampleStatusTag :status="row.sampleStatus" :void-desc="row.voidDesc" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="labStorageCode" label="实验室入库编码" min-width="150" align="center">
|
||||
<template #default="{ row }">{{ row.labStorageCode || '—' }}</template>
|
||||
</el-table-column>
|
||||
@@ -503,6 +513,7 @@
|
||||
import ProtocolViewDialog from '@/views/cell-storage/protocol/ProtocolViewDialog.vue'
|
||||
import DonationViewDialog from '@/views/research-donation/list/DonationViewDialog.vue'
|
||||
import SampleCodeWithSpecialDisplay from '@/components/business/sample-code-with-special-display/index.vue'
|
||||
import SampleStatusTag from '@/components/business/sample-status-tag/index.vue'
|
||||
import SampleInfoQuickRegisterDialog from './SampleInfoQuickRegisterDialog.vue'
|
||||
import SampleCodeCorrectionDialog from './SampleCodeCorrectionDialog.vue'
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user