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