...
|
...
|
@@ -55,8 +55,11 @@ Page({ |
|
|
edit_state: false,
|
|
|
risk_listitm: '',
|
|
|
storge_state: false,
|
|
|
warranty_info:'请输入',
|
|
|
warranty_state:false
|
|
|
warranty_info: '请输入',
|
|
|
warranty_state: false,
|
|
|
warranty_info1: '请输入',
|
|
|
warranty_state1: false,
|
|
|
coverage:'',
|
|
|
},
|
|
|
|
|
|
//保单号
|
...
|
...
|
@@ -100,6 +103,16 @@ Page({ |
|
|
// console.log(this.data.main_risks)
|
|
|
},
|
|
|
|
|
|
//主险名称
|
|
|
setRiskMoney(e) {
|
|
|
// console.log(e)
|
|
|
this.setData({
|
|
|
coverage: e.detail.value,
|
|
|
})
|
|
|
// console.log(this.data.main_risks)
|
|
|
},
|
|
|
|
|
|
|
|
|
//保费
|
|
|
yearMoney(e) {
|
|
|
this.setData({
|
...
|
...
|
@@ -668,10 +681,10 @@ Page({ |
|
|
this.setData({
|
|
|
unit: unit,
|
|
|
})
|
|
|
if(unit=='终身'){
|
|
|
if (unit == '终身') {
|
|
|
this.setData({
|
|
|
warranty_info:'',
|
|
|
warranty_state:true
|
|
|
warranty_info: '',
|
|
|
warranty_state: true
|
|
|
})
|
|
|
}
|
|
|
this.countImpletionTime2()
|
...
|
...
|
@@ -758,6 +771,12 @@ Page({ |
|
|
this.setData({
|
|
|
unit2: unit
|
|
|
})
|
|
|
if (unit == '终身') {
|
|
|
this.setData({
|
|
|
warranty_info1: '',
|
|
|
warranty_state1: true
|
|
|
})
|
|
|
}
|
|
|
this.countImpletionTime()
|
|
|
},
|
|
|
|
...
|
...
|
@@ -847,7 +866,7 @@ Page({ |
|
|
var FamilyId = this.data.FamilyId
|
|
|
let url = 'counselor/familyname'
|
|
|
let params = {
|
|
|
FamilyId: FamilyId||id,
|
|
|
FamilyId: FamilyId || id,
|
|
|
}
|
|
|
app.post(url, params).then((res) => {
|
|
|
// console.log(res)
|
...
|
...
|
@@ -885,6 +904,8 @@ Page({ |
|
|
var applicant = this.data.applicant_name
|
|
|
var recognizee = this.data.recognizee_name
|
|
|
var main_risks = this.data.main_risks
|
|
|
var coverage = this.data.coverage
|
|
|
|
|
|
var year_money = this.data.year_money
|
|
|
var compact_time = this.data.compact_time
|
|
|
var impletion_time = this.data.impletion_time
|
...
|
...
|
@@ -903,6 +924,7 @@ Page({ |
|
|
recognizee: recognizee,
|
|
|
favoree: favoree,
|
|
|
main_risks: main_risks,
|
|
|
coverage: coverage,
|
|
|
guarantee: guarantee,
|
|
|
year_money: year_money,
|
|
|
warranty_two: warranty_two,
|
...
|
...
|
@@ -964,6 +986,7 @@ Page({ |
|
|
in_num: res.data.data.def.in_num,
|
|
|
firm: res.data.data.def.firm,
|
|
|
main_risks: res.data.data.def.main_risks,
|
|
|
coverage: res.data.data.def.coverage,
|
|
|
main_array: res.data.data.def.guarantee,
|
|
|
applicant_name: res.data.data.def.applicant,
|
|
|
recognizee_name: res.data.data.def.recognizee,
|
...
|
...
|
@@ -1021,7 +1044,7 @@ Page({ |
|
|
var applicant = this.data.applicant_name
|
|
|
var recognizee = this.data.recognizee_name
|
|
|
var main_risks = e.detail.value.main_risks
|
|
|
|
|
|
var coverage = e.detail.value.coverage
|
|
|
var year_money = e.detail.value.year_money
|
|
|
var compact_time = this.data.compact_time
|
|
|
var impletion_time = this.data.impletion_time
|
...
|
...
|
@@ -1068,8 +1091,10 @@ Page({ |
|
|
warn = '请输入主险保障期!'
|
|
|
} else if (more == '') {
|
|
|
warn = '请输入附加险!'
|
|
|
} else if (picurl.length == 2) {
|
|
|
warn = '请选择图片!'
|
|
|
// else if (picurl.length == 2) {
|
|
|
// warn = '请选择图片!'
|
|
|
// }
|
|
|
|
|
|
} else {
|
|
|
flag = false
|
|
|
// 添加、修改保单接口调取
|
...
|
...
|
@@ -1083,6 +1108,7 @@ Page({ |
|
|
recognizee: recognizee,
|
|
|
favoree: favoree,
|
|
|
main_risks: main_risks,
|
|
|
coverage: coverage,
|
|
|
guarantee: guarantee,
|
|
|
year_money: year_money,
|
|
|
warranty_two: warranty_two,
|
...
|
...
|
@@ -1159,7 +1185,7 @@ Page({ |
|
|
getlistVerify(id) {
|
|
|
let url = 'counselor/infordef'
|
|
|
let params = {
|
|
|
InfoId: this.data.inforid||id,
|
|
|
InfoId: this.data.inforid || id,
|
|
|
}
|
|
|
app.post(url, params).then((res) => {
|
|
|
if (res.data.code == 200) {
|
...
|
...
|
@@ -1210,6 +1236,7 @@ Page({ |
|
|
in_num: res.data.data.def.in_num,
|
|
|
firm: res.data.data.def.firm,
|
|
|
main_risks: res.data.data.def.main_risks,
|
|
|
coverage: res.data.data.def.coverage,
|
|
|
main_array: res.data.data.def.guarantee,
|
|
|
applicant_name: res.data.data.def.applicant,
|
|
|
recognizee_name: res.data.data.def.recognizee,
|
...
|
...
|
@@ -1237,18 +1264,18 @@ Page({ |
|
|
|
|
|
this.ensureProjectList()
|
|
|
let that = this;
|
|
|
options.inforid ? (that.getlistVerify(options.inforid),that.setData({
|
|
|
options.inforid ? (that.getlistVerify(options.inforid), that.setData({
|
|
|
inforid: options.inforid,
|
|
|
edit_state: true
|
|
|
}),wx.setNavigationBarTitle({
|
|
|
}), wx.setNavigationBarTitle({
|
|
|
title: '编辑保单',
|
|
|
})): ""
|
|
|
})) : ""
|
|
|
options.def_id ? that.setData({
|
|
|
def_id: options.def_id,
|
|
|
}) : ""
|
|
|
options.FamilyId ? (that.familyMember(options.FamilyId),that.setData({
|
|
|
options.FamilyId ? (that.familyMember(options.FamilyId), that.setData({
|
|
|
FamilyId: options.FamilyId
|
|
|
})):'';
|
|
|
})) : '';
|
|
|
if (wx.getStorageSync('storge_state') && options.inforid == undefined) {
|
|
|
this.getStorage()
|
|
|
}
|
...
|
...
|
@@ -1302,4 +1329,4 @@ Page({ |
|
|
onShareAppMessage: function() {
|
|
|
|
|
|
}
|
|
|
}) |
|
|
\ No newline at end of file |
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|