|
|
|
|
@ -91,15 +91,15 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view class="btn" v-if="detail.status === 0 && flag" @click="$u.throttle(sign,1000)">
|
|
|
|
|
<view class="text1">签到</view>
|
|
|
|
|
<view class="text2">{{$u.timeFormat(time,'hh:MM:ss')}}</view>
|
|
|
|
|
<view class="text2">{{dateFormat(time,'HH:mm:ss')}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="btn" v-if="detail.status === 1" @click="$u.throttle(signOut,1000)">
|
|
|
|
|
<view class="text1">签退</view>
|
|
|
|
|
<view class="text2">{{$u.timeFormat(time,'hh:MM:ss')}}</view>
|
|
|
|
|
<view class="text2">{{dateFormat(time,'HH:mm:ss')}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="btn" v-if="detail.status === 0 && !flag" @click="$u.throttle(refreshLoaction,1000)">
|
|
|
|
|
<view class="text1">更新定位</view>
|
|
|
|
|
<view class="text2">{{$u.timeFormat(time,'hh:MM:ss')}}</view>
|
|
|
|
|
<view class="text2">{{dateFormat(time,'HH:mm:ss')}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="btn" v-if="detail.status === 2">
|
|
|
|
|
<view class="text1">护理已完成</view>
|
|
|
|
|
@ -108,7 +108,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 打卡信息 -->
|
|
|
|
|
<view class="clock-info" v-if="location.lat && location.lng && location.time">
|
|
|
|
|
定位时间:{{$u.timeFormat(location.time,'hh:MM:ss')}} {{location.address}}
|
|
|
|
|
定位时间:{{dateFormat(location.time,'HH:mm:ss')}} {{location.address}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
@ -121,6 +121,7 @@
|
|
|
|
|
ROOTPATH
|
|
|
|
|
} from '@/common/config.js'
|
|
|
|
|
import QQMapWX from '@/libs/qqmap-wx-jssdk.js'
|
|
|
|
|
import moment from '@/libs/moment.min.js'
|
|
|
|
|
|
|
|
|
|
import imgUpload from './components/imgUpload.vue'
|
|
|
|
|
export default {
|
|
|
|
|
@ -460,6 +461,13 @@
|
|
|
|
|
item.default === 1
|
|
|
|
|
})[0]?.address || addresses[0]?.address || '无'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
dateFormat() {
|
|
|
|
|
return function(date, fmt = "YYYY-MM-DD") {
|
|
|
|
|
if (date) {
|
|
|
|
|
return moment(date).format(fmt)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad(option) {
|
|
|
|
|
|