Browse Source

完善销售政策

master
yunuo970428 3 years ago
parent
commit
b123d12826
  1. 6
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengce.vue
  2. 4
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengceAdd.vue

6
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengce.vue

@ -400,12 +400,6 @@ export default {
duration: 2000
})
this.getList()
} else {
this.$notify({
title: '删除失败',
message: response.msg,
type: 'error'
})
}
})
})

4
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengceAdd.vue

@ -365,6 +365,10 @@ export default {
this.$message({ showClose: true, type: 'error', message: '因政策类别为优惠,则优惠包类别只能选择赠送优惠' })
return
}
if (this.temp.salesPolicy === '促销' && this.temp.baseDiscountpackageVehs.length === 0) {
this.$message({ showClose: true, type: 'error', message: '因政策类别为促销,则享受促销政策的车辆列表不能为空' })
return
}
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.disabled = true

Loading…
Cancel
Save