Commit e0a2b29b by 潘琦

张家港生育全程签约儿童签约直接签名签约;

parent 4ecfb6c1
<template> <template>
<div class="full-page"> <div class="full-page" :class="pageH">
<div class="container sign-page"> <div class="container sign-page">
<!-- <div class="head"> <!-- <div class="head">
<div class="head-bg"></div> <div class="head-bg"></div>
...@@ -461,6 +461,7 @@ ...@@ -461,6 +461,7 @@
month-format="{value} 月" month-format="{value} 月"
date-format="{value} 日" date-format="{value} 日"
@confirm="pickerBirthConfirm" @confirm="pickerBirthConfirm"
@cancel="closePickerBirth"
:endDate="pickerBirthEnd"> :endDate="pickerBirthEnd">
</mt-datetime-picker> </mt-datetime-picker>
<!-- 末次月经时间picker --> <!-- 末次月经时间picker -->
...@@ -628,7 +629,8 @@ export default { ...@@ -628,7 +629,8 @@ export default {
ChoosePlusVisible: true, ChoosePlusVisible: true,
Choose2PlusVisible: true, Choose2PlusVisible: true,
modalVisible: false, // 底层透明遮挡显示状态 modalVisible: false, // 底层透明遮挡显示状态
addressSearchValue: '' addressSearchValue: '',
pageH: ''
} }
}, },
created () { created () {
...@@ -1006,10 +1008,16 @@ export default { ...@@ -1006,10 +1008,16 @@ export default {
this.saveSignInfoToCookie() // 储存用户签约录入信息 this.saveSignInfoToCookie() // 储存用户签约录入信息
}, },
openPickerBirth (index) { // 打开出生日期控件 openPickerBirth (index) { // 打开出生日期控件
// this.restPageHeight()
this.pickerOpenIndex = index this.pickerOpenIndex = index
this.$refs.pickerBirth.open() this.$refs.pickerBirth.open()
}, },
closePickerBirth () {
// this.clearPageHeight()
this.$refs.pickerBirth.close()
},
pickerBirthConfirm (date) { pickerBirthConfirm (date) {
// this.clearPageHeight()
this.BaseValidate.birthKidState = true this.BaseValidate.birthKidState = true
const selectedDate = new Date(date) const selectedDate = new Date(date)
let month = selectedDate.getMonth() + 1 let month = selectedDate.getMonth() + 1
...@@ -1149,16 +1157,23 @@ export default { ...@@ -1149,16 +1157,23 @@ export default {
this.modalVisible = true this.modalVisible = true
this.signCanvasW = this.$refs.signCanvasBlock.offsetWidth this.signCanvasW = this.$refs.signCanvasBlock.offsetWidth
} else { } else {
this.$MessageBox.confirm('是否直接签约?').then(action => { if (this.pageType === 0) {
this.$MessageBox.confirm('是否直接签约?').then(action => {
this.isSign = 0 // 已签约
this.SignatureSheetVisible = true
this.modalVisible = true
this.signCanvasW = this.$refs.signCanvasBlock.offsetWidth
}).catch(() => {
console.log('cancel')
this.isSign = 1 // 未签约
this.handelSave()
})
} else if (this.pageType === 1) {
this.isSign = 0 // 已签约 this.isSign = 0 // 已签约
this.SignatureSheetVisible = true this.SignatureSheetVisible = true
this.modalVisible = true this.modalVisible = true
this.signCanvasW = this.$refs.signCanvasBlock.offsetWidth this.signCanvasW = this.$refs.signCanvasBlock.offsetWidth
}).catch(() => { }
console.log('cancel')
this.isSign = 1 // 未签约
this.handelSave()
})
} }
}, },
closeSignPopup () { closeSignPopup () {
...@@ -1787,6 +1802,12 @@ export default { ...@@ -1787,6 +1802,12 @@ export default {
} }
break break
} }
},
restPageHeight () {
this.pageH = 'H500'
},
clearPageHeight () {
this.pageH = ''
} }
} }
} }
...@@ -2135,6 +2156,10 @@ export default { ...@@ -2135,6 +2156,10 @@ export default {
.footer { .footer {
margin: 10px 0; margin: 10px 0;
} }
.H500 {
height: 300px;
overflow: hidden;
}
</style> </style>
<style> <style>
...@@ -2172,4 +2197,7 @@ export default { ...@@ -2172,4 +2197,7 @@ export default {
width: 200px; width: 200px;
float: right; float: right;
} }
.picker-items{
padding: 0 20px !important;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment