Commit 66fe08b1 authored by gengchunlei's avatar gengchunlei

居民端小程序 v1.2 宣教内容不存在时 属性类型判断调整

parent f9a4b374
...@@ -626,8 +626,17 @@ export default { ...@@ -626,8 +626,17 @@ export default {
this.$refs.form.validate().then(async () => { this.$refs.form.validate().then(async () => {
let time = dayjs(this.form.screenTime).format('YYYY-MM-DD HH:00:00') let time = dayjs(this.form.screenTime).format('YYYY-MM-DD HH:00:00')
let content = `${this.modeEnumList?.urgeResidentShow ? `${this.firstForm?.residentsRecord?.residentName}先生/女士,` : `您好,`}请您于${time}${this.authInfo.unitName}进行专病高危筛查/慢病复查,祝早日恢复健康!` let content = `${this.modeEnumList?.urgeResidentShow ? `${this.firstForm?.residentsRecord?.residentName}先生/女士,` : `您好,`}请您于${time}${this.authInfo.unitName}进行专病高危筛查/慢病复查,祝早日恢复健康!`
const {publicizeType, ...others} = this.form
let publicizeTypeInfo = ''
if (publicizeType && publicizeType instanceof Array) {
publicizeTypeInfo = publicizeType.join()
}
if (publicizeType && typeof publicizeType === "string") {
publicizeTypeInfo = publicizeType
}
let res = { let res = {
...this.form, ...others,
publicizeType: publicizeTypeInfo,
urgentInsContent: content urgentInsContent: content
} }
//健康指导 //健康指导
......
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