|
|
@ -65,6 +65,7 @@ export default defineComponent({ |
|
|
|
rowKey: propTypes.string.def(''), |
|
|
|
// true 取消父子关联; false 关联 |
|
|
|
isCheckStrictly: propTypes.bool.def(false), |
|
|
|
isShowPackNumber:propTypes.bool.def(false),// 默认不显示包装号,采购收货记录显示包装号 |
|
|
|
}, |
|
|
|
emits: ['update:pageSize', 'update:currentPage', 'register', 'update:sort','getSelectionRows','rowClick'], |
|
|
|
setup(props, { attrs, slots, emit, expose }) { |
|
|
@ -103,8 +104,8 @@ export default defineComponent({ |
|
|
|
|
|
|
|
const setColumn = (columnProps: TableSetPropsType[], columnsChildren?: TableColumn[]) => { |
|
|
|
let { columns } = unref(getProps) |
|
|
|
|
|
|
|
if (!wsCache.get('ShowPackingNumber')) { |
|
|
|
console.log(888,props.isShowPackNumber) |
|
|
|
if (!wsCache.get('ShowPackingNumber')&&!props.isShowPackNumber) { |
|
|
|
if (columns) { |
|
|
|
columns = columns.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber'&& item.field != 'toPackingNumber') |
|
|
|
} |
|
|
@ -346,7 +347,9 @@ export default defineComponent({ |
|
|
|
showOverflowTooltip, |
|
|
|
border |
|
|
|
} = unref(getProps) |
|
|
|
if (!wsCache.get('ShowPackingNumber')) { |
|
|
|
|
|
|
|
console.log(999,props.isShowPackNumber) |
|
|
|
if (!wsCache.get('ShowPackingNumber') && !props.isShowPackNumber) { |
|
|
|
if (columns) { |
|
|
|
columns = columns.filter(item => item.field != 'packingNumber' && item.field != 'fromPackingNumber'&& item.field != 'toPackingNumber') |
|
|
|
} |
|
|
|