import dayjs from "dayjs";
export const $types = [{
		title: "计量商品",
		desc: '单价购买',
		value: 'normal'
	},
	{
		title: "多规格",
		desc: '多种不同规格',
		value: 'sku'
	},
	{
		title: "套餐组合",
		desc: '选择多种组合',
		value: 'group'
	},
	{
		title: "称重商品",
		desc: '按重量售卖',
		value: 'weight'
	},
	{
		title: "时价商品",
		desc: '收银端可更改价格',
		value: 'currentPrice'
	}
]

// 商品默认sku
export const $defaultSku = {
	salePrice: '',
	memberPrice: '',
	costPrice: '',
	originPrice: '',
	// stockNumber: '',
	firstShared: '',
	suit: 1,
	barCode: `${uni.getStorageSync("shopId")}${dayjs().valueOf()}`,
}


// 库存记录筛选类型
export const $invoicingType = [{
		text: '全部',
		value: ''
	},
	{
		text: '供应商入库',
		value: 'purveyor'
	},
	{
		text: '供应商退货',
		value: 'reject'
	},
	{
		text: '其他入库',
		value: 'purchase'
	},
	{
		text: '其他出库',
		value: 'other-out'
	}
]

// 页面常用数据
export const $pageData = {
	query: {
		page: 0,
		size: 10
	},
	totalElements: 0,
	list: [],
	hasAjax: false,
}