提交
This commit is contained in:
1 parent
b15d1ddde3
commit
c270d14057
348 files changed
+50251
-45978
No files matched your search
@@ -4,7 +4,8 @@ import {
|
||||
buildPlPlanListSpanMethod,
|
||||
flattenPlanListRows,
|
||||
getPlanListDisplayIndex,
|
||||
type PlPlanListDisplayRow
|
||||
type PlPlanListDisplayRow,
|
||||
type PlPlanListDisplayRowKind
|
||||
} from '@/utils/pl-plan-list-display-rows'
|
||||
|
||||
export function usePlPlanMergeListTable(options: {
|
||||
@@ -15,8 +16,17 @@ export function usePlPlanMergeListTable(options: {
|
||||
onView?: (plan: Plan) => void
|
||||
/** 计划区固定合并列数:默认 3(勾选+序号+计划编号);无勾选列时传 2 */
|
||||
fixedMergeColCount?: number
|
||||
/** 仅展示装货或送货段;未传或两种都选时展示全部段次 */
|
||||
stopKinds?: Ref<PlPlanListDisplayRowKind[] | null> | ComputedRef<PlPlanListDisplayRowKind[] | null>
|
||||
/** 客户列多关键字:只保留名称包含任一关键字的段次 */
|
||||
stopCustomerKeywords?: Ref<string[] | null> | ComputedRef<string[] | null>
|
||||
}) {
|
||||
const displayRows = computed(() => flattenPlanListRows(unref(options.planList)))
|
||||
const displayRows = computed(() =>
|
||||
flattenPlanListRows(unref(options.planList), {
|
||||
kinds: options.stopKinds ? unref(options.stopKinds) : null,
|
||||
customerKeywords: options.stopCustomerKeywords ? unref(options.stopCustomerKeywords) : null
|
||||
})
|
||||
)
|
||||
|
||||
const planListSpanMethod = computed(() =>
|
||||
buildPlPlanListSpanMethod(
|
||||
|
||||
Reference in new issue
Block a user