手机端访客信息更改

This commit is contained in:
shijing 2022-12-27 22:46:58 +08:00
parent e06876cbcf
commit 86e53b530d
3 changed files with 81 additions and 83 deletions

View File

@ -2,8 +2,8 @@
"name" : "曲阳金隅EHS",
"appid" : "__UNI__B00D419",
"description" : "曲阳金隅EHS",
"versionName" : "1.01.18",
"versionCode" : 101018,
"versionName" : "1.01.19",
"versionCode" : 101019,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -99,13 +99,13 @@
<view class="infoTitle">头像</view>
<image :src="visitorItem.photo" @click="preView(visitorItem.photo)"></image>
</view>
<view class="visitorInfo">
<!-- <view class="visitorInfo">
<view class="infoTitle">返乡时间</view><view>{{visitorItem.return_date}}</view>
</view>
</view> -->
<view class="visitorInfo">
<view class="infoTitle">来源地</view><view>{{visitorItem.come_place}}</view>
</view>
<view class="visitorInfo">
<!-- <view class="visitorInfo">
<view class="infoTitle">行程轨迹</view><view>{{visitorItem.trip_desc}}</view>
</view>
<view class="visitorInfo">
@ -116,11 +116,11 @@
</view>
<view class="visitorInfo">
<view class="infoTitle">是否已报备</view><view>{{visitorItem.is_reported?'已报备':'未报备'}}</view>
</view>
</view> -->
<view class="visitorInfo">
<view class="infoTitle">是否主访客</view><view>{{visitorItem.is_main?'是':'否'}}</view>
</view>
<view class="visitorInfo">
<!-- <view class="visitorInfo">
<view class="infoTitle">健康码</view>
<view v-if="visitorItem.health_code==''">未上传</view>
<image v-else :src="visitorItem.health_code" @click="preView(visitorItem.health_code)"></image>
@ -134,7 +134,7 @@
<view class="infoTitle">核酸报告</view>
<view v-if="visitorItem.test_report==''">未上传</view>
<image v-else :src="visitorItem.test_report" @click="preView(visitorItem.test_report)"></image>
</view>
</view> -->
</view>
<icon class="closeDetailIcon" type="cancel" size="36" color="#fefefe" @click="closeVisitorDetail"/>
</view>
@ -230,9 +230,9 @@
viewPeople(item) {
this.visitorItem = item;
this.visitorItem.photo = item.visitor_.photo!==''?this.vuex_host + item.visitor_.photo:'';
this.visitorItem.health_code = item.health_code!==''?(this.vuex_host + item.health_code):'';
this.visitorItem.travel_code = item.travel_code!==''?this.vuex_host + item.travel_code:'';
this.visitorItem.test_report = item.test_report!==''?this.vuex_host + item.test_report:'';
// this.visitorItem.health_code = item.health_code!==''?(this.vuex_host + item.health_code):'';
// this.visitorItem.travel_code = item.travel_code!==''?this.vuex_host + item.travel_code:'';
// this.visitorItem.test_report = item.test_report!==''?this.vuex_host + item.test_report:'';
this.visitorDetailLimited = true;
},
closeVisitorDetail(){

View File

@ -14,7 +14,7 @@
</uni-data-select>
</view>
</view>
<view class="item item_bottom_border">
<!-- <view class="item item_bottom_border">
<view class="title"><text class="star">*</text>返乡时间</view>
<view class="content">
<uni-datetime-picker
@ -23,7 +23,7 @@
:hide-second="true"
/>
</view>
</view>
</view> -->
<view class="item item_bottom_border">
<view class="title"><text class="star">*</text>来源地</view>
<view class="content" @click="toggleMaskLocation">
@ -48,13 +48,13 @@
<input type="text" v-model="formData.come_place" maxlength="20" placeholder="请输入来源地具体地址" />
</view>
</view>
<view class="item item_bottom_border">
<!-- <view class="item item_bottom_border">
<view class="title"><text class="star">*</text>行程轨迹</view>
<view class="content">
<input type="text" v-model="formData.trip_desc" maxlength="20" placeholder="请输入行程轨迹" />
</view>
</view>
<view class="item item_bottom_border">
</view> -->
<!-- <view class="item item_bottom_border">
<view class="title"><text class="star">*</text>管控措施</view>
<view class="content">
<uni-data-select name="measure" :localdata="measureRange" v-model="formData.measure">
@ -70,40 +70,38 @@
:hide-second="true"
/>
</view>
</view>
<view class="item item_bottom_border">
</view> -->
<!-- <view class="item item_bottom_border">
<view class="title"><text class="star">*</text>是否报备</view>
<view class="content">
<u-switch v-model="formData.is_reported"></u-switch>
</view>
</view>
</view> -->
<view class="item item_bottom_border">
<view class="title"><text class="star">*</text>是否主访客</view>
<view class="content">
<u-switch v-model="formData.is_main"></u-switch>
</view>
</view>
<view class="item item_bottom_border" style="height: fit-content;">
<!-- <view class="item item_bottom_border" style="height: fit-content;">
<view class="title"><text class="star">*</text>健康码</view>
<view style="flex: 3;">
<u-upload :action="vuex_apifile" :header="header" ref="uUpload" max-count="1" @on-success="imgUpdataHealth"></u-upload>
<!-- <imgUpload :count="1" :header="header" :url="vuex_apifile" @obtain_img="imgUpdataHealth" :list="healthFileList"></imgUpload> -->
//<imgUpload :count="1" :header="header" :url="vuex_apifile" @obtain_img="imgUpdataHealth" :list="healthFileList"></imgUpload>
</view>
</view>
<view class="item item_bottom_border" style="height: fit-content;">
</view> -->
<!-- <view class="item item_bottom_border" style="height: fit-content;">
<view class="title"><text class="star">*</text>行程码</view>
<view style="flex: 3;">
<u-upload :action="vuex_apifile" :header="header" ref="uUpload" max-count="1" @on-success="imgUpdataTravel"></u-upload>
<!-- <imgUpload :count="1" :header="header" :url="vuex_apifile" @obtain_img="imgUpdataTravel" :list="travelFileList"></imgUpload> -->
</view>
</view>
<view class="item item_bottom_border" style="height: fit-content;">
<view class="title"><text class="star">*</text>核酸报告</view>
<view style="flex: 3;">
<u-upload :action="vuex_apifile" :header="header" ref="uUpload" max-count="1" @on-success="imgUpdataReport"></u-upload>
<!-- <imgUpload :count="1" :header="header" :url="vuex_apifile" @obtain_img="imgUpdataReport" :list="reportFileList"></imgUpload> -->
</view>
</view>
</view> -->
</view>
<view class="btn">
<button type="default" class="save-btn" @click="formSubmit">确定</button>
@ -126,16 +124,16 @@
formData: {
visit: '',
visitor: '',
return_date: '',
// return_date: '',
come_place: '',
trip_desc: '',
test_date:'',
measure: '',
health_code: '',
travel_code: '',
test_report: '',
// trip_desc: '',
// test_date:'',
// measure: '',
// health_code: '',
// travel_code: '',
// test_report: '',
is_main: false,
is_reported: false,
// is_reported: false,
},
selfData:provinceData,
headtitle:"请选择所在地",
@ -236,13 +234,13 @@
})
return false;
}
if (!nonNullCheck(this.formData.return_date)) {
uni.showToast({
title: '请选择返乡时间',
icon: "none"
})
return false;
}
// if (!nonNullCheck(this.formData.return_date)) {
// uni.showToast({
// title: '',
// icon: "none"
// })
// return false;
// }
if (this.addressByPcrs=="请选择所在地") {
uni.showToast({
title: '请选择所在地',
@ -257,48 +255,48 @@
})
return false;
}
if (!nonNullCheck(this.formData.trip_desc)) {
uni.showToast({
title: '请选择行程轨迹',
icon: "none"
})
return false;
}
if (!nonNullCheck(this.formData.measure)) {
uni.showToast({
title: '请选择管控措施',
icon: "none"
})
return false;
}
if (!nonNullCheck(this.formData.test_date)) {
uni.showToast({
title: '请选择核酸日期',
icon: "none"
})
return false;
}
if (!nonNullCheck(this.formData.health_code)) {
uni.showToast({
title: '请上传健康码',
icon: "none"
})
return false;
}
if (!nonNullCheck(this.formData.travel_code)) {
uni.showToast({
title: '请上传行程码',
icon: "none"
})
return false;
}
if (!nonNullCheck(this.formData.test_report)) {
uni.showToast({
title: '请上传核酸报告',
icon: "none"
})
return false;
}
// if (!nonNullCheck(this.formData.trip_desc)) {
// uni.showToast({
// title: '',
// icon: "none"
// })
// return false;
// }
// if (!nonNullCheck(this.formData.measure)) {
// uni.showToast({
// title: '',
// icon: "none"
// })
// return false;
// }
// if (!nonNullCheck(this.formData.test_date)) {
// uni.showToast({
// title: '',
// icon: "none"
// })
// return false;
// }
// if (!nonNullCheck(this.formData.health_code)) {
// uni.showToast({
// title: '',
// icon: "none"
// })
// return false;
// }
// if (!nonNullCheck(this.formData.travel_code)) {
// uni.showToast({
// title: '',
// icon: "none"
// })
// return false;
// }
// if (!nonNullCheck(this.formData.test_report)) {
// uni.showToast({
// title: '',
// icon: "none"
// })
// return false;
// }
return true;
},