From 31df83987f8209d49f0625f6e334101a7f003e86 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 17 四月 2024 14:32:07 +0800 Subject: [PATCH] 产品编辑单位模块 设置默认值的时候,自动把其他的关闭,不用手动取消+增加的时候自动滚动到底部 --- src/api/data.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/api/data.js b/src/api/data.js index d748f82..311de84 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -201,6 +201,40 @@ id: 5 }, ] +//閲囪喘绫诲瀷 +const purchaseType = [ + { + name: "閲囪喘", + id: 1, + }, + { + name: "鑷埗", + id: 2, + }, + { + name: "濮斿", + id: 3, + }, +]; +// 鐗╂枡 姣涢噸锛屽噣閲嶇殑鍗曚綅 +const grossUnit=[ + { + name: "g", + id: 1, + }, + { + name: "kg", + id: 2, + }, + { + name: "鍚�", + id: 3, + }, + { + name: "鏂�", + id: 4, + }, +] export const getDataByType = (type) => { if (type == "purchaseStatus") { return purchaseStatus @@ -224,5 +258,9 @@ return positionType }else if(type=='baseOperationTypeTwo'){ return baseOperationTypeTwo + }else if(type=='purchaseType'){ + return purchaseType; + }else if(type=='grossUnit'){ + return grossUnit; } } -- Gitblit v1.8.0