Commit 0af1f5a9 authored by songrui's avatar songrui

Merge branch 'chronic-dev' of http://gitlab.yiboshi.com/nightkis1995/frontend-h5 into chronic-dev

parents e4c9d5e1 0e788961
This diff is collapsed.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
v-model='data.selectedValues' v-model='data.selectedValues'
:min-date='data.minDate' :min-date='data.minDate'
:max-date='data.maxDate' :max-date='data.maxDate'
@change='changeTime'
/> />
</van-popup> </van-popup>
</template> </template>
...@@ -74,6 +74,10 @@ watch( ...@@ -74,6 +74,10 @@ watch(
} }
) )
watch(()=> data.selectedValues, val => {
changeTime()
})
function getcolumns() { function getcolumns() {
let strtime = props.values //传入的时间 let strtime = props.values //传入的时间
//console.log(strtime); 2023-09-05 19:28:00 //console.log(strtime); 2023-09-05 19:28:00
...@@ -159,7 +163,7 @@ function getcolumns() { ...@@ -159,7 +163,7 @@ function getcolumns() {
if (data.minDate && minYear == Y) { if (data.minDate && minYear == Y) {
let minDay = new Date(data.minDate).getDate() let minDay = new Date(data.minDate).getDate()
let allD = Object.keys(Array.apply(null, { length: days + 1 })) let allD = Object.keys(Array.apply(null, { length: days + 1 }))
allDays = allD.filter(item => item >= minDay) allDays = allD.filter(item => item >=(minDay - 1))
} else { } else {
allDays = Object.keys(Array.apply(null, { length: days + 1 })) allDays = Object.keys(Array.apply(null, { length: days + 1 }))
} }
...@@ -183,7 +187,9 @@ function getcolumns() { ...@@ -183,7 +187,9 @@ function getcolumns() {
if (data.showType.includes('hour')) { if (data.showType.includes('hour')) {
let hour = [] //创建小时数组 let hour = [] //创建小时数组
let allHour = [] let allHour = []
if (data.minDate && minYear == Y) { let minMon = new Date(data.minDate).getMonth()
let minDay = new Date(data.minDate).getDate()
if (data.minDate && minYear == Y && minMon == M && minDay == D) {
let minHour = new Date(data.minDate).getHours() ? new Date(data.minDate).getHours(): new Date().getHours() let minHour = new Date(data.minDate).getHours() ? new Date(data.minDate).getHours(): new Date().getHours()
let allH = Object.keys(Array.apply(null, { length: 24 })) let allH = Object.keys(Array.apply(null, { length: 24 }))
allHour = allH.filter(item => item >= minHour) allHour = allH.filter(item => item >= minHour)
...@@ -366,10 +372,10 @@ function changeColumns(val) { ...@@ -366,10 +372,10 @@ function changeColumns(val) {
let allDays = [] let allDays = []
if (data.minDate && minYear == Y) { if (data.minDate && minYear == Y) {
let minDay = new Date(data.minDate).getDate() let minDay = new Date(data.minDate).getDate()
let allD = Object.keys(Array.apply(null, { length: days + 1 })) let allD = Object.keys(Array.apply(null, { length: days + 1}))
allDays = allD.filter(item => item >= minDay) allDays = allD.filter(item => item >= (minDay - 1))
} else { } else {
allDays = Object.keys(Array.apply(null, { length: days + 1 })) allDays = Object.keys(Array.apply(null, { length: days + 1}))
} }
day = allDays.map(function(item) { day = allDays.map(function(item) {
if (+item + 1 <= 10) { if (+item + 1 <= 10) {
...@@ -391,7 +397,9 @@ function changeColumns(val) { ...@@ -391,7 +397,9 @@ function changeColumns(val) {
if (data.showType.includes('hour')) { if (data.showType.includes('hour')) {
let hour = [] //创建小时数组 let hour = [] //创建小时数组
let allHour = [] let allHour = []
if (data.minDate && minYear == Y) { let minMon = new Date(data.minDate).getMonth()
let minDay = new Date(data.minDate).getDate()
if (data.minDate && minYear == Y && minMon == M && minDay == D) {
let minHour = new Date(data.minDate).getHours() ? new Date(data.minDate).getHours(): new Date().getHours() let minHour = new Date(data.minDate).getHours() ? new Date(data.minDate).getHours(): new Date().getHours()
let allH = Object.keys(Array.apply(null, { length: 24 })) let allH = Object.keys(Array.apply(null, { length: 24 }))
allHour = allH.filter(item => item >= minHour) allHour = allH.filter(item => item >= minHour)
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
</div> </div>
</div> </div>
<div class='card mt-2' v-if='detailInfo?.publicizeType?.includes(3)'> <div class='card mt-2' v-if='detailInfo?.publicizeType?.includes(3)'>
<Mp4 :files='mp4List' :activeMediaUrl="activeMediaUrl" <Mp4 :files='mp4List' :activeMediaUrl='activeMediaUrl'
@play='e => activeMediaUrl = e.annexUrl' /> @play='e => activeMediaUrl = e.annexUrl' />
</div> </div>
<div class='card flex flex-col mt-2' style='row-gap: .06rem;' <div class='card flex flex-col mt-2' style='row-gap: .06rem;'
...@@ -173,9 +173,12 @@ ...@@ -173,9 +173,12 @@
<template #right-icon> <template #right-icon>
<doc-icon type='doc-down' /> <doc-icon type='doc-down' />
</template> </template>
<div> <div v-if='info.uploadVisitRecordImageList && info.uploadVisitRecordImageList.length'>
<image-preview :img-list='info.uploadVisitRecordImageList'></image-preview> <image-preview :img-list='info.uploadVisitRecordImageList'></image-preview>
</div> </div>
<div v-else class='w-full' style='text-align: right'>
<span>-</span>
</div>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key='11' title='现场随访照片' name='11'> <van-collapse-item key='11' title='现场随访照片' name='11'>
<template #right-icon> <template #right-icon>
...@@ -186,9 +189,12 @@ ...@@ -186,9 +189,12 @@
<img style='width: 1.47rem;height: 2.04rem' :src="url.trueDownloadUrl" /> <img style='width: 1.47rem;height: 2.04rem' :src="url.trueDownloadUrl" />
</div> </div>
</div>--> </div>-->
<div> <div v-if='info.sceneVisitImageList && info.sceneVisitImageList.length'>
<image-preview :img-list='info.sceneVisitImageList'></image-preview> <image-preview :img-list='info.sceneVisitImageList'></image-preview>
</div> </div>
<div v-else class='w-full' style='text-align: right'>
<span>-</span>
</div>
</van-collapse-item> </van-collapse-item>
<van-collapse-item key='12' title='推送渠道' name='12' <van-collapse-item key='12' title='推送渠道' name='12'
v-if='info?.visitWayRules?.includes(2) || info?.visitWayRules?.includes(3) || info?.visitWayRules?.includes(4)'> v-if='info?.visitWayRules?.includes(2) || info?.visitWayRules?.includes(3) || info?.visitWayRules?.includes(4)'>
...@@ -211,7 +217,8 @@ ...@@ -211,7 +217,8 @@
<span class='text-end'> <span class='text-end'>
<div class='flex items-center'> <div class='flex items-center'>
<span>{{ info?.serviceResidents?.messageStateName || '-' }}</span> <span>{{ info?.serviceResidents?.messageStateName || '-' }}</span>
<span class='ml-4' v-if='info?.serviceResidents?.messageState == 4' style='font-size: 12px'> <span class='ml-4' v-if='info?.serviceResidents?.messageState == 4'
style='font-size: 12px'>
<van-button plain type='primary' size='small' @click='toReSend'>重新发送</van-button> <van-button plain type='primary' size='small' @click='toReSend'>重新发送</van-button>
</span> </span>
</div> </div>
...@@ -297,7 +304,7 @@ export default { ...@@ -297,7 +304,7 @@ export default {
], ],
// 控制音频同一时间只播放一个 // 控制音频同一时间只播放一个
activeMediaUrl: '', activeMediaUrl: '',
hideActiveMediaUrl: '', hideActiveMediaUrl: ''
} }
}, },
computed: { computed: {
...@@ -385,12 +392,12 @@ export default { ...@@ -385,12 +392,12 @@ export default {
//数据处理 //数据处理
dataHandle() { dataHandle() {
const { visitWayRules, publicizeType } = this.info const { visitWayRules, publicizeType } = this.info
if (publicizeType) { if (publicizeType) {
this.detailInfo.publicizeType = publicizeType.split(',').map(item => Number(item)) this.detailInfo.publicizeType = publicizeType.split(',').map(item => Number(item))
} }
if (visitWayRules) { if (visitWayRules) {
this.detailInfo.visitWayRules = visitWayRules.split(',').map(item => Number(item)) this.detailInfo.visitWayRules = visitWayRules.split(',').map(item => Number(item))
} }
}, },
//重新发送 //重新发送
toReSend() { toReSend() {
......
...@@ -323,6 +323,10 @@ const defaultForm = (info = {}) => { ...@@ -323,6 +323,10 @@ const defaultForm = (info = {}) => {
//随访人群 //随访人群
groupsArrays: undefined, groupsArrays: undefined,
groupsArraysName: undefined, groupsArraysName: undefined,
//慢病标签
//随访方式 //随访方式
visitWay: undefined, visitWay: undefined,
visitWayName: undefined, visitWayName: undefined,
...@@ -572,6 +576,7 @@ export default { ...@@ -572,6 +576,7 @@ export default {
sendNumber, sendNumber,
residentInfoId: this.form.residentInfoId, residentInfoId: this.form.residentInfoId,
residentsRecord: { residentsRecord: {
...this.info,
...others, ...others,
groupsArrays: this.info.groupsArrays, groupsArrays: this.info.groupsArrays,
id: this.form.personId id: this.form.personId
......
...@@ -312,7 +312,7 @@ export default { ...@@ -312,7 +312,7 @@ export default {
this.currentTime1 = time.split('-') this.currentTime1 = time.split('-')
this.startTime = new dayjs().add(1, 'day').format('YYYY-MM-DD HH:mm:ss') this.startTime = new dayjs().add(1, 'day').format('YYYY-MM-DD HH:mm:ss')
this.startDateRange.max = new Date(date.year() + 10, date.month(), date.date()) this.startDateRange.max = new Date(date.year() + 10, date.month(), date.date())
this.startDateRange.min = new Date(date.year(), date.month(), date.date()) this.startDateRange.min = new Date(date.year(), date.month(), date.date() + 1)
}, },
methods: { methods: {
setForm(data = {}) { setForm(data = {}) {
......
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