refactor: 移除未使用的商品规格相关 API 接口与组件,优化用户管理与物流功能

- 删除了与商品规格相关的 API 接口和组件,简化代码结构。
- 更新用户管理功能,确保表单字段与验证规则一致。
- 优化物流添加与编辑功能,确保请求参数的正确性与一致性。
This commit is contained in:
田香琪
2026-07-16 16:52:55 +08:00
parent 7804d4eba6
commit 7e87214b6d
17 changed files with 555 additions and 396 deletions

View File

@@ -137,6 +137,13 @@ export default {
trigger: "blur",
},
],
code: [
{
required: true,
message: "请输入物流公司编码",
trigger: "blur",
},
],
},
submitLoading: false,
data: [],
@@ -192,10 +199,12 @@ export default {
if (this.modalTitle === "添加") {
const payload = {
...this.form,
name: this.form.name,
code: this.form.code,
disabled: this.form.disabled,
standBy: normalizeStandBy(this.form.standBy),
formItems: this.form.formItems,
};
delete payload.id;
addLogistics(payload).then((res) => {
this.submitLoading = false;
if (res.success) {