持续集成分支

This commit is contained in:
aixianling
2024-10-31 14:34:57 +08:00
parent 6a833be062
commit 8c56cf808b
2165 changed files with 4116 additions and 8716 deletions

View File

@@ -0,0 +1,780 @@
<template>
<div class="album">
<div class="tips">
请确保以下信息全部由本人填写本人对所填写内容的真实性和完整性负责
</div>
<div class="form-item__group">
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>返乡人员姓名</h2>
</div>
<div class="form-item__right">
<input placeholder="请输入" v-model="form.name" :maxlength="20"/>
</div>
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>身份证号</h2>
</div>
<div class="form-item__right">
<input
placeholder="请输入"
type="idcard"
v-model="form.idNumber"
:maxlength="20"
/>
</div>
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>手机号码</h2>
</div>
<div class="form-item__right">
<input
placeholder="请输入"
type="number"
v-model="form.phone"
:maxlength="11"
/>
</div>
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>人员类别</h2>
</div>
<div class="form-item__right">
<AiSelect
v-model="form.type"
dict="epidemicRecentPersonType"
class="select"
></AiSelect>
</div>
</div>
</div>
</div>
<div class="form-item__group">
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>出行方式</h2>
</div>
<div class="form-item__right">
<AiSelect
dict="epidemicRecentTravel"
v-model="form.travelType"
class="select"
></AiSelect>
</div>
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>出发时间</h2>
</div>
<div class="form-item__right">
<div class="ai-area" @click="isShowStartTime = true">
<div class="ai-area__wrapper">
<span class="label" v-if="form.startTime">{{
form.startTime
}}</span>
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd"/>
</div>
</div>
</div>
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>出发地区</h2>
</div>
<div class="form-item__right">
<AiAreaPicker
ref="area"
class="ai-area"
v-model="form.startAreaId"
:fullName.sync="form.startAreaName"
all>
<div class="ai-area__wrapper">
<span class="label" v-if="form.startAreaName">{{
form.startAreaName
}}</span>
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd"/>
</div>
</AiAreaPicker>
</div>
</div>
</div>
<div class="form-item form-item__textarea">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>出发地址</h2>
</div>
<div class="form-item__right">
<textarea
auto-height
v-model="form.startAddress"
:maxlength="500"
placeholder="请输入详细的出发地址"
placeholder-style="font-size: 16px"
></textarea>
</div>
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>到达时间</h2>
</div>
<div class="form-item__right">
<div class="ai-area" @click="isShowEndTime = true">
<div class="ai-area__wrapper">
<span class="label" v-if="form.arriveTime">{{
form.arriveTime
}}</span>
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd"/>
</div>
</div>
</div>
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>到达地区</h2>
</div>
<div class="form-item__right">
<AiAreaPicker
ref="area"
class="ai-area"
:value="form.arriveAreaId"
:fullName.sync="form.arriveAreaName"
mode="custom"
@select="(v) => (form.arriveAreaId = v)"
all
>
<div class="ai-area__wrapper">
<span class="label" v-if="form.arriveAreaName">{{
form.arriveAreaName
}}</span>
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd"/>
</div>
</AiAreaPicker>
</div>
</div>
</div>
<div class="form-item form-item__textarea">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>返乡地址</h2>
</div>
<div class="form-item__right">
<textarea
auto-height
v-model="form.arriveAddress"
:maxlength="500"
placeholder="请输入详细的返乡地址"
placeholder-style="font-size: 16px"
></textarea>
</div>
</div>
</div>
<div class="form-item form-item__textarea">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>行程描述</h2>
</div>
<div class="form-item__right">
<textarea
auto-height
style="height: 90px"
v-model="form.description"
:maxlength="500"
placeholder="请输入行程描述"
placeholder-style="font-size: 16px"
></textarea>
</div>
</div>
</div>
</div>
<div class="form-item__group">
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>核酸检测日期</h2>
</div>
<div class="form-item__right">
<div class="ai-area" @click="isShowDate = true">
<div class="ai-area__wrapper">
<span class="label" v-if="form.checkTime">{{
form.checkTime
}}</span>
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd"/>
</div>
</div>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>本人健康码截图或核酸检测报告</h2>
</div>
<div class="form-item__right">
<AiUploader :def.sync="form.checkPhoto" :limit="1" action="/admin/file/add2"></AiUploader>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>核酸检测结果</h2>
</div>
<div class="form-item__right">
<AiRadio
style="width: 100%"
v-model="form.checkResult"
dict="epidemicRecentTestResult"
></AiRadio>
</div>
</div>
</div>
</div>
<div class="form-item__group">
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>当前体温</h2>
</div>
<div class="form-item__right">
<input
placeholder="请输入"
v-model="form.temperature"
:maxlength="20"
/>
<i></i>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>14天内是否接触新冠确诊或疑似患者</h2>
</div>
<div class="form-item__right">
<AiRadio
style="width: 100%"
v-model="form.touchInFourteen"
dict="epidemicTouchInFourteen"
></AiRadio>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>当前健康状况可多选</h2>
</div>
<div class="form-item__right">
<AiCheckbox
style="width: 100%"
v-model="form.health"
dict="epidemicRecentHealth"
></AiCheckbox>
</div>
</div>
</div>
</div>
<u-picker
mode="time"
:params="dataParams"
v-model="isShowDate"
@confirm="onDateChange"
></u-picker>
<u-picker
mode="time"
:params="params"
v-model="isShowStartTime"
@confirm="onStartChange"
></u-picker>
<u-picker
mode="time"
:params="params"
v-model="isShowEndTime"
@confirm="onEndChange"
></u-picker>
<div class="btn-wrapper">
<div class="btn" hover-class="text-hover" @click="submit">提交</div>
</div>
</div>
</template>
<script>
import {mapState} from "vuex";
export default {
data() {
return {
isShowType: false,
isShowEndTime: false,
isShowStartTime: false,
isShowDate: false,
params: {
year: true,
month: true,
day: true,
hour: true,
minute: true,
},
dataParams: {
year: true,
month: true,
day: true,
},
form: {
arriveAddress: "",
arriveAreaId: "",
arriveAreaName: "",
arriveTime: "",
checkPhoto: [],
checkResult: "",
checkTime: "",
description: "",
health: [],
idNumber: "",
name: "",
phone: "",
startAddress: "",
startAreaId: "",
startAreaName: "",
startTime: "",
temperature: "",
touchInFourteen: "",
travelType: "",
type: "",
unusual: "",
arriveGirdId: '',
arriveGirdName: '',
corpId: '',
},
dictList: [],
arr: [],
gridList: [[], [], []],
flag: false,
areaId: "",
};
},
computed: {
...mapState(["user"]),
},
onLoad(option) {
this.areaId = this.user.areaId;
document.title = '返乡登记'
if (option.corpId) {
this.form.corpId = option.corpId
}
this.form.arriveGirdId = option.arriveGirdId
this.form.arriveGirdName = decodeURIComponent(option.arriveGirdName)
},
methods: {
onDateChange(e) {
this.form.checkTime = `${e.year}-${e.month}-${e.day}`;
},
onStartChange(e) {
this.form.startTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}`;
},
onEndChange(e) {
this.form.arriveTime = `${e.year}-${e.month}-${e.day} ${e.hour}:${e.minute}`;
},
submit() {
if (!this.form.name) {
return this.$u.toast("请输入返乡人员姓名");
}
if (!this.form.idNumber) {
return this.$u.toast("请输入返乡人员身份证号");
}
if (
!/^[1-9]\d{5}(19\d{2}|20[0-2]\d)(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}([0-9xX])$/.test(this.form.idNumber)
) {
return this.$u.toast("请输入正确的身份证账号");
}
if (!this.form.phone) {
return this.$u.toast("请输入返乡人员手机号码");
}
if (!/^1[0-9]{10,10}$/.test(this.form.phone)) {
return this.$u.toast("请输入正确的手机号码");
}
if (!this.form.type) {
return this.$u.toast("请选择人员类别");
}
if (!this.form.travelType) {
return this.$u.toast("请选择出行方式");
}
if (!this.form.startTime) {
return this.$u.toast("请选择出发时间");
}
if (
new Date(this.form.startTime.replace(/-/g, "/")).getTime() >
new Date().getTime()
) {
return this.$u.toast("出发时间不得晚于当前时间");
}
if (!this.form.startAreaName) {
return this.$u.toast("请选择出发地区");
}
if (
this.form.startAreaId.substr(this.form.startAreaId.length - 3, 3) ===
"000"
) {
return this.$u.toast("出发地区必须选到村或社区");
}
if (!this.form.startAddress) {
return this.$u.toast("请输入出发详细地址");
}
if (!this.form.arriveTime) {
return this.$u.toast("请选择到达时间");
}
if (
new Date(this.form.startTime.replace(/-/g, "/")).getTime() >=
new Date(this.form.arriveTime.replace(/-/g, "/")).getTime()
) {
return this.$u.toast("到达时间不得早于出发时间");
}
if (!this.form.arriveAreaName) {
return this.$u.toast("请选择到达地区");
}
if (
this.form.arriveAreaId.substr(this.form.arriveAreaId.length - 3, 3) ===
"000"
) {
return this.$u.toast("到达地区必须选到村或社区");
}
if (!this.form.arriveAddress) {
return this.$u.toast("请输入返乡地址");
}
if (!this.form.description) {
return this.$u.toast("请输入行程描述");
}
if (!this.form.checkTime) {
return this.$u.toast("请选择核酸检测日期");
}
if (!this.form.checkPhoto.length) {
return this.$u.toast("请上传本人健康码截图或核酸检测报告");
}
if (!this.form.checkResult) {
return this.$u.toast("请选择核酸检测结果");
}
if (!this.form.temperature) {
return this.$u.toast("请输入当前体温");
}
if (!this.form.touchInFourteen) {
return this.$u.toast("请选择14天内是否接触新冠确诊或疑似患者");
}
if (!this.form.health.length) {
return this.$u.toast("请选择当前健康状况");
}
if (this.flag) return;
this.flag = true;
this.$loading();
this.$http
.post(`/app/appepidemicbackhomerecord/addOrUpdate`, {
...this.form,
startTime: this.form.startTime + ":00",
arriveTime: this.form.arriveTime + ":00",
checkTime: this.form.checkTime + " 00:00:00",
health: this.form.health.join(","),
checkPhoto: JSON.stringify(this.form.checkPhoto),
})
.then((res) => {
this.$hideLoading();
this.flag = false;
if (res.code == 0) {
uni.$emit("updateBackList");
setTimeout(() => {
uni.navigateTo({url: `./Success?status=1&corpId=${this.form.corpId}`})
}, 400);
}
}).catch((err) => {
console.log(err)
uni.$emit("updateBackList");
uni.navigateTo({url: `./Success?status=1&corpId=${this.form.corpId}`})
})
},
},
};
</script>
<style lang="scss">
.album {
padding-bottom: 140px;
.tips {
line-height: 1.3;
padding: 32px 32px;
color: #ff883c;
font-size: 30px;
text-align: justify;
background: #fff8f3;
}
.form-item__group {
margin-bottom: 24px;
background: #fff;
}
.form-item {
padding-left: 32px;
.form-item__checkbox {
width: 100%;
div {
width: 100%;
height: 80px;
line-height: 80px;
margin-bottom: 24px;
text-align: center;
background: #ffffff;
border-radius: 16px;
color: #333333;
font-size: 28px;
border: 1px solid #cccccc;
&.active {
background: #4181ff;
color: #fff;
border-color: #4181ff;
}
}
}
.form-item__radio {
display: flex;
align-items: center;
flex-wrap: wrap;
div {
width: 212px;
height: 80px;
line-height: 80px;
margin-right: 16px;
margin-bottom: 8px;
text-align: center;
background: #ffffff;
border-radius: 16px;
color: #333333;
font-size: 28px;
border: 1px solid #cccccc;
&:nth-of-type(3n) {
margin-right: 0;
}
&.active {
background: #4181ff;
color: #fff;
border-color: #4181ff;
}
}
}
.ai-area__wrapper {
display: flex;
align-items: center;
padding-left: 100px;
span {
color: #333;
font-size: 30px;
}
i {
color: #999;
font-size: 30px;
}
image {
width: 16px;
height: 8px;
}
}
.form-item__wrapper {
display: flex;
align-items: center;
justify-content: space-between;
height: 128px;
padding-right: 28px;
border-bottom: 1px solid #dddddd;
input {
flex: 1;
height: 100%;
text-align: right;
color: #333;
padding-right: 10px;
}
.form-item__right {
display: flex;
align-items: center;
font-size: 32px;
.select {
._i {
padding-left: 100px;
}
}
span {
max-width: 400px;
margin-right: 8px;
color: #333333;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
i {
margin-right: 8px;
color: #999999;
}
}
}
&:last-child {
.form-item__wrapper {
border-bottom: none;
}
}
.form-item__title {
display: flex;
align-items: center;
i {
font-size: 32px;
color: #ff4466;
}
span {
font-size: 28px;
color: #999999;
}
h2 {
padding: 0 4px;
font-weight: 600;
font-size: 32px;
color: #333333;
}
}
&.form-item__imgs,
&.form-item__textarea {
.form-item__wrapper {
display: block;
height: auto;
padding-bottom: 32px;
}
textarea {
width: 100%;
height: 90px;
}
.form-item__title {
padding: 32px 0;
}
.form-item__right {
padding-left: 18px;
}
}
}
.btn-wrapper {
position: fixed;
left: 50%;
bottom: 0;
z-index: 11;
width: 100%;
padding: 20px 0 20px 0 !important;
transform: translateX(-50%);
background: #f3f6f9;
}
.btn-wrapper .btn {
width: 686px;
height: 88px;
line-height: 88px;
margin: 0 auto;
padding: 0 !important;
text-align: center;
color: #fff;
font-size: 34px;
background: #4181FF;
border-radius: 16px;
}
.btn-wrapper .disabled {
color: #B9E7D0;
background: #50C48A;
}
}
</style>

View File

@@ -0,0 +1,488 @@
<template>
<div class="BackUserList">
<AiTopFixed v-if="isGridMember">
<div class="pad-t32"></div>
<div class="select-gird">
<AiPagePicker type="custom" @select="confirmSelect" self :ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
<div flex class="center">
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
<AiMore v-model="girdName" icon="arrow-down"/>
</div>
</AiPagePicker>
</div>
<div class="header">
<div class="tab-item">
<h2 style="color:#2C51CE;">{{ totalInfo.total }}</h2>
<p>返乡人员</p>
</div>
<div class="tab-item">
<h2 style="color:#5AAD6A;">{{ totalInfo.today }}</h2>
<p>今日返乡</p>
</div>
<div class="tab-item">
<h2 style="color:#F5A319;">{{ totalInfo.todayUnusual }}</h2>
<p>今日异常</p>
</div>
<div class="tab-item">
<h2 style="color:#CD413A;border-right:0;">{{ totalInfo.release }}</h2>
<p>异常处理</p>
</div>
</div>
<div class="tab-select">
<div class="item" :class="!tabIndex ? 'active' : ''" @click="tabClick(0)">返乡人员<span></span></div>
<div class="item" :class="tabIndex ? 'active' : ''" @click="tabClick(1)">异常人员<span></span></div>
</div>
</AiTopFixed>
<div class="user-list" v-if="isGridMember">
<div class="item" @click="toUser(item)" v-for="(item,index) in list" :key="index">
<h2 class="name">{{ item.name }}<span class="status" v-if="item.status == 0">有异常</span></h2>
<p class="color-999">{{ item.idNumber }}</p>
<p><img src="./components/img/org-icon.png" alt=""><span class="start-name">{{ item.startAreaName }}</span></p>
<p><img src="./components/img/blue-icon.png" alt=""><span class="start-name">{{ item.arriveAreaName }}</span>
</p>
<p><img src="./components/img/time-icon.png" alt="">{{ item.arriveTime }}</p>
</div>
</div>
<AiEmpty v-if="!list.length && isGridMember"></AiEmpty>
<div v-if="!isGridMember" class="empty">
<img src="./components/img/no-admin.png" alt="">
<p>没有网格员权限<br/>无法查看返乡登记哦~</p>
</div>
<div class="pad-b120"></div>
<div class="footer" v-if="isGridMember">
<div class="bg-fff"
@click="linkTo(`./Add?arriveGirdId=${girdId}&arriveGirdName=${encodeURIComponent(girdName)}`)">登记
</div>
<div class="bg-blue" @click="show=true">邀请居民填写</div>
</div>
<u-popup v-model="show" mode="bottom" border-radius="14">
<div class="line-bg"></div>
<div class="flex">
<div class="item" @click="share">
<img src="./components/img/zf.png" alt="">
<p>转发</p>
</div>
<div class="item" @click="shareWechat">
<img src="./components/img/wx.png" alt="">
<p>分享到微信</p>
</div>
<div class="item" @click="copy">
<img src="./components/img/lj.png" alt="">
<p>获取链接</p>
</div>
<div class="item" @click="linkTo(`./Qrcode?girdId=${girdId}&girdName=${girdName}`)">
<img src="./components/img/ewm.png" alt="">
<p>保存二维码</p>
</div>
</div>
<div class="btn" @click="show=false">取消</div>
</u-popup>
</div>
</template>
<script>
import {mapActions, mapState} from 'vuex'
import qs from "query-string"
export default {
appName: '返乡登记',
data() {
return {
tabIndex: 0,
current: 1,
list: [],
name: '',
totalInfo: {},
show: false,
girdName: '',
girdId: '',
}
},
computed: {
...mapState(['user']),
params() {
return qs.parse(decodeURIComponent(location.search))
},
shareLink() {
let {girdId, girdName, user: {corpId}} = this
return location.origin + `/apps/AppBackUserList/add?corpId=${corpId}&arriveGirdId=${girdId}&arriveGirdName=${encodeURIComponent(girdName)}`
},
isGridMember() {
return this.user.girdCheckType > 0
}
},
onLoad() {
this.girdId = this.user.girdId
this.confirmSelect(this.user)
uni.$on('updateBackList', () => {
this.getListInit()
this.getTotal()
})
},
onShow() {
document.title = '返乡登记'
},
methods: {
...mapActions(['injectJWeixin', 'wxInvoke']),
confirmSelect(v) {
this.girdId = v?.id
this.girdName = v?.girdName
this.getListInit()
this.getTotal()
},
tabClick(index) {
this.tabIndex = index
this.getListInit()
},
getListInit() {
this.current = 1
this.list = []
this.getList()
},
getList() {
var status = ''
if (this.tabIndex == 1) {
status = 0
}
this.$http.post(`/app/appepidemicbackhomerecord/list?current=${this.current}&size=10&status=${status}&name=${this.name}&arriveGirdId=${this.girdId}`)
.then((res) => {
if (res?.data) {
res.data.records.map((item) => {
item.idNumber = this.$idCardNoUtil.hideId(item.idNumber)
})
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
}
})
},
getTotal() {
this.$http.post(`/app/appepidemicbackhomerecord/statistic?arriveGirdId=${this.girdId}`).then((res) => {
if (res?.data) {
this.totalInfo = res.data
}
})
},
toUser(row) {
uni.navigateTo({url: `./UserInfo?id=${row.id}`})
},
linkTo(url) {
uni.navigateTo({url})
},
close() {
this.show = false
},
open() {
this.show = true
},
copy() {
let oInput = document.createElement('input')
oInput.value = this.shareLink
document.body.appendChild(oInput)
oInput.select()
document.execCommand('Copy')
this.$u.toast('已复制')
oInput.remove()
},
share() {
this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => {
this.wxInvoke(['shareAppMessage', {
// title: this.params.title,
// desc: this.params.tableExplain,
imgUrl: 'https://cdn.cunwuyun.cn/dvcp/h5/back-user-share.png',
link: this.shareLink,
}])
})
},
shareWechat() {
this.injectJWeixin(['shareAppMessage', 'shareWechatMessage']).then(() => {
this.wxInvoke(['shareWechatMessage', {
// title: this.params.title,
// desc: this.params.tableExplain,
imgUrl: 'https://cdn.cunwuyun.cn/dvcp/h5/back-user-share.png',
link: this.shareLink,
}])
})
},
},
onReachBottom() {
this.current++
this.getList()
}
}
</script>
<style lang="scss" scoped>
.BackUserList {
.header {
padding: 54px 32px 48px 32px;
display: flex;
background-color: #fff;
margin-bottom: 4px;
.tab-item {
flex: 1;
text-align: center;
h2 {
font-size: 52px;
font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold;
height: 80px;
margin-bottom: 8px;
letter-spacing: -4px;
border-right: 1px solid #ddd;
line-height: 44px;
}
p {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 40px;
margin-top: -22px;
}
}
.tab-item:nth-last-of-type(1) {
border-right: 0;
}
}
.search {
width: 100%;
height: 112px;
padding: 32px;
box-sizing: border-box;
background: #FFF;
display: flex;
margin-bottom: 8px;
.left {
width: calc(100% - 402px);
}
}
.tab-select {
width: 100%;
height: 96px;
background: #FFF;
display: flex;
margin-bottom: 4px;
.item {
flex: 1;
font-size: 32px;
line-height: 96px;
font-family: PingFangSC-Regular, PingFang SC;
color: #333;
text-align: center;
}
.active {
color: #135AB8;
position: relative;
span {
position: absolute;
bottom: 0;
left: 50%;
width: 192px;
margin-left: -96px;
border-bottom: 4px solid #135AB8;
}
}
}
.user-list {
background-color: #f5f5f5;
.item {
padding: 32px 64px 24px;
background-color: #fff;
margin-bottom: 8px;
.name {
font-size: 36px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
line-height: 50px;
margin-bottom: 8px;
.status {
float: right;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #FF4466;
line-height: 40px;
}
}
p {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #333;
line-height: 40px;
margin-bottom: 8px;
img {
width: 32px;
height: 32px;
margin-right: 18px;
vertical-align: top;
}
}
.start-name {
display: inline-block;
width: calc(100% - 50px);
}
.color-999 {
margin-bottom: 24px;
color: #999;
}
}
}
::v-deep .AiTopFixed {
.placeholder {
.content {
padding: 0 !important;
}
}
.fixed {
margin: 0 !important;
background-color: #f5f5f5 !important;
.content {
padding: 0 !important;
}
}
}
.pad-t32 {
padding-top: 32px;
}
.select-gird {
width: calc(100% - 60px);
padding: 24px 32px;
background: #FFFFFF;
border-radius: 16px;
margin: 0 30px 32px;
box-sizing: border-box;
text-align: center;
img {
width: 32px;
height: 32px;
vertical-align: middle;
margin-right: 8px;
}
.center {
justify-content: center;
}
}
.empty {
text-align: center;
img {
width: 282px;
height: 306px;
margin: 136px auto 0;
}
p {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 40px;
}
}
.pad-b120 {
padding-bottom: 120px;
}
.footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 112px;
line-height: 110px;
text-align: center;
display: flex;
font-size: 36px;
font-family: PingFangSC-Regular, PingFang SC;
z-index: 99;
.bg-fff {
flex: 1;
color: #333;
background-color: #fff;
}
.bg-blue {
flex: 2;
color: #fff;
background-color: #3975C6;
}
}
.line-bg {
width: 110px;
height: 8px;
background: #DCDDDE;
border-radius: 4px;
margin: 32px auto 82px;
}
.flex {
width: 100%;
display: flex;
padding-bottom: 70px;
.item {
flex: 1;
text-align: center;
img {
width: 100px;
height: 100px;
border-radius: 16px;
background-color: #fff;
margin-bottom: 16px;
}
p {
font-size: 26px;
font-family: PingFangSC-Regular, PingFang SC;
color: #666;
line-height: 36px;
}
}
}
.btn {
width: 100%;
height: 96px;
line-height: 96px;
text-align: center;
background: #FFF;
font-size: 30px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
}
::v-deep .uni-scroll-view {
background-color: #f7f7f7;
}
}
</style>

View File

@@ -0,0 +1,272 @@
<template>
<div class="ErrorInfo">
<div class="header">
<div class="name">{{info.name}}<span @click="callPhone(info.phone)">{{info.phone}}</span><img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(info.phone)" class="phone-icon" /></div>
<p>身份证号</p>
<p class="mar-b8" style="color: #333">{{info.idNumber}}</p>
<p>异常情况</p>
<p style="color: #ff4466">
<span>{{info.unusual}}</span>
</p>
</div>
<div class="info" v-if="list.length">
<div class="title">异常情况记录</div>
<div class="error-list">
<div class="item" v-for="(item, index) in list" :key="index">
<p>{{item.content}}</p>
<div>{{item.createTime}}
<span>网格员<AiOpenData v-if="item.createUserName" type="userName" :openid="item.createUserName" style="display:inline-block;" />11</span>
</div>
</div>
</div>
</div>
<div class="bg-line"></div>
<div class="footer">
<div class="add" @click="show = true">新增记录</div>
<div class="confirm" @click="cancel()">解除异常</div>
</div>
<u-popup v-model="show" mode="bottom">
<div class="textarea">
<u-input v-model="value" type="textarea" :height="120" :auto-height="true" placeholder="异常情况记录" :clearable="false" maxlength="1000" />
<p>字数{{value.length}}/1000</p>
</div>
<div class="btn">
<span @click="value=''">清空内容</span>
<span class="confirm" @click="confirm">保存</span>
</div>
</u-popup>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
components: {},
props: {},
data() {
return {
show: false,
value: '',
id: '',
list: [],
info: {}
}
},
computed: {
...mapState(['user']),
},
onShow() {
document.title = '异常情况处理'
},
onLoad(option) {
this.id = option.id
this.$dict.load('epidemicRecentHealth').then(() => {
this.getDetail()
})
this.getList()
},
methods: {
getList() {
this.$http.post(`/app/appepidemicunusuallog/list?recordId=${this.id}`).then((res) => {
if (res.code == 0) {
this.list = res.data.records
}
})
},
getDetail() {
this.$http.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${this.id}`).then((res) => {
if (res.code == 0) {
res.data.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
this.info = res.data
this.info.health = this.info.health.split(',')
}
})
},
cancel() {
this.$confirm(`是否解除该条异常信息?`).then(() => {
this.$http.post("/app/appepidemicbackhomerecord/release", {id: this.id}).then(res => {
if (res.code == 0) {
this.$u.toast("解除成功!")
uni.$emit('updateDetail')
uni.$emit('updateList')
setTimeout(() => {
uni.navigateBack()
}, 600);
}
})
})
},
confirm() {
if(!this.value) {
return this.$u.toast('请输入异常情况')
}
var params = {
"content": this.value,
"createUserId": this.user.id,
"createUserName": this.user.name,
"recordId": this.id
}
this.$http.post("/app/appepidemicunusuallog/addOrUpdate", params).then(res => {
if (res.code == 0) {
this.$u.toast("新增成功!")
this.show = false
this.value = ''
this.getList()
}
})
},
callPhone(phone) {
uni.makePhoneCall({phoneNumber: phone})
},
},
}
</script>
<style scoped lang="scss">
.ErrorInfo {
height: 100%;
.header {
padding: 32px 48px;
box-sizing: border-box;
background-color: #fff;
margin-bottom: 24px;
.name {
font-size: 36px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
line-height: 50px;
margin-bottom: 16px;
span {
font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #4181ff;
line-height: 44px;
margin: 0 20px 0 32px;
}
img {
width: 32px;
height: 32px;
vertical-align: middle;
}
}
p {
font-size: 30px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 42px;
color: #999;
}
.mar-b8 {
margin-bottom: 8px;
}
}
.info {
padding: 0 32px 32px;
background-color: #fff;
.title {
font-size: 38px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333;
line-height: 116px;
}
.error-list {
.item {
width: 100%;
background: #f4f7fe;
border-radius: 8px;
padding: 24px 24px 18px 24px;
box-sizing: border-box;
margin-bottom: 16px;
p {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #343d65;
line-height: 40px;
word-break: break-all;
margin-bottom: 12px;
}
div {
font-size: 24px;
font-family: PingFangSC-Regular, PingFang SC;
color: #666;
line-height: 34px;
span {
display: inline-block;
margin-left: 32px;
}
}
}
}
}
.footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 112px;
line-height: 112px;
background: #fff;
display: flex;
font-size: 36px;
font-family: PingFangSC-Regular, PingFang SC;
.add {
flex: 1;
color: #333;
}
.confirm {
flex: 2;
color: #fff;
background: #1365dd;
}
div {
text-align: center;
}
}
.bg-line {
width: 100%;
height: 130px;
}
.textarea {
margin: 32px 32px 24px;
width: calc(100% - 64px);
padding: 16px;
box-sizing: border-box;
background: #f7f7f7;
border-radius: 8px;
p {
font-size: 26px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 36px;
text-align: right;
}
}
.btn {
padding: 0 32px 24px;
height: 64px;
display: flex;
justify-content: space-between;
span {
display: inline-block;
line-height: 64px;
font-size: 26px;
font-family: PingFangSC-Regular, PingFang SC;
color: #666;
}
.confirm {
width: 144px;
text-align: center;
background: #1365dd;
border-radius: 32px;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #fff;
}
}
}
</style>

