feat(api): 添加 parentId 和 choiceContent 字段支持

- 在 cmsDesign 模型中添加 parentId 字段
- 在 hjmChoices 模型中添加 choiceContent 字段
- 更新 shopExpressTemplate 模型字段注释并添加 sortNumber 和 comments 字段
- 更新 shopGoodsCoupon 模型添加 comments 字段- 在多个 Vue 组件中移除冗余字段并设置默认值- 移除未使用的导入和相关逻辑代码
- 清理版本管理页面的无用代码和样式
This commit is contained in:
2025-09-26 11:52:30 +08:00
parent 6ee52c4945
commit 1d3a94437c
18 changed files with 13 additions and 146 deletions

View File

@@ -140,16 +140,12 @@
title: undefined,
firstAmount: undefined,
extraAmount: undefined,
status: undefined,
deleted: undefined,
tenantId: undefined,
createTime: undefined,
updateTime: undefined,
sortNumber: undefined,
firstNum: undefined,
extraNum: undefined,
shopExpressTemplateId: undefined,
shopExpressTemplateName: '',
status: 0,
comments: '',
sortNumber: 100

View File

@@ -118,7 +118,6 @@
import { storeToRefs } from 'pinia';
import { ItemType } from 'ele-admin-pro/es/ele-image-upload/types';
import { FormInstance } from 'ant-design-vue/es/form';
import { FileRecord } from '@/api/system/file/model';
// 是否是修改
const isUpdate = ref(false);
@@ -158,16 +157,11 @@
firstAmount: undefined,
extraAmount: undefined,
extraNum: undefined,
status: undefined,
deleted: undefined,
tenantId: undefined,
createTime: undefined,
updateTime: undefined,
sortNumber: undefined,
shopExpressTemplateDetailId: undefined,
shopExpressTemplateDetailName: '',
status: 0,
comments: '',
sortNumber: 100
});
@@ -188,20 +182,6 @@
]
});
const chooseImage = (data: FileRecord) => {
images.value.push({
uid: data.id,
url: data.path,
status: 'done'
});
form.image = data.path;
};
const onDeleteItem = (index: number) => {
images.value.splice(index, 1);
form.image = '';
};
const { resetFields } = useForm(form, rules);
/* 保存编辑 */
@@ -239,13 +219,6 @@
images.value = [];
if (props.data) {
assignObject(form, props.data);
if(props.data.image){
images.value.push({
uid: uuid(),
url: props.data.image,
status: 'done'
})
}
isUpdate.value = true;
} else {
isUpdate.value = false;

View File

@@ -83,7 +83,6 @@
import { storeToRefs } from 'pinia';
import { ItemType } from 'ele-admin-pro/es/ele-image-upload/types';
import { FormInstance } from 'ant-design-vue/es/form';
import { FileRecord } from '@/api/system/file/model';
// 是否是修改
const isUpdate = ref(false);
@@ -117,15 +116,11 @@
id: undefined,
goodsId: undefined,
issueCouponId: undefined,
sortNumber: undefined,
status: undefined,
deleted: undefined,
userId: undefined,
tenantId: undefined,
createTime: undefined,
updateTime: undefined,
shopGoodsCouponId: undefined,
shopGoodsCouponName: '',
status: 0,
comments: '',
sortNumber: 100
@@ -148,20 +143,6 @@
]
});
const chooseImage = (data: FileRecord) => {
images.value.push({
uid: data.id,
url: data.path,
status: 'done'
});
form.image = data.path;
};
const onDeleteItem = (index: number) => {
images.value.splice(index, 1);
form.image = '';
};
const { resetFields } = useForm(form, rules);
/* 保存编辑 */
@@ -199,13 +180,6 @@
images.value = [];
if (props.data) {
assignObject(form, props.data);
if(props.data.image){
images.value.push({
uid: uuid(),
url: props.data.image,
status: 'done'
})
}
isUpdate.value = true;
} else {
isUpdate.value = false;