|
|
@ -115,7 +115,7 @@ |
|
|
|
<div style="margin-top: 3px;margin-left: 145px"> |
|
|
|
<span style="margin-left: 16px">日期:</span> |
|
|
|
<el-date-picker |
|
|
|
v-model="patientSignDate" |
|
|
|
v-model="wearerOrGuardianSignDate" |
|
|
|
style="width: 160px" |
|
|
|
size="small" |
|
|
|
type="date" |
|
|
@ -145,7 +145,7 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
doctorSignDate: null, |
|
|
|
patientSignDate: null |
|
|
|
wearerOrGuardianSignDate: null |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -188,7 +188,7 @@ export default { |
|
|
|
// this.getNoticeName() |
|
|
|
this.$store.commit('initPlugin') |
|
|
|
this.doctorSignDate = this.$moment().format('YYYY-MM-DD') |
|
|
|
this.patientSignDate = this.$moment().format('YYYY-MM-DD') |
|
|
|
this.wearerOrGuardianSignDate = this.$moment().format('YYYY-MM-DD') |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
signClick(index) { |
|
|
@ -200,14 +200,17 @@ export default { |
|
|
|
// 获取告知书签名 |
|
|
|
getNoticeName() { |
|
|
|
const params = { |
|
|
|
patientId: this.patientId |
|
|
|
patientId: this.patientId, |
|
|
|
noticeType: 1 |
|
|
|
} |
|
|
|
this.$http.get('/hospital/notice/getNoticeSign', { params: params }).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
if (res.data) { |
|
|
|
this.$store.commit('optomSign2', res.data.optomSign) |
|
|
|
this.doctorSignDate = res.data.doctorSignDate |
|
|
|
this.wearerOrGuardianSignDate = res.data.wearerOrGuardianSignDate |
|
|
|
this.$store.commit('optomSign2', res.data.ygsSign) |
|
|
|
this.$store.commit('doctorSign2', res.data.doctorSign) |
|
|
|
this.$store.commit('patientSign2', res.data.patientSign) |
|
|
|
this.$store.commit('guardianSign2', res.data.guardianSign) |
|
|
@ -222,16 +225,16 @@ export default { |
|
|
|
// 保存、修改告知书 |
|
|
|
saveEditNotice() { |
|
|
|
const params = { |
|
|
|
noticeType: 1, |
|
|
|
patientId: this.patientId, |
|
|
|
doctorSign: this.doctorSign, |
|
|
|
guardianSign: this.guardianSign, |
|
|
|
patientSign: this.patientSign, |
|
|
|
readerSign: this.readerSign, |
|
|
|
wearerOrGuardianSign: this.wearerOrGuardianSign, |
|
|
|
doctorSign: this.doctorSign2, |
|
|
|
guardianSign: this.guardianSign2, |
|
|
|
patientSign: this.patientSign2, |
|
|
|
ygsSign: this.optomSign2, |
|
|
|
doctorSignDate: this.doctorSignDate, |
|
|
|
wearerOrGuardianSignDate: this.wearerOrGuardianSignDate |
|
|
|
} |
|
|
|
this.$http.post('/hospital/notice', params).then(({ data: res }) => { |
|
|
|
this.$http.post('/hospital/notice/saveOrUpdateNoticeSign', params).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |
|
|
|