View File

@@ -0,0 +1,97 @@
<template>
<div class="Qrcode">
<div class="content">
<img src="./components/img/qrcode-header.png" alt="" class="header-img">
<div class="code-content">
<div class="img-div">
<img :src="imgUrl" alt="">
</div>
<p>扫二维码填写返乡人员信息</p>
<p>网格信息:{{girdName}}</p>
</div>
</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
girdName: '',
girdId: '',
imgUrl: ''
}
},
computed: { ...mapState(['user']) },
onShow() {
document.title = '返乡人员信息'
},
onLoad(option) {
this.girdName = option.girdName
this.girdId = option.girdId
this.getQrcode()
},
methods: {
getQrcode() {
this.$http.post(`/app/appepidemicbackhomerecord/addQrCodeURL?arriveGirdId=${this.girdId}&arriveGirdName=${this.girdName}`).then((res) => {
if (res.code == 0) {
this.imgUrl = res.data
}
})
}
},
}
</script>
<style lang="scss" scoped>
uni-page-body{
height: 100%;
}
.Qrcode{
width: 100%;
height: 100%;
background-color: #F3F6F9;
padding: 30px 30px 134px;
box-sizing: border-box;
.content{
width: 100%;
background-color: #fff;
padding: 120px 70px 200px;
box-sizing: border-box;
.header-img{
width: 100%;
}
.code-content{
width: 100%;
height: 614px;
background: #F6F9FF;
border-radius: 12px;
border: 1px solid #E6EEFF;
margin-top: -8px;
padding: 28px 44px 0;
box-sizing: border-box;
.img-div{
width: 462px;
height: 462px;
background-color: #fff;
margin-bottom: 4px;
}
img{
width: 424px;
height: 424px;
margin: auto;
}
p{
margin-top: 8px;
font-size: 26px;
font-family: PingFangSC-Regular, PingFang SC;
color: #333;
line-height: 36px;
text-align: center;
}
}
}
}
</style>

