From aae01669d03417af61d87af5b869afefd235252d Mon Sep 17 00:00:00 2001 From: WUSIJIAN <13825895+wsj0228@user.noreply.gitee.com> Date: Tue, 13 Jan 2026 16:12:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8SKU=E7=AE=A1=E7=90=86=E4=B8=AD?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=A7=84=E6=A0=BC=E5=8D=95=E4=BD=8D=E5=92=8C?= =?UTF-8?q?=E8=A7=84=E6=A0=BC=E6=95=B0=E9=87=8F=E5=AD=97=E6=AE=B5,?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=B9=B6=E8=B0=83=E6=95=B4=E5=88=97=E5=AE=BD=E5=B8=83?= =?UTF-8?q?=E5=B1=80,=E5=90=8C=E6=97=B6=E4=BF=AE=E6=94=B9=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=B1=9E=E6=80=A7=E7=B1=BB=E5=9E=8B=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E4=BB=A5=E5=8C=B9=E9=85=8D=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E6=8E=A5=E5=8F=A3=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/assets/asset/index.ts | 9 ++ src/api/assets/category/index.ts | 2 +- .../assets/asset/component/skuDialog.vue | 108 ++++++++++++++++-- 3 files changed, 108 insertions(+), 11 deletions(-) diff --git a/src/api/assets/asset/index.ts b/src/api/assets/asset/index.ts index 33f641e..b8a84b0 100644 --- a/src/api/assets/asset/index.ts +++ b/src/api/assets/asset/index.ts @@ -154,3 +154,12 @@ export function deleteAssetSku(id: string) { params: { id }, }); } + +// 获取规格单位选项 +export function getSpecsUnitOptions(assetType: string) { + return newService({ + url: '/assets/enum/getSpecsUnit', + method: 'get', + params: { assetType }, + }); +} diff --git a/src/api/assets/category/index.ts b/src/api/assets/category/index.ts index b8f7316..ab5943a 100644 --- a/src/api/assets/category/index.ts +++ b/src/api/assets/category/index.ts @@ -23,7 +23,7 @@ export function getCategory(id: string) { // 获取属性类型选项 export function getCategoryAttrTypeOptions() { return newService({ - url: '/assets/category/getCategoryAttrTypeOptions', + url: '/assets/enum/getCategoryAttrType', method: 'get', }); } diff --git a/src/views/assets/asset/component/skuDialog.vue b/src/views/assets/asset/component/skuDialog.vue index 88b0a6a..eec4b1e 100644 --- a/src/views/assets/asset/component/skuDialog.vue +++ b/src/views/assets/asset/component/skuDialog.vue @@ -1,5 +1,5 @@ - - - + + + + + + +