修复错误

This commit is contained in:
2024-07-22 09:34:24 +08:00
parent 4ba28bf816
commit 7834f5cbfb
2 changed files with 13 additions and 3 deletions

View File

@@ -841,6 +841,11 @@
message: '商品保质期不能为空',
trigger: 'blur'
}],
taxRate: [{
required: true,
message: '商品税率不能为空',
trigger: 'blur'
}],
}
}
},

View File

@@ -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