返乡登记

This commit is contained in:
shijingjing
2022-11-15 11:43:14 +08:00
parent 710c17567f
commit 46e1ac2264

View File

@@ -280,6 +280,7 @@
<script> <script>
import {mapState} from 'vuex' import {mapState} from 'vuex'
import dayjs from 'dayjs'
export default { export default {
appName: "添加返乡记录", appName: "添加返乡记录",
@@ -323,11 +324,11 @@ export default {
arriveAreaId: '', arriveAreaId: '',
arriveAreaName: '', arriveAreaName: '',
arriveAddress: '', arriveAddress: '',
fromHighRiskArea: '', fromHighRiskArea: '0',
highRiskAreaId: '', highRiskAreaId: '',
highRiskAreaName: '', highRiskAreaName: '',
contactPatients: '', contactPatients: '0',
abnormalHealth: '', abnormalHealth: '0',
abnormalType: '', abnormalType: '',
companionList: [], companionList: [],
}, },
@@ -367,6 +368,8 @@ export default {
this.travelTypeDict = this.$dict.getDict('EP_travelType') this.travelTypeDict = this.$dict.getDict('EP_travelType')
this.getewayList() this.getewayList()
}) })
let timeNow = dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss");
this.form.arriveTime = timeNow.substr(0,timeNow.length - 3)
}, },
methods: { methods: {
@@ -428,6 +431,10 @@ export default {
if(res?.data) { if(res?.data) {
this.form.name = res.data.records?.[0]?.name || '' this.form.name = res.data.records?.[0]?.name || ''
this.form.phone = res.data.records?.[0]?.phone || '' this.form.phone = res.data.records?.[0]?.phone || ''
this.startAreaId = res.data.records?.[0]?.startAreaId
this.startAreaName = res.data.records?.[0]?.startAreaName
this.form.arriveAreaId = res.data.records?.[0]?.arriveAreaId
this.form.arriveAreaName = res.data.records?.[0]?.arriveAreaName
} }
}) })
}, },
@@ -710,7 +717,7 @@ export default {
} }
span { span {
max-width: 400px; max-width: 336px;
margin-right: 8px; margin-right: 8px;
color: #333333; color: #333333;
overflow: hidden; overflow: hidden;