From 1be1b02ce28638c92076e4d40afec70a3f4c2249 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 07 五月 2024 14:37:02 +0800 Subject: [PATCH] 产品模块 启用多单位点击取消关闭复选框+点击确定的时候增加至少填写一项的校验 --- src/api/data.js | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/api/data.js b/src/api/data.js index 37e68c5..311de84 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -216,6 +216,25 @@ 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 @@ -241,5 +260,7 @@ return baseOperationTypeTwo }else if(type=='purchaseType'){ return purchaseType; + }else if(type=='grossUnit'){ + return grossUnit; } } -- Gitblit v1.8.0