|
@@ -281,14 +281,20 @@ export default {
|
|
|
if (valid) {
|
|
|
const form = JSON.parse(JSON.stringify(_this.form))
|
|
|
// 判断起订金额、活动经费上限
|
|
|
- if (form.minOrderFlag === '1' && !form.minOrderAmount) {
|
|
|
+ if (form.minOrderFlag == '1' && !form.minOrderAmount) {
|
|
|
_this.$message.error('请输入订单起订限制金额数!')
|
|
|
return
|
|
|
}
|
|
|
- if (form.upperLimitFlag == 1 && !form.upperLimitAmount) {
|
|
|
+ if (form.upperLimitFlag == '1' && !form.upperLimitAmount) {
|
|
|
_this.$message.warning('请输入活动经费上限金额!')
|
|
|
return
|
|
|
}
|
|
|
+ if (form.minOrderFlag == '0') {
|
|
|
+ form.minOrderAmount = undefined
|
|
|
+ }
|
|
|
+ if (form.upperLimitFlag == '0') {
|
|
|
+ form.upperLimitAmount = undefined
|
|
|
+ }
|
|
|
form.attachmentList = _this.attachList
|
|
|
delete form.activeDate
|
|
|
_this.spinning = true
|