productId.js 463 Bytes
export function formatProductId(value) {
	return value || "-";
}

export function createProductIdFilter() {
	return {
		label: "产品ID",
		name: "commodityCode",
		type: "input",
		isClear: true,
		placeholder: "请输入产品ID",
	};
}

export function createProductIdColumn(options = {}) {
	return {
		label: "产品ID",
		prop: "upgradeGoodsCommodityCode",
		formatter: cellValue => formatProductId(cellValue.upgradeGoodsCommodityCode),
		...options,
	};
}