|
@@ -470,11 +470,43 @@
|
|
|
this.infolist = {};
|
|
|
this.dialogStatus = false;
|
|
|
}else{
|
|
|
+
|
|
|
+ let _this = this;
|
|
|
let infodata1 = JSON.parse(JSON.stringify(this.infodata))
|
|
|
let infodataLast = infodata1[infodata1.length-1]
|
|
|
-
|
|
|
+
|
|
|
if(Object.keys(infodataLast).length >= 2){
|
|
|
- if(!infodataLast.memberRelation){
|
|
|
+ if(!infodataLast.memberRelation && !infodataLast.memberName && !infodataLast.memberSex && !infodataLast.idCard){
|
|
|
+ this.loadinged = true;
|
|
|
+ this.$http({
|
|
|
+ url: "/market/cMemberFillDetail/saveFillDetailSummaryNew",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
|
|
|
+ },
|
|
|
+ data: infodata1,
|
|
|
+ }).then((res) => {
|
|
|
+ // this.infolist = {};
|
|
|
+ // this.dialogStatus = false;
|
|
|
+ this.loadinged = false;
|
|
|
+ if (res.data.result === 1) {
|
|
|
+ _this.$message({
|
|
|
+ message: res.data.desc,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ _this.$message({
|
|
|
+ message: '成功',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ _this.infolist = {};
|
|
|
+ _this.dialogStatus = false;
|
|
|
+ _this.getList({}, _this.pageSize);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else if(!infodataLast.memberRelation || !infodataLast.memberName || !infodataLast.memberSex || !infodataLast.idCard){
|
|
|
+ if(!infodataLast.memberRelation){
|
|
|
this.$message({
|
|
|
message: '请填写成员关系',
|
|
|
type: 'error'
|
|
@@ -504,6 +536,7 @@
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
+ this.loadinged = true;
|
|
|
this.$http({
|
|
|
url: "/market/cMemberFillDetail/saveFillDetailSummaryNew",
|
|
|
method: "post",
|
|
@@ -513,10 +546,28 @@
|
|
|
},
|
|
|
data: infodata1,
|
|
|
}).then((res) => {
|
|
|
- this.infolist = {};
|
|
|
- this.dialogStatus = false;
|
|
|
+ // this.infolist = {};
|
|
|
+ // this.dialogStatus = false;
|
|
|
+ this.loadinged = false;
|
|
|
+ if (res.data.result === 1) {
|
|
|
+ _this.$message({
|
|
|
+ message: res.data.desc,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ _this.$message({
|
|
|
+ message: '成功',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ _this.infolist = {};
|
|
|
+ _this.dialogStatus = false;
|
|
|
+ _this.getList({}, _this.pageSize);
|
|
|
+ }
|
|
|
});
|
|
|
+ }
|
|
|
+
|
|
|
}else if(Object.keys(infodataLast).length == 1){
|
|
|
+ this.loadinged = true;
|
|
|
this.$http({
|
|
|
url: "/market/cMemberFillDetail/saveFillDetailSummaryNew",
|
|
|
method: "post",
|
|
@@ -526,8 +577,23 @@
|
|
|
},
|
|
|
data: infodata1,
|
|
|
}).then((res) => {
|
|
|
- this.infolist = {};
|
|
|
- this.dialogStatus = false;
|
|
|
+ // this.infolist = {};
|
|
|
+ // this.dialogStatus = false;
|
|
|
+ this.loadinged = false;
|
|
|
+ if (res.data.result === 1) {
|
|
|
+ _this.$message({
|
|
|
+ message: res.data.desc,
|
|
|
+ type: 'error'
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ _this.$message({
|
|
|
+ message: '成功',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ _this.infolist = {};
|
|
|
+ _this.dialogStatus = false;
|
|
|
+ _this.getList({}, _this.pageSize);
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|