From 327b3157bb7e155d3333017bc2ddd66611ea06a9 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期二, 26 九月 2023 19:34:11 +0800 Subject: [PATCH] 库存调整、上架规则 --- src/api/data.js | 98 ++++++++++++++++++++++++------------------------ 1 files changed, 49 insertions(+), 49 deletions(-) diff --git a/src/api/data.js b/src/api/data.js index 36a8533..8e0ad06 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -17,61 +17,61 @@ id: 4 } ] -// 浠撳簱 +// 浠撳簱 // 鍏ュ悜杩愯緭 -const inboundTransportation=[ +const inboundTransportation = [ { - name:'鐩存帴鎺ユ敹浜у搧锛�1姝ユ敹璐э級', - id:1, - disabled:false, + name: "鐩存帴鎺ユ敹浜у搧锛�1姝ユ敹璐э級", + id: 1, + disabled: false }, { - name:'鎺ュ埌浜у搧鍒版敹鏂欏尯锛屽啀鍏ュ簱锛�2姝ユ敹璐э級', - id:2, - disabled:true, + name: "鎺ュ埌浜у搧鍒版敹鏂欏尯锛屽啀鍏ュ簱锛�2姝ユ敹璐э級", + id: 2, + disabled: true }, { - name:'鎺ユ敹浜у搧鍒版敹鏂欏尯锛屾楠岋紝鐒跺悗鍏ュ簱锛�3姝ユ敹璐э級', - id:3, - disabled:true, + name: "鎺ユ敹浜у搧鍒版敹鏂欏尯锛屾楠岋紝鐒跺悗鍏ュ簱锛�3姝ユ敹璐э級", + id: 3, + disabled: true } ] // 鍑哄簱杩愯緭 -const outboundTransportation=[ +const outboundTransportation = [ { - name:'鐩存帴鍑哄簱锛�1姝ワ級', - id:1, - disabled:false, + name: "鐩存帴鍑哄簱锛�1姝ワ級", + id: 1, + disabled: false }, { - name:'閫佸埌寰呭嚭搴撳尯锛屽啀閫佽揣锛�2姝ュ彂璐э級', - id:2, - disabled:true, + name: "閫佸埌寰呭嚭搴撳尯锛屽啀閫佽揣锛�2姝ュ彂璐э級", + id: 2, + disabled: true }, { - name:'鍖呰浜у搧锛屽彂閫佸埌寰呭嚭搴撳尯锛屽啀閫佽揣锛�3姝ュ彂璐э級', - id:3, - disabled:true, + name: "鍖呰浜у搧锛屽彂閫佸埌寰呭嚭搴撳尯锛屽啀閫佽揣锛�3姝ュ彂璐э級", + id: 3, + disabled: true } ] // 涓氬姟绫诲瀷 -// 浣滀笟绫诲瀷 -const baseOperationType=[ +// 浣滀笟绫诲瀷 +const baseOperationType = [ { - name: "鏀惰揣", + name: "鍏ュ簱", id: 1 }, { - name: "鍙戣揣", + name: "鍑哄簱", id: 2 }, { name: "鍐呴儴璋冩嫧", id: 3 - }, + } ] //鍒涘缓娆犲崟 -const createBackorder=[ +const createBackorder = [ { name: "鎻愰棶", id: 1 @@ -83,10 +83,10 @@ { name: "浠庝笉", id: 3 - }, + } ] //淇濈暀鏂瑰紡 鍦ㄩ瀹氭棩鏈熶箣鍓�=3 -const reservationMethod=[ +const reservationMethod = [ { name: "纭鏃�", id: 1 @@ -96,9 +96,9 @@ id: 2 } ] -// 浜у搧绫诲埆 +// 浜у搧绫诲埆 // 寮哄埗涓嬫灦绛栫暐 -const forceRemovalStrategy=[ +const forceRemovalStrategy = [ { name: "First In First Out (FIFO)", id: 1 @@ -110,10 +110,10 @@ { name: "Closest Location", id: 3 - }, + } ] //鎴愭湰鏂规硶 -const costingMethod=[ +const costingMethod = [ { name: "鏍囧噯浠锋牸", id: 1 @@ -125,10 +125,10 @@ { name: "骞冲潎鎴愭湰锛圓VCO锛�", id: 3 - }, + } ] // 搴撳瓨璁′环 -const inventoryValuation=[ +const inventoryValuation = [ { name: "鎵嬪姩", id: 1 @@ -140,7 +140,7 @@ ] // 浣嶇疆 // 浣嶇疆绫诲瀷 -const positionType=[ +const positionType = [ { name: "渚涘簲鍟嗕綅缃�", id: 1 @@ -173,23 +173,23 @@ export const getDataByType = (type) => { if (type == "purchaseStatus") { return purchaseStatus - }else if(type=='inboundTransportation'){ + } else if (type == "inboundTransportation") { return inboundTransportation - }else if(type=='outboundTransportation'){ + } 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'){ + } 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'){ + } else if (type == "costingMethod") { return costingMethod - }else if(type=='inventoryValuation'){ + } else if (type == "inventoryValuation") { return inventoryValuation - }else if(type=='positionType'){ - return positionType; + } else if (type == "positionType") { + return positionType } } -- Gitblit v1.8.0