优化部分操作流程,修改售后显示问题,优化计量单位 商品规格添加重复问题

This commit is contained in:
学习很差啦
2022-09-05 14:21:58 +08:00
parent ed59b389a5
commit 4651d74b7b
7 changed files with 96 additions and 40 deletions

View File

@@ -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) => {