src/api/data.js
@@ -9,9 +9,34 @@ id: 2 } ] // 采购状态 const purchaseStatus=[ { name:"待确认", id:1, }, { name:'待入库', id:2, }, { name:'已入库', id:3, }, { name:'已完成', id:4, }, { name:'已取消', id:5, }, ] export const getDataByType = (type) => { if (type == "deliveryType") { return deliveryType }else if(type=='purchaseStatus'){ return purchaseStatus; } }