View File

@@ -0,0 +1,72 @@
<template>
<div class="success">
<img src="./components/img/success.png" alt="" v-if="status">
<img src="./components/img/fail.png" alt="" v-else>
<p>{{status ? '上报成功!' : '上报失败!'}}</p>
<div class="footer" @click="back" v-if="!corpId">{{status ? '确定' : '我知道了'}}</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
status: 1,
corpId: ''
}
},
onShow() {
document.title = '返乡登记'
},
onLoad(option) {
this.status = option.status
if(option.corpId) {
this.corpId = option.corpId
}
},
methods: {
back() {
uni.navigateBack({delta: 2})
}
},
}
</script>
<style lang="scss" scoped>
uni-page-body{
height: 100%;
background-color: #fff;
}
.success {
text-align: center;
img{
width: 192px;
height: 192px;
margin: 96px 0 16px 0;
}
p{
line-height: 50px;
color: #333;
font-size: 36px;
font-weight: 500;
text-align: center;
margin-bottom: 72px;
}
.footer{
width: calc(100% - 96px);
height: 88px;
line-height: 88px;
background: #1365DD;
box-shadow: inset 0px 1px 0px 0px #EEEEEE;
font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #FFF;
text-align: center;
border-radius: 8px;
margin-left: 48px;
}
}
</style>

