|
@@ -55,8 +55,11 @@ Page({ |
|
@@ -55,8 +55,11 @@ Page({ |
55
|
edit_state: false,
|
55
|
edit_state: false,
|
56
|
risk_listitm: '',
|
56
|
risk_listitm: '',
|
57
|
storge_state: false,
|
57
|
storge_state: false,
|
58
|
- warranty_info:'请输入',
|
|
|
59
|
- warranty_state:false
|
58
|
+ warranty_info: '请输入',
|
|
|
59
|
+ warranty_state: false,
|
|
|
60
|
+ warranty_info1: '请输入',
|
|
|
61
|
+ warranty_state1: false,
|
|
|
62
|
+ coverage:'',
|
60
|
},
|
63
|
},
|
61
|
|
64
|
|
62
|
//保单号
|
65
|
//保单号
|
|
@@ -100,6 +103,16 @@ Page({ |
|
@@ -100,6 +103,16 @@ Page({ |
100
|
// console.log(this.data.main_risks)
|
103
|
// console.log(this.data.main_risks)
|
101
|
},
|
104
|
},
|
102
|
|
105
|
|
|
|
106
|
+ //主险名称
|
|
|
107
|
+ setRiskMoney(e) {
|
|
|
108
|
+ // console.log(e)
|
|
|
109
|
+ this.setData({
|
|
|
110
|
+ coverage: e.detail.value,
|
|
|
111
|
+ })
|
|
|
112
|
+ // console.log(this.data.main_risks)
|
|
|
113
|
+ },
|
|
|
114
|
+
|
|
|
115
|
+
|
103
|
//保费
|
116
|
//保费
|
104
|
yearMoney(e) {
|
117
|
yearMoney(e) {
|
105
|
this.setData({
|
118
|
this.setData({
|
|
@@ -668,10 +681,10 @@ Page({ |
|
@@ -668,10 +681,10 @@ Page({ |
668
|
this.setData({
|
681
|
this.setData({
|
669
|
unit: unit,
|
682
|
unit: unit,
|
670
|
})
|
683
|
})
|
671
|
- if(unit=='终身'){
|
684
|
+ if (unit == '终身') {
|
672
|
this.setData({
|
685
|
this.setData({
|
673
|
- warranty_info:'',
|
|
|
674
|
- warranty_state:true
|
686
|
+ warranty_info: '',
|
|
|
687
|
+ warranty_state: true
|
675
|
})
|
688
|
})
|
676
|
}
|
689
|
}
|
677
|
this.countImpletionTime2()
|
690
|
this.countImpletionTime2()
|
|
@@ -758,6 +771,12 @@ Page({ |
|
@@ -758,6 +771,12 @@ Page({ |
758
|
this.setData({
|
771
|
this.setData({
|
759
|
unit2: unit
|
772
|
unit2: unit
|
760
|
})
|
773
|
})
|
|
|
774
|
+ if (unit == '终身') {
|
|
|
775
|
+ this.setData({
|
|
|
776
|
+ warranty_info1: '',
|
|
|
777
|
+ warranty_state1: true
|
|
|
778
|
+ })
|
|
|
779
|
+ }
|
761
|
this.countImpletionTime()
|
780
|
this.countImpletionTime()
|
762
|
},
|
781
|
},
|
763
|
|
782
|
|
|
@@ -847,7 +866,7 @@ Page({ |
|
@@ -847,7 +866,7 @@ Page({ |
847
|
var FamilyId = this.data.FamilyId
|
866
|
var FamilyId = this.data.FamilyId
|
848
|
let url = 'counselor/familyname'
|
867
|
let url = 'counselor/familyname'
|
849
|
let params = {
|
868
|
let params = {
|
850
|
- FamilyId: FamilyId||id,
|
869
|
+ FamilyId: FamilyId || id,
|
851
|
}
|
870
|
}
|
852
|
app.post(url, params).then((res) => {
|
871
|
app.post(url, params).then((res) => {
|
853
|
// console.log(res)
|
872
|
// console.log(res)
|
|
@@ -885,6 +904,8 @@ Page({ |
|
@@ -885,6 +904,8 @@ Page({ |
885
|
var applicant = this.data.applicant_name
|
904
|
var applicant = this.data.applicant_name
|
886
|
var recognizee = this.data.recognizee_name
|
905
|
var recognizee = this.data.recognizee_name
|
887
|
var main_risks = this.data.main_risks
|
906
|
var main_risks = this.data.main_risks
|
|
|
907
|
+ var coverage = this.data.coverage
|
|
|
908
|
+
|
888
|
var year_money = this.data.year_money
|
909
|
var year_money = this.data.year_money
|
889
|
var compact_time = this.data.compact_time
|
910
|
var compact_time = this.data.compact_time
|
890
|
var impletion_time = this.data.impletion_time
|
911
|
var impletion_time = this.data.impletion_time
|
|
@@ -903,6 +924,7 @@ Page({ |
|
@@ -903,6 +924,7 @@ Page({ |
903
|
recognizee: recognizee,
|
924
|
recognizee: recognizee,
|
904
|
favoree: favoree,
|
925
|
favoree: favoree,
|
905
|
main_risks: main_risks,
|
926
|
main_risks: main_risks,
|
|
|
927
|
+ coverage: coverage,
|
906
|
guarantee: guarantee,
|
928
|
guarantee: guarantee,
|
907
|
year_money: year_money,
|
929
|
year_money: year_money,
|
908
|
warranty_two: warranty_two,
|
930
|
warranty_two: warranty_two,
|
|
@@ -964,6 +986,7 @@ Page({ |
|
@@ -964,6 +986,7 @@ Page({ |
964
|
in_num: res.data.data.def.in_num,
|
986
|
in_num: res.data.data.def.in_num,
|
965
|
firm: res.data.data.def.firm,
|
987
|
firm: res.data.data.def.firm,
|
966
|
main_risks: res.data.data.def.main_risks,
|
988
|
main_risks: res.data.data.def.main_risks,
|
|
|
989
|
+ coverage: res.data.data.def.coverage,
|
967
|
main_array: res.data.data.def.guarantee,
|
990
|
main_array: res.data.data.def.guarantee,
|
968
|
applicant_name: res.data.data.def.applicant,
|
991
|
applicant_name: res.data.data.def.applicant,
|
969
|
recognizee_name: res.data.data.def.recognizee,
|
992
|
recognizee_name: res.data.data.def.recognizee,
|
|
@@ -1021,7 +1044,7 @@ Page({ |
|
@@ -1021,7 +1044,7 @@ Page({ |
1021
|
var applicant = this.data.applicant_name
|
1044
|
var applicant = this.data.applicant_name
|
1022
|
var recognizee = this.data.recognizee_name
|
1045
|
var recognizee = this.data.recognizee_name
|
1023
|
var main_risks = e.detail.value.main_risks
|
1046
|
var main_risks = e.detail.value.main_risks
|
1024
|
-
|
1047
|
+ var coverage = e.detail.value.coverage
|
1025
|
var year_money = e.detail.value.year_money
|
1048
|
var year_money = e.detail.value.year_money
|
1026
|
var compact_time = this.data.compact_time
|
1049
|
var compact_time = this.data.compact_time
|
1027
|
var impletion_time = this.data.impletion_time
|
1050
|
var impletion_time = this.data.impletion_time
|
|
@@ -1068,8 +1091,10 @@ Page({ |
|
@@ -1068,8 +1091,10 @@ Page({ |
1068
|
warn = '请输入主险保障期!'
|
1091
|
warn = '请输入主险保障期!'
|
1069
|
} else if (more == '') {
|
1092
|
} else if (more == '') {
|
1070
|
warn = '请输入附加险!'
|
1093
|
warn = '请输入附加险!'
|
1071
|
- } else if (picurl.length == 2) {
|
|
|
1072
|
- warn = '请选择图片!'
|
1094
|
+ // else if (picurl.length == 2) {
|
|
|
1095
|
+ // warn = '请选择图片!'
|
|
|
1096
|
+ // }
|
|
|
1097
|
+
|
1073
|
} else {
|
1098
|
} else {
|
1074
|
flag = false
|
1099
|
flag = false
|
1075
|
// 添加、修改保单接口调取
|
1100
|
// 添加、修改保单接口调取
|
|
@@ -1083,6 +1108,7 @@ Page({ |
|
@@ -1083,6 +1108,7 @@ Page({ |
1083
|
recognizee: recognizee,
|
1108
|
recognizee: recognizee,
|
1084
|
favoree: favoree,
|
1109
|
favoree: favoree,
|
1085
|
main_risks: main_risks,
|
1110
|
main_risks: main_risks,
|
|
|
1111
|
+ coverage: coverage,
|
1086
|
guarantee: guarantee,
|
1112
|
guarantee: guarantee,
|
1087
|
year_money: year_money,
|
1113
|
year_money: year_money,
|
1088
|
warranty_two: warranty_two,
|
1114
|
warranty_two: warranty_two,
|
|
@@ -1159,7 +1185,7 @@ Page({ |
|
@@ -1159,7 +1185,7 @@ Page({ |
1159
|
getlistVerify(id) {
|
1185
|
getlistVerify(id) {
|
1160
|
let url = 'counselor/infordef'
|
1186
|
let url = 'counselor/infordef'
|
1161
|
let params = {
|
1187
|
let params = {
|
1162
|
- InfoId: this.data.inforid||id,
|
1188
|
+ InfoId: this.data.inforid || id,
|
1163
|
}
|
1189
|
}
|
1164
|
app.post(url, params).then((res) => {
|
1190
|
app.post(url, params).then((res) => {
|
1165
|
if (res.data.code == 200) {
|
1191
|
if (res.data.code == 200) {
|
|
@@ -1210,6 +1236,7 @@ Page({ |
|
@@ -1210,6 +1236,7 @@ Page({ |
1210
|
in_num: res.data.data.def.in_num,
|
1236
|
in_num: res.data.data.def.in_num,
|
1211
|
firm: res.data.data.def.firm,
|
1237
|
firm: res.data.data.def.firm,
|
1212
|
main_risks: res.data.data.def.main_risks,
|
1238
|
main_risks: res.data.data.def.main_risks,
|
|
|
1239
|
+ coverage: res.data.data.def.coverage,
|
1213
|
main_array: res.data.data.def.guarantee,
|
1240
|
main_array: res.data.data.def.guarantee,
|
1214
|
applicant_name: res.data.data.def.applicant,
|
1241
|
applicant_name: res.data.data.def.applicant,
|
1215
|
recognizee_name: res.data.data.def.recognizee,
|
1242
|
recognizee_name: res.data.data.def.recognizee,
|
|
@@ -1237,18 +1264,18 @@ Page({ |
|
@@ -1237,18 +1264,18 @@ Page({ |
1237
|
|
1264
|
|
1238
|
this.ensureProjectList()
|
1265
|
this.ensureProjectList()
|
1239
|
let that = this;
|
1266
|
let that = this;
|
1240
|
- options.inforid ? (that.getlistVerify(options.inforid),that.setData({
|
1267
|
+ options.inforid ? (that.getlistVerify(options.inforid), that.setData({
|
1241
|
inforid: options.inforid,
|
1268
|
inforid: options.inforid,
|
1242
|
edit_state: true
|
1269
|
edit_state: true
|
1243
|
- }),wx.setNavigationBarTitle({
|
1270
|
+ }), wx.setNavigationBarTitle({
|
1244
|
title: '编辑保单',
|
1271
|
title: '编辑保单',
|
1245
|
- })): ""
|
1272
|
+ })) : ""
|
1246
|
options.def_id ? that.setData({
|
1273
|
options.def_id ? that.setData({
|
1247
|
def_id: options.def_id,
|
1274
|
def_id: options.def_id,
|
1248
|
}) : ""
|
1275
|
}) : ""
|
1249
|
- options.FamilyId ? (that.familyMember(options.FamilyId),that.setData({
|
1276
|
+ options.FamilyId ? (that.familyMember(options.FamilyId), that.setData({
|
1250
|
FamilyId: options.FamilyId
|
1277
|
FamilyId: options.FamilyId
|
1251
|
- })):'';
|
1278
|
+ })) : '';
|
1252
|
if (wx.getStorageSync('storge_state') && options.inforid == undefined) {
|
1279
|
if (wx.getStorageSync('storge_state') && options.inforid == undefined) {
|
1253
|
this.getStorage()
|
1280
|
this.getStorage()
|
1254
|
}
|
1281
|
}
|
|
@@ -1302,4 +1329,4 @@ Page({ |
|
@@ -1302,4 +1329,4 @@ Page({ |
1302
|
onShareAppMessage: function() {
|
1329
|
onShareAppMessage: function() {
|
1303
|
|
1330
|
|
1304
|
}
|
1331
|
}
|
1305
|
- }) |
|
|
|
|
1332
|
+}) |