修改保存校验问题
This commit is contained in:
@@ -668,6 +668,9 @@ export default {
|
|||||||
// 保存
|
// 保存
|
||||||
$('#button-save').on('click', function () {
|
$('#button-save').on('click', function () {
|
||||||
let params = buildSaveParams();
|
let params = buildSaveParams();
|
||||||
|
if (!params) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
console.log(params)
|
console.log(params)
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
@@ -710,7 +713,7 @@ export default {
|
|||||||
if (addSize && addSize > 5) {
|
if (addSize && addSize > 5) {
|
||||||
$("#tipMsg").text("返利数量超过5个!!!");
|
$("#tipMsg").text("返利数量超过5个!!!");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
let isReturnProfit = $('#isReturnProfit').val();
|
let isReturnProfit = $('#isReturnProfit').val();
|
||||||
let returnProfitArray = [];
|
let returnProfitArray = [];
|
||||||
@@ -722,12 +725,12 @@ export default {
|
|||||||
if (profitDate != 0 && profitDate > 29) {
|
if (profitDate != 0 && profitDate > 29) {
|
||||||
$("#tipMsg").text("返利日期不能超过30天!");
|
$("#tipMsg").text("返利日期不能超过30天!");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
if (!profitAmount || profitAmount <= 0) {
|
if (!profitAmount || profitAmount <= 0) {
|
||||||
$("#tipMsg").text("返利数量不能为空!");
|
$("#tipMsg").text("返利数量不能为空!");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
let returnProfit = {
|
let returnProfit = {
|
||||||
vipLevel: vipLevel,
|
vipLevel: vipLevel,
|
||||||
|
Reference in New Issue
Block a user