yangfeng
2024-03-19 ef06a897369a84e4c1e3a9d5a8aeea5572d973bd
src/api/data.js
@@ -1,59 +1,14 @@
// 采购状态
const purchaseStatus=[
  {
    name:'已下单',
    id:1,
  },
  {
    name:'到货质检',
    id:2,
  },
  {
    name:'已入库',
    id:3,
  },
  {
    name:'已完成',
    id:4,
  },
]
// 质检单状态
const qualityStatus=[
  {
    name:'待质检',
    id:1,
  },
  {
    name:'已完成',
    id:2,
  }
]
// 退货单状态
const returnedStatus=[
  {
    name:'待发货',
    id:1,
  },
  {
    name:'待签收',
    id:2,
  },
  {
    name:'待发货',
    id:3,
  },
  {
    name:'已完成',
    id:4,
  },
// 检查项目名称
const projectOptions = [
  { id: 1, value: "纤度偏差" },
  { id: 2, value: "二次变化" },
  { id: 3, value: "清洁分" },
  { id: 4, value: "洁净分" },
  { id: 5, value: "最大偏差" }
]
export const getDataByType = type => {
  if(type =='purchaseStatus'){
    return purchaseStatus;
  }else if(type=='qualityStatus'){
    return qualityStatus;
  }else if(type=='returnedStatus'){
    return returnedStatus;
export const getDataByType = (type) => {
  if (type == "projectOptions") {
    return projectOptions
  }
}