Commit e36da6cc by lixiaomin

修改优惠券限制问题

parent 33cce7fe
...@@ -263,7 +263,6 @@ export default { ...@@ -263,7 +263,6 @@ export default {
rules: { rules: {
name: [{ required: true, message: "不能为空", trigger: "blur" }], name: [{ required: true, message: "不能为空", trigger: "blur" }],
categoryId: [{ required: true, message: "不能为空", trigger: "blur" }], categoryId: [{ required: true, message: "不能为空", trigger: "blur" }],
userNumber: [{ required: true, message: "不能为空", trigger: "change" }],
times: [{required: true, message: "不能为空", trigger: "change" }], times: [{required: true, message: "不能为空", trigger: "change" }],
sendMsgTag: [{required: true, message: "不能为空", trigger: "change" }] sendMsgTag: [{required: true, message: "不能为空", trigger: "change" }]
}, },
...@@ -690,6 +689,10 @@ export default { ...@@ -690,6 +689,10 @@ export default {
submitForm() { submitForm() {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
if(this.form.userNumber==null){
this.$message.error("请填写User可领次数!");
return;
}
if(this.type=="1"){ if(this.type=="1"){
if(this.liJian==""){ if(this.liJian==""){
this.$message.error("立减输入框必填!"); this.$message.error("立减输入框必填!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment