mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 21:46:44 +08:00
Merge branch 'hotfix/bug_GFRS【与卡单一起上线】建议书-投保人页-年龄及校验问题' into dev
This commit is contained in:
@@ -99,9 +99,9 @@ Validator.extend('maxAge', {
|
|||||||
})
|
})
|
||||||
//被保险人年龄(不得小于18周岁)
|
//被保险人年龄(不得小于18周岁)
|
||||||
Validator.extend('appntAge', {
|
Validator.extend('appntAge', {
|
||||||
getMessage: () => '年龄不得小于18周岁',
|
getMessage: () => '年龄不得小于16周岁',
|
||||||
validate: value => {
|
validate: value => {
|
||||||
return value > 17 && /^\d{1,3}$/.test(value)
|
return value > 15 && /^\d{1,3}$/.test(value)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,8 @@
|
|||||||
placeholder="投保人职业"
|
placeholder="投保人职业"
|
||||||
/>
|
/>
|
||||||
<div class="border-bottom">
|
<div class="border-bottom">
|
||||||
<van-field :border="false" v-model="appntDTO.age" clearable label="年龄" v-validate="'appntAge'" placeholder="投保人年龄" />
|
<van-field :border="false" v-model="appntDTO.age" clearable label="年龄" v-validate="'appntAge'" placeholder="投保人年龄" :readonly="ageFlag" />
|
||||||
|
<!-- <van-field :border="false" v-model="appntDTO.age" clearable label="年龄" v-validate="'appntAge'" placeholder="投保人年龄" readonly /> -->
|
||||||
</div>
|
</div>
|
||||||
<van-field :border="false" v-model="appntDTO.mobile" clearable label="手机号码" name="手机号码" placeholder="投保人手机号码" v-validate="'mobile'" />
|
<van-field :border="false" v-model="appntDTO.mobile" clearable label="手机号码" name="手机号码" placeholder="投保人手机号码" v-validate="'mobile'" />
|
||||||
<van-button type="danger" @click="nextStep" class="bottom-btn fs16">下一步</van-button>
|
<van-button type="danger" @click="nextStep" class="bottom-btn fs16">下一步</van-button>
|
||||||
@@ -87,7 +88,8 @@ export default {
|
|||||||
},
|
},
|
||||||
customerShowPicker: false,
|
customerShowPicker: false,
|
||||||
occupationShowPicker: false,
|
occupationShowPicker: false,
|
||||||
currentPopupIndex: ''
|
currentPopupIndex: '',
|
||||||
|
ageFlag: false //年龄输入框是否只读 false-可输入 true-只读
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -170,9 +172,10 @@ export default {
|
|||||||
this.appntDTO.name = data
|
this.appntDTO.name = data
|
||||||
},
|
},
|
||||||
dateConfirm(data) {
|
dateConfirm(data) {
|
||||||
|
console.log(11)
|
||||||
let age = getAge.getAge(data, new Date())
|
let age = getAge.getAge(data, new Date())
|
||||||
|
|
||||||
this.appntDTO.age = age
|
this.appntDTO.age = age
|
||||||
|
this.ageFlag = true
|
||||||
},
|
},
|
||||||
//从客户列表选择客户
|
//从客户列表选择客户
|
||||||
chooseCustomer(data) {
|
chooseCustomer(data) {
|
||||||
@@ -191,12 +194,13 @@ export default {
|
|||||||
sex: String(customerSex),
|
sex: String(customerSex),
|
||||||
name: customerName,
|
name: customerName,
|
||||||
occupationName,
|
occupationName,
|
||||||
age: age ? age : '',
|
age: age ? age : getAge.getAge(birthday, new Date()),
|
||||||
occupationCode,
|
occupationCode,
|
||||||
lifeGrade,
|
lifeGrade,
|
||||||
healthGrade,
|
healthGrade,
|
||||||
socialSecurity
|
socialSecurity
|
||||||
}
|
}
|
||||||
|
this.ageFlag = true
|
||||||
},
|
},
|
||||||
|
|
||||||
nextStep() {
|
nextStep() {
|
||||||
@@ -215,7 +219,7 @@ export default {
|
|||||||
saveProposal(params).then(res => {
|
saveProposal(params).then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
localStorage.orderNo = res.content.orderNo
|
localStorage.orderNo = res.content.orderNo
|
||||||
if(this.appntDTO.socialSecurity){
|
if (this.appntDTO.socialSecurity) {
|
||||||
localStorage.orderNoSocialSecurity = this.appntDTO.socialSecurity
|
localStorage.orderNoSocialSecurity = this.appntDTO.socialSecurity
|
||||||
}
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
|
|||||||
@@ -222,7 +222,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="div_14"></div>
|
<div class="div_14"></div>
|
||||||
<div v-show="!isWeixin" class="fixed div_13">
|
<div class="fixed div_13">
|
||||||
<van-button class="img_11" @click="goToCompanyProfile" v-no-more-click="1000"></van-button>
|
<van-button class="img_11" @click="goToCompanyProfile" v-no-more-click="1000"></van-button>
|
||||||
<van-button class="img_12" @click="goPDF" v-no-more-click="1000"></van-button>
|
<van-button class="img_12" @click="goPDF" v-no-more-click="1000"></van-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -350,7 +350,7 @@ export default {
|
|||||||
},
|
},
|
||||||
agent: {},
|
agent: {},
|
||||||
mainRiskCodes: [],
|
mainRiskCodes: [],
|
||||||
time: 10
|
time: 5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
@@ -1241,8 +1241,8 @@ export default {
|
|||||||
border: inherit;
|
border: inherit;
|
||||||
/* border-color: #000; */
|
/* border-color: #000; */
|
||||||
border-radius: inherit;
|
border-radius: inherit;
|
||||||
-webkit-transform: translate(-50%,-50%);
|
-webkit-transform: translate(-50%, -50%);
|
||||||
transform: translate(-50%,-50%);
|
transform: translate(-50%, -50%);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
content: ' ';
|
content: ' ';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -933,7 +933,6 @@ export default {
|
|||||||
) {
|
) {
|
||||||
// const message = res.orderDTO.productDTO.special.content
|
// const message = res.orderDTO.productDTO.special.content
|
||||||
// Dialog({ message })
|
// Dialog({ message })
|
||||||
|
|
||||||
let content = res.orderDTO.productDTO.special.content
|
let content = res.orderDTO.productDTO.special.content
|
||||||
// {
|
// {
|
||||||
// title: '标题',
|
// title: '标题',
|
||||||
@@ -945,7 +944,6 @@ export default {
|
|||||||
// message 内容,\n换行
|
// message 内容,\n换行
|
||||||
// confirmButtonText:确认按钮的文字
|
// confirmButtonText:确认按钮的文字
|
||||||
// messageAlign: 对齐方式,固定左对齐,为'left'
|
// messageAlign: 对齐方式,固定左对齐,为'left'
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const config = JSON.parse(content);
|
const config = JSON.parse(content);
|
||||||
config.message = '  ' + config.message
|
config.message = '  ' + config.message
|
||||||
@@ -965,7 +963,6 @@ export default {
|
|||||||
messageAlign: 'left'
|
messageAlign: 'left'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// const message = '  ' + res.orderDTO.productDTO.special.content
|
// const message = '  ' + res.orderDTO.productDTO.special.content
|
||||||
// Dialog({
|
// Dialog({
|
||||||
// message: message.split('\\n').join('\n  '),
|
// message: message.split('\\n').join('\n  '),
|
||||||
|
|||||||
Reference in New Issue
Block a user