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