haoxuan
2023-12-26 eed27d3000e127c433fd45609d0d5e5d06b7868c
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;
  }
}