卡口登记

This commit is contained in:
shijingjing
2022-11-15 11:32:17 +08:00
parent 668c51494b
commit 710c17567f
2 changed files with 23 additions and 19 deletions

View File

@@ -311,6 +311,7 @@
<script> <script>
import { mapState, mapActions } from 'vuex' import { mapState, mapActions } from 'vuex'
import NamePhone from './components/namePhone.vue' import NamePhone from './components/namePhone.vue'
import dayjs from 'dayjs'
export default { export default {
appName: "添加卡口记录", appName: "添加卡口记录",
data() { data() {
@@ -335,11 +336,11 @@ export default {
arriveAreaId: '', arriveAreaId: '',
arriveAreaName: '', arriveAreaName: '',
arriveAddress: '', arriveAddress: '',
fromHighRiskArea: '', fromHighRiskArea: '0',
highRiskAreaId: '', highRiskAreaId: '',
highRiskAreaName: '', highRiskAreaName: '',
contactPatients: '', contactPatients: '0',
abnormalHealth: '', abnormalHealth: '0',
abnormalType: '', abnormalType: '',
companionCount: '', // 同行人数量 companionCount: '', // 同行人数量
companionList: [], // 同行人集合 companionList: [], // 同行人集合
@@ -388,6 +389,8 @@ export default {
if(decodeURIComponent(o.scene) != 'undefined') { if(decodeURIComponent(o.scene) != 'undefined') {
this.scene = decodeURIComponent(o.scene) this.scene = decodeURIComponent(o.scene)
} }
let timeNow = dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss");
this.form.arriveTime = timeNow.substr(0,timeNow.length - 3)
}, },
onShow() { onShow() {
this.$dict.load(['EP_travelType']).then(()=> { this.$dict.load(['EP_travelType']).then(()=> {
@@ -422,9 +425,7 @@ export default {
...mapActions(['getUserInfo']), ...mapActions(['getUserInfo']),
// 授权登录 // 授权登录
getAuth() { getAuth() {
this.$nextTick(() => { this.$nextTick(() => {
// if(this.token) {
this.token && this.getUserInfo() this.token && this.getUserInfo()
this.form.gatewayId = this.scene this.form.gatewayId = this.scene
this.getewayList() this.getewayList()
@@ -434,7 +435,6 @@ export default {
this.form.gatewayName = item?.[0].label this.form.gatewayName = item?.[0].label
},400) },400)
this.pageShow = true this.pageShow = true
// }
}) })
}, },
@@ -475,7 +475,7 @@ export default {
this.form.startTime = res.data.startTime.substr(0, res.data.startTime.length - 3) this.form.startTime = res.data.startTime.substr(0, res.data.startTime.length - 3)
this.form.arriveTime = res.data.arriveTime.substr(0, res.data.arriveTime.length - 3) this.form.arriveTime = res.data.arriveTime.substr(0, res.data.arriveTime.length - 3)
this.startAreaId = res.data.startAreaId this.startAreaId = res.data.startAreaId
this.arriveAreaName = res.data.startAreaName this.startAreaName = res.data.startAreaName
} }
this.$hideLoading() this.$hideLoading()
}) })
@@ -523,6 +523,11 @@ export default {
if(res?.data) { if(res?.data) {
this.form.name = res.data.name || '' this.form.name = res.data.name || ''
this.form.phone = res.data.phone || '' this.form.phone = res.data.phone || ''
this.startAreaId = res.data.startAreaId
this.startAreaName = res.data.startAreaName
this.form.description = res.data.description || ''
this.form.arriveAreaId = res.data.arriveAreaId
this.form.arriveAreaName = res.data.arriveAreaName
} }
}) })
}, },

View File

@@ -49,12 +49,11 @@
<span style="color: #4181FF">{{ info.phone }}</span> <span style="color: #4181FF">{{ info.phone }}</span>
</div> </div>
</div> </div>
<div class="detail-info__item"> <!-- <div class="detail-info__item">
<div class="left"> <div class="left">
<label>人员类别</label> <label>人员类别</label>
</div> </div>
<div class="right"> <div class="right">
<!-- :style="{color: /[03]/.test(info.type) ? '#42D784' : '#FF4466'}" -->
<span>{{ $dict.getLabel('EP_registerPersonType', info.type) }}</span> <span>{{ $dict.getLabel('EP_registerPersonType', info.type) }}</span>
</div> </div>
</div> </div>
@@ -65,7 +64,7 @@
<div class="right"> <div class="right">
<span>{{ $dict.getLabel('EP_highRiskIndustries', info.highRiskIndustries) }}</span> <span>{{ $dict.getLabel('EP_highRiskIndustries', info.highRiskIndustries) }}</span>
</div> </div>
</div> </div> -->
</div> </div>
<div class="detail-info"> <div class="detail-info">