// 采购状态 const purchaseStatus = [ { name: "已下单", id: 1 }, { name: "到货质检", id: 2 }, { name: "已入库", id: 3 }, { name: "已完成", id: 4 } ] export const getDataByType = (type) => { if (type == "purchaseStatus") { return purchaseStatus } }