核酸采样,社区管理
This commit is contained in:
@@ -4,15 +4,15 @@
|
||||
<div class="title">基本信息</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">管理区域</div>
|
||||
<div class="value">{{info.name}}</div>
|
||||
<div class="value">{{info.areaName}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">管理对象</div>
|
||||
<div class="value">{{info.idNumber}}</div>
|
||||
<div class="value">{{info.name}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">身份证号</div>
|
||||
<div class="value">{{info.idNumber}}</div>
|
||||
<div class="value">{{info.idNumberText}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">手机号码</div>
|
||||
@@ -22,30 +22,31 @@
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">居家状态</div>
|
||||
<div class="value">{{info.idNumber}}</div>
|
||||
<div class="value">{{$dict.getLabel('EP_homeStatus2', info.homeStatus)}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">隔离时间</div>
|
||||
<div class="value">{{info.idNumber}}</div>
|
||||
<div class="value">{{info.quarantineBeginTime}}至{{info.quarantineEndTime}}</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
<div class="label">隔离策略</div>
|
||||
<div class="value">{{info.idNumber}}</div>
|
||||
<div class="value">{{$dict.getLabel('EP_quarantineStrategy', info.quarantineStrategy)}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line-bg"></div>
|
||||
<div class="info">
|
||||
<div class="title">核酸采集信息(已采样<span style="color:#f46;">3</span>次)</div>
|
||||
<div class="info" v-if="info.nucleicAcidSamplingCount>0">
|
||||
<div class="title">核酸采集信息(已采样<span style="color:#f46;">{{info.nucleicAcidSamplingCount}}</span>次)</div>
|
||||
<div class="error-list">
|
||||
<div class="item">
|
||||
<div class="item" v-for="(item, index) in info.nucleicAcidSamplingList" :key="index">
|
||||
<div>
|
||||
<span>采样人:张三</span>
|
||||
<span>联系方式:18164065622</span>
|
||||
<span>采样人:{{item.createUserName}}</span>
|
||||
<span>联系方式:{{item.createUserPhone}}</span>
|
||||
</div>
|
||||
<p>采样时间:2022-09-22 16:06:59</p>
|
||||
<p>采样时间:{{item.createTime}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer" v-if="info.status != 0" @click="toAdd">采样</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -57,7 +58,6 @@ export default {
|
||||
return {
|
||||
id: '',
|
||||
info: {},
|
||||
list: []
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
@@ -65,36 +65,25 @@ export default {
|
||||
document.title = '采样信息'
|
||||
},
|
||||
onLoad(option) {
|
||||
// this.$dict.load('epidemicRecentPersonType', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicRecentTestResult', 'epidemicRecentHealth').then(() => {
|
||||
// this.id = option.id
|
||||
// this.getDetail()
|
||||
// this.getList()
|
||||
// })
|
||||
// uni.$on('updateDetail', () => {
|
||||
// this.getList()
|
||||
// this.getDetail()
|
||||
// })
|
||||
this.$dict.load('EP_homeStatus2', 'EP_quarantineStrategy').then(() => {
|
||||
this.id = option.id
|
||||
this.getDetail()
|
||||
})
|
||||
uni.$on('updateDetail', () => {
|
||||
this.getDetail()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http.post(`/app/appepidemicunusuallog/list?recordId=${this.id}`).then((res) => {
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.list = res.data.records
|
||||
this.info = res.data
|
||||
this.info.idNumberText = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||
}
|
||||
})
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
if(res.data.checkTime) {
|
||||
res.data.checkTime = res.data.checkTime.substring(0, 10)
|
||||
}
|
||||
this.info = res.data
|
||||
this.info.checkPhoto = JSON.parse(this.info.checkPhoto)
|
||||
this.info.health = this.info.health.split(',')
|
||||
this.info.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||
}
|
||||
})
|
||||
toAdd() {
|
||||
uni.navigateTo({ url: `./Add?id=${this.id}` })
|
||||
},
|
||||
callPhone(phone) {
|
||||
uni.makePhoneCall({phoneNumber: phone})
|
||||
@@ -105,8 +94,8 @@ export default {
|
||||
current: img
|
||||
})
|
||||
},
|
||||
toError() {
|
||||
uni.navigateTo({url: `./ErrorInfo?id=${this.id}`})
|
||||
toEdit() {
|
||||
uni.navigateTo({url: `./Add?id=${this.id}`})
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user