mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 00:39:20 +08:00
refactor: 移除商品与规格的 linkName 字段
- 移除 ec_product.link_name 与 ec_product_spec.link_name 列(迁移脚本 V20260507 已执行) - 同步移除后端 DTO/PO/VO/ImportHelper 中对 linkName 的引用
This commit is contained in:
@@ -37,8 +37,6 @@ export namespace ProductDTO {
|
||||
export interface Spec {
|
||||
/** 规格名称 */
|
||||
name: string;
|
||||
/** 链接规格名称 */
|
||||
linkName?: string;
|
||||
/** 规格编码 */
|
||||
specCode?: string;
|
||||
/** 商品成本 */
|
||||
@@ -75,8 +73,6 @@ export namespace ProductDTO {
|
||||
id?: number;
|
||||
/** 规格名称 */
|
||||
name: string;
|
||||
/** 链接规格名称 */
|
||||
linkName?: string;
|
||||
/** 规格编码 */
|
||||
specCode?: string;
|
||||
/** 商品成本 */
|
||||
|
||||
@@ -15,8 +15,6 @@ export namespace ProductVO {
|
||||
categoryName?: string;
|
||||
/** 商品名称 */
|
||||
name: string;
|
||||
/** 链接商品名称 */
|
||||
linkName?: string;
|
||||
/** 商品编码 */
|
||||
productCode?: string;
|
||||
/** 主图URL */
|
||||
@@ -62,8 +60,6 @@ export namespace ProductVO {
|
||||
productName: string;
|
||||
/** 规格名称 */
|
||||
name: string;
|
||||
/** 链接规格名称 */
|
||||
linkName?: string;
|
||||
/** 规格编码 */
|
||||
specCode?: string;
|
||||
/** 商品成本 */
|
||||
|
||||
@@ -680,7 +680,6 @@ onMounted(async () => {
|
||||
>
|
||||
<template #content>
|
||||
<div>商品名称:{{ row.product.name }}</div>
|
||||
<div>链接名称:{{ row.product.linkName || '-' }}</div>
|
||||
<div>商品编码:{{ row.product.productCode || '-' }}</div>
|
||||
</template>
|
||||
<a
|
||||
@@ -704,7 +703,6 @@ onMounted(async () => {
|
||||
>
|
||||
<template #content>
|
||||
<div>规格名称:{{ row.productSpec.name }}</div>
|
||||
<div>链接名称:{{ row.productSpec.linkName || '-' }}</div>
|
||||
<div>规格编码:{{ row.productSpec.specCode || '-' }}</div>
|
||||
</template>
|
||||
<span style="cursor: default">{{ row.productSpec.name }}</span>
|
||||
|
||||
-4
@@ -207,7 +207,6 @@ function initFormData() {
|
||||
) {
|
||||
const mapSpec = (spec: ProductVO.SpecInfo) => ({
|
||||
name: spec.name || spec.specCode || '',
|
||||
linkName: spec.linkName || '',
|
||||
specCode: spec.specCode || '',
|
||||
productCost: spec.productCost ?? 0,
|
||||
shippingCost: spec.shippingCost ?? 0,
|
||||
@@ -294,7 +293,6 @@ async function handleSubmit() {
|
||||
_clientKey: _c,
|
||||
id,
|
||||
name,
|
||||
linkName,
|
||||
specCode,
|
||||
productCost,
|
||||
shippingCost,
|
||||
@@ -303,7 +301,6 @@ async function handleSubmit() {
|
||||
} = row;
|
||||
const base = {
|
||||
name,
|
||||
linkName: linkName || undefined,
|
||||
specCode: specCode ?? '',
|
||||
productCost: productCost ?? 0,
|
||||
shippingCost: shippingCost ?? 0,
|
||||
@@ -442,7 +439,6 @@ function removeNewImage() {
|
||||
const defaultSpec = (): SpecFormRow => ({
|
||||
_clientKey: `new-${++nextSpecClientKey}`,
|
||||
name: '',
|
||||
linkName: '',
|
||||
specCode: '',
|
||||
productCost: 0,
|
||||
shippingCost: 0,
|
||||
|
||||
Reference in New Issue
Block a user