diff --git a/src/views/hard/hard-spu/form.vue b/src/views/hard/hard-spu/form.vue index 29a7add..1352558 100644 --- a/src/views/hard/hard-spu/form.vue +++ b/src/views/hard/hard-spu/form.vue @@ -40,7 +40,7 @@ - + @@ -174,7 +174,7 @@ const gethardSpuData = (id: string) => { hardSpu .getObj(id) .then((res: any) => { - Object.assign(form, res.data, { price: Number(displayPrice(res.data.price, "", 0)) }) + Object.assign(form, res.data, { price: displayPrice(res.data.price, "") }) }) .finally(() => { loading.value = false diff --git a/src/views/hard/hard-spu/index.vue b/src/views/hard/hard-spu/index.vue index 9f7c8e1..0ef8981 100644 --- a/src/views/hard/hard-spu/index.vue +++ b/src/views/hard/hard-spu/index.vue @@ -13,39 +13,32 @@ - {{ $t("common.queryBtn") }} + {{ $t("common.queryBtn") + }} {{ $t("common.resetBtn") }} - 拉取商品 - + + 拉取商品 + 新 增 - + 删除 - + - + @@ -107,34 +100,24 @@ - + 编辑 - + 审核进度 - + 删除 - + @@ -194,12 +177,13 @@ const selectionChangHandle = (objs: { id: string }[]) => { // 同步全部 const syncAll = async () => { + const spuName = state.queryForm.name try { - await useMessageBox().confirm("是否同步全部商品") + await useMessageBox().confirm(`是否同步${spuName ? `关键字为[${spuName}]的` : "全部"}商品`) } catch { return } - hardSpu.asyncAll() + hardSpu.asyncAll({ name: spuName }) } // 删除操作