From d68b036a3b3c67273b8effa3c9925ef3869a91ba Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 07 二月 2024 13:56:50 +0800
Subject: [PATCH] wms项目 wms系统参数设置的页面开发+路由+是否显示表头配置

---
 src/api/data.js |  222 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 221 insertions(+), 1 deletions(-)

diff --git a/src/api/data.js b/src/api/data.js
index baf311a..37e68c5 100644
--- a/src/api/data.js
+++ b/src/api/data.js
@@ -17,9 +17,229 @@
     id: 4
   }
 ]
-
+// 浠撳簱
+// 鍏ュ悜杩愯緭
+const inboundTransportation = [
+  {
+    name: "鐩存帴鎺ユ敹浜у搧锛�1姝ユ敹璐э級",
+    id: 1,
+    disabled: false
+  },
+  {
+    name: "鎺ュ埌浜у搧鍒版敹鏂欏尯锛屽啀鍏ュ簱锛�2姝ユ敹璐э級",
+    id: 2,
+    disabled: true
+  },
+  {
+    name: "鎺ユ敹浜у搧鍒版敹鏂欏尯锛屾楠岋紝鐒跺悗鍏ュ簱锛�3姝ユ敹璐э級",
+    id: 3,
+    disabled: true
+  }
+]
+// 鍑哄簱杩愯緭
+const outboundTransportation = [
+  {
+    name: "鐩存帴鍑哄簱锛�1姝ワ級",
+    id: 1,
+    disabled: false
+  },
+  {
+    name: "閫佸埌寰呭嚭搴撳尯锛屽啀閫佽揣锛�2姝ュ彂璐э級",
+    id: 2,
+    disabled: true
+  },
+  {
+    name: "鍖呰浜у搧锛屽彂閫佸埌寰呭嚭搴撳尯锛屽啀閫佽揣锛�3姝ュ彂璐э級",
+    id: 3,
+    disabled: true
+  }
+]
+// 涓氬姟绫诲瀷
+// 浣滀笟绫诲瀷
+const baseOperationType = [
+  {
+    name: "鍏ュ簱",
+    id: 1
+  },
+  {
+    name: "鍑哄簱",
+    id: 2
+  },
+  {
+    name: "鍐呴儴璋冩嫧",
+    id: 3
+  }
+]
+//鍒涘缓娆犲崟
+const createBackorder = [
+  {
+    name: "鎻愰棶",
+    id: 1
+  },
+  {
+    name: "鎬绘槸",
+    id: 2
+  },
+  {
+    name: "浠庝笉",
+    id: 3
+  }
+]
+//淇濈暀鏂瑰紡 鍦ㄩ瀹氭棩鏈熶箣鍓�=3
+const reservationMethod = [
+  {
+    name: "纭鏃�",
+    id: 1
+  },
+  {
+    name: "鎵嬪伐",
+    id:2
+  }
+]
+// 浜у搧绫诲埆
+// 寮哄埗涓嬫灦绛栫暐
+const forceRemovalStrategy = [
+  {
+    name: "鍏堣繘鍏堝嚭",
+    id: 1
+  },
+  {
+    name: "鍏堣繘鍚庡嚭",
+    id: 2
+  },
+  {
+    name: "鏃犺鍒欓殢鏈哄嚭",
+    id: 3
+  }
+]
+//鎴愭湰鏂规硶
+const costingMethod = [
+  {
+    name: "鏍囧噯浠锋牸",
+    id: 1
+  },
+  {
+    name: "鍏堣繘鍏堝嚭 (FIFO)",
+    id: 2
+  },
+  {
+    name: "骞冲潎鎴愭湰锛圓VCO锛�",
+    id: 3
+  }
+]
+// 搴撳瓨璁′环
+const inventoryValuation = [
+  {
+    name: "鎵嬪姩",
+    id: 1
+  },
+  {
+    name: "鑷姩",
+    id: 2
+  }
+]
+// 浣嶇疆
+// 浣嶇疆绫诲瀷
+const positionType = [
+  {
+    name: "渚涘簲鍟嗕綅缃�",
+    id: 1
+  },
+  {
+    name: "瑙嗗浘",
+    id: 2
+  },
+  {
+    name: "鍐呴儴浣嶇疆",
+    id: 3
+  },
+  {
+    name: "瀹㈡埛浣嶇疆",
+    id: 4
+  },
+  {
+    name: "搴撳瓨鎹熷け",
+    id: 5
+  },
+  {
+    name: "鐢熶骇",
+    id: 6
+  },
+  {
+    name: "涓浆浣嶇疆",
+    id: 7
+  },
+  {
+    name: "鎶ュ簾浣嶇疆",
+    id: 8
+  },
+  {
+    name: "搴撳瓨鐩樼偣",
+    id: 9
+  }
+]
+// 鍑哄叆搴撴槑缁� 涓氬姟绫诲瀷
+const baseOperationTypeTwo=[
+  {
+    name: "鏀惰揣",
+    id: 1
+  },
+  {
+    name: "浜よ揣",
+    id: 2
+  },
+  {
+    name: "鍐呴儴璋冩嫧",
+    id: 3
+  },
+  {
+    name: "鎶ュ簾",
+    id: 4
+  },
+  {
+    name: "搴撳瓨鐩樼偣",
+    id: 5
+  },
+]
+//閲囪喘绫诲瀷
+const purchaseType = [
+  {
+    name: "閲囪喘",
+    id: 1,
+  },
+  {
+    name: "鑷埗",
+    id: 2,
+  },
+  {
+    name: "濮斿",
+    id: 3,
+  },
+];
 export const getDataByType = (type) => {
   if (type == "purchaseStatus") {
     return purchaseStatus
+  } else if (type == "inboundTransportation") {
+    return inboundTransportation
+  } else if (type == "outboundTransportation") {
+    return outboundTransportation
+  } else if (type == "baseOperationType") {
+    return baseOperationType
+  } else if (type == "createBackorder") {
+    return createBackorder
+  } else if (type == "reservationMethod") {
+    return reservationMethod
+  } else if (type == "forceRemovalStrategy") {
+    return forceRemovalStrategy
+  } else if (type == "costingMethod") {
+    return costingMethod
+  } else if (type == "inventoryValuation") {
+    return inventoryValuation
+  } else if (type == "positionType") {
+    return positionType
+  }else if(type=='baseOperationTypeTwo'){
+    return baseOperationTypeTwo
+  }else if(type=='purchaseType'){
+    return purchaseType;
   }
 }

--
Gitblit v1.8.0