src/api/data.js
@@ -201,6 +201,21 @@ id: 5 }, ] //采购类型 const purchaseType = [ { name: "采购", id: 1, }, { name: "自制", id: 2, }, { name: "委外", id: 3, }, ]; export const getDataByType = (type) => { if (type == "purchaseStatus") { return purchaseStatus @@ -224,5 +239,7 @@ return positionType }else if(type=='baseOperationTypeTwo'){ return baseOperationTypeTwo }else if(type=='purchaseType'){ return purchaseType; } }