修改保存校验问题

This commit is contained in:
liaozetao
2024-04-01 16:46:25 +08:00
parent 1f26d0ed64
commit 4e9c0d8649

View File

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