优化商品类型里面的重复判断逻辑,增加上级目录的条件
This commit is contained in:
@@ -375,6 +375,7 @@ export default {
|
||||
validateName(rule, value, callback){
|
||||
let params = {
|
||||
name: value,
|
||||
parentId: this.form.getFieldValue('parentId'),
|
||||
id: this.model.id?this.model.id:0
|
||||
};
|
||||
checkMaterialCategory(params).then((res)=>{
|
||||
|
||||
@@ -154,6 +154,7 @@
|
||||
validateName(rule, value, callback){
|
||||
let params = {
|
||||
name: value,
|
||||
parentId: this.form.getFieldValue('parentId'),
|
||||
id: this.model.id?this.model.id:0
|
||||
};
|
||||
checkMaterialCategory(params).then((res)=>{
|
||||
|
||||
Reference in New Issue
Block a user