mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-21 10:25:53 +08:00
优化部分操作流程,修改售后显示问题,优化计量单位 商品规格添加重复问题
This commit is contained in:
@@ -264,6 +264,11 @@ export default {
|
||||
if (valid) {
|
||||
this.submitLoading = true;
|
||||
if (this.modalType === 0) {
|
||||
if(this.data.find(item=>item.specName == this.form.specName)){
|
||||
this.$Message.error('请勿添加重复规格名称!')
|
||||
this.submitLoading = false
|
||||
return
|
||||
}
|
||||
// 添加 避免编辑后传入id等数据
|
||||
delete this.form.id;
|
||||
insertSpec(this.form).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user