View File

@@ -0,0 +1,355 @@
<template>
<div class="BackUserList">
<div class="user-list">
<div class="item">
<h2 class="name">{{info.name}}的返乡登记信息</h2>
<p><img src="./components/img/org-icon.png" alt=""><span class="start-name">{{info.startAreaName}}</span></p>
<p><img src="./components/img/blue-icon.png" alt=""><span class="start-name">{{info.arriveAreaName}}</span></p>
<p><img src="./components/img/time-icon.png" alt="">{{info.arriveTime}}</p>
</div>
</div>
<div class="info">
<div class="title">基本信息</div>
<div class="item-flex">
<div class="label">姓名</div>
<div class="value">{{info.name}}</div>
</div>
<div class="item-flex">
<div class="label">身份证号</div>
<div class="value">{{info.idNumber}}</div>
</div>
<div class="item-flex">
<div class="label">联系方式</div>
<div class="value" style="color:#4181FF;" @click="callPhone(info.phone)">
<img :src="$cdn + 'common/phone.png'" alt="" class="phone-icon" >
{{info.phone}}</div>
</div>
<div class="item-flex">
<div class="label">人员类别</div>
<div class="value" :style="info.type == 0 ? 'color:#42D784;' : 'color:#f46;'">{{$dict.getLabel('epidemicMemberType', info.type)}}</div>
</div>
</div>
<div class="line-bg"></div>
<div class="info">
<div class="title">行程信息</div>
<div class="item-flex">
<div class="label">出行方式</div>
<div class="value">{{$dict.getLabel('epidemicRecentTravel', info.travelType)}}</div>
</div>
<div class="item-flex">
<div class="label">出发时间</div>
<div class="value">{{info.startTime.substring(0, 16)}}</div>
</div>
<div class="item-flex">
<div class="label">出发地区</div>
<div class="value" :style="{color: info.denger == 1 ? '#FF4466' : '#333'}">{{info.startAreaName}}</div>
</div>
<div class="item-flex">
<div class="label">出发地址</div>
<div class="value">{{info.startAddress}}</div>
</div>
<div class="item-flex">
<div class="label">到达时间</div>
<div class="value">{{info.arriveTime.substring(0, 16)}}</div>
</div>
<div class="item-flex">
<div class="label">返乡地区</div>
<div class="value">{{info.arriveAreaName}}</div>
</div>
<div class="item-flex">
<div class="label">返乡地址</div>
<div class="value">{{info.arriveAddress}}</div>
</div>
<div class="item-flex">
<div class="label">行程描述</div>
<div class="value">{{info.description}}</div>
</div>
</div>
<div class="line-bg"></div>
<div class="info">
<div class="title">核酸检测信息</div>
<div class="item-flex">
<div class="label">核酸检测日期</div>
<div class="value">{{info.checkTime}}</div>
</div>
<div class="item-flex">
<div class="label">核酸检测结果</div>
<div class="value" :style="info.checkResult == 1 ? 'color:#f46;' : 'color:#42D784;'">{{$dict.getLabel('epidemicRecentTestResult', info.checkResult)}}</div>
</div>
<div class="item-flex border-none">
<div style="color:#999;">本人健康码截图或核酸检测报告</div>
</div>
<div class="img-list">
<img :src="item.url" alt="" v-for="(item, index) in info.checkPhoto" :key="index" @click="previewImage(info.checkPhoto, item.url)">
</div>
</div>
<div class="line-bg"></div>
<div class="info">
<div class="title">健康状况</div>
<div class="item-flex">
<div class="label">当前体温</div>
<div class="value" :style="info.temperature >= 37.3 ? 'color:#f46;' : ''">{{info.temperature}}</div>
</div>
<div class="item-flex">
<div class="label" style="width:360px;">14天内是否接触新冠确诊或疑似患者</div>
<div class="value" :class="'color-'+info.touchInFourteen">{{$dict.getLabel('epidemicTouchInFourteen', info.touchInFourteen)}}</div>
</div>
<div class="item-flex">
<div class="label">当前健康状况</div>
<div class="value" >
<span v-for="(item, index) in info.health" :key="index" :style="item != 0 ? 'color:#FF4466;' : ''"><span v-if="index>0">;</span>{{$dict.getLabel('epidemicRecentHealth', item)}}</span>
</div>
</div>
</div>
<div class="line-bg"></div>
<div class="info" v-if="list.length || info.releaseName">
<div class="title" >异常处理情况</div>
<div class="error-list" v-if="list.length">
<div class="item" v-for="(item, index) in list" :key="index">
<p>{{item.content}}</p>
<div>{{item.createTime}}
<span>
网格员<span style="margin-left:0;"><AiOpenData v-if="item.createUserName" type="userName" :openid="item.createUserName" /></span>
</span>
</div>
</div>
</div>
<div class="item-flex" v-if="info.releaseName">
<div class="label">异常解除人</div>
<div class="value">
<AiOpenData v-if="info.releaseName" type="userName" :openid="info.releaseName" />
</div>
</div>
<div class="item-flex" v-if="info.releaseName">
<div class="label">异常解除时间</div>
<div class="value">{{info.releaseTime}}</div>
</div>
</div>
<div class="line-bg" style="padding-bottom: 56px;"></div>
<div class="footer" @click="toError" v-if="info.status != 1">异常情况处理</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
id: '',
info: {},
list: []
}
},
computed: { ...mapState(['user']) },
onShow() {
document.title = '返乡人员信息'
},
onLoad(option) {
this.$dict.load('epidemicMemberType', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicRecentTestResult', 'epidemicRecentHealth').then(() => {
this.id = option.id
this.getDetail()
this.getList()
})
uni.$on('updateDetail', () => {
this.getList()
this.getDetail()
})
},
methods: {
getList() {
this.$http.post(`/app/appepidemicunusuallog/list?recordId=${this.id}`).then((res) => {
if (res.code == 0) {
this.list = res.data.records
}
})
},
getDetail() {
this.$http.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${this.id}`).then((res) => {
if (res.data && 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")
}
})
},
callPhone(phone) {
uni.makePhoneCall({phoneNumber: phone})
},
previewImage(images, img) {
uni.previewImage({
urls: images.map(v => v.url),
current: img
})
},
toError() {
uni.navigateTo({url: `./ErrorInfo?id=${this.id}`})
}
},
}
</script>
<style lang="scss" scoped>
.BackUserList {
.user-list{
margin-bottom: 24px;
.item{
padding: 32px 64px 24px;
background-color: #fff;
.name{
font-size: 36px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
line-height: 50px;
margin-bottom: 8px;
.status{
float: right;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #FF4466;
line-height: 40px;
}
}
p{
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #333;
line-height: 40px;
margin-bottom: 8px;
img{
width: 32px;
height: 32px;
margin-right: 18px;
vertical-align: top;
}
}
.color-999{
margin-bottom: 24px;
color: #999;
}
.start-name{
display: inline-block;
width: calc(100% - 50px);
}
}
}
.info{
background-color: #fff;
padding: 0 32px;
.title{
line-height: 116px;
background: #FFF;
font-size: 38px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333;
}
.item-flex{
padding: 34px 0;
border-bottom: 1px solid #ddd;
display: flex;
justify-content: space-between;
line-height: 44px;
font-size: 32px;
font-family: PingFangSC-Regular, PingFang SC;
.label{
width: 206px;
color: #999;
}
.value{
width: calc(100% - 206px);
word-break: break-all;
color: #333;
text-align: right;
.phone-icon{
width: 40px;
height: 40px;
vertical-align: middle;
margin-right: 8px;
}
}
.color-0{
color: #42D784;
}
.color-1{
color: #f46;
}
.color-2{
color: #f46;
}
}
.img-list{
padding-bottom: 32px;
img{
width: 320px;
height: 320px;
}
}
.item-flex:nth-last-of-type(1){
border-bottom: 0;
}
.error-list {
.item {
width: 100%;
background: #f4f7fe;
border-radius: 8px;
padding: 24px 24px 18px 24px;
box-sizing: border-box;
margin-bottom: 16px;
p {
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #343d65;
line-height: 40px;
word-break: break-all;
margin-bottom: 12px;
}
div {
font-size: 24px;
font-family: PingFangSC-Regular, PingFang SC;
color: #666;
line-height: 34px;
span {
display: inline-block;
margin-left: 32px;
}
}
}
}
.text-p{
line-height: 44px;
color: #333;
padding-bottom: 16px;
}
}
.line-bg{
width: 100%;
height: 24px;
background-color: #F3F6F9;
}
.footer{
width: 100%;
height: 112px;
line-height: 112px;
background: #1365DD;
box-shadow: inset 0px 1px 0px 0px #EEEEEE;
font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #FFF;
text-align: center;
position: fixed;
bottom: 0;
left: 0;
}
.border-none{
border-bottom: 0!important;
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB