|
@@ -1263,7 +1263,7 @@ function ribaoCommit() {
|
|
|
isTrip = 0;
|
|
|
listcx = [];
|
|
|
}
|
|
|
- var data = {
|
|
|
+ var pdata = {
|
|
|
"suspectedId": suspectedId,
|
|
|
"userCreate": userId,
|
|
|
"userName": userName,
|
|
@@ -1299,9 +1299,21 @@ function ribaoCommit() {
|
|
|
url: '/home/addRibaoTrip',
|
|
|
type: "post",
|
|
|
contentType: "application/json; charset=utf-8",
|
|
|
- data: JSON.stringify(data),
|
|
|
+ data: JSON.stringify(pdata),
|
|
|
success: function (data) {
|
|
|
|
|
|
+ console.log('data:',data.msgReport);
|
|
|
+ if (data == {} || data == '' || data == null || data == undefined) {
|
|
|
+ $.toast("数据提交失败,请重新提交!",'forbidden');
|
|
|
+ cantijiao = true;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (data.reportId == null || data.reportId == undefined || data.reportId <= 0) {
|
|
|
+ $.toast("数据提交失败,请重新提交!",'forbidden');
|
|
|
+ cantijiao = true;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
if (data.msgReport == "2") {
|
|
|
cantijiao = true;
|
|
|
$.toast("家人姓名不能重复,如果重复,可以带上称呼");
|