|
@ -82,7 +82,7 @@ |
|
|
<span style="margin-left: 16px">日期:</span> |
|
|
<span style="margin-left: 16px">日期:</span> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="doctorSignDate" |
|
|
v-model="doctorSignDate" |
|
|
style="width: 140px" |
|
|
|
|
|
|
|
|
style="width: 160px" |
|
|
size="small" |
|
|
size="small" |
|
|
type="date" |
|
|
type="date" |
|
|
placeholder="选择日期" |
|
|
placeholder="选择日期" |
|
@ -103,8 +103,8 @@ |
|
|
<div style="margin-top: 3px;margin-left: 145px"> |
|
|
<div style="margin-top: 3px;margin-left: 145px"> |
|
|
<span style="margin-left: 16px">日期:</span> |
|
|
<span style="margin-left: 16px">日期:</span> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="patientSignDate" |
|
|
|
|
|
style="width: 140px" |
|
|
|
|
|
|
|
|
v-model="wearerOrGuardianSignDate" |
|
|
|
|
|
style="width: 160px" |
|
|
size="small" |
|
|
size="small" |
|
|
type="date" |
|
|
type="date" |
|
|
placeholder="选择日期" |
|
|
placeholder="选择日期" |
|
@ -133,7 +133,7 @@ export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
doctorSignDate: null, |
|
|
doctorSignDate: null, |
|
|
patientSignDate: null |
|
|
|
|
|
|
|
|
wearerOrGuardianSignDate: null |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
@ -173,10 +173,10 @@ export default { |
|
|
created() { |
|
|
created() { |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
|
|
|
// this.getNoticeName() |
|
|
this.$store.commit('initPlugin') |
|
|
this.$store.commit('initPlugin') |
|
|
this.doctorSignDate = this.$moment().format('YYYY-MM-DD') |
|
|
this.doctorSignDate = this.$moment().format('YYYY-MM-DD') |
|
|
this.patientSignDate = this.$moment().format('YYYY-MM-DD') |
|
|
|
|
|
// this.getNoticeName() |
|
|
|
|
|
|
|
|
this.wearerOrGuardianSignDate = this.$moment().format('YYYY-MM-DD') |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
signClick(index) { |
|
|
signClick(index) { |
|
@ -188,6 +188,7 @@ export default { |
|
|
// 获取告知书签名 |
|
|
// 获取告知书签名 |
|
|
getNoticeName() { |
|
|
getNoticeName() { |
|
|
const params = { |
|
|
const params = { |
|
|
|
|
|
noticeType: 2, |
|
|
patientId: this.patientId |
|
|
patientId: this.patientId |
|
|
} |
|
|
} |
|
|
this.$http.get('/hospital/notice/getNoticeSign', { params: params }).then(({ data: res }) => { |
|
|
this.$http.get('/hospital/notice/getNoticeSign', { params: params }).then(({ data: res }) => { |
|
@ -195,7 +196,9 @@ export default { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} |
|
|
} |
|
|
if (res.data) { |
|
|
if (res.data) { |
|
|
this.$store.commit('optomSign', res.data.optomSign) |
|
|
|
|
|
|
|
|
this.doctorSignDate = res.data.doctorSignDate |
|
|
|
|
|
this.wearerOrGuardianSignDate = res.data.wearerOrGuardianSignDate |
|
|
|
|
|
this.$store.commit('optomSign', res.data.ygsSign) |
|
|
this.$store.commit('doctorSign', res.data.doctorSign) |
|
|
this.$store.commit('doctorSign', res.data.doctorSign) |
|
|
this.$store.commit('patientSign', res.data.patientSign) |
|
|
this.$store.commit('patientSign', res.data.patientSign) |
|
|
this.$store.commit('guardianSign', res.data.guardianSign) |
|
|
this.$store.commit('guardianSign', res.data.guardianSign) |
|
@ -210,18 +213,16 @@ export default { |
|
|
// 保存、修改告知书 |
|
|
// 保存、修改告知书 |
|
|
saveEditNotice() { |
|
|
saveEditNotice() { |
|
|
const params = { |
|
|
const params = { |
|
|
|
|
|
noticeType: 2, |
|
|
patientId: this.patientId, |
|
|
patientId: this.patientId, |
|
|
drgsName: window.localStorage.getItem('identity'), |
|
|
|
|
|
doctorSign: this.doctorSign, |
|
|
doctorSign: this.doctorSign, |
|
|
guardianSign: this.guardianSign, |
|
|
guardianSign: this.guardianSign, |
|
|
patientSign: this.patientSign, |
|
|
patientSign: this.patientSign, |
|
|
readerSign: this.readerSign, |
|
|
|
|
|
wearerOrGuardianSign: this.wearerOrGuardianSign, |
|
|
|
|
|
|
|
|
ygsSign: this.optomSign, |
|
|
doctorSignDate: this.doctorSignDate, |
|
|
doctorSignDate: this.doctorSignDate, |
|
|
wearerOrGuardianSignDate: this.wearerOrGuardianSignDate, |
|
|
|
|
|
isAgree: this.isAgree |
|
|
|
|
|
|
|
|
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) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} else { |
|
|
} else { |
|
|