From 094d2dcab7e057e5c4f5f96c30c164795a8d96cc Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期日, 28 四月 2024 19:10:59 +0800
Subject: [PATCH] 相关供应商分页报错的问题修改
---
src/api/data.js | 64 +++++++++++++++++++++++++------
1 files changed, 51 insertions(+), 13 deletions(-)
diff --git a/src/api/data.js b/src/api/data.js
index a885f6b..70f58ef 100644
--- a/src/api/data.js
+++ b/src/api/data.js
@@ -1,26 +1,64 @@
// 閲囪喘鐘舵��
-const purchaseStatus=[
+const purchaseStatus = [
+ { id: 1, name: "寰呯‘璁�" },
+ { id: 2, name: "寰呭叆搴�" },
+ { id: 3, name: "宸插叆搴�" },
+ { id: 4, name: "宸插畬鎴�" },
+ { id: 5, name: "宸插彇娑�" },
+ { id: 6, name: "寰呮敹璐�" },
+ { id: 7, name: "閮ㄥ垎鏀惰揣" },
+ { id: 8, name: "寰呰川妫�" },
+]
+// 鏀惰揣鐘舵��
+const receiveStatus = [
+ { id: 1, name: "寰呯‘璁�" },
+ { id: 2, name: "寰呭叆搴�" },
+ { id: 3, name: "宸插叆搴�" },
+ { id: 4, name: "宸插畬鎴�" },
+ { id: 5, name: "宸插彇娑�" },
+ { id: 6, name: "寰呮敹璐�" },
+ { id: 7, name: "閮ㄥ垎鏀惰揣" },
+ { id: 8, name: "寰呰川妫�" },
+]
+// 璐ㄦ鍗曠姸鎬�
+const qualityStatus = [
{
- name:'宸蹭笅鍗�',
- id:1,
+ name: "寰呰川妫�",
+ id: 1
},
{
- name:'鍒拌揣璐ㄦ',
- id:2,
+ name: "宸插畬鎴�",
+ id: 2
+ }
+]
+// 閫�璐у崟鐘舵��
+const returnedStatus = [
+ {
+ name: "寰呭彂璐�",
+ id: 1
},
{
- name:'宸插叆搴�',
- id:3,
+ name: "寰呯鏀�",
+ id: 2
},
{
- name:'宸插畬鎴�',
- id:4,
+ name: "寰呭彂璐�",
+ id: 3
},
+ {
+ name: "宸插畬鎴�",
+ id: 4
+ }
]
-
-export const getDataByType = type => {
- if(type =='purchaseStatus'){
- return purchaseStatus;
+export const getDataByType = (type) => {
+ if (type == "purchaseStatus") {
+ return purchaseStatus
+ } else if (type == "qualityStatus") {
+ return qualityStatus
+ } else if (type == "returnedStatus") {
+ return returnedStatus
+ } else if (type == "receiveStatus") {
+ return receiveStatus
}
}
--
Gitblit v1.8.0