修复错误
This commit is contained in:
@@ -841,6 +841,11 @@
|
|||||||
message: '商品保质期不能为空',
|
message: '商品保质期不能为空',
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}],
|
}],
|
||||||
|
taxRate: [{
|
||||||
|
required: true,
|
||||||
|
message: '商品税率不能为空',
|
||||||
|
trigger: 'blur'
|
||||||
|
}],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -257,27 +257,32 @@
|
|||||||
if (this.form.sid) {
|
if (this.form.sid) {
|
||||||
userUpdatauserUpdata(this.form).then(res => {
|
userUpdatauserUpdata(this.form).then(res => {
|
||||||
if (res.code == '200') {
|
if (res.code == '200') {
|
||||||
|
this.reset()
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
|
let arr = []
|
||||||
|
this.$refs.Tree.setCheckedKeys(arr);
|
||||||
this.$emit('status', false)
|
this.$emit('status', false)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
userAdd(this.form).then(res => {
|
userAdd(this.form).then(res => {
|
||||||
if (res.code == '200') {
|
if (res.code == '200') {
|
||||||
|
this.reset()
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
|
let arr = []
|
||||||
|
this.$refs.Tree.setCheckedKeys(arr);
|
||||||
this.$emit('status', false)
|
this.$emit('status', false)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
let arr = []
|
|
||||||
this.$refs.Tree.setCheckedKeys(arr);
|
|
||||||
}
|
}
|
||||||
this.reset()
|
|
||||||
},
|
},
|
||||||
reset() {
|
reset() {
|
||||||
this.accountType = false
|
this.accountType = false
|
||||||
|
|||||||
Reference in New Issue
Block a user