diff --git a/src/components/BatchReceivingPrintDialog.vue b/src/components/BatchReceivingPrintDialog.vue
index f72786e2..622a4fce 100644
--- a/src/components/BatchReceivingPrintDialog.vue
+++ b/src/components/BatchReceivingPrintDialog.vue
@@ -30,15 +30,6 @@
-
-
-
@@ -154,15 +145,13 @@ const props = withDefaults(defineProps<{
dialogTitle?: string
queueNoField?: string
documentLabel?: string
- hideBusinessTypeSelect?: boolean
fetchPrintData?: (row: RowItem, index: number) => Promise
}>(), {
selectionRows: () => [],
businessType: 'RECEIPT',
dialogTitle: '批量打印收货单',
queueNoField: 'receiving_number',
- documentLabel: '单据',
- hideBusinessTypeSelect: false
+ documentLabel: '单据'
})
const emit = defineEmits<{
@@ -193,13 +182,6 @@ const stationOptions = ref([])
const printerOptions = ref([])
const templateOptions = ref([])
const printerLoading = ref(false)
-const businessTypeOptions = [
- { label: '收货单 (RECEIPT)', value: 'RECEIPT' },
- { label: '库存单 (STOCK)', value: 'STOCK' },
- { label: '出库单 (OUTBOUND)', value: 'OUTBOUND' },
- { label: '拣货单 (PICKING)', value: 'PICKING' }
-]
-
const barcodeImg = {
props: ['text'],
setup(innerProps: any) {
@@ -380,7 +362,9 @@ function getPreviewValue(item: any): string {
}
}
- // 回退到模板预设内容
+ // 有 field_code 但无数据时显示空,不回退到占位文字
+ if (item.field_code) return ''
+ // 无 field_code 的自定义元素(如固定文字、图片)显示 content
return item.content || ''
}
@@ -578,12 +562,7 @@ function resolveBusinessType() {
}
function isSupportedBusinessType(value: string) {
- return ['STOCK', 'OUTBOUND', 'RECEIPT', 'PICKING'].includes(value)
-}
-
-async function handleBusinessTypeChange() {
- printSettings.template = ''
- await loadTemplatesByBusinessType()
+ return ['STOCK', 'OUTBOUND', 'RECEIPT', 'PICKING', 'ENTRY_ORDER'].includes(value)
}
function isApiSuccess(res: any) {
@@ -726,9 +705,37 @@ function browserPrint() {