Commit 6c31a476 authored by liguangyu06's avatar liguangyu06
Browse files

同步基础管理与统计报表用例文档,并更新 Playwright 脚本与 PO。

对齐 CSV/MD/测试点与现网列名及组合查询;补充厂商资质子 Tab 与基础模块复跑脚本。
parent aa8987ce
...@@ -30,7 +30,7 @@ export const polRateColumns = { ...@@ -30,7 +30,7 @@ export const polRateColumns = {
insuranceCode: '医保编码', insuranceCode: '医保编码',
field21: '进院日期', field21: '进院日期',
field22: '注册证号', field22: '注册证号',
field23: '默认进院供应商', field23: '默认销售商',
field24: '招标文号', field24: '招标文号',
id: '阳采ID', id: '阳采ID',
field25: '初始完成量', field25: '初始完成量',
......
...@@ -4,7 +4,7 @@ import type { DeptQuickFieldDef } from './dept-report-field-defs'; ...@@ -4,7 +4,7 @@ import type { DeptQuickFieldDef } from './dept-report-field-defs';
export const reagEntryColumns = { export const reagEntryColumns = {
statDate: '统计日期', statDate: '统计日期',
supplierName: '进院供应商', supplierName: '销售商(自定义)',
productName: '物料名称', productName: '物料名称',
productCode: '物料编号', productCode: '物料编号',
spec: '规格型号', spec: '规格型号',
...@@ -33,7 +33,7 @@ export const reagEntryFixedCampusScope = { ...@@ -33,7 +33,7 @@ export const reagEntryFixedCampusScope = {
/** 全量快捷区字段(展开筛选区,非高级筛选抽屉)。 */ /** 全量快捷区字段(展开筛选区,非高级筛选抽屉)。 */
export const reagEntryComboFullQuickFields: readonly DeptQuickFieldDef[] = [ export const reagEntryComboFullQuickFields: readonly DeptQuickFieldDef[] = [
{ key: 'statDate', label: '统计日期', type: 'date' }, { key: 'statDate', label: '统计日期', type: 'date' },
{ key: 'supplierName', label: '进院供应商', type: 'text' }, { key: 'supplierName', label: '销售商(自定义)', type: 'text' },
{ key: 'productName', label: '物料名称', type: 'text' }, { key: 'productName', label: '物料名称', type: 'text' },
{ key: 'spec', label: '规格型号', type: 'text' }, { key: 'spec', label: '规格型号', type: 'text' },
{ key: 'registrant', label: '器械注册人-术语配置', type: 'text' }, { key: 'registrant', label: '器械注册人-术语配置', type: 'text' },
...@@ -43,7 +43,7 @@ export const reagEntryComboFullQuickFields: readonly DeptQuickFieldDef[] = [ ...@@ -43,7 +43,7 @@ export const reagEntryComboFullQuickFields: readonly DeptQuickFieldDef[] = [
export const reagEntryComboQuickFields: readonly DeptQuickFieldDef[] = [ export const reagEntryComboQuickFields: readonly DeptQuickFieldDef[] = [
{ key: 'statDate', label: '统计日期', type: 'date' }, { key: 'statDate', label: '统计日期', type: 'date' },
{ key: 'supplierName', label: '进院供应商', type: 'text' }, { key: 'supplierName', label: '销售商(自定义)', type: 'text' },
{ key: 'productName', label: '物料名称', type: 'text' }, { key: 'productName', label: '物料名称', type: 'text' },
]; ];
...@@ -51,7 +51,7 @@ export const reagEntryComboQuickFields: readonly DeptQuickFieldDef[] = [ ...@@ -51,7 +51,7 @@ export const reagEntryComboQuickFields: readonly DeptQuickFieldDef[] = [
export const reagEntryExportSampleFields: readonly DeptQuickFieldDef[] = [ export const reagEntryExportSampleFields: readonly DeptQuickFieldDef[] = [
{ key: 'statDate', label: '统计日期', type: 'date' }, { key: 'statDate', label: '统计日期', type: 'date' },
{ key: 'campusScope', label: '院区范围', type: 'select' }, { key: 'campusScope', label: '院区范围', type: 'select' },
{ key: 'supplierName', label: '进院供应商', type: 'text' }, { key: 'supplierName', label: '销售商(自定义)', type: 'text' },
{ key: 'productName', label: '物料名称', type: 'text' }, { key: 'productName', label: '物料名称', type: 'text' },
]; ];
...@@ -88,12 +88,12 @@ export const reagEntryData: CenterReportPageData & { ...@@ -88,12 +88,12 @@ export const reagEntryData: CenterReportPageData & {
'规格型号', '规格型号',
'器械注册人-术语配置', '器械注册人-术语配置',
'单位', '单位',
'进院供应商', '销售商(自定义)',
'配送数量', '配送数量',
'批号数量', '批号数量',
], ],
columnAliases: { columnAliases: {
supplierName: ['进院供应商名称'], supplierName: ['默认销售商', '销售商(自定义)', '销售商(自定义)名称'],
field: ['器械注册人-术语配置'], field: ['器械注册人-术语配置'],
field5: ['采购计划号'], field5: ['采购计划号'],
}, },
...@@ -104,7 +104,7 @@ export const reagEntryData: CenterReportPageData & { ...@@ -104,7 +104,7 @@ export const reagEntryData: CenterReportPageData & {
mockNotExistProduct: '__NOT_EXIST_PRODUCT__99999', mockNotExistProduct: '__NOT_EXIST_PRODUCT__99999',
mockFieldLabel: '物料名称', mockFieldLabel: '物料名称',
drawerResetFieldLabel: '进院供应商', drawerResetFieldLabel: '销售商(自定义)',
drawerResetFieldKey: 'supplierName', drawerResetFieldKey: 'supplierName',
paginationPageSizeFrom: '50 条/页', paginationPageSizeFrom: '50 条/页',
paginationPageSizeTo: '100 条/页', paginationPageSizeTo: '100 条/页',
...@@ -123,7 +123,7 @@ export const reagEntryData: CenterReportPageData & { ...@@ -123,7 +123,7 @@ export const reagEntryData: CenterReportPageData & {
exportQueryFromSample: true, exportQueryFromSample: true,
columnSettingsToggleCandidates: ['备注'], columnSettingsToggleCandidates: ['备注'],
comboSampleScrollColumns: ['规格型号', '器械注册人-术语配置', '进院供应商', '批号数量'], comboSampleScrollColumns: ['规格型号', '器械注册人-术语配置', '销售商(自定义)', '批号数量'],
comboSamplePickKeys: ['supplierName', 'productName', 'spec', 'registrant'], comboSamplePickKeys: ['supplierName', 'productName', 'spec', 'registrant'],
comboSampleMaxRowScan: 5, comboSampleMaxRowScan: 5,
quickFieldInputIds: { quickFieldInputIds: {
......
import type { CenterReportPageData } from './center-report-shared.types'; import type { CenterReportPageData } from './center-report-shared.types';
import { reportAccountDateQuickRange } from './report-default-date-range';
import type { CenterReportDrawerField } from './center-report-shared.types'; import type { CenterReportDrawerField } from './center-report-shared.types';
import type { DeptQuickFieldDef } from './dept-report-field-defs'; import type { DeptQuickFieldDef } from './dept-report-field-defs';
...@@ -38,6 +39,7 @@ export const reconDeptNetOutComboAssertKeys = ['productName', 'accountDate', 'ca ...@@ -38,6 +39,7 @@ export const reconDeptNetOutComboAssertKeys = ['productName', 'accountDate', 'ca
export const reconDeptNetOutData: CenterReportPageData = { export const reconDeptNetOutData: CenterReportPageData = {
reportPath: '/spd/form/checkAccount/report/checkAccount/deptOut', reportPath: '/spd/form/checkAccount/report/checkAccount/deptOut',
iframeSrc: 'checkAccount/deptOut', iframeSrc: 'checkAccount/deptOut',
defaultQuickDateRange: reportAccountDateQuickRange,
productNameSelector: '#form_item_goodsName', productNameSelector: '#form_item_goodsName',
columns: reconDeptNetOutColumns, columns: reconDeptNetOutColumns,
coreTableHeaders: ['物料名称', '科室', '院区名称', '记账日期', '单据形态', '批号', '净出数量', '净出金额'], coreTableHeaders: ['物料名称', '科室', '院区名称', '记账日期', '单据形态', '批号', '净出数量', '净出金额'],
......
...@@ -5,9 +5,9 @@ import type { DeptQuickFieldDef } from './dept-report-field-defs'; ...@@ -5,9 +5,9 @@ import type { DeptQuickFieldDef } from './dept-report-field-defs';
export const reconPurchaseClassifyColumns = { export const reconPurchaseClassifyColumns = {
statDate: '统计日期', statDate: '统计日期',
consumableType: '耗材类型', consumableType: '耗材类型',
supplierName: '进院供应商名称', supplierName: '销售商(自定义)名称',
entryDate: '入账日期', entryDate: '入账日期',
subSupplierName: '二级供应商名称', subSupplierName: '供应商名称',
classifyMode: '分类方式', classifyMode: '分类方式',
campus: '院区名称', campus: '院区名称',
} as const; } as const;
...@@ -15,7 +15,7 @@ export const reconPurchaseClassifyColumns = { ...@@ -15,7 +15,7 @@ export const reconPurchaseClassifyColumns = {
export const reconPurchaseClassifyComboQuickFields: readonly DeptQuickFieldDef[] = [ export const reconPurchaseClassifyComboQuickFields: readonly DeptQuickFieldDef[] = [
{ key: 'statDate', label: '统计日期', type: 'date' }, { key: 'statDate', label: '统计日期', type: 'date' },
{ key: 'consumableType', label: '耗材类型', type: 'select' }, { key: 'consumableType', label: '耗材类型', type: 'select' },
{ key: 'supplierName', label: '进院供应商名称', type: 'text' }, { key: 'supplierName', label: '销售商(自定义)名称', type: 'text' },
{ key: 'entryDate', label: '入账日期', type: 'date' }, { key: 'entryDate', label: '入账日期', type: 'date' },
]; ];
...@@ -31,10 +31,10 @@ export const reconPurchaseClassifyData: CenterReportPageData = { ...@@ -31,10 +31,10 @@ export const reconPurchaseClassifyData: CenterReportPageData = {
iframeSrc: 'checkAccount/purchaseClassify', iframeSrc: 'checkAccount/purchaseClassify',
productNameSelector: '#form_item_goodsName', productNameSelector: '#form_item_goodsName',
columns: reconPurchaseClassifyColumns, columns: reconPurchaseClassifyColumns,
coreTableHeaders: ['院区名称', '进院供应商名称', '统计日期', '入账日期', '耗材类型', '二级供应商名称'], coreTableHeaders: ['院区名称', '销售商(自定义)名称', '统计日期', '入账日期', '耗材类型', '供应商名称'],
dimensions: ['区分二级商'], dimensions: ['区分二级商'],
mockNotExistProduct: '__NOT_EXIST_SUPPLIER__99999', mockNotExistProduct: '__NOT_EXIST_SUPPLIER__99999',
mockFieldLabel: '进院供应商名称', mockFieldLabel: '销售商(自定义)名称',
mockNotExistSupplier: '__NOT_EXIST_SUPPLIER__99999', mockNotExistSupplier: '__NOT_EXIST_SUPPLIER__99999',
paginationPageSizeFrom: '50 条/页', paginationPageSizeFrom: '50 条/页',
paginationPageSizeTo: '100 条/页', paginationPageSizeTo: '100 条/页',
...@@ -51,7 +51,7 @@ export const reconPurchaseClassifyData: CenterReportPageData = { ...@@ -51,7 +51,7 @@ export const reconPurchaseClassifyData: CenterReportPageData = {
exportQueryFromSample: true, exportQueryFromSample: true,
horizontalScrollAnchorColumn: '院区名称', horizontalScrollAnchorColumn: '院区名称',
horizontalScrollTargetColumn: '二级供应商名称', horizontalScrollTargetColumn: '供应商名称',
horizontalScrollDragDelta: 320, horizontalScrollDragDelta: 320,
comboSamplePickKeys: ['statDate', 'consumableType', 'supplierName', 'entryDate'], comboSamplePickKeys: ['statDate', 'consumableType', 'supplierName', 'entryDate'],
drawerFields: reconPurchaseClassifyComboDrawerFields, drawerFields: reconPurchaseClassifyComboDrawerFields,
......
...@@ -5,8 +5,8 @@ import type { DeptQuickFieldDef } from './dept-report-field-defs'; ...@@ -5,8 +5,8 @@ import type { DeptQuickFieldDef } from './dept-report-field-defs';
export const reconPurchaseEntryColumns = { export const reconPurchaseEntryColumns = {
productName: '物料名称', productName: '物料名称',
statDate: '统计日期', statDate: '统计日期',
supplierName: '进院供应商名称', supplierName: '销售商(自定义)名称',
subSupplierName: '二级供应商名称', subSupplierName: '供应商名称',
productType: '产品类型', productType: '产品类型',
campus: '院区名称', campus: '院区名称',
consumableCategory: '耗材分类', consumableCategory: '耗材分类',
...@@ -16,8 +16,8 @@ export const reconPurchaseEntryColumns = { ...@@ -16,8 +16,8 @@ export const reconPurchaseEntryColumns = {
export const reconPurchaseEntryComboQuickFields: readonly DeptQuickFieldDef[] = [ export const reconPurchaseEntryComboQuickFields: readonly DeptQuickFieldDef[] = [
{ key: 'productName', label: '物料名称', type: 'text' }, { key: 'productName', label: '物料名称', type: 'text' },
{ key: 'statDate', label: '统计日期', type: 'date' }, { key: 'statDate', label: '统计日期', type: 'date' },
{ key: 'supplierName', label: '进院供应商名称', type: 'text' }, { key: 'supplierName', label: '销售商(自定义)名称', type: 'text' },
{ key: 'subSupplierName', label: '二级供应商名称', type: 'text' }, { key: 'subSupplierName', label: '供应商名称', type: 'text' },
]; ];
export const reconPurchaseEntryComboDrawerFields: readonly CenterReportDrawerField[] = [ export const reconPurchaseEntryComboDrawerFields: readonly CenterReportDrawerField[] = [
...@@ -46,7 +46,7 @@ export const reconPurchaseEntryData: CenterReportPageData = { ...@@ -46,7 +46,7 @@ export const reconPurchaseEntryData: CenterReportPageData = {
columnAliases: { columnAliases: {
productType: ['物料类型', '产品类型'], productType: ['物料类型', '产品类型'],
}, },
coreTableHeaders: ['物料名称', '院区名称', '进院供应商名称', '统计日期', '二级供应商名称', '产品类型'], coreTableHeaders: ['物料名称', '院区名称', '销售商(自定义)名称', '统计日期', '供应商名称', '产品类型'],
dimensions: ['区分批号', '区分供应商', '区分单价'], dimensions: ['区分批号', '区分供应商', '区分单价'],
mockNotExistProduct: '__NOT_EXIST_PRODUCT__99999', mockNotExistProduct: '__NOT_EXIST_PRODUCT__99999',
mockFieldLabel: '物料名称', mockFieldLabel: '物料名称',
...@@ -55,7 +55,7 @@ export const reconPurchaseEntryData: CenterReportPageData = { ...@@ -55,7 +55,7 @@ export const reconPurchaseEntryData: CenterReportPageData = {
sampleRowIndex: 0, sampleRowIndex: 0,
sortColumns: reconPurchaseEntrySortColumns, sortColumns: reconPurchaseEntrySortColumns,
sortCasePrefix: 'STAT-RPE', sortCasePrefix: 'STAT-RPE',
sortCaseStartIndex: 16, sortCaseStartIndex: 15,
sortColumnPrerequisites: { sortColumnPrerequisites: {
产品批号: ['区分批号'], 产品批号: ['区分批号'],
}, },
...@@ -76,19 +76,10 @@ export const reconPurchaseEntryData: CenterReportPageData = { ...@@ -76,19 +76,10 @@ export const reconPurchaseEntryData: CenterReportPageData = {
comboSamplePickKeys: ['productName', 'statDate', 'supplierName', 'subSupplierName', 'inboundQty'], comboSamplePickKeys: ['productName', 'statDate', 'supplierName', 'subSupplierName', 'inboundQty'],
comboSampleScrollColumns: ['采购入库数量', '产品类型'], comboSampleScrollColumns: ['采购入库数量', '产品类型'],
drawerFields: reconPurchaseEntryComboDrawerFields, drawerFields: reconPurchaseEntryComboDrawerFields,
firstRowSummaryMatch: {
metrics: [
{ key: 'inboundQty', label: '采购入库数量', summaryLabels: ['入库数量', '采购入库数量'] },
],
requiredKey: 'productName',
fields: reconPurchaseEntryComboQuickFields,
narrowKeys: ['productName'],
footerKeywords: ['入库数量', '采购入库数量', '合计'],
},
}; };
export const reconPurchaseEntrySortCases = buildSortColumnCases( export const reconPurchaseEntrySortCases = buildSortColumnCases(
'STAT-RPE', 'STAT-RPE',
reconPurchaseEntrySortColumns, reconPurchaseEntrySortColumns,
16, 15,
); );
...@@ -4,7 +4,7 @@ import type { DeptQuickFieldDef } from './dept-report-field-defs'; ...@@ -4,7 +4,7 @@ import type { DeptQuickFieldDef } from './dept-report-field-defs';
export const reconSupplyColumns = { export const reconSupplyColumns = {
campus: '院区名称', campus: '院区名称',
supplierName: '进院供应商名称', supplierName: '销售商(自定义)名称',
statDate: '统计日期', statDate: '统计日期',
billCount: '单据数量', billCount: '单据数量',
inboundQty: '入库数量', inboundQty: '入库数量',
...@@ -28,7 +28,7 @@ export const reconSupplySummaryMetrics = [ ...@@ -28,7 +28,7 @@ export const reconSupplySummaryMetrics = [
export const reconSupplyComboQuickFields: readonly DeptQuickFieldDef[] = [ export const reconSupplyComboQuickFields: readonly DeptQuickFieldDef[] = [
{ key: 'campus', label: '院区名称', type: 'select' }, { key: 'campus', label: '院区名称', type: 'select' },
{ key: 'supplierName', label: '进院供应商名称', type: 'text' }, { key: 'supplierName', label: '销售商(自定义)名称', type: 'text' },
]; ];
export const reconSupplyComboDrawerFields: readonly CenterReportDrawerField[] = [ export const reconSupplyComboDrawerFields: readonly CenterReportDrawerField[] = [
...@@ -43,10 +43,10 @@ export const reconSupplyData: CenterReportPageData = { ...@@ -43,10 +43,10 @@ export const reconSupplyData: CenterReportPageData = {
iframeSrc: 'checkAccount/supply', iframeSrc: 'checkAccount/supply',
productNameSelector: '#form_item_goodsName', productNameSelector: '#form_item_goodsName',
columns: reconSupplyColumns, columns: reconSupplyColumns,
coreTableHeaders: ['院区名称', '进院供应商名称', '统计日期', '单据数量', '入库数量', '入库金额'], coreTableHeaders: ['院区名称', '销售商(自定义)名称', '统计日期', '单据数量', '入库数量', '入库金额'],
summaryKeywords: ['单据数', '入库数量', '入库金额', '退货数量', '退货金额', '净入数量', '净入金额'], summaryKeywords: ['单据数', '入库数量', '入库金额', '退货数量', '退货金额', '净入数量', '净入金额'],
mockNotExistProduct: '__NOT_EXIST_SUPPLIER__99999', mockNotExistProduct: '__NOT_EXIST_SUPPLIER__99999',
mockFieldLabel: '进院供应商名称', mockFieldLabel: '销售商(自定义)名称',
mockNotExistSupplier: '__NOT_EXIST_SUPPLIER__99999', mockNotExistSupplier: '__NOT_EXIST_SUPPLIER__99999',
paginationPageSizeFrom: '50 条/页', paginationPageSizeFrom: '50 条/页',
paginationPageSizeTo: '100 条/页', paginationPageSizeTo: '100 条/页',
...@@ -62,6 +62,9 @@ export const reconSupplyData: CenterReportPageData = { ...@@ -62,6 +62,9 @@ export const reconSupplyData: CenterReportPageData = {
exportSelectFirstRow: false, exportSelectFirstRow: false,
exportQueryFromSample: true, exportQueryFromSample: true,
columnAliases: {
supplierName: ['销售商(自定义)名称', '销售商(自定义)', '进院供应商名称', '进院供应商'],
},
horizontalScrollAnchorColumn: '院区名称', horizontalScrollAnchorColumn: '院区名称',
horizontalScrollTargetColumn: '统计日期', horizontalScrollTargetColumn: '统计日期',
horizontalScrollDragDelta: 320, horizontalScrollDragDelta: 320,
......
/** 与 test 环境常用有数据区间(对齐 CSV 前置 / Jenkins SPD full)。 */
export const reportAccountDateQuickRange = {
label: '记账日期',
start: '2026-01-01',
end: '2026-08-31',
} as const;
export const reportEntryDateQuickRange = {
label: '入账日期',
start: '2026-01-01',
end: '2026-08-31',
} as const;
export const reportStatPeriodQuickRange = {
label: '统计周期',
start: '2026-01-01',
end: '2026-08-31',
} as const;
This diff is collapsed.
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
"任务名称", "任务名称",
"任务数量", "任务数量",
"初始完成量", "初始完成量",
"产品编码", "物料编码",
"产品名称", "物料名称",
"规格型号", "规格型号",
"器械注册人-术语配置", "器械注册人-术语配置",
"耗材类型", "耗材类型",
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
"任务名称", "任务名称",
"任务数量", "任务数量",
"初始完成量", "初始完成量",
"产品编码", "物料编码",
"产品名称", "物料名称",
"规格型号", "规格型号",
"器械注册人-术语配置", "器械注册人-术语配置",
"耗材类型", "耗材类型",
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
"任务名称", "任务名称",
"任务数量", "任务数量",
"初始完成量", "初始完成量",
"产品编码", "物料编码",
"产品名称", "物料名称",
"规格型号", "规格型号",
"器械注册人-术语配置", "器械注册人-术语配置",
"耗材类型", "耗材类型",
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"type": "select" "type": "select"
}, },
{ {
"label": "产品名称", "label": "物料名称",
"type": "text" "type": "text"
} }
], ],
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
"type": "select" "type": "select"
}, },
{ {
"label": "产品名称", "label": "物料名称",
"type": "text" "type": "text"
} }
], ],
......
...@@ -12,7 +12,7 @@ export const traceDirectBuyColumns = { ...@@ -12,7 +12,7 @@ export const traceDirectBuyColumns = {
field4: '配送单号', field4: '配送单号',
field5: '验收单号', field5: '验收单号',
field6: '请领单状态', field6: '请领单状态',
supplierName: '进院供应商', supplierName: '销售商(自定义)',
field7: '请领科室', field7: '请领科室',
field8: '请领审核时间', field8: '请领审核时间',
field9: '采购审核时间', field9: '采购审核时间',
...@@ -52,9 +52,9 @@ export const traceDirectBuyData: CenterReportPageData & { ...@@ -52,9 +52,9 @@ export const traceDirectBuyData: CenterReportPageData & {
iframeSrc: 'trace/buy', iframeSrc: 'trace/buy',
productNameSelector: '#form_item_field2', productNameSelector: '#form_item_field2',
columns: traceDirectBuyColumns, columns: traceDirectBuyColumns,
coreTableHeaders: ['请领科室', '请领单号', '请领单状态', '耗材类型', '请领审核时间', '采购单号', '采购审核时间', '进院供应商'], coreTableHeaders: ['请领科室', '请领单号', '请领单状态', '耗材类型', '请领审核时间', '采购单号', '采购审核时间', '销售商(自定义)'],
columnAliases: { columnAliases: {
supplierName: ['进院供应商名称'], supplierName: ['销售商(自定义)名称'],
field5: ['采购计划号'], field5: ['采购计划号'],
deptName: ['请领科室'], deptName: ['请领科室'],
}, },
...@@ -80,9 +80,9 @@ export const traceDirectBuyData: CenterReportPageData & { ...@@ -80,9 +80,9 @@ export const traceDirectBuyData: CenterReportPageData & {
exportDirectDownload: true, exportDirectDownload: true,
exportSelectFirstRow: false, exportSelectFirstRow: false,
exportQueryFromSample: true, exportQueryFromSample: true,
columnSettingsToggleCandidates: ['进院供应商'], columnSettingsToggleCandidates: ['销售商(自定义)'],
comboSampleScrollColumns: ['采购单号', '配送单号', '验收单号', '进院供应商'], comboSampleScrollColumns: ['采购单号', '配送单号', '验收单号', '销售商(自定义)'],
comboSamplePickKeys: ['field2', 'campus', 'deptName'], comboSamplePickKeys: ['field2', 'campus', 'deptName'],
comboSampleDateFromKey: { targetKey: 'field', sourceKey: 'field8' }, comboSampleDateFromKey: { targetKey: 'field', sourceKey: 'field8' },
comboSampleMaxRowScan: 2, comboSampleMaxRowScan: 2,
......
...@@ -4,14 +4,14 @@ import type { DeptQuickFieldDef } from './dept-report-field-defs'; ...@@ -4,14 +4,14 @@ import type { DeptQuickFieldDef } from './dept-report-field-defs';
export const traceDirectDetailColumns = { export const traceDirectDetailColumns = {
field: '请领日期', field: '请领日期',
productName: '产品名称', productName: '物料名称',
spec: '规格型号', spec: '规格型号',
field2: '请领单号', field2: '请领单号',
billForm: '单据形态', billForm: '单据形态',
campus: '院区名称', campus: '院区名称',
field3: '请领科室', field3: '请领科室',
field4: '配送单号', field4: '配送单号',
supplierName: '进院供应商名称', supplierName: '销售商(自定义)名称',
field5: '采购计划单号', field5: '采购计划单号',
field6: '采购单号', field6: '采购单号',
field7: '请领人', field7: '请领人',
...@@ -26,7 +26,7 @@ export const traceDirectDetailColumns = { ...@@ -26,7 +26,7 @@ export const traceDirectDetailColumns = {
field13: '单元含量', field13: '单元含量',
field14: '请领单元数', field14: '请领单元数',
field15: '已入库单元数', field15: '已入库单元数',
supplierName2: '进院供应商', supplierName2: '销售商(自定义)',
field16: '配送时间', field16: '配送时间',
field17: '配送单元数', field17: '配送单元数',
field18: '验收单号', field18: '验收单号',
...@@ -50,7 +50,7 @@ export const traceDirectDetailComboDrawerFields: readonly CenterReportDrawerFiel ...@@ -50,7 +50,7 @@ export const traceDirectDetailComboDrawerFields: readonly CenterReportDrawerFiel
{ key: 'campus', type: 'select', label: '院区名称' }, { key: 'campus', type: 'select', label: '院区名称' },
{ key: 'field3', type: 'select', label: '请领科室' }, { key: 'field3', type: 'select', label: '请领科室' },
{ key: 'field4', type: 'text', label: '配送单号' }, { key: 'field4', type: 'text', label: '配送单号' },
{ key: 'supplierName', type: 'text', label: '进院供应商名称' }, { key: 'supplierName', type: 'text', label: '销售商(自定义)名称' },
{ key: 'field5', type: 'text', label: '采购计划单号' }, { key: 'field5', type: 'text', label: '采购计划单号' },
{ key: 'field6', type: 'text', label: '采购单号' }, { key: 'field6', type: 'text', label: '采购单号' },
{ key: 'field7', type: 'select', label: '请领人' }, { key: 'field7', type: 'select', label: '请领人' },
...@@ -75,7 +75,7 @@ export const traceDirectDetailData: CenterReportPageData & { ...@@ -75,7 +75,7 @@ export const traceDirectDetailData: CenterReportPageData & {
columns: traceDirectDetailColumns, columns: traceDirectDetailColumns,
coreTableHeaders: ['请领单号', '院区', '请领科室', '要货库区', '单据形态', '请领人', '制单时间', '请领审核时间'], coreTableHeaders: ['请领单号', '院区', '请领科室', '要货库区', '单据形态', '请领人', '制单时间', '请领审核时间'],
columnAliases: { columnAliases: {
supplierName: ['进院供应商'], supplierName: ['销售商(自定义)'],
field5: ['采购计划号'], field5: ['采购计划号'],
}, },
...@@ -83,7 +83,7 @@ export const traceDirectDetailData: CenterReportPageData & { ...@@ -83,7 +83,7 @@ export const traceDirectDetailData: CenterReportPageData & {
horizontalScrollTargetColumn: '请领审核时间', horizontalScrollTargetColumn: '请领审核时间',
horizontalScrollDragDelta: 320, horizontalScrollDragDelta: 320,
mockNotExistProduct: '__NOT_EXIST_PRODUCT__99999', mockNotExistProduct: '__NOT_EXIST_PRODUCT__99999',
mockFieldLabel: '产品名称', mockFieldLabel: '物料名称',
drawerResetFieldLabel: '请领单号', drawerResetFieldLabel: '请领单号',
drawerResetFieldKey: 'field2', drawerResetFieldKey: 'field2',
...@@ -102,7 +102,7 @@ export const traceDirectDetailData: CenterReportPageData & { ...@@ -102,7 +102,7 @@ export const traceDirectDetailData: CenterReportPageData & {
exportQueryFromSample: true, exportQueryFromSample: true,
columnSettingsToggleCandidates: ['请领人'], columnSettingsToggleCandidates: ['请领人'],
comboSampleScrollColumns: ['配送单号', '进院供应商', '采购计划号', '采购单号'], comboSampleScrollColumns: ['配送单号', '销售商(自定义)', '采购计划号', '采购单号'],
comboSamplePickKeys: ['field2', 'productName', 'campus'], comboSamplePickKeys: ['field2', 'productName', 'campus'],
comboSampleDateFromKey: { targetKey: 'field', sourceKey: 'field10' }, comboSampleDateFromKey: { targetKey: 'field', sourceKey: 'field10' },
comboSampleMaxRowScan: 2, comboSampleMaxRowScan: 2,
......
...@@ -9,7 +9,7 @@ export const tracePurchaseColumns = { ...@@ -9,7 +9,7 @@ export const tracePurchaseColumns = {
field4: '配送单号', field4: '配送单号',
field5: '验收单号', field5: '验收单号',
field6: '采购单状态', field6: '采购单状态',
supplierName: '进院供应商', supplierName: '销售商(自定义)',
field7: '采购时间', field7: '采购时间',
field8: '采购状态', field8: '采购状态',
field9: '配送时间', field9: '配送时间',
...@@ -28,7 +28,7 @@ export const tracePurchaseComboDrawerFields: readonly CenterReportDrawerField[] ...@@ -28,7 +28,7 @@ export const tracePurchaseComboDrawerFields: readonly CenterReportDrawerField[]
{ key: 'field4', type: 'text', label: '配送单号' }, { key: 'field4', type: 'text', label: '配送单号' },
{ key: 'field5', type: 'text', label: '验收单号' }, { key: 'field5', type: 'text', label: '验收单号' },
{ key: 'field6', type: 'select', label: '采购单状态' }, { key: 'field6', type: 'select', label: '采购单状态' },
{ key: 'supplierName', type: 'text', label: '进院供应商' }, { key: 'supplierName', type: 'text', label: '销售商(自定义)' },
]; ];
export const tracePurchaseComboAssertKeys = ['field2', 'field4', 'field5'] as const; export const tracePurchaseComboAssertKeys = ['field2', 'field4', 'field5'] as const;
...@@ -50,7 +50,7 @@ export const tracePurchaseData: CenterReportPageData & { ...@@ -50,7 +50,7 @@ export const tracePurchaseData: CenterReportPageData & {
columns: tracePurchaseColumns, columns: tracePurchaseColumns,
coreTableHeaders: ['采购单号', '采购时间', '采购状态', '耗材属性', '配送单号', '配送时间', '配送响应时间(H)', '验收单号'], coreTableHeaders: ['采购单号', '采购时间', '采购状态', '耗材属性', '配送单号', '配送时间', '配送响应时间(H)', '验收单号'],
columnAliases: { columnAliases: {
supplierName: ['进院供应商名称'], supplierName: ['销售商(自定义)名称'],
field5: ['采购计划号'], field5: ['采购计划号'],
}, },
...@@ -77,7 +77,7 @@ export const tracePurchaseData: CenterReportPageData & { ...@@ -77,7 +77,7 @@ export const tracePurchaseData: CenterReportPageData & {
exportQueryFromSample: true, exportQueryFromSample: true,
columnSettingsToggleCandidates: ['耗材属性'], columnSettingsToggleCandidates: ['耗材属性'],
comboSampleScrollColumns: ['采购单状态', '配送单号', '验收单号', '进院供应商'], comboSampleScrollColumns: ['采购单状态', '配送单号', '验收单号', '销售商(自定义)'],
comboSamplePickKeys: ['field2', 'field4', 'field5', 'field6', 'supplierName'], comboSamplePickKeys: ['field2', 'field4', 'field5', 'field6', 'supplierName'],
comboSampleDateFromKey: { targetKey: 'field', sourceKey: 'field7' }, comboSampleDateFromKey: { targetKey: 'field', sourceKey: 'field7' },
drawerFields: tracePurchaseComboDrawerFields, drawerFields: tracePurchaseComboDrawerFields,
......
/** 授权变更终审:展开区字段、列设置候选、销售商筛选项与列表列名。 */
export const vendorAuthFinalData = {
collapsedHiddenFilterLabels: ['预转供应商', '原供应商', '状态', '变更类型'] as const,
columnSettingsToggleCandidates: ['制单人', '变更类型', '原供应商', '预转供应商'] as const,
/** 查询条件(现网可能为「销售商」或「销售商(自定义)」) */
supplierFilterLabels: ['销售商(自定义)', '销售商'] as const,
supplierColumnName: '销售商(自定义)名称',
} as const;
/** 授权变更初审:展开区字段、列设置候选、销售商筛选项与列表列名。 */
export const vendorAuthFirstData = {
/** 收起后应不可见的筛选项(用于展开/收起用例) */
collapsedHiddenFilterLabels: ['预转供应商', '原供应商', '医院ID', '医院名称'] as const,
columnSettingsToggleCandidates: ['制单人', '变更类型', '原供应商', '预转供应商'] as const,
/** 查询条件表单项标签 */
supplierFilterLabel: '销售商(自定义)',
/** 列表表头列名(组合查询从首行取值) */
supplierColumnName: '销售商(自定义)名称',
} as const;
/** 注册证差异对比:展开区字段、列设置候选、组合查询列名备选。 */
export const vendorCertDiffData = {
collapsedHiddenFilterLabels: ['望海注册证号', 'FLI+注册证号', '27位医保编码', '生产厂家'] as const,
columnSettingsToggleCandidates: ['规格型号', '生产厂家', '27位医保编码', '望海注册证号', 'FLI+注册证号'] as const,
whCertColumns: ['望海注册证号', '望海-注册证号'] as const,
fliCertColumns: ['FLI+注册证号', 'FLI+ 注册证号'] as const,
medicalDeviceColumns: ['是否医疗器械', '医疗器械'] as const,
} as const;
/** 注册证变更终审:展开区字段、列设置候选(与初审页结构一致)。 */
export const vendorCertFinalData = {
collapsedHiddenFilterLabels: ['预转供应商', '原供应商', '医院ID', '医院名称'] as const,
columnSettingsToggleCandidates: ['制单人', '变更类型', '注册证号(新)', '进院供应商名称'] as const,
} as const;
/** 注册证变更初审:展开区字段、列设置候选、销售商筛选项与列表列名。 */
export const vendorCertFirstData = {
collapsedHiddenFilterLabels: ['预转供应商', '原供应商', '医院ID', '医院名称'] as const,
columnSettingsToggleCandidates: ['制单人', '变更类型', '注册证号(新)', '进院供应商名称'] as const,
/** 查询条件(现网可能为「销售商(自定义)」「销售商」或「进院供应商」) */
supplierFilterLabels: ['销售商(自定义)', '销售商', '进院供应商'] as const,
supplierFilterLabel: '销售商(自定义)',
supplierColumnName: '销售商(自定义)名称',
/** 组合查询从首行取销售商时的备选列表列 */
supplierColumnFallbacks: ['销售商(自定义)名称', '进院供应商名称'] as const,
} as const;
/** 评价指标维护:分类名、排序列、列设置候选(与现网表头/面板一致)。 */
export const vendorEvalIndicatorData = {
level1CategoryName: '指标一级分类',
sortColumns: ['指标编号', '指标名称', '状态'] as const,
columnSettingsToggleCandidates: ['评价类型', '创建人', '创建时间', '备注', '启用人'] as const,
} as const;
/** 评价方案维护:与 CSV / spec 对齐(001 组合、014 展开收起、002/003 列设置、004~013 排序)。 */
export const vendorEvalSchemeSortColumns = [
'方案编码',
'方案名称',
'创建人',
'创建日期',
'启用人',
'启用时间',
'停用人',
'停用时间',
'状态',
'备注',
] as const;
function buildSortColumnCases(): Array<{ id: string; column: string }> {
return vendorEvalSchemeSortColumns.map((column, index) => ({
id: `VENDOR-EVS-${String(4 + index).padStart(3, '0')}`,
column,
}));
}
/** 点击「展开」后应出现的扩展筛选项(与 UI-SPEC / 元素扫描一致)。 */
export const vendorEvalSchemeExpandedFilterLabels = ['启用日期', '方案编码', '方案名称'] as const;
export const vendorEvalSchemeData = {
sortColumns: [...vendorEvalSchemeSortColumns],
sortColumnCases: buildSortColumnCases(),
expandedFilterLabels: [...vendorEvalSchemeExpandedFilterLabels],
} as const;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment