fix:更新优化
This commit is contained in:
parent
f6fa2aac45
commit
66c45f31e3
@ -1,5 +1,5 @@
|
||||
NODE_ENV= development
|
||||
VITE_HTTP_BASE_URL = http://10.39.13.78:8002/api/
|
||||
# VITE_HTTP_BASE_URL = http://10.39.13.78:8002/api/
|
||||
# VITE_HTTP_BASE_URL = http://test-weapp-api.linyikj.com.cn/api/
|
||||
# VITE_HTTP_BASE_URL= https://weapp-api.linyikj.com.cn/api/
|
||||
VITE_HTTP_BASE_URL= https://weapp-api.linyikj.com.cn/api/
|
||||
VITE_ACCESS_TOKEN_KEY= 'ACCESS_TOKEN_CUSTOMER'
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
node_modules
|
||||
dist
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"version": "0.0.62"
|
||||
"version": "0.0.65"
|
||||
}
|
||||
2
dist/build/mp-weixin/INDEX/pass/index.js
vendored
2
dist/build/mp-weixin/INDEX/pass/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/build/mp-weixin/INDEX/pass/index.wxml
vendored
2
dist/build/mp-weixin/INDEX/pass/index.wxml
vendored
@ -1 +1 @@
|
||||
<view class="release_items_page"><view class="release_content"><view wx:if="{{a}}" class="expired"><view><uni-icons wx:if="{{b}}" u-i="0f9698b0-0" bind:__l="__l" u-p="{{b}}"></uni-icons></view><view class="des"> 通行证已失效 </view><view class="sub_des"> 该二维码已失效,请和客户确认出入信息 </view></view><view wx:else class="user_info"><view class="avatar"><u-avatar wx:if="{{c}}" u-i="0f9698b0-1" bind:__l="__l" u-p="{{c}}"></u-avatar></view><view class="name">{{d}}</view><view class="phone">{{e}}</view></view><view class="outer_info"><view class="cell_items"><view class="label"> 关联房屋 </view><view class="value">{{f}}</view></view><view class="cell_items"><view class="label"> 状态 </view><view wx:if="{{g}}" class="status status_expired"> 已失效 </view><view wx:else class="{{i}}">{{h}}</view></view><view wx:if="{{j}}" class="cell_items"><view class="label"> 事项 </view><view class="value">{{k}}</view></view><view class="cell_items"><view class="label"> 上次进入时间 </view><view class="value">{{l}}</view></view><view class="cell_items"><view class="label"> 上次离开时间 </view><view class="value">{{m}}</view></view></view></view><hs-footer wx:if="{{n}}" bindhandleParmaryClick="{{o}}" bindhandleOtherClick="{{p}}" u-i="0f9698b0-2" bind:__l="__l" u-p="{{q}}"/></view>
|
||||
<view class="release_items_page"><view wx:if="{{a}}" class="release_content"><view wx:if="{{b}}" class="expired"><view><uni-icons wx:if="{{c}}" u-i="0f9698b0-0" bind:__l="__l" u-p="{{c}}"></uni-icons></view><view class="des"> 通行证已失效 </view><view class="sub_des"> 该二维码已失效,请和客户确认出入信息 </view></view><view wx:else class="user_info"><view class="avatar"><u-avatar wx:if="{{d}}" u-i="0f9698b0-1" bind:__l="__l" u-p="{{d}}"></u-avatar></view><view class="name">{{e}}</view><view class="phone">{{f}}</view></view><view class="outer_info"><view class="cell_items"><view class="label"> 关联房屋 </view><view class="value">{{g}}</view></view><view class="cell_items"><view class="label"> 状态 </view><view wx:if="{{h}}" class="status status_expired"> 已失效 </view><view wx:else class="{{j}}">{{i}}</view></view><view wx:if="{{k}}" class="cell_items"><view class="label"> 事项 </view><view class="value">{{l}}</view></view><view class="cell_items"><view class="label"> 上次进入时间 </view><view class="value">{{m}}</view></view><view class="cell_items"><view class="label"> 上次离开时间 </view><view class="value">{{n}}</view></view></view></view><view wx:if="{{o}}" class="release_content"><view class="user_info"><view class="avatar"><u-avatar wx:if="{{p}}" u-i="0f9698b0-2" bind:__l="__l" u-p="{{p}}"></u-avatar></view><view class="name">{{q}}</view><view class="phone">{{r}}</view></view></view><hs-footer wx:if="{{s}}" bindhandleParmaryClick="{{t}}" bindhandleOtherClick="{{v}}" u-i="0f9698b0-3" bind:__l="__l" u-p="{{w}}"/><hs-footer wx:if="{{x}}" bindhandleParmaryClick="{{y}}" bindhandleOtherClick="{{z}}" u-i="0f9698b0-4" bind:__l="__l" u-p="{{A}}"/></view>
|
||||
2
dist/build/mp-weixin/INDEX/pass/index.wxss
vendored
2
dist/build/mp-weixin/INDEX/pass/index.wxss
vendored
@ -1 +1 @@
|
||||
page{background-color:#f8f8f8}.release_items_page{padding:40rpx 0;padding-bottom:calc(130rpx + constant(safe-area-inset-bottom));padding-bottom:calc(130rpx + env(safe-area-inset-bottom))}.expired{text-align:center}.expired .des{padding:15rpx 0 10rpx;font-size:28rpx}.expired .sub_des{color:#333;font-size:23rpx;padding-top:5rpx}.release_content{background-color:#fff;border-radius:20rpx;margin:0 30rpx;overflow:hidden;padding:50rpx 0 30rpx}.release_content .user_info{color:#3d3d3d;font-size:26rpx;text-align:center}.release_content .user_info .name{font-size:32rpx;font-weight:700;padding:18rpx 0 6rpx}.release_content .avatar{display:flex;align-items:center;justify-content:center;margin:0 auto}.outer_info{font-size:28rpx;border-top:1rpx solid #eee;margin:30rpx 30rpx 0}.outer_info .cell_items{display:flex;align-items:center;justify-content:space-between;padding-top:25rpx}.outer_info .cell_items .label{font-size:30rpx;color:#666}.status_Approved{color:#55c51d}.status_expired{color:#cf1322}
|
||||
page{background-color:#f8f8f8}.release_items_page{padding:40rpx 0;padding-bottom:calc(130rpx + constant(safe-area-inset-bottom));padding-bottom:calc(130rpx + env(safe-area-inset-bottom))}.expired{text-align:center}.expired .des{padding:15rpx 0 10rpx;font-size:28rpx}.expired .sub_des{color:#333;font-size:23rpx;padding-top:5rpx}.release_content{background-color:#fff;border-radius:20rpx;margin:0 30rpx;overflow:hidden;padding:50rpx 0}.release_content .user_info{color:#3d3d3d;font-size:26rpx;text-align:center}.release_content .user_info .name{font-size:32rpx;font-weight:700;padding:18rpx 0 6rpx}.release_content .avatar{display:flex;align-items:center;justify-content:center;margin:0 auto}.outer_info{font-size:28rpx;border-top:1rpx solid #eee;margin:30rpx 30rpx 0}.outer_info .cell_items{display:flex;align-items:center;justify-content:space-between;padding-top:25rpx}.outer_info .cell_items .label{font-size:30rpx;color:#666}.status_Approved{color:#55c51d}.status_expired{color:#cf1322}
|
||||
|
||||
2
dist/build/mp-weixin/INDEX/pass/method.js
vendored
2
dist/build/mp-weixin/INDEX/pass/method.js
vendored
@ -1 +1 @@
|
||||
"use strict";const o=require("../../common/libraries/apiLoading.js"),e=require("../../common/libraries/day.js"),i=require("../../common/libraries/naviHelper.js"),l=require("../../gen/Apis.js"),d=require("./model.js"),a=i=>{o.getApiLoading(l.Apis.Visitor.VisitorApplies.Show,i).then(o=>{var i,l,a,s,n,r;d.useModel.showData.value=null==o?void 0:o.data,(null==(l=null==(i=null==o?void 0:o.data)?void 0:i.renovation_workers)?void 0:l.length)&&(d.useModel.userInfo.value=null==(s=null==(a=null==o?void 0:o.data)?void 0:a.renovation_workers)?void 0:s[0]),(null==(n=null==o?void 0:o.data)?void 0:n.code_expired_at)&&(d.useModel.isExpired.value=e.isDatePassed(null==(r=null==o?void 0:o.data)?void 0:r.code_expired_at)),console.log(o)})},s={getShow:a,handleSubmit(e){var s,n,r;o.getApiLoading(l.Apis.Visitor.VisitorApplies.Scan,{code:null==(r=null==(n=null==(s=d.useModel)?void 0:s.showData)?void 0:n.value)?void 0:r.visitor_code,scan_type:e}).then(o=>{i.showToast("操作成功!",()=>{var o,e,i;a({id:null==(i=null==(e=null==(o=d.useModel)?void 0:o.showData)?void 0:e.value)?void 0:i.id})}),console.log(o)})}};exports.method=s;
|
||||
"use strict";const e=require("../../common/libraries/apiLoading.js"),o=require("../../common/libraries/day.js"),l=require("../../common/libraries/naviHelper.js"),i=require("../../gen/Apis.js"),a=require("./model.js"),s=l=>{e.getApiLoading(i.Apis.Visitor.VisitorApplies.Show,l).then(e=>{var l,i,s,d,n,r;a.useModel.showData.value=null==e?void 0:e.data,(null==(i=null==(l=null==e?void 0:e.data)?void 0:l.renovation_workers)?void 0:i.length)&&(a.useModel.userInfo.value=null==(d=null==(s=null==e?void 0:e.data)?void 0:s.renovation_workers)?void 0:d[0]),(null==(n=null==e?void 0:e.data)?void 0:n.code_expired_at)&&(a.useModel.isExpired.value=o.isDatePassed(null==(r=null==e?void 0:e.data)?void 0:r.code_expired_at)),console.log(e)})},d={init(e){a.useModel.formData.value=e,console.log(e,a.useModel.formData.value,"sncd"),s(e)},handleSubmit(o){var d,n,r,u,t;e.getApiLoading(i.Apis.Visitor.VisitorApplies.Scan,{code:null==(r=null==(n=null==(d=a.useModel)?void 0:d.showData)?void 0:n.value)?void 0:r.visitor_code,scan_type:o,...null==(t=null==(u=a.useModel)?void 0:u.formData)?void 0:t.value}).then(e=>{l.showToast("操作成功!",()=>{s(a.useModel.formData.value)}),console.log(e)})}};exports.method=d;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<view><hs-empty wx:if="{{a}}" u-i="5673da8c-0" bind:__l="__l"/><view wx:for="{{b}}" wx:for-item="i" wx:key="D" class="schedules_item"><view class="schedules_item_header"> 打卡任务-{{c}}</view><view class="card_periods_item"><u-steps wx:if="{{i.C}}" u-s="{{['d']}}" u-i="{{i.B}}" bind:__l="__l" u-p="{{i.C}}"><u-steps-item u-s="{{['desc']}}" u-i="{{i.m}}" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>上班卡:{{i.a}}前</view><block wx:if="{{i.b}}"><view class="{{i.d}}">{{i.c}}</view></block><block wx:else><view wx:if="{{i.e}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{i.f}}" class="to_check" bindtap="{{i.i}}"> 前往打卡<uni-icons wx:if="{{i.h}}" u-i="{{i.g}}" bind:__l="__l" u-p="{{i.h}}"></uni-icons></view><view wx:if="{{i.j}}" class="{{i.l}}">{{i.k}}已打卡 </view></view></u-steps-item><u-steps-item u-s="{{['desc']}}" u-i="{{i.A}}" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>下班卡:{{i.n}}前</view><block wx:if="{{i.o}}"><view class="{{i.q}}">{{i.p}}</view></block><block wx:else><view wx:if="{{i.r}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{i.s}}" class="to_check" bindtap="{{i.w}}"> 前往打卡<uni-icons wx:if="{{i.v}}" u-i="{{i.t}}" bind:__l="__l" u-p="{{i.v}}"></uni-icons></view><view wx:if="{{i.x}}" class="{{i.z}}">{{i.y}}已打卡 </view></view></u-steps-item></u-steps></view></view></view>
|
||||
<view><hs-empty wx:if="{{a}}" u-i="5673da8c-0" bind:__l="__l"/><view class="schedules_content"><view wx:for="{{b}}" wx:for-item="i" wx:key="D" class="schedules_item"><view class="schedules_item_header"> 打卡任务-{{c}}({{d}}) </view><view class="card_periods_item"><u-steps wx:if="{{i.C}}" u-s="{{['d']}}" u-i="{{i.B}}" bind:__l="__l" u-p="{{i.C}}"><u-steps-item u-s="{{['desc']}}" u-i="{{i.m}}" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>上班卡:{{i.a}}前</view><block wx:if="{{i.b}}"><view class="{{i.d}}">{{i.c}}</view></block><block wx:else><view wx:if="{{i.e}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{i.f}}" class="to_check" bindtap="{{i.i}}"> 前往打卡<uni-icons wx:if="{{i.h}}" u-i="{{i.g}}" bind:__l="__l" u-p="{{i.h}}"></uni-icons></view><view wx:if="{{i.j}}" class="{{i.l}}">{{i.k}}已打卡 </view></view></u-steps-item><u-steps-item u-s="{{['desc']}}" u-i="{{i.A}}" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>下班卡:{{i.n}}前</view><block wx:if="{{i.o}}"><view class="{{i.q}}">{{i.p}}</view></block><block wx:else><view wx:if="{{i.r}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{i.s}}" class="to_check" bindtap="{{i.w}}"> 前往打卡<uni-icons wx:if="{{i.v}}" u-i="{{i.t}}" bind:__l="__l" u-p="{{i.v}}"></uni-icons></view><view wx:if="{{i.x}}" class="{{i.z}}">{{i.y}}已打卡 </view></view></u-steps-item></u-steps></view></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<view><view wx:if="{{a}}" class="sign_clock_in_page"><view class="sign_clock_in_page_title"> 打卡地点 </view><view class="{{g}}"><image src="https://gc-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01KADY6KD59DQYMF6PBFSZN98X.png" mode="widthFix"/><view class="sign_clock_in_page_map_content"><view><view class="label"> 你{{b}}打卡范围内 </view><view class="address_name"><uni-icons wx:if="{{c}}" u-i="47899bc6-0" bind:__l="__l" u-p="{{c}}"></uni-icons><text>{{d}}</text></view></view><view wx:if="{{e}}" class="update_location" bindtap="{{f}}"><view class="update_location_btn"> 更新位置 </view></view></view></view><view class="steps_item"><u-steps wx:if="{{w}}" u-s="{{['d']}}" u-i="47899bc6-1" bind:__l="__l" u-p="{{w}}"><u-steps-item u-s="{{['desc']}}" u-i="47899bc6-2,47899bc6-1" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view> 上班卡:{{h}}前 </view><view wx:if="{{i}}" class="status status_normal">{{j}}</view><block wx:else><view wx:if="{{k}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{l}}" class="{{n}}"> 打卡时间:{{m}}</view></view></u-steps-item><u-steps-item u-s="{{['desc']}}" u-i="47899bc6-3,47899bc6-1" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>下班卡: {{o}}前</view><view wx:if="{{p}}" class="status status_normal">{{q}}</view><block wx:else><view wx:if="{{r}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{s}}" class="{{v}}"> 打卡时间:{{t}}</view></view></u-steps-item></u-steps></view><view wx:if="{{x}}" class="watermark_info"><view wx:if="{{y}}"><view wx:for="{{z}}" wx:for-item="i" wx:key="e" class="upload_item_img"><image src="{{i.a}}" mode="aspectFill" bindtap="{{i.b}}"/><view class="upload_item_delete" bindtap="{{i.d}}"><uni-icons wx:if="{{A}}" u-i="{{i.c}}" bind:__l="__l" u-p="{{A}}"></uni-icons></view></view></view><view wx:else class="update_photo"><hs-button wx:if="{{C}}" bindclick="{{B}}" u-i="47899bc6-5" bind:__l="__l" u-p="{{C}}"/></view></view><view class="TakePhotoCheckIn"><block wx:if="{{D}}"><view><view class="btn" bindtap="{{F}}"><view><view class="btn_label"> 打卡 </view><view>{{E}}</view></view></view><view wx:if="{{G}}" class="no_distance_des"> 请先上传打卡照,再点击打卡按钮 </view></view></block><block wx:else><view><view class="btn no_distance"><view><view class="btn_label"> 打卡</view><view>{{H}}</view></view></view><view wx:if="{{I}}" class="no_distance_des"><view> 当前不在打卡范围内 </view><view>前往{{J}}即可完成打卡签到。</view></view></view></block></view></view><view wx:else class="loading"><u-loading-icon wx:if="{{K}}" u-i="47899bc6-6" bind:__l="__l" u-p="{{K}}"/></view></view>
|
||||
<view><view wx:if="{{a}}" class="sign_clock_in_page"><view class="sign_clock_in_page_title"> 打卡地点 ({{b}})</view><view class="{{h}}"><image src="https://gc-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01KADY6KD59DQYMF6PBFSZN98X.png" mode="widthFix"/><view class="sign_clock_in_page_map_content"><view><view class="label"> 你{{c}}打卡范围内 </view><view class="address_name"><uni-icons wx:if="{{d}}" u-i="47899bc6-0" bind:__l="__l" u-p="{{d}}"></uni-icons><text>{{e}}</text></view></view><view wx:if="{{f}}" class="update_location" bindtap="{{g}}"><view class="update_location_btn"> 更新位置 </view></view></view></view><view class="steps_item"><u-steps wx:if="{{x}}" u-s="{{['d']}}" u-i="47899bc6-1" bind:__l="__l" u-p="{{x}}"><u-steps-item u-s="{{['desc']}}" u-i="47899bc6-2,47899bc6-1" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view> 上班卡:{{i}}前 </view><view wx:if="{{j}}" class="status status_normal">{{k}}</view><block wx:else><view wx:if="{{l}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{m}}" class="{{o}}"> 打卡时间:{{n}}</view></view></u-steps-item><u-steps-item u-s="{{['desc']}}" u-i="47899bc6-3,47899bc6-1" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>下班卡: {{p}}前</view><view wx:if="{{q}}" class="status status_normal">{{r}}</view><block wx:else><view wx:if="{{s}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{t}}" class="{{w}}"> 打卡时间:{{v}}</view></view></u-steps-item></u-steps></view><view wx:if="{{y}}" class="watermark_info"><view wx:if="{{z}}"><view wx:for="{{A}}" wx:for-item="i" wx:key="e" class="upload_item_img"><image src="{{i.a}}" mode="aspectFill" bindtap="{{i.b}}"/><view class="upload_item_delete" bindtap="{{i.d}}"><uni-icons wx:if="{{B}}" u-i="{{i.c}}" bind:__l="__l" u-p="{{B}}"></uni-icons></view></view></view><view wx:else class="update_photo"><hs-button wx:if="{{D}}" bindclick="{{C}}" u-i="47899bc6-5" bind:__l="__l" u-p="{{D}}"/></view></view><view class="TakePhotoCheckIn"><block wx:if="{{E}}"><view><view class="btn" bindtap="{{G}}"><view><view class="btn_label"> 打卡2 </view><view>{{F}}</view></view></view><view wx:if="{{H}}" class="no_distance_des"> 请先上传打卡照,再点击打卡按钮 </view></view></block><block wx:else><view><view class="btn no_distance"><view><view class="btn_label"> 打卡1</view><view>{{I}}</view></view></view><view wx:if="{{J}}" class="no_distance_des"><view> 当前不在打卡范围内 </view><view>前往{{K}}即可完成打卡签到。</view></view></view></block></view></view><view wx:else class="loading"><u-loading-icon wx:if="{{L}}" u-i="47899bc6-6" bind:__l="__l" u-p="{{L}}"/></view></view>
|
||||
2
dist/build/mp-weixin/common/libraries/day.js
vendored
2
dist/build/mp-weixin/common/libraries/day.js
vendored
@ -1 +1 @@
|
||||
"use strict";const e=require("../vendor.js");e.dayjs.locale("zh-cn"),e.dayjs.extend(e.relativeTime),exports.ShowLastTime=function(t){return t?e.dayjs(t).fromNow():"-"},exports.getDay=function(t){if(t){const r=e.dayjs().subtract(t,"day");return console.log(r.format("YYYY-MM-DD")),r.format("YYYY-MM-DD")}return e.dayjs().format("YYYY-MM-DD")},exports.getDayTime=function(t){if(t){let r=null==t?void 0:t.replace(/-/g,"/");return e.dayjs(r).format("YYYY-MM-DD HH:mm")}return e.dayjs().format("YYYY-MM-DD HH:mm")},exports.getTime=function(){return e.dayjs().format("YYYY-MM-DD HH:mm:ss")},exports.getTimeStatus=function(t){const r=e.dayjs(),o=e.dayjs(t);if(o.isBefore(r)){const e=r.diff(o,"hour"),t=r.diff(o,"minute")%60;let s="已过期望处理时间:";return e>0&&(s+=`${e}个小时`),t>0&&(s+=`${t}分钟`),{label:s,status:"4",color:"#EA0000"}}{const e=o.diff(r,"hour"),t=o.diff(r,"minute")%60;let s,n;e>=24?(s="1",n="#24BC21"):e>=2?(s="2",n="#0082FA"):(s="3",n="#F97316");const a=Math.floor(e/24),i=e%24;let u="上门时间还剩:";return a>0&&(u+=`${a}天`),i>0&&(u+=`${i}个小时`),t>0&&(u+=`${t}分钟`),{label:u,status:s,color:n}}},exports.isCanCheckIn=function(t,r){let o=null==t?void 0:t.replace(/-/g,"/"),s=null==r?void 0:r.replace(/-/g,"/");const n=e.dayjs().valueOf(),a=e.dayjs(o),i=e.dayjs(s);if(!a.isValid())return console.error("开始时间格式无效:",t),!1;if(!i.isValid())return console.error("结束时间格式无效:",r),!1;if(i.valueOf()<a.valueOf())return console.error("结束时间不能早于开始时间"),!1;const u=a.valueOf(),f=i.valueOf();return n>=u&&n<=f},exports.isDatePassed=function(t){return console.log(e.dayjs().isAfter(e.dayjs(t)),"dayjs().isAfter(dayjs(fixedDate))"),e.dayjs().isAfter(e.dayjs(t),"day")},exports.isOverHalfHourPast=function(t){let r=null==t?void 0:t.replace(/-/g,"/");const o=e.dayjs(),s=e.dayjs(r);return o.diff(s,"minute")>30},exports.isWithinTimeRange=function(t,r=30){let o=null==t?void 0:t.replace(/-/g,"/");console.log(t,o,"targetTime");const s=e.dayjs(),n=e.dayjs(o),a=n.subtract(30,"minute"),i=n.add(2,"hour");return s.isAfter(a)&&s.isBefore(i)},exports.showCurrentTime=function(){return e.dayjs().format("HH:mm")},exports.showDay=function(t){return t?e.dayjs(t).format("YYYY-MM-DD"):"-"},exports.showTime=function(t){let r=null==t?void 0:t.replace(/-/g,"/");return r?e.dayjs(r).format("HH:mm"):""},exports.showWeekDay=function(){return{0:"星期日",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"}[e.dayjs().day()]},exports.specificTime=function(t){let r=null==t?void 0:t.replace(/-/g,"/");const o=e.dayjs(),s=e.dayjs(r);let n=Math.abs(s.diff(o,"hour",!0))<=2||s.isBefore(o);return console.log(n,"hoursDiff"),n};
|
||||
"use strict";const t=require("../vendor.js");t.dayjs.locale("zh-cn"),t.dayjs.extend(t.relativeTime);exports.ShowLastTime=function(e){return e?t.dayjs(e).fromNow():"-"},exports.getDay=function(e){if(e){const s=t.dayjs().subtract(e,"day");return console.log(s.format("YYYY-MM-DD")),s.format("YYYY-MM-DD")}return t.dayjs().format("YYYY-MM-DD")},exports.getDayTime=function(e){if(e){let s=null==e?void 0:e.replace(/-/g,"/");return t.dayjs(s).format("YYYY-MM-DD HH:mm")}return t.dayjs().format("YYYY-MM-DD HH:mm")},exports.getShowDay=e=>{const s=t.dayjs(e).startOf("day"),r=t.dayjs().startOf("day"),a=r.subtract(1,"day"),o=r.add(1,"day"),n={0:"星期日",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"}[s.day()];return s.isSame(r,"day")?`今天 ${n}`:s.isSame(a,"day")?`昨天 ${n}`:s.isSame(o,"day")?`明天 ${n}`:`${e} ${n}`},exports.getTime=function(){return t.dayjs().format("YYYY-MM-DD HH:mm:ss")},exports.getTimeStatus=function(e){const s=t.dayjs(),r=t.dayjs(e);if(r.isBefore(s)){const t=s.diff(r,"hour"),e=s.diff(r,"minute")%60;let a="已过期望处理时间:";return t>0&&(a+=`${t}个小时`),e>0&&(a+=`${e}分钟`),{label:a,status:"4",color:"#EA0000"}}{const t=r.diff(s,"hour"),e=r.diff(s,"minute")%60;let a,o;t>=24?(a="1",o="#24BC21"):t>=2?(a="2",o="#0082FA"):(a="3",o="#F97316");const n=Math.floor(t/24),i=t%24;let d="上门时间还剩:";return n>0&&(d+=`${n}天`),i>0&&(d+=`${i}个小时`),e>0&&(d+=`${e}分钟`),{label:d,status:a,color:o}}},exports.isDatePassed=function(e){return console.log(t.dayjs().isAfter(t.dayjs(e)),"dayjs().isAfter(dayjs(fixedDate))"),t.dayjs().isAfter(t.dayjs(e),"day")},exports.isOverHalfHourPast=function(e){let s=null==e?void 0:e.replace(/-/g,"/");const r=t.dayjs(),a=t.dayjs(s);return r.diff(a,"minute")>30},exports.isWithinTimeRange=function(e,s=30){let r=null==e?void 0:e.replace(/-/g,"/");console.log(e,r,"targetTime");const a=t.dayjs(),o=t.dayjs(r),n=o.startOf("day"),i=o.endOf("day");return a.isAfter(n)&&a.isBefore(i)},exports.showCurrentTime=function(){return t.dayjs().format("HH:mm")},exports.showDay=function(e){return e?t.dayjs(e).format("YYYY-MM-DD"):"-"},exports.showTime=function(e){let s=null==e?void 0:e.replace(/-/g,"/");return s?t.dayjs(s).format("HH:mm"):""},exports.showWeekDay=function(){return{0:"星期日",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"}[t.dayjs().day()]},exports.specificTime=function(e){let s=null==e?void 0:e.replace(/-/g,"/");const r=t.dayjs(),a=t.dayjs(s);let o=Math.abs(a.diff(r,"hour",!0))<=2||a.isBefore(r);return console.log(o,"hoursDiff"),o};
|
||||
|
||||
4
dist/build/mp-weixin/common/vendor.js
vendored
4
dist/build/mp-weixin/common/vendor.js
vendored
File diff suppressed because one or more lines are too long
2
dist/build/mp-weixin/pages/transfer/index.js
vendored
2
dist/build/mp-weixin/pages/transfer/index.js
vendored
@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/userUserLogin.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("hs-footer")()}Math;const r=e.defineComponent({__name:"index",setup(r){const n=e.ref(!1);return e.onShow(async()=>{var r,i,s;if(await(null==(r=e.getCurrentInstance())?void 0:r.appContext.config.globalProperties.$onLaunched),null==(i=o.getUser)?void 0:i.getLoginStatus()){const o=e.index.getEnterOptionsSync();console.log(o,"getQrcode");let r=null==o?void 0:o.query;if(null==r?void 0:r.scene){let o=null==(s=null==r?void 0:r.scene)?void 0:s.split("_");"1"===o[0]&&e.index.redirectTo({url:`/INDEX/release_items/index?id=${o[1]}`}),"2"===o[0]&&e.index.redirectTo({url:`/INDEX/pass/index?id=${o[1]}`}),"3"===o[0]&&e.index.redirectTo({url:`/INDEX/patrol_task_list/index?id=${o[1]}`})}else n.value=!0}else e.index.showModal({title:"提示",content:"检测到您还未登录,是否去登录?",confirmText:"去登录",cancelText:"返回首页",confirmColor:"#0082FA",success:function(o){o.confirm?(e.index.navigateTo({url:"/pages/login?source=transfer"}),console.log("用户点击确定")):o.cancel&&(e.index.switchTab({url:"/pages/index/index"}),console.log("用户点击取消"))}})}),(o,r)=>e.e({a:!n.value},n.value?{b:e.p({btnParimaryName:"返回首页"})}:{})}});wx.createPage(r);
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/userUserLogin.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("hs-footer")()}Math;const r=e.defineComponent({__name:"index",setup(r){const n=e.ref(!1);return e.onShow(async()=>{var r,i,s;if(await(null==(r=e.getCurrentInstance())?void 0:r.appContext.config.globalProperties.$onLaunched),null==(i=o.getUser)?void 0:i.getLoginStatus()){const o=e.index.getEnterOptionsSync();console.log(o,"getQrcode");let r=null==o?void 0:o.query;if(null==r?void 0:r.scene){let o=null==(s=null==r?void 0:r.scene)?void 0:s.split("_");"1"===o[0]&&e.index.redirectTo({url:`/INDEX/release_items/index?id=${o[1]}`}),"2"===o[0]&&e.index.redirectTo({url:`/INDEX/pass/index?source=2&id=${o[1]}`}),"3"===o[0]&&e.index.redirectTo({url:`/INDEX/patrol_task_list/index?id=${o[1]}`}),"4"===o[0]&&e.index.redirectTo({url:`/INDEX/pass/index?source=4&customers_id=${o[1]}&asset_houses_id=${o[2]}`})}else n.value=!0}else e.index.showModal({title:"提示",content:"检测到您还未登录,是否去登录?",confirmText:"去登录",cancelText:"返回首页",confirmColor:"#0082FA",success:function(o){o.confirm?(e.index.navigateTo({url:"/pages/login?source=transfer"}),console.log("用户点击确定")):o.cancel&&(e.index.switchTab({url:"/pages/index/index"}),console.log("用户点击取消"))}})}),(o,r)=>e.e({a:!n.value},n.value?{b:e.p({btnParimaryName:"返回首页"})}:{})}});wx.createPage(r);
|
||||
|
||||
75
dist/dev/mp-weixin/INDEX/pass/index.js
vendored
75
dist/dev/mp-weixin/INDEX/pass/index.js
vendored
@ -28,50 +28,77 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
setup(__props) {
|
||||
common_vendor.onLoad((e) => {
|
||||
var _a;
|
||||
(_a = INDEX_pass_method.method) == null ? void 0 : _a.getShow(e);
|
||||
(_a = INDEX_pass_method.method) == null ? void 0 : _a.init(e);
|
||||
console.log(e);
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea;
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja;
|
||||
return common_vendor.e({
|
||||
a: (_b = (_a = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _a.isExpired) == null ? void 0 : _b.value
|
||||
}, ((_d = (_c = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _c.isExpired) == null ? void 0 : _d.value) ? {
|
||||
b: common_vendor.p({
|
||||
a: ((_c = (_b = (_a = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.source) === "2"
|
||||
}, ((_f = (_e = (_d = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _d.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.source) === "2" ? common_vendor.e({
|
||||
b: (_h = (_g = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _g.isExpired) == null ? void 0 : _h.value
|
||||
}, ((_j = (_i = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _i.isExpired) == null ? void 0 : _j.value) ? {
|
||||
c: common_vendor.p({
|
||||
type: "info",
|
||||
size: "50",
|
||||
color: "#FF4D4F"
|
||||
})
|
||||
} : {
|
||||
c: common_vendor.p({
|
||||
src: ((_g = (_f = (_e = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _e.userInfo) == null ? void 0 : _f.value) == null ? void 0 : _g.worker_photo) && ((_k = (_j = (_i = (_h = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _h.userInfo) == null ? void 0 : _i.value) == null ? void 0 : _j.worker_photo[0]) == null ? void 0 : _k.url),
|
||||
d: common_vendor.p({
|
||||
src: ((_m = (_l = (_k = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _k.userInfo) == null ? void 0 : _l.value) == null ? void 0 : _m.worker_photo) && ((_q = (_p = (_o = (_n = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _n.userInfo) == null ? void 0 : _o.value) == null ? void 0 : _p.worker_photo[0]) == null ? void 0 : _q.url),
|
||||
size: "70"
|
||||
}),
|
||||
d: common_vendor.t(((_n = (_m = (_l = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _l.showData) == null ? void 0 : _m.value) == null ? void 0 : _n.visitor_name) || "-"),
|
||||
e: common_vendor.t(((_q = (_p = (_o = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _o.showData) == null ? void 0 : _p.value) == null ? void 0 : _q.visitor_phone) || "-")
|
||||
e: common_vendor.t(((_t = (_s = (_r = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _r.showData) == null ? void 0 : _s.value) == null ? void 0 : _t.visitor_name) || "-"),
|
||||
f: common_vendor.t(((_w = (_v = (_u = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _u.showData) == null ? void 0 : _v.value) == null ? void 0 : _w.visitor_phone) || "-")
|
||||
}, {
|
||||
f: common_vendor.t(((_u = (_t = (_s = (_r = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _r.showData) == null ? void 0 : _s.value) == null ? void 0 : _t.asset_house) == null ? void 0 : _u.full_name) || "-"),
|
||||
g: (_w = (_v = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _v.isExpired) == null ? void 0 : _w.value
|
||||
}, ((_y = (_x = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _x.isExpired) == null ? void 0 : _y.value) ? {} : {
|
||||
h: common_vendor.t((_C = common_vendor.unref(gen_Enums.VisitorAppliesStatusEnum)[(_B = (_A = (_z = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _z.showData) == null ? void 0 : _A.value) == null ? void 0 : _B.status]) == null ? void 0 : _C.text),
|
||||
i: common_vendor.n(`value status_${(_F = (_E = (_D = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _D.showData) == null ? void 0 : _E.value) == null ? void 0 : _F.status}`)
|
||||
g: common_vendor.t(((_A = (_z = (_y = (_x = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _x.showData) == null ? void 0 : _y.value) == null ? void 0 : _z.asset_house) == null ? void 0 : _A.full_name) || "-"),
|
||||
h: (_C = (_B = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _B.isExpired) == null ? void 0 : _C.value
|
||||
}, ((_E = (_D = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _D.isExpired) == null ? void 0 : _E.value) ? {} : {
|
||||
i: common_vendor.t((_I = common_vendor.unref(gen_Enums.VisitorAppliesStatusEnum)[(_H = (_G = (_F = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _F.showData) == null ? void 0 : _G.value) == null ? void 0 : _H.status]) == null ? void 0 : _I.text),
|
||||
j: common_vendor.n(`value status_${(_L = (_K = (_J = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _J.showData) == null ? void 0 : _K.value) == null ? void 0 : _L.status}`)
|
||||
}, {
|
||||
j: (_I = (_H = (_G = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _G.showData) == null ? void 0 : _H.value) == null ? void 0 : _I.remark
|
||||
}, ((_L = (_K = (_J = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _J.showData) == null ? void 0 : _K.value) == null ? void 0 : _L.remark) ? {
|
||||
k: common_vendor.t(((_O = (_N = (_M = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _M.showData) == null ? void 0 : _N.value) == null ? void 0 : _O.remark) || "-")
|
||||
k: (_O = (_N = (_M = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _M.showData) == null ? void 0 : _N.value) == null ? void 0 : _O.remark
|
||||
}, ((_R = (_Q = (_P = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _P.showData) == null ? void 0 : _Q.value) == null ? void 0 : _R.remark) ? {
|
||||
l: common_vendor.t(((_U = (_T = (_S = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _S.showData) == null ? void 0 : _T.value) == null ? void 0 : _U.remark) || "-")
|
||||
} : {}, {
|
||||
l: common_vendor.t(((_S = (_R = (_Q = (_P = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _P.showData) == null ? void 0 : _Q.value) == null ? void 0 : _R.last_enter_record) == null ? void 0 : _S.enter_time) || "-"),
|
||||
m: common_vendor.t(((_W = (_V = (_U = (_T = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _T.showData) == null ? void 0 : _U.value) == null ? void 0 : _V.last_exit_record) == null ? void 0 : _W.exit_time) || "-"),
|
||||
n: ((_Z = (_Y = (_X = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _X.showData) == null ? void 0 : _Y.value) == null ? void 0 : _Z.status) === "Approved" && !((_$ = (__ = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : __.isExpired) == null ? void 0 : _$.value)
|
||||
}, ((_ca = (_ba = (_aa = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _aa.showData) == null ? void 0 : _ba.value) == null ? void 0 : _ca.status) === "Approved" && !((_ea = (_da = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _da.isExpired) == null ? void 0 : _ea.value) ? {
|
||||
o: common_vendor.o(($event) => {
|
||||
m: common_vendor.t(((_Y = (_X = (_W = (_V = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _V.showData) == null ? void 0 : _W.value) == null ? void 0 : _X.last_enter_record) == null ? void 0 : _Y.enter_time) || "-"),
|
||||
n: common_vendor.t(((_aa = (_$ = (__ = (_Z = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _Z.showData) == null ? void 0 : __.value) == null ? void 0 : _$.last_exit_record) == null ? void 0 : _aa.exit_time) || "-")
|
||||
}) : {}, {
|
||||
o: ((_da = (_ca = (_ba = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _ba.formData) == null ? void 0 : _ca.value) == null ? void 0 : _da.source) === "4"
|
||||
}, ((_ga = (_fa = (_ea = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _ea.formData) == null ? void 0 : _fa.value) == null ? void 0 : _ga.source) === "4" ? {
|
||||
p: common_vendor.p({
|
||||
size: "70"
|
||||
}),
|
||||
q: common_vendor.t(((_ka = (_ja = (_ia = (_ha = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _ha.showData) == null ? void 0 : _ia.value) == null ? void 0 : _ja.house) == null ? void 0 : _ka.full_name) || "-"),
|
||||
r: common_vendor.t(((_na = (_ma = (_la = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _la.showData) == null ? void 0 : _ma.value) == null ? void 0 : _na.occupant_name) || "-")
|
||||
} : {}, {
|
||||
s: ((_qa = (_pa = (_oa = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _oa.showData) == null ? void 0 : _pa.value) == null ? void 0 : _qa.status) === "Approved" && !((_sa = (_ra = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _ra.isExpired) == null ? void 0 : _sa.value) && ((_va = (_ua = (_ta = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _ta.formData) == null ? void 0 : _ua.value) == null ? void 0 : _va.source) === "2"
|
||||
}, ((_ya = (_xa = (_wa = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _wa.showData) == null ? void 0 : _xa.value) == null ? void 0 : _ya.status) === "Approved" && !((_Aa = (_za = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _za.isExpired) == null ? void 0 : _Aa.value) && ((_Da = (_Ca = (_Ba = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _Ba.formData) == null ? void 0 : _Ca.value) == null ? void 0 : _Da.source) === "2" ? {
|
||||
t: common_vendor.o(($event) => {
|
||||
var _a2;
|
||||
return (_a2 = common_vendor.unref(INDEX_pass_method.method)) == null ? void 0 : _a2.handleSubmit("enter");
|
||||
}),
|
||||
p: common_vendor.o(($event) => {
|
||||
v: common_vendor.o(($event) => {
|
||||
var _a2;
|
||||
return (_a2 = common_vendor.unref(INDEX_pass_method.method)) == null ? void 0 : _a2.handleSubmit("exit");
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
w: common_vendor.p({
|
||||
btnParimaryName: "进入小区",
|
||||
btnOtherShow: true,
|
||||
btnOtherName: "离开小区"
|
||||
})
|
||||
} : {}, {
|
||||
x: ((_Ga = (_Fa = (_Ea = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _Ea.formData) == null ? void 0 : _Fa.value) == null ? void 0 : _Ga.source) === "4"
|
||||
}, ((_Ja = (_Ia = (_Ha = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _Ha.formData) == null ? void 0 : _Ia.value) == null ? void 0 : _Ja.source) === "4" ? {
|
||||
y: common_vendor.o(($event) => {
|
||||
var _a2;
|
||||
return (_a2 = common_vendor.unref(INDEX_pass_method.method)) == null ? void 0 : _a2.handleSubmit("enter");
|
||||
}),
|
||||
z: common_vendor.o(($event) => {
|
||||
var _a2;
|
||||
return (_a2 = common_vendor.unref(INDEX_pass_method.method)) == null ? void 0 : _a2.handleSubmit("exit");
|
||||
}),
|
||||
A: common_vendor.p({
|
||||
btnParimaryName: "进入小区",
|
||||
btnOtherShow: true,
|
||||
btnOtherName: "离开小区"
|
||||
|
||||
2
dist/dev/mp-weixin/INDEX/pass/index.wxml
vendored
2
dist/dev/mp-weixin/INDEX/pass/index.wxml
vendored
@ -1 +1 @@
|
||||
<view class="release_items_page"><view class="release_content"><view wx:if="{{a}}" class="expired"><view><uni-icons wx:if="{{b}}" u-i="0f9698b0-0" bind:__l="__l" u-p="{{b}}"></uni-icons></view><view class="des"> 通行证已失效 </view><view class="sub_des"> 该二维码已失效,请和客户确认出入信息 </view></view><view wx:else class="user_info"><view class="avatar"><u-avatar wx:if="{{c}}" u-i="0f9698b0-1" bind:__l="__l" u-p="{{c}}"></u-avatar></view><view class="name">{{d}}</view><view class="phone">{{e}}</view></view><view class="outer_info"><view class="cell_items"><view class="label"> 关联房屋 </view><view class="value">{{f}}</view></view><view class="cell_items"><view class="label"> 状态 </view><view wx:if="{{g}}" class="status status_expired"> 已失效 </view><view wx:else class="{{i}}">{{h}}</view></view><view wx:if="{{j}}" class="cell_items"><view class="label"> 事项 </view><view class="value">{{k}}</view></view><view class="cell_items"><view class="label"> 上次进入时间 </view><view class="value">{{l}}</view></view><view class="cell_items"><view class="label"> 上次离开时间 </view><view class="value">{{m}}</view></view></view></view><hs-footer wx:if="{{n}}" bindhandleParmaryClick="{{o}}" bindhandleOtherClick="{{p}}" u-i="0f9698b0-2" bind:__l="__l" u-p="{{q}}"/></view>
|
||||
<view class="release_items_page"><view wx:if="{{a}}" class="release_content"><view wx:if="{{b}}" class="expired"><view><uni-icons wx:if="{{c}}" u-i="0f9698b0-0" bind:__l="__l" u-p="{{c}}"></uni-icons></view><view class="des"> 通行证已失效 </view><view class="sub_des"> 该二维码已失效,请和客户确认出入信息 </view></view><view wx:else class="user_info"><view class="avatar"><u-avatar wx:if="{{d}}" u-i="0f9698b0-1" bind:__l="__l" u-p="{{d}}"></u-avatar></view><view class="name">{{e}}</view><view class="phone">{{f}}</view></view><view class="outer_info"><view class="cell_items"><view class="label"> 关联房屋 </view><view class="value">{{g}}</view></view><view class="cell_items"><view class="label"> 状态 </view><view wx:if="{{h}}" class="status status_expired"> 已失效 </view><view wx:else class="{{j}}">{{i}}</view></view><view wx:if="{{k}}" class="cell_items"><view class="label"> 事项 </view><view class="value">{{l}}</view></view><view class="cell_items"><view class="label"> 上次进入时间 </view><view class="value">{{m}}</view></view><view class="cell_items"><view class="label"> 上次离开时间 </view><view class="value">{{n}}</view></view></view></view><view wx:if="{{o}}" class="release_content"><view class="user_info"><view class="avatar"><u-avatar wx:if="{{p}}" u-i="0f9698b0-2" bind:__l="__l" u-p="{{p}}"></u-avatar></view><view class="name">{{q}}</view><view class="phone">{{r}}</view></view></view><hs-footer wx:if="{{s}}" bindhandleParmaryClick="{{t}}" bindhandleOtherClick="{{v}}" u-i="0f9698b0-3" bind:__l="__l" u-p="{{w}}"/><hs-footer wx:if="{{x}}" bindhandleParmaryClick="{{y}}" bindhandleOtherClick="{{z}}" u-i="0f9698b0-4" bind:__l="__l" u-p="{{A}}"/></view>
|
||||
2
dist/dev/mp-weixin/INDEX/pass/index.wxss
vendored
2
dist/dev/mp-weixin/INDEX/pass/index.wxss
vendored
@ -23,7 +23,7 @@ page {
|
||||
border-radius: 20rpx;
|
||||
margin: 0 30rpx;
|
||||
overflow: hidden;
|
||||
padding: 50rpx 0 30rpx 0;
|
||||
padding: 50rpx 0;
|
||||
}
|
||||
.release_content .user_info {
|
||||
color: #3d3d3d;
|
||||
|
||||
16
dist/dev/mp-weixin/INDEX/pass/method.js
vendored
16
dist/dev/mp-weixin/INDEX/pass/method.js
vendored
@ -4,7 +4,7 @@ const common_libraries_day = require("../../common/libraries/day.js");
|
||||
const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js");
|
||||
const gen_Apis = require("../../gen/Apis.js");
|
||||
const INDEX_pass_model = require("./model.js");
|
||||
const getShow = (data) => {
|
||||
const getFitmentShow = (data) => {
|
||||
common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Visitor.VisitorApplies.Show, data).then((res) => {
|
||||
var _a, _b, _c, _d, _e, _f;
|
||||
INDEX_pass_model.useModel.showData.value = res == null ? void 0 : res.data;
|
||||
@ -18,16 +18,20 @@ const getShow = (data) => {
|
||||
});
|
||||
};
|
||||
const method = {
|
||||
getShow,
|
||||
init(e) {
|
||||
INDEX_pass_model.useModel.formData.value = e;
|
||||
console.log(e, INDEX_pass_model.useModel.formData.value, "sncd");
|
||||
getFitmentShow(e);
|
||||
},
|
||||
handleSubmit(val) {
|
||||
var _a, _b, _c;
|
||||
var _a, _b, _c, _d, _e;
|
||||
common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Visitor.VisitorApplies.Scan, {
|
||||
code: (_c = (_b = (_a = INDEX_pass_model.useModel) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.visitor_code,
|
||||
scan_type: val
|
||||
scan_type: val,
|
||||
...(_e = (_d = INDEX_pass_model.useModel) == null ? void 0 : _d.formData) == null ? void 0 : _e.value
|
||||
}).then((res) => {
|
||||
common_libraries_naviHelper.showToast("操作成功!", () => {
|
||||
var _a2, _b2, _c2;
|
||||
getShow({ id: (_c2 = (_b2 = (_a2 = INDEX_pass_model.useModel) == null ? void 0 : _a2.showData) == null ? void 0 : _b2.value) == null ? void 0 : _c2.id });
|
||||
getFitmentShow(INDEX_pass_model.useModel.formData.value);
|
||||
});
|
||||
console.log(res);
|
||||
});
|
||||
|
||||
@ -32,12 +32,12 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
(_a = ME_attendance_my_schedules_method.method) == null ? void 0 : _a.getList();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
||||
return common_vendor.e({
|
||||
a: !((_b = (_a = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value)
|
||||
}, !((_d = (_c = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _c.showData) == null ? void 0 : _d.value) ? {} : {}, {
|
||||
b: common_vendor.f((_h = (_g = (_f = (_e = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _e.showData) == null ? void 0 : _f.value) == null ? void 0 : _g.shift) == null ? void 0 : _h.periods, (i, index, i0) => {
|
||||
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub;
|
||||
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n2, _o2, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga;
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)(`${(_c2 = (_b2 = (_a2 = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _a2.showData) == null ? void 0 : _b2.value) == null ? void 0 : _c2.schedule_date} ${i == null ? void 0 : i.work_start_time}`)),
|
||||
b: (_e2 = (_d2 = i == null ? void 0 : i.checkin_status) == null ? void 0 : _d2.start) == null ? void 0 : _e2.checked
|
||||
@ -45,10 +45,18 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
c: common_vendor.t((_j2 = common_vendor.unref(gen_Enums.AttendanceRecordsStatusEnum)[(_i2 = (_h2 = i == null ? void 0 : i.checkin_status) == null ? void 0 : _h2.start) == null ? void 0 : _i2.status]) == null ? void 0 : _j2.text),
|
||||
d: common_vendor.n(`status status_${(_l2 = (_k2 = i == null ? void 0 : i.checkin_status) == null ? void 0 : _k2.start) == null ? void 0 : _l2.status}`)
|
||||
} : common_vendor.e({
|
||||
e: common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_o = (_n = (_m = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _m.showData) == null ? void 0 : _n.value) == null ? void 0 : _o.schedule_date} ${i == null ? void 0 : i.work_start_time}`)
|
||||
e: common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_o2 = (_n2 = (_m2 = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _m2.showData) == null ? void 0 : _n2.value) == null ? void 0 : _o2.schedule_date} ${i == null ? void 0 : i.work_start_time}`)
|
||||
}, common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_r = (_q = (_p = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _p.showData) == null ? void 0 : _q.value) == null ? void 0 : _r.schedule_date} ${i == null ? void 0 : i.work_start_time}`) ? {} : {}), {
|
||||
f: !((_t = (_s = i == null ? void 0 : i.checkin_status) == null ? void 0 : _s.start) == null ? void 0 : _t.checked) && !common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_w = (_v = (_u = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _u.showData) == null ? void 0 : _v.value) == null ? void 0 : _w.schedule_date} ${i == null ? void 0 : i.work_start_time}`) && common_vendor.unref(common_libraries_day.isCanCheckIn)(`${(_z = (_y = (_x = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _x.showData) == null ? void 0 : _y.value) == null ? void 0 : _z.schedule_date} ${(_D = (_C = (_B = (_A = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _A.showData) == null ? void 0 : _B.value) == null ? void 0 : _C.shift) == null ? void 0 : _D.allow_checkin_start}`, `${(_G = (_F = (_E = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _E.showData) == null ? void 0 : _F.value) == null ? void 0 : _G.schedule_date} ${(_K = (_J = (_I = (_H = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _H.showData) == null ? void 0 : _I.value) == null ? void 0 : _J.shift) == null ? void 0 : _K.allow_checkin_end}`)
|
||||
}, !((_M = (_L = i == null ? void 0 : i.checkin_status) == null ? void 0 : _L.start) == null ? void 0 : _M.checked) && !common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_P = (_O = (_N = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _N.showData) == null ? void 0 : _O.value) == null ? void 0 : _P.schedule_date} ${i == null ? void 0 : i.work_start_time}`) && common_vendor.unref(common_libraries_day.isCanCheckIn)(`${(_S = (_R = (_Q = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _Q.showData) == null ? void 0 : _R.value) == null ? void 0 : _S.schedule_date} ${(_W = (_V = (_U = (_T = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _T.showData) == null ? void 0 : _U.value) == null ? void 0 : _V.shift) == null ? void 0 : _W.allow_checkin_start}`, `${(_Z = (_Y = (_X = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _X.showData) == null ? void 0 : _Y.value) == null ? void 0 : _Z.schedule_date} ${(_ba = (_aa = (_$ = (__ = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : __.showData) == null ? void 0 : _$.value) == null ? void 0 : _aa.shift) == null ? void 0 : _ba.allow_checkin_end}`) ? {
|
||||
f: !((_t = (_s = i == null ? void 0 : i.checkin_status) == null ? void 0 : _s.start) == null ? void 0 : _t.checked)
|
||||
// &&
|
||||
// !isOverHalfHourPast(
|
||||
// `${useModel?.showData?.value?.schedule_date} ${i?.work_start_time}`
|
||||
// ) &&
|
||||
// isCanCheckIn(
|
||||
// `${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_start}`,
|
||||
// `${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_end}`
|
||||
// )
|
||||
}, !((_v = (_u = i == null ? void 0 : i.checkin_status) == null ? void 0 : _u.start) == null ? void 0 : _v.checked) ? {
|
||||
g: "5673da8c-3-" + i0 + "," + ("5673da8c-2-" + i0),
|
||||
h: common_vendor.p({
|
||||
type: "right",
|
||||
@ -63,22 +71,30 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
});
|
||||
}, `periods_${index}`)
|
||||
} : {}, {
|
||||
j: (_da = (_ca = i == null ? void 0 : i.checkin_status) == null ? void 0 : _ca.start) == null ? void 0 : _da.time
|
||||
}, ((_fa = (_ea = i == null ? void 0 : i.checkin_status) == null ? void 0 : _ea.start) == null ? void 0 : _fa.time) ? {
|
||||
k: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)((_ha = (_ga = i == null ? void 0 : i.checkin_status) == null ? void 0 : _ga.start) == null ? void 0 : _ha.time)),
|
||||
l: common_vendor.n(`schedules_steps_check schedules_steps_${(_ja = (_ia = i == null ? void 0 : i.checkin_status) == null ? void 0 : _ia.start) == null ? void 0 : _ja.status}`)
|
||||
j: (_x = (_w = i == null ? void 0 : i.checkin_status) == null ? void 0 : _w.start) == null ? void 0 : _x.time
|
||||
}, ((_z = (_y = i == null ? void 0 : i.checkin_status) == null ? void 0 : _y.start) == null ? void 0 : _z.time) ? {
|
||||
k: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)((_B = (_A = i == null ? void 0 : i.checkin_status) == null ? void 0 : _A.start) == null ? void 0 : _B.time)),
|
||||
l: common_vendor.n(`schedules_steps_check schedules_steps_${(_D = (_C = i == null ? void 0 : i.checkin_status) == null ? void 0 : _C.start) == null ? void 0 : _D.status}`)
|
||||
} : {}, {
|
||||
m: "5673da8c-2-" + i0 + "," + ("5673da8c-1-" + i0),
|
||||
n: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)(`${(_ma = (_la = (_ka = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _ka.showData) == null ? void 0 : _la.value) == null ? void 0 : _ma.schedule_date} ${i == null ? void 0 : i.work_end_time}`)),
|
||||
o: (_oa = (_na = i == null ? void 0 : i.checkin_status) == null ? void 0 : _na.end) == null ? void 0 : _oa.checked
|
||||
}, ((_qa = (_pa = i == null ? void 0 : i.checkin_status) == null ? void 0 : _pa.end) == null ? void 0 : _qa.checked) ? {
|
||||
p: common_vendor.t((_ta = common_vendor.unref(gen_Enums.AttendanceRecordsStatusEnum)[(_sa = (_ra = i == null ? void 0 : i.checkin_status) == null ? void 0 : _ra.end) == null ? void 0 : _sa.status]) == null ? void 0 : _ta.text),
|
||||
q: common_vendor.n(`status status_${(_va = (_ua = i == null ? void 0 : i.checkin_status) == null ? void 0 : _ua.end) == null ? void 0 : _va.status}`)
|
||||
n: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)(`${(_G = (_F = (_E = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _E.showData) == null ? void 0 : _F.value) == null ? void 0 : _G.schedule_date} ${i == null ? void 0 : i.work_end_time}`)),
|
||||
o: (_I = (_H = i == null ? void 0 : i.checkin_status) == null ? void 0 : _H.end) == null ? void 0 : _I.checked
|
||||
}, ((_K = (_J = i == null ? void 0 : i.checkin_status) == null ? void 0 : _J.end) == null ? void 0 : _K.checked) ? {
|
||||
p: common_vendor.t((_N = common_vendor.unref(gen_Enums.AttendanceRecordsStatusEnum)[(_M = (_L = i == null ? void 0 : i.checkin_status) == null ? void 0 : _L.end) == null ? void 0 : _M.status]) == null ? void 0 : _N.text),
|
||||
q: common_vendor.n(`status status_${(_P = (_O = i == null ? void 0 : i.checkin_status) == null ? void 0 : _O.end) == null ? void 0 : _P.status}`)
|
||||
} : common_vendor.e({
|
||||
r: common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_ya = (_xa = (_wa = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _wa.showData) == null ? void 0 : _xa.value) == null ? void 0 : _ya.schedule_date} ${i == null ? void 0 : i.work_end_time}`)
|
||||
}, common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_Ba = (_Aa = (_za = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _za.showData) == null ? void 0 : _Aa.value) == null ? void 0 : _Ba.schedule_date} ${i == null ? void 0 : i.work_end_time}`) ? {} : {}), {
|
||||
s: !((_Da = (_Ca = i == null ? void 0 : i.checkin_status) == null ? void 0 : _Ca.end) == null ? void 0 : _Da.checked) && !common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_Ga = (_Fa = (_Ea = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _Ea.showData) == null ? void 0 : _Fa.value) == null ? void 0 : _Ga.schedule_date} ${i == null ? void 0 : i.work_end_time}`) && common_vendor.unref(common_libraries_day.isCanCheckIn)(`${(_Ja = (_Ia = (_Ha = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _Ha.showData) == null ? void 0 : _Ia.value) == null ? void 0 : _Ja.schedule_date} ${(_Na = (_Ma = (_La = (_Ka = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _Ka.showData) == null ? void 0 : _La.value) == null ? void 0 : _Ma.shift) == null ? void 0 : _Na.allow_checkin_start}`, `${(_Qa = (_Pa = (_Oa = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _Oa.showData) == null ? void 0 : _Pa.value) == null ? void 0 : _Qa.schedule_date} ${(_Ua = (_Ta = (_Sa = (_Ra = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _Ra.showData) == null ? void 0 : _Sa.value) == null ? void 0 : _Ta.shift) == null ? void 0 : _Ua.allow_checkin_end}`)
|
||||
}, !((_Wa = (_Va = i == null ? void 0 : i.checkin_status) == null ? void 0 : _Va.end) == null ? void 0 : _Wa.checked) && !common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_Za = (_Ya = (_Xa = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _Xa.showData) == null ? void 0 : _Ya.value) == null ? void 0 : _Za.schedule_date} ${i == null ? void 0 : i.work_end_time}`) && common_vendor.unref(common_libraries_day.isCanCheckIn)(`${(_ab = (_$a = (__a = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : __a.showData) == null ? void 0 : _$a.value) == null ? void 0 : _ab.schedule_date} ${(_eb = (_db = (_cb = (_bb = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _bb.showData) == null ? void 0 : _cb.value) == null ? void 0 : _db.shift) == null ? void 0 : _eb.allow_checkin_start}`, `${(_hb = (_gb = (_fb = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _fb.showData) == null ? void 0 : _gb.value) == null ? void 0 : _hb.schedule_date} ${(_lb = (_kb = (_jb = (_ib = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _ib.showData) == null ? void 0 : _jb.value) == null ? void 0 : _kb.shift) == null ? void 0 : _lb.allow_checkin_end}`) ? {
|
||||
r: common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_S = (_R = (_Q = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _Q.showData) == null ? void 0 : _R.value) == null ? void 0 : _S.schedule_date} ${i == null ? void 0 : i.work_end_time}`)
|
||||
}, common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_V = (_U = (_T = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _T.showData) == null ? void 0 : _U.value) == null ? void 0 : _V.schedule_date} ${i == null ? void 0 : i.work_end_time}`) ? {} : {}), {
|
||||
s: !((_X = (_W = i == null ? void 0 : i.checkin_status) == null ? void 0 : _W.end) == null ? void 0 : _X.checked)
|
||||
//&&
|
||||
// !isOverHalfHourPast(
|
||||
// `${useModel?.showData?.value?.schedule_date} ${i?.work_end_time}`
|
||||
// ) &&
|
||||
// isCanCheckIn(
|
||||
// `${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_start}`,
|
||||
// `${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_end}`
|
||||
// )
|
||||
}, !((_Z = (_Y = i == null ? void 0 : i.checkin_status) == null ? void 0 : _Y.end) == null ? void 0 : _Z.checked) ? {
|
||||
t: "5673da8c-5-" + i0 + "," + ("5673da8c-4-" + i0),
|
||||
v: common_vendor.p({
|
||||
type: "right",
|
||||
@ -93,15 +109,15 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
});
|
||||
}, `periods_${index}`)
|
||||
} : {}, {
|
||||
x: (_nb = (_mb = i == null ? void 0 : i.checkin_status) == null ? void 0 : _mb.end) == null ? void 0 : _nb.time
|
||||
}, ((_pb = (_ob = i == null ? void 0 : i.checkin_status) == null ? void 0 : _ob.end) == null ? void 0 : _pb.time) ? {
|
||||
y: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)((_rb = (_qb = i == null ? void 0 : i.checkin_status) == null ? void 0 : _qb.end) == null ? void 0 : _rb.time)),
|
||||
z: common_vendor.n(`schedules_steps_check schedules_steps_${(_tb = (_sb = i == null ? void 0 : i.checkin_status) == null ? void 0 : _sb.end) == null ? void 0 : _tb.status}`)
|
||||
x: (_$ = (__ = i == null ? void 0 : i.checkin_status) == null ? void 0 : __.end) == null ? void 0 : _$.time
|
||||
}, ((_ba = (_aa = i == null ? void 0 : i.checkin_status) == null ? void 0 : _aa.end) == null ? void 0 : _ba.time) ? {
|
||||
y: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)((_da = (_ca = i == null ? void 0 : i.checkin_status) == null ? void 0 : _ca.end) == null ? void 0 : _da.time)),
|
||||
z: common_vendor.n(`schedules_steps_check schedules_steps_${(_fa = (_ea = i == null ? void 0 : i.checkin_status) == null ? void 0 : _ea.end) == null ? void 0 : _fa.status}`)
|
||||
} : {}, {
|
||||
A: "5673da8c-4-" + i0 + "," + ("5673da8c-1-" + i0),
|
||||
B: "5673da8c-1-" + i0,
|
||||
C: common_vendor.p({
|
||||
current: (_ub = common_vendor.unref(ME_attendance_my_schedules_method.method)) == null ? void 0 : _ub.calculationCurrent(i),
|
||||
current: (_ga = common_vendor.unref(ME_attendance_my_schedules_method.method)) == null ? void 0 : _ga.calculationCurrent(i),
|
||||
direction: "column",
|
||||
activeColor: "#52C41A",
|
||||
inactiveColor: "#CBCBCB"
|
||||
@ -109,7 +125,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
D: `periods_${index}`
|
||||
});
|
||||
}),
|
||||
c: common_vendor.t((_l = (_k = (_j = (_i = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _i.showData) == null ? void 0 : _j.value) == null ? void 0 : _k.shift) == null ? void 0 : _l.name)
|
||||
c: common_vendor.t((_l = (_k = (_j = (_i = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _i.showData) == null ? void 0 : _j.value) == null ? void 0 : _k.shift) == null ? void 0 : _l.name),
|
||||
d: common_vendor.t(common_vendor.unref(common_libraries_day.getShowDay)((_o = (_n = (_m = common_vendor.unref(ME_attendance_my_schedules_model.useModel)) == null ? void 0 : _m.showData) == null ? void 0 : _n.value) == null ? void 0 : _o.schedule_date))
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
<view><hs-empty wx:if="{{a}}" u-i="5673da8c-0" bind:__l="__l"/><view wx:for="{{b}}" wx:for-item="i" wx:key="D" class="schedules_item"><view class="schedules_item_header"> 打卡任务-{{c}}</view><view class="card_periods_item"><u-steps wx:if="{{i.C}}" u-s="{{['d']}}" u-i="{{i.B}}" bind:__l="__l" u-p="{{i.C}}"><u-steps-item u-s="{{['desc']}}" u-i="{{i.m}}" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>上班卡:{{i.a}}前</view><block wx:if="{{i.b}}"><view class="{{i.d}}">{{i.c}}</view></block><block wx:else><view wx:if="{{i.e}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{i.f}}" class="to_check" bindtap="{{i.i}}"> 前往打卡<uni-icons wx:if="{{i.h}}" u-i="{{i.g}}" bind:__l="__l" u-p="{{i.h}}"></uni-icons></view><view wx:if="{{i.j}}" class="{{i.l}}">{{i.k}}已打卡 </view></view></u-steps-item><u-steps-item u-s="{{['desc']}}" u-i="{{i.A}}" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>下班卡:{{i.n}}前</view><block wx:if="{{i.o}}"><view class="{{i.q}}">{{i.p}}</view></block><block wx:else><view wx:if="{{i.r}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{i.s}}" class="to_check" bindtap="{{i.w}}"> 前往打卡<uni-icons wx:if="{{i.v}}" u-i="{{i.t}}" bind:__l="__l" u-p="{{i.v}}"></uni-icons></view><view wx:if="{{i.x}}" class="{{i.z}}">{{i.y}}已打卡 </view></view></u-steps-item></u-steps></view></view></view>
|
||||
<view><hs-empty wx:if="{{a}}" u-i="5673da8c-0" bind:__l="__l"/><view class="schedules_content"><view wx:for="{{b}}" wx:for-item="i" wx:key="D" class="schedules_item"><view class="schedules_item_header"> 打卡任务-{{c}}({{d}}) </view><view class="card_periods_item"><u-steps wx:if="{{i.C}}" u-s="{{['d']}}" u-i="{{i.B}}" bind:__l="__l" u-p="{{i.C}}"><u-steps-item u-s="{{['desc']}}" u-i="{{i.m}}" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>上班卡:{{i.a}}前</view><block wx:if="{{i.b}}"><view class="{{i.d}}">{{i.c}}</view></block><block wx:else><view wx:if="{{i.e}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{i.f}}" class="to_check" bindtap="{{i.i}}"> 前往打卡<uni-icons wx:if="{{i.h}}" u-i="{{i.g}}" bind:__l="__l" u-p="{{i.h}}"></uni-icons></view><view wx:if="{{i.j}}" class="{{i.l}}">{{i.k}}已打卡 </view></view></u-steps-item><u-steps-item u-s="{{['desc']}}" u-i="{{i.A}}" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>下班卡:{{i.n}}前</view><block wx:if="{{i.o}}"><view class="{{i.q}}">{{i.p}}</view></block><block wx:else><view wx:if="{{i.r}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{i.s}}" class="to_check" bindtap="{{i.w}}"> 前往打卡<uni-icons wx:if="{{i.v}}" u-i="{{i.t}}" bind:__l="__l" u-p="{{i.v}}"></uni-icons></view><view wx:if="{{i.x}}" class="{{i.z}}">{{i.y}}已打卡 </view></view></u-steps-item></u-steps></view></view></view></view>
|
||||
@ -34,6 +34,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
setup(__props) {
|
||||
common_vendor.onLoad((e) => {
|
||||
var _a, _b;
|
||||
console.log(e, "e");
|
||||
ME_attendance_sign_clock_in_model.useModel.formData.value = e;
|
||||
(_a = ME_attendance_sign_clock_in_method.method) == null ? void 0 : _a.getLocation(e);
|
||||
(_b = ME_attendance_sign_clock_in_method.method) == null ? void 0 : _b.getAttendanceConfig();
|
||||
@ -47,20 +48,21 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
ME_attendance_sign_clock_in_model.useModel.loading.value = false;
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab, _Bb, _Cb, _Db, _Eb, _Fb, _Gb, _Hb, _Ib, _Jb, _Kb, _Lb, _Mb, _Nb, _Ob, _Pb, _Qb, _Rb, _Sb, _Tb, _Ub, _Vb, _Wb, _Xb, _Yb, _Zb, __b, _$b, _ac, _bc, _cc, _dc, _ec, _fc, _gc, _hc, _ic, _jc, _kc, _lc, _mc, _nc, _oc, _pc, _qc, _rc, _sc, _tc, _uc, _vc, _wc, _xc, _yc, _zc, _Ac, _Bc, _Cc, _Dc, _Ec, _Fc, _Gc, _Hc, _Ic, _Jc, _Kc, _Lc, _Mc, _Nc, _Oc, _Pc, _Qc, _Rc, _Sc, _Tc, _Uc, _Vc, _Wc, _Xc, _Yc, _Zc, __c, _$c, _ad, _bd, _cd, _dd, _ed, _fd, _gd, _hd, _id, _jd, _kd, _ld, _md, _nd, _od, _pd, _qd, _rd, _sd, _td, _ud, _vd, _wd, _xd, _yd, _zd, _Ad, _Bd, _Cd, _Dd, _Ed, _Fd, _Gd, _Hd, _Id, _Jd, _Kd, _Ld;
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab, _Bb, _Cb, _Db, _Eb, _Fb, _Gb, _Hb, _Ib, _Jb, _Kb, _Lb, _Mb, _Nb, _Ob, _Pb, _Qb, _Rb, _Sb, _Tb, _Ub, _Vb, _Wb, _Xb, _Yb, _Zb, __b, _$b, _ac, _bc, _cc, _dc, _ec, _fc, _gc, _hc, _ic, _jc, _kc, _lc, _mc, _nc, _oc, _pc, _qc, _rc, _sc, _tc, _uc, _vc, _wc, _xc, _yc, _zc, _Ac, _Bc, _Cc, _Dc, _Ec, _Fc, _Gc, _Hc, _Ic, _Jc, _Kc, _Lc, _Mc, _Nc, _Oc, _Pc, _Qc, _Rc, _Sc, _Tc, _Uc, _Vc, _Wc, _Xc, _Yc, _Zc, __c, _$c, _ad, _bd, _cd, _dd, _ed, _fd, _gd, _hd, _id, _jd, _kd, _ld, _md, _nd, _od, _pd, _qd, _rd, _sd, _td, _ud, _vd, _wd, _xd, _yd, _zd, _Ad, _Bd, _Cd, _Dd, _Ed, _Fd, _Gd, _Hd, _Id, _Jd, _Kd, _Ld, _Md, _Nd, _Od;
|
||||
return common_vendor.e({
|
||||
a: (_b = (_a = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _a.loading) == null ? void 0 : _b.value
|
||||
}, ((_d = (_c = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _c.loading) == null ? void 0 : _d.value) ? common_vendor.e({
|
||||
b: common_vendor.t(((_f = (_e = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _e.distanceNumber) == null ? void 0 : _f.value) > ((_i = (_h = (_g = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _g.attendanceConfigData) == null ? void 0 : _h.value) == null ? void 0 : _i.check_in_range) ? "不在" : "已在"),
|
||||
c: common_vendor.p({
|
||||
color: ((_k = (_j = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _j.distanceNumber) == null ? void 0 : _k.value) > ((_n = (_m = (_l = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _l.attendanceConfigData) == null ? void 0 : _m.value) == null ? void 0 : _n.check_in_range) ? "#767676" : "#0082FA",
|
||||
b: common_vendor.t(common_vendor.unref(common_libraries_day.getShowDay)((_g = (_f = (_e = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _e.formData) == null ? void 0 : _f.value) == null ? void 0 : _g.date)),
|
||||
c: common_vendor.t(((_i = (_h = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _h.distanceNumber) == null ? void 0 : _i.value) > ((_l = (_k = (_j = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _j.attendanceConfigData) == null ? void 0 : _k.value) == null ? void 0 : _l.check_in_range) ? "不在" : "已在"),
|
||||
d: common_vendor.p({
|
||||
color: ((_n = (_m = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _m.distanceNumber) == null ? void 0 : _n.value) > ((_q = (_p = (_o = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _o.attendanceConfigData) == null ? void 0 : _p.value) == null ? void 0 : _q.check_in_range) ? "#767676" : "#0082FA",
|
||||
type: "location-filled",
|
||||
size: "16"
|
||||
}),
|
||||
d: common_vendor.t(((_r = (_q = (_p = (_o = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _o.showData) == null ? void 0 : _p.value) == null ? void 0 : _q.project) == null ? void 0 : _r.name) || "-"),
|
||||
e: ((_t = (_s = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _s.distanceNumber) == null ? void 0 : _t.value) > ((_w = (_v = (_u = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _u.attendanceConfigData) == null ? void 0 : _v.value) == null ? void 0 : _w.check_in_range)
|
||||
}, ((_y = (_x = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _x.distanceNumber) == null ? void 0 : _y.value) > ((_B = (_A = (_z = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _z.attendanceConfigData) == null ? void 0 : _A.value) == null ? void 0 : _B.check_in_range) ? {
|
||||
f: common_vendor.o(
|
||||
e: common_vendor.t(((_u = (_t = (_s = (_r = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _r.showData) == null ? void 0 : _s.value) == null ? void 0 : _t.project) == null ? void 0 : _u.name) || "-"),
|
||||
f: ((_w = (_v = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _v.distanceNumber) == null ? void 0 : _w.value) > ((_z = (_y = (_x = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _x.attendanceConfigData) == null ? void 0 : _y.value) == null ? void 0 : _z.check_in_range)
|
||||
}, ((_B = (_A = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _A.distanceNumber) == null ? void 0 : _B.value) > ((_E = (_D = (_C = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _C.attendanceConfigData) == null ? void 0 : _D.value) == null ? void 0 : _E.check_in_range) ? {
|
||||
g: common_vendor.o(
|
||||
//@ts-ignore
|
||||
(...args) => {
|
||||
var _a2, _b2;
|
||||
@ -68,42 +70,42 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
}
|
||||
)
|
||||
} : {}, {
|
||||
g: common_vendor.n(`sign_clock_in_page_map ${((_D = (_C = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _C.distanceNumber) == null ? void 0 : _D.value) > ((_G = (_F = (_E = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _E.attendanceConfigData) == null ? void 0 : _F.value) == null ? void 0 : _G.check_in_range) ? "sign_clock_in_page_map_opacity" : ""}`),
|
||||
h: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)(`${(_J = (_I = (_H = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _H.formData) == null ? void 0 : _I.value) == null ? void 0 : _J.date} ${(_N = (_M = (_L = (_K = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _K.showData) == null ? void 0 : _L.value) == null ? void 0 : _M.period) == null ? void 0 : _N.work_start_time}`)),
|
||||
i: (_S = (_R = (_Q = (_P = (_O = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _O.showData) == null ? void 0 : _P.value) == null ? void 0 : _Q.checkin_status) == null ? void 0 : _R.start) == null ? void 0 : _S.checked
|
||||
}, ((_X = (_W = (_V = (_U = (_T = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _T.showData) == null ? void 0 : _U.value) == null ? void 0 : _V.checkin_status) == null ? void 0 : _W.start) == null ? void 0 : _X.checked) ? {
|
||||
j: common_vendor.t((_ba = common_vendor.unref(gen_Enums.AttendanceRecordsStatusEnum)[(_aa = (_$ = (__ = (_Z = (_Y = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Y.showData) == null ? void 0 : _Z.value) == null ? void 0 : __.checkin_status) == null ? void 0 : _$.start) == null ? void 0 : _aa.status]) == null ? void 0 : _ba.text)
|
||||
h: common_vendor.n(`sign_clock_in_page_map ${((_G = (_F = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _F.distanceNumber) == null ? void 0 : _G.value) > ((_J = (_I = (_H = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _H.attendanceConfigData) == null ? void 0 : _I.value) == null ? void 0 : _J.check_in_range) ? "sign_clock_in_page_map_opacity" : ""}`),
|
||||
i: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)(`${(_M = (_L = (_K = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _K.formData) == null ? void 0 : _L.value) == null ? void 0 : _M.date} ${(_Q = (_P = (_O = (_N = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _N.showData) == null ? void 0 : _O.value) == null ? void 0 : _P.period) == null ? void 0 : _Q.work_start_time}`)),
|
||||
j: (_V = (_U = (_T = (_S = (_R = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _R.showData) == null ? void 0 : _S.value) == null ? void 0 : _T.checkin_status) == null ? void 0 : _U.start) == null ? void 0 : _V.checked
|
||||
}, ((__ = (_Z = (_Y = (_X = (_W = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _W.showData) == null ? void 0 : _X.value) == null ? void 0 : _Y.checkin_status) == null ? void 0 : _Z.start) == null ? void 0 : __.checked) ? {
|
||||
k: common_vendor.t((_ea = common_vendor.unref(gen_Enums.AttendanceRecordsStatusEnum)[(_da = (_ca = (_ba = (_aa = (_$ = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _$.showData) == null ? void 0 : _aa.value) == null ? void 0 : _ba.checkin_status) == null ? void 0 : _ca.start) == null ? void 0 : _da.status]) == null ? void 0 : _ea.text)
|
||||
} : common_vendor.e({
|
||||
k: common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_ea = (_da = (_ca = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ca.formData) == null ? void 0 : _da.value) == null ? void 0 : _ea.date} ${(_ia = (_ha = (_ga = (_fa = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _fa.showData) == null ? void 0 : _ga.value) == null ? void 0 : _ha.period) == null ? void 0 : _ia.work_start_time}`)
|
||||
}, common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_la = (_ka = (_ja = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ja.formData) == null ? void 0 : _ka.value) == null ? void 0 : _la.date} ${(_pa = (_oa = (_na = (_ma = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ma.showData) == null ? void 0 : _na.value) == null ? void 0 : _oa.period) == null ? void 0 : _pa.work_start_time}`) ? {} : {}), {
|
||||
l: (_ua = (_ta = (_sa = (_ra = (_qa = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _qa.showData) == null ? void 0 : _ra.value) == null ? void 0 : _sa.checkin_status) == null ? void 0 : _ta.start) == null ? void 0 : _ua.checked
|
||||
}, ((_za = (_ya = (_xa = (_wa = (_va = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _va.showData) == null ? void 0 : _wa.value) == null ? void 0 : _xa.checkin_status) == null ? void 0 : _ya.start) == null ? void 0 : _za.checked) ? {
|
||||
m: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)((_Ea = (_Da = (_Ca = (_Ba = (_Aa = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Aa.showData) == null ? void 0 : _Ba.value) == null ? void 0 : _Ca.checkin_status) == null ? void 0 : _Da.start) == null ? void 0 : _Ea.time)),
|
||||
n: common_vendor.n(`schedules_steps_check schedules_steps_${(_Ja = (_Ia = (_Ha = (_Ga = (_Fa = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Fa.showData) == null ? void 0 : _Ga.value) == null ? void 0 : _Ha.checkin_status) == null ? void 0 : _Ia.start) == null ? void 0 : _Ja.status}`)
|
||||
l: common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_ha = (_ga = (_fa = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _fa.formData) == null ? void 0 : _ga.value) == null ? void 0 : _ha.date} ${(_la = (_ka = (_ja = (_ia = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ia.showData) == null ? void 0 : _ja.value) == null ? void 0 : _ka.period) == null ? void 0 : _la.work_start_time}`)
|
||||
}, common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_oa = (_na = (_ma = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ma.formData) == null ? void 0 : _na.value) == null ? void 0 : _oa.date} ${(_sa = (_ra = (_qa = (_pa = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _pa.showData) == null ? void 0 : _qa.value) == null ? void 0 : _ra.period) == null ? void 0 : _sa.work_start_time}`) ? {} : {}), {
|
||||
m: (_xa = (_wa = (_va = (_ua = (_ta = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ta.showData) == null ? void 0 : _ua.value) == null ? void 0 : _va.checkin_status) == null ? void 0 : _wa.start) == null ? void 0 : _xa.checked
|
||||
}, ((_Ca = (_Ba = (_Aa = (_za = (_ya = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ya.showData) == null ? void 0 : _za.value) == null ? void 0 : _Aa.checkin_status) == null ? void 0 : _Ba.start) == null ? void 0 : _Ca.checked) ? {
|
||||
n: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)((_Ha = (_Ga = (_Fa = (_Ea = (_Da = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Da.showData) == null ? void 0 : _Ea.value) == null ? void 0 : _Fa.checkin_status) == null ? void 0 : _Ga.start) == null ? void 0 : _Ha.time)),
|
||||
o: common_vendor.n(`schedules_steps_check schedules_steps_${(_Ma = (_La = (_Ka = (_Ja = (_Ia = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Ia.showData) == null ? void 0 : _Ja.value) == null ? void 0 : _Ka.checkin_status) == null ? void 0 : _La.start) == null ? void 0 : _Ma.status}`)
|
||||
} : {}, {
|
||||
o: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)(`${(_Ma = (_La = (_Ka = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Ka.formData) == null ? void 0 : _La.value) == null ? void 0 : _Ma.date} ${(_Qa = (_Pa = (_Oa = (_Na = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Na.showData) == null ? void 0 : _Oa.value) == null ? void 0 : _Pa.period) == null ? void 0 : _Qa.work_end_time}`)),
|
||||
p: (_Va = (_Ua = (_Ta = (_Sa = (_Ra = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Ra.showData) == null ? void 0 : _Sa.value) == null ? void 0 : _Ta.checkin_status) == null ? void 0 : _Ua.end) == null ? void 0 : _Va.checked
|
||||
}, ((__a = (_Za = (_Ya = (_Xa = (_Wa = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Wa.showData) == null ? void 0 : _Xa.value) == null ? void 0 : _Ya.checkin_status) == null ? void 0 : _Za.end) == null ? void 0 : __a.checked) ? {
|
||||
q: common_vendor.t((_eb = common_vendor.unref(gen_Enums.AttendanceRecordsStatusEnum)[(_db = (_cb = (_bb = (_ab = (_$a = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _$a.showData) == null ? void 0 : _ab.value) == null ? void 0 : _bb.checkin_status) == null ? void 0 : _cb.end) == null ? void 0 : _db.status]) == null ? void 0 : _eb.text)
|
||||
p: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)(`${(_Pa = (_Oa = (_Na = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Na.formData) == null ? void 0 : _Oa.value) == null ? void 0 : _Pa.date} ${(_Ta = (_Sa = (_Ra = (_Qa = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Qa.showData) == null ? void 0 : _Ra.value) == null ? void 0 : _Sa.period) == null ? void 0 : _Ta.work_end_time}`)),
|
||||
q: (_Ya = (_Xa = (_Wa = (_Va = (_Ua = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Ua.showData) == null ? void 0 : _Va.value) == null ? void 0 : _Wa.checkin_status) == null ? void 0 : _Xa.end) == null ? void 0 : _Ya.checked
|
||||
}, ((_bb = (_ab = (_$a = (__a = (_Za = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Za.showData) == null ? void 0 : __a.value) == null ? void 0 : _$a.checkin_status) == null ? void 0 : _ab.end) == null ? void 0 : _bb.checked) ? {
|
||||
r: common_vendor.t((_hb = common_vendor.unref(gen_Enums.AttendanceRecordsStatusEnum)[(_gb = (_fb = (_eb = (_db = (_cb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _cb.showData) == null ? void 0 : _db.value) == null ? void 0 : _eb.checkin_status) == null ? void 0 : _fb.end) == null ? void 0 : _gb.status]) == null ? void 0 : _hb.text)
|
||||
} : common_vendor.e({
|
||||
r: common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_hb = (_gb = (_fb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _fb.formData) == null ? void 0 : _gb.value) == null ? void 0 : _hb.date} ${(_lb = (_kb = (_jb = (_ib = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ib.showData) == null ? void 0 : _jb.value) == null ? void 0 : _kb.period) == null ? void 0 : _lb.work_end_time}`)
|
||||
}, common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_ob = (_nb = (_mb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _mb.formData) == null ? void 0 : _nb.value) == null ? void 0 : _ob.date} ${(_sb = (_rb = (_qb = (_pb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _pb.showData) == null ? void 0 : _qb.value) == null ? void 0 : _rb.period) == null ? void 0 : _sb.work_end_time}`) ? {} : {}), {
|
||||
s: (_xb = (_wb = (_vb = (_ub = (_tb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _tb.showData) == null ? void 0 : _ub.value) == null ? void 0 : _vb.checkin_status) == null ? void 0 : _wb.end) == null ? void 0 : _xb.checked
|
||||
}, ((_Cb = (_Bb = (_Ab = (_zb = (_yb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _yb.showData) == null ? void 0 : _zb.value) == null ? void 0 : _Ab.checkin_status) == null ? void 0 : _Bb.end) == null ? void 0 : _Cb.checked) ? {
|
||||
t: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)((_Hb = (_Gb = (_Fb = (_Eb = (_Db = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Db.showData) == null ? void 0 : _Eb.value) == null ? void 0 : _Fb.checkin_status) == null ? void 0 : _Gb.end) == null ? void 0 : _Hb.time)),
|
||||
v: common_vendor.n(`schedules_steps_check schedules_steps_${(_Mb = (_Lb = (_Kb = (_Jb = (_Ib = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Ib.showData) == null ? void 0 : _Jb.value) == null ? void 0 : _Kb.checkin_status) == null ? void 0 : _Lb.end) == null ? void 0 : _Mb.status}`)
|
||||
s: common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_kb = (_jb = (_ib = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ib.formData) == null ? void 0 : _jb.value) == null ? void 0 : _kb.date} ${(_ob = (_nb = (_mb = (_lb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _lb.showData) == null ? void 0 : _mb.value) == null ? void 0 : _nb.period) == null ? void 0 : _ob.work_end_time}`)
|
||||
}, common_vendor.unref(common_libraries_day.isOverHalfHourPast)(`${(_rb = (_qb = (_pb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _pb.formData) == null ? void 0 : _qb.value) == null ? void 0 : _rb.date} ${(_vb = (_ub = (_tb = (_sb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _sb.showData) == null ? void 0 : _tb.value) == null ? void 0 : _ub.period) == null ? void 0 : _vb.work_end_time}`) ? {} : {}), {
|
||||
t: (_Ab = (_zb = (_yb = (_xb = (_wb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _wb.showData) == null ? void 0 : _xb.value) == null ? void 0 : _yb.checkin_status) == null ? void 0 : _zb.end) == null ? void 0 : _Ab.checked
|
||||
}, ((_Fb = (_Eb = (_Db = (_Cb = (_Bb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Bb.showData) == null ? void 0 : _Cb.value) == null ? void 0 : _Db.checkin_status) == null ? void 0 : _Eb.end) == null ? void 0 : _Fb.checked) ? {
|
||||
v: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)((_Kb = (_Jb = (_Ib = (_Hb = (_Gb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Gb.showData) == null ? void 0 : _Hb.value) == null ? void 0 : _Ib.checkin_status) == null ? void 0 : _Jb.end) == null ? void 0 : _Kb.time)),
|
||||
w: common_vendor.n(`schedules_steps_check schedules_steps_${(_Pb = (_Ob = (_Nb = (_Mb = (_Lb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Lb.showData) == null ? void 0 : _Mb.value) == null ? void 0 : _Nb.checkin_status) == null ? void 0 : _Ob.end) == null ? void 0 : _Pb.status}`)
|
||||
} : {}, {
|
||||
w: common_vendor.p({
|
||||
current: (_Ob = (_Nb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Nb.current) == null ? void 0 : _Ob.value,
|
||||
x: common_vendor.p({
|
||||
current: (_Rb = (_Qb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Qb.current) == null ? void 0 : _Rb.value,
|
||||
direction: "column",
|
||||
activeColor: "#52C41A",
|
||||
inactiveColor: "#CBCBCB"
|
||||
}),
|
||||
x: (_Rb = (_Qb = (_Pb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Pb.attendanceConfigData) == null ? void 0 : _Qb.value) == null ? void 0 : _Rb.require_photo
|
||||
}, ((_Ub = (_Tb = (_Sb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Sb.attendanceConfigData) == null ? void 0 : _Tb.value) == null ? void 0 : _Ub.require_photo) ? common_vendor.e({
|
||||
y: (_Yb = (_Xb = (_Wb = (_Vb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Vb.formData) == null ? void 0 : _Wb.value) == null ? void 0 : _Xb.photo) == null ? void 0 : _Yb.length
|
||||
}, ((_ac = (_$b = (__b = (_Zb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Zb.formData) == null ? void 0 : __b.value) == null ? void 0 : _$b.photo) == null ? void 0 : _ac.length) ? {
|
||||
z: common_vendor.f((_dc = (_cc = (_bc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _bc.formData) == null ? void 0 : _cc.value) == null ? void 0 : _dc.photo, (i, index, i0) => {
|
||||
y: (_Ub = (_Tb = (_Sb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Sb.attendanceConfigData) == null ? void 0 : _Tb.value) == null ? void 0 : _Ub.require_photo
|
||||
}, ((_Xb = (_Wb = (_Vb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Vb.attendanceConfigData) == null ? void 0 : _Wb.value) == null ? void 0 : _Xb.require_photo) ? common_vendor.e({
|
||||
z: (_$b = (__b = (_Zb = (_Yb = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Yb.formData) == null ? void 0 : _Zb.value) == null ? void 0 : __b.photo) == null ? void 0 : _$b.length
|
||||
}, ((_dc = (_cc = (_bc = (_ac = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ac.formData) == null ? void 0 : _bc.value) == null ? void 0 : _cc.photo) == null ? void 0 : _dc.length) ? {
|
||||
A: common_vendor.f((_gc = (_fc = (_ec = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ec.formData) == null ? void 0 : _fc.value) == null ? void 0 : _gc.photo, (i, index, i0) => {
|
||||
return {
|
||||
a: i == null ? void 0 : i.url,
|
||||
b: common_vendor.o(($event) => {
|
||||
@ -118,37 +120,37 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
e: `img_${index}`
|
||||
};
|
||||
}),
|
||||
A: common_vendor.p({
|
||||
B: common_vendor.p({
|
||||
type: "clear",
|
||||
color: "#f00",
|
||||
size: "25"
|
||||
})
|
||||
} : {
|
||||
B: common_vendor.o(($event) => {
|
||||
C: common_vendor.o(($event) => {
|
||||
var _a2;
|
||||
return (_a2 = common_vendor.unref(ME_attendance_sign_clock_in_method.method)) == null ? void 0 : _a2.toUpload();
|
||||
}),
|
||||
C: common_vendor.p({
|
||||
D: common_vendor.p({
|
||||
label: "点击拍照",
|
||||
type: "ghost",
|
||||
size: "large"
|
||||
})
|
||||
}) : {}, {
|
||||
D: ((_fc = (_ec = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ec.distanceNumber) == null ? void 0 : _fc.value) <= ((_ic = (_hc = (_gc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _gc.attendanceConfigData) == null ? void 0 : _hc.value) == null ? void 0 : _ic.check_in_range) && common_vendor.unref(common_libraries_day.isWithinTimeRange)(`${(_lc = (_kc = (_jc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _jc.formData) == null ? void 0 : _kc.value) == null ? void 0 : _lc.date} ${((_oc = (_nc = (_mc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _mc.formData) == null ? void 0 : _nc.value) == null ? void 0 : _oc.checkin_type) === "CheckOut" ? (_sc = (_rc = (_qc = (_pc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _pc.showData) == null ? void 0 : _qc.value) == null ? void 0 : _rc.period) == null ? void 0 : _sc.work_end_time : (_wc = (_vc = (_uc = (_tc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _tc.showData) == null ? void 0 : _uc.value) == null ? void 0 : _vc.period) == null ? void 0 : _wc.work_start_time}`) && ((_xc = common_vendor.unref(ME_attendance_sign_clock_in_method.method)) == null ? void 0 : _xc.YesNoCheckinStatus())
|
||||
}, ((_zc = (_yc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _yc.distanceNumber) == null ? void 0 : _zc.value) <= ((_Cc = (_Bc = (_Ac = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Ac.attendanceConfigData) == null ? void 0 : _Bc.value) == null ? void 0 : _Cc.check_in_range) && common_vendor.unref(common_libraries_day.isWithinTimeRange)(`${(_Fc = (_Ec = (_Dc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Dc.formData) == null ? void 0 : _Ec.value) == null ? void 0 : _Fc.date} ${((_Ic = (_Hc = (_Gc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Gc.formData) == null ? void 0 : _Hc.value) == null ? void 0 : _Ic.checkin_type) === "CheckOut" ? (_Mc = (_Lc = (_Kc = (_Jc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Jc.showData) == null ? void 0 : _Kc.value) == null ? void 0 : _Lc.period) == null ? void 0 : _Mc.work_end_time : (_Qc = (_Pc = (_Oc = (_Nc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Nc.showData) == null ? void 0 : _Oc.value) == null ? void 0 : _Pc.period) == null ? void 0 : _Qc.work_start_time}`) && ((_Rc = common_vendor.unref(ME_attendance_sign_clock_in_method.method)) == null ? void 0 : _Rc.YesNoCheckinStatus()) ? common_vendor.e({
|
||||
E: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)(`${(_Uc = (_Tc = (_Sc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Sc.formData) == null ? void 0 : _Tc.value) == null ? void 0 : _Uc.date} ${((_Xc = (_Wc = (_Vc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Vc.formData) == null ? void 0 : _Wc.value) == null ? void 0 : _Xc.checkin_type) === "CheckOut" ? (_$c = (__c = (_Zc = (_Yc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Yc.showData) == null ? void 0 : _Zc.value) == null ? void 0 : __c.period) == null ? void 0 : _$c.work_end_time : (_dd = (_cd = (_bd = (_ad = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ad.showData) == null ? void 0 : _bd.value) == null ? void 0 : _cd.period) == null ? void 0 : _dd.work_start_time}`)),
|
||||
F: common_vendor.o(($event) => {
|
||||
E: ((_ic = (_hc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _hc.distanceNumber) == null ? void 0 : _ic.value) <= ((_lc = (_kc = (_jc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _jc.attendanceConfigData) == null ? void 0 : _kc.value) == null ? void 0 : _lc.check_in_range) && common_vendor.unref(common_libraries_day.isWithinTimeRange)(`${(_oc = (_nc = (_mc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _mc.formData) == null ? void 0 : _nc.value) == null ? void 0 : _oc.date} ${((_rc = (_qc = (_pc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _pc.formData) == null ? void 0 : _qc.value) == null ? void 0 : _rc.checkin_type) === "CheckOut" ? (_vc = (_uc = (_tc = (_sc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _sc.showData) == null ? void 0 : _tc.value) == null ? void 0 : _uc.period) == null ? void 0 : _vc.work_end_time : (_zc = (_yc = (_xc = (_wc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _wc.showData) == null ? void 0 : _xc.value) == null ? void 0 : _yc.period) == null ? void 0 : _zc.work_start_time}`) && ((_Ac = common_vendor.unref(ME_attendance_sign_clock_in_method.method)) == null ? void 0 : _Ac.YesNoCheckinStatus())
|
||||
}, ((_Cc = (_Bc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Bc.distanceNumber) == null ? void 0 : _Cc.value) <= ((_Fc = (_Ec = (_Dc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Dc.attendanceConfigData) == null ? void 0 : _Ec.value) == null ? void 0 : _Fc.check_in_range) && common_vendor.unref(common_libraries_day.isWithinTimeRange)(`${(_Ic = (_Hc = (_Gc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Gc.formData) == null ? void 0 : _Hc.value) == null ? void 0 : _Ic.date} ${((_Lc = (_Kc = (_Jc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Jc.formData) == null ? void 0 : _Kc.value) == null ? void 0 : _Lc.checkin_type) === "CheckOut" ? (_Pc = (_Oc = (_Nc = (_Mc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Mc.showData) == null ? void 0 : _Nc.value) == null ? void 0 : _Oc.period) == null ? void 0 : _Pc.work_end_time : (_Tc = (_Sc = (_Rc = (_Qc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Qc.showData) == null ? void 0 : _Rc.value) == null ? void 0 : _Sc.period) == null ? void 0 : _Tc.work_start_time}`) && ((_Uc = common_vendor.unref(ME_attendance_sign_clock_in_method.method)) == null ? void 0 : _Uc.YesNoCheckinStatus()) ? common_vendor.e({
|
||||
F: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)(`${(_Xc = (_Wc = (_Vc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Vc.formData) == null ? void 0 : _Wc.value) == null ? void 0 : _Xc.date} ${((__c = (_Zc = (_Yc = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Yc.formData) == null ? void 0 : _Zc.value) == null ? void 0 : __c.checkin_type) === "CheckOut" ? (_cd = (_bd = (_ad = (_$c = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _$c.showData) == null ? void 0 : _ad.value) == null ? void 0 : _bd.period) == null ? void 0 : _cd.work_end_time : (_gd = (_fd = (_ed = (_dd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _dd.showData) == null ? void 0 : _ed.value) == null ? void 0 : _fd.period) == null ? void 0 : _gd.work_start_time}`)),
|
||||
G: common_vendor.o(($event) => {
|
||||
var _a2;
|
||||
return (_a2 = common_vendor.unref(ME_attendance_sign_clock_in_method.method)) == null ? void 0 : _a2.handleCheckin();
|
||||
}),
|
||||
G: (_gd = (_fd = (_ed = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ed.attendanceConfigData) == null ? void 0 : _fd.value) == null ? void 0 : _gd.require_photo
|
||||
}, ((_jd = (_id = (_hd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _hd.attendanceConfigData) == null ? void 0 : _id.value) == null ? void 0 : _jd.require_photo) ? {} : {}) : common_vendor.e({
|
||||
H: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)(`${(_md = (_ld = (_kd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _kd.formData) == null ? void 0 : _ld.value) == null ? void 0 : _md.date} ${((_pd = (_od = (_nd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _nd.formData) == null ? void 0 : _od.value) == null ? void 0 : _pd.checkin_type) === "CheckOut" ? (_td = (_sd = (_rd = (_qd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _qd.showData) == null ? void 0 : _rd.value) == null ? void 0 : _sd.period) == null ? void 0 : _td.work_end_time : (_xd = (_wd = (_vd = (_ud = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _ud.showData) == null ? void 0 : _vd.value) == null ? void 0 : _wd.period) == null ? void 0 : _xd.work_start_time}`)),
|
||||
I: ((_zd = (_yd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _yd.distanceNumber) == null ? void 0 : _zd.value) > ((_Cd = (_Bd = (_Ad = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Ad.attendanceConfigData) == null ? void 0 : _Bd.value) == null ? void 0 : _Cd.check_in_range)
|
||||
}, ((_Ed = (_Dd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Dd.distanceNumber) == null ? void 0 : _Ed.value) > ((_Hd = (_Gd = (_Fd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Fd.attendanceConfigData) == null ? void 0 : _Gd.value) == null ? void 0 : _Hd.check_in_range) ? {
|
||||
J: common_vendor.t(((_Ld = (_Kd = (_Jd = (_Id = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Id.showData) == null ? void 0 : _Jd.value) == null ? void 0 : _Kd.project) == null ? void 0 : _Ld.name) || "-")
|
||||
H: (_jd = (_id = (_hd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _hd.attendanceConfigData) == null ? void 0 : _id.value) == null ? void 0 : _jd.require_photo
|
||||
}, ((_md = (_ld = (_kd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _kd.attendanceConfigData) == null ? void 0 : _ld.value) == null ? void 0 : _md.require_photo) ? {} : {}) : common_vendor.e({
|
||||
I: common_vendor.t(common_vendor.unref(common_libraries_day.showTime)(`${(_pd = (_od = (_nd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _nd.formData) == null ? void 0 : _od.value) == null ? void 0 : _pd.date} ${((_sd = (_rd = (_qd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _qd.formData) == null ? void 0 : _rd.value) == null ? void 0 : _sd.checkin_type) === "CheckOut" ? (_wd = (_vd = (_ud = (_td = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _td.showData) == null ? void 0 : _ud.value) == null ? void 0 : _vd.period) == null ? void 0 : _wd.work_end_time : (_Ad = (_zd = (_yd = (_xd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _xd.showData) == null ? void 0 : _yd.value) == null ? void 0 : _zd.period) == null ? void 0 : _Ad.work_start_time}`)),
|
||||
J: ((_Cd = (_Bd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Bd.distanceNumber) == null ? void 0 : _Cd.value) > ((_Fd = (_Ed = (_Dd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Dd.attendanceConfigData) == null ? void 0 : _Ed.value) == null ? void 0 : _Fd.check_in_range)
|
||||
}, ((_Hd = (_Gd = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Gd.distanceNumber) == null ? void 0 : _Hd.value) > ((_Kd = (_Jd = (_Id = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Id.attendanceConfigData) == null ? void 0 : _Jd.value) == null ? void 0 : _Kd.check_in_range) ? {
|
||||
K: common_vendor.t(((_Od = (_Nd = (_Md = (_Ld = common_vendor.unref(ME_attendance_sign_clock_in_model.useModel)) == null ? void 0 : _Ld.showData) == null ? void 0 : _Md.value) == null ? void 0 : _Nd.project) == null ? void 0 : _Od.name) || "-")
|
||||
} : {})) : {
|
||||
K: common_vendor.p({
|
||||
L: common_vendor.p({
|
||||
text: "努力加载中",
|
||||
size: "36",
|
||||
vertical: true
|
||||
|
||||
@ -1 +1 @@
|
||||
<view><view wx:if="{{a}}" class="sign_clock_in_page"><view class="sign_clock_in_page_title"> 打卡地点 </view><view class="{{g}}"><image src="https://gc-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01KADY6KD59DQYMF6PBFSZN98X.png" mode="widthFix"/><view class="sign_clock_in_page_map_content"><view><view class="label"> 你{{b}}打卡范围内 </view><view class="address_name"><uni-icons wx:if="{{c}}" u-i="47899bc6-0" bind:__l="__l" u-p="{{c}}"></uni-icons><text>{{d}}</text></view></view><view wx:if="{{e}}" class="update_location" bindtap="{{f}}"><view class="update_location_btn"> 更新位置 </view></view></view></view><view class="steps_item"><u-steps wx:if="{{w}}" u-s="{{['d']}}" u-i="47899bc6-1" bind:__l="__l" u-p="{{w}}"><u-steps-item u-s="{{['desc']}}" u-i="47899bc6-2,47899bc6-1" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view> 上班卡:{{h}}前 </view><view wx:if="{{i}}" class="status status_normal">{{j}}</view><block wx:else><view wx:if="{{k}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{l}}" class="{{n}}"> 打卡时间:{{m}}</view></view></u-steps-item><u-steps-item u-s="{{['desc']}}" u-i="47899bc6-3,47899bc6-1" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>下班卡: {{o}}前</view><view wx:if="{{p}}" class="status status_normal">{{q}}</view><block wx:else><view wx:if="{{r}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{s}}" class="{{v}}"> 打卡时间:{{t}}</view></view></u-steps-item></u-steps></view><view wx:if="{{x}}" class="watermark_info"><view wx:if="{{y}}"><view wx:for="{{z}}" wx:for-item="i" wx:key="e" class="upload_item_img"><image src="{{i.a}}" mode="aspectFill" bindtap="{{i.b}}"/><view class="upload_item_delete" bindtap="{{i.d}}"><uni-icons wx:if="{{A}}" u-i="{{i.c}}" bind:__l="__l" u-p="{{A}}"></uni-icons></view></view></view><view wx:else class="update_photo"><hs-button wx:if="{{C}}" bindclick="{{B}}" u-i="47899bc6-5" bind:__l="__l" u-p="{{C}}"/></view></view><view class="TakePhotoCheckIn"><block wx:if="{{D}}"><view><view class="btn" bindtap="{{F}}"><view><view class="btn_label"> 打卡 </view><view>{{E}}</view></view></view><view wx:if="{{G}}" class="no_distance_des"> 请先上传打卡照,再点击打卡按钮 </view></view></block><block wx:else><view><view class="btn no_distance"><view><view class="btn_label"> 打卡</view><view>{{H}}</view></view></view><view wx:if="{{I}}" class="no_distance_des"><view> 当前不在打卡范围内 </view><view>前往{{J}}即可完成打卡签到。</view></view></view></block></view></view><view wx:else class="loading"><u-loading-icon wx:if="{{K}}" u-i="47899bc6-6" bind:__l="__l" u-p="{{K}}"/></view></view>
|
||||
<view><view wx:if="{{a}}" class="sign_clock_in_page"><view class="sign_clock_in_page_title"> 打卡地点 ({{b}})</view><view class="{{h}}"><image src="https://gc-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01KADY6KD59DQYMF6PBFSZN98X.png" mode="widthFix"/><view class="sign_clock_in_page_map_content"><view><view class="label"> 你{{c}}打卡范围内 </view><view class="address_name"><uni-icons wx:if="{{d}}" u-i="47899bc6-0" bind:__l="__l" u-p="{{d}}"></uni-icons><text>{{e}}</text></view></view><view wx:if="{{f}}" class="update_location" bindtap="{{g}}"><view class="update_location_btn"> 更新位置 </view></view></view></view><view class="steps_item"><u-steps wx:if="{{x}}" u-s="{{['d']}}" u-i="47899bc6-1" bind:__l="__l" u-p="{{x}}"><u-steps-item u-s="{{['desc']}}" u-i="47899bc6-2,47899bc6-1" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view> 上班卡:{{i}}前 </view><view wx:if="{{j}}" class="status status_normal">{{k}}</view><block wx:else><view wx:if="{{l}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{m}}" class="{{o}}"> 打卡时间:{{n}}</view></view></u-steps-item><u-steps-item u-s="{{['desc']}}" u-i="47899bc6-3,47899bc6-1" bind:__l="__l"><view class="schedules_steps" slot="desc"><view class="schedules_steps_day_info"><view>下班卡: {{p}}前</view><view wx:if="{{q}}" class="status status_normal">{{r}}</view><block wx:else><view wx:if="{{s}}" class="status status_missing"> 缺卡 </view></block></view><view wx:if="{{t}}" class="{{w}}"> 打卡时间:{{v}}</view></view></u-steps-item></u-steps></view><view wx:if="{{y}}" class="watermark_info"><view wx:if="{{z}}"><view wx:for="{{A}}" wx:for-item="i" wx:key="e" class="upload_item_img"><image src="{{i.a}}" mode="aspectFill" bindtap="{{i.b}}"/><view class="upload_item_delete" bindtap="{{i.d}}"><uni-icons wx:if="{{B}}" u-i="{{i.c}}" bind:__l="__l" u-p="{{B}}"></uni-icons></view></view></view><view wx:else class="update_photo"><hs-button wx:if="{{D}}" bindclick="{{C}}" u-i="47899bc6-5" bind:__l="__l" u-p="{{D}}"/></view></view><view class="TakePhotoCheckIn"><block wx:if="{{E}}"><view><view class="btn" bindtap="{{G}}"><view><view class="btn_label"> 打卡2 </view><view>{{F}}</view></view></view><view wx:if="{{H}}" class="no_distance_des"> 请先上传打卡照,再点击打卡按钮 </view></view></block><block wx:else><view><view class="btn no_distance"><view><view class="btn_label"> 打卡1</view><view>{{I}}</view></view></view><view wx:if="{{J}}" class="no_distance_des"><view> 当前不在打卡范围内 </view><view>前往{{K}}即可完成打卡签到。</view></view></view></block></view></view><view wx:else class="loading"><u-loading-icon wx:if="{{L}}" u-i="47899bc6-6" bind:__l="__l" u-p="{{L}}"/></view></view>
|
||||
54
dist/dev/mp-weixin/common/libraries/day.js
vendored
54
dist/dev/mp-weixin/common/libraries/day.js
vendored
@ -2,6 +2,31 @@
|
||||
const common_vendor = require("../vendor.js");
|
||||
common_vendor.dayjs.locale("zh-cn");
|
||||
common_vendor.dayjs.extend(common_vendor.relativeTime);
|
||||
const getShowDay = (day) => {
|
||||
const weekMap = {
|
||||
0: "星期日",
|
||||
1: "星期一",
|
||||
2: "星期二",
|
||||
3: "星期三",
|
||||
4: "星期四",
|
||||
5: "星期五",
|
||||
6: "星期六"
|
||||
};
|
||||
const targetDate = common_vendor.dayjs(day).startOf("day");
|
||||
const today = common_vendor.dayjs().startOf("day");
|
||||
const yesterday = today.subtract(1, "day");
|
||||
const tomorrow = today.add(1, "day");
|
||||
const weekDay = weekMap[targetDate.day()];
|
||||
if (targetDate.isSame(today, "day")) {
|
||||
return `今天 ${weekDay}`;
|
||||
} else if (targetDate.isSame(yesterday, "day")) {
|
||||
return `昨天 ${weekDay}`;
|
||||
} else if (targetDate.isSame(tomorrow, "day")) {
|
||||
return `明天 ${weekDay}`;
|
||||
} else {
|
||||
return `${day} ${weekDay}`;
|
||||
}
|
||||
};
|
||||
function ShowLastTime(time) {
|
||||
return time ? common_vendor.dayjs(time).fromNow() : "-";
|
||||
}
|
||||
@ -118,43 +143,20 @@ function isWithinTimeRange(targetTime, minutesRange = 30) {
|
||||
console.log(targetTime, dataTime, "targetTime");
|
||||
const now = common_vendor.dayjs();
|
||||
const checkTime = common_vendor.dayjs(dataTime);
|
||||
const startTime = checkTime.subtract(30, "minute");
|
||||
const endTime = checkTime.add(2, "hour");
|
||||
const startTime = checkTime.startOf("day");
|
||||
const endTime = checkTime.endOf("day");
|
||||
return now.isAfter(startTime) && now.isBefore(endTime);
|
||||
}
|
||||
function showTime(time) {
|
||||
let dataTime = time == null ? void 0 : time.replace(/-/g, "/");
|
||||
return dataTime ? common_vendor.dayjs(dataTime).format("HH:mm") : "";
|
||||
}
|
||||
function isCanCheckIn(startTime, endTime) {
|
||||
let dataTimeStr = startTime == null ? void 0 : startTime.replace(/-/g, "/");
|
||||
let dataTimeEnd = endTime == null ? void 0 : endTime.replace(/-/g, "/");
|
||||
const now = common_vendor.dayjs();
|
||||
const nowTimestamp = now.valueOf();
|
||||
const startTimeObj = common_vendor.dayjs(dataTimeStr);
|
||||
const endTimeObj = common_vendor.dayjs(dataTimeEnd);
|
||||
if (!startTimeObj.isValid()) {
|
||||
console.error("开始时间格式无效:", startTime);
|
||||
return false;
|
||||
}
|
||||
if (!endTimeObj.isValid()) {
|
||||
console.error("结束时间格式无效:", endTime);
|
||||
return false;
|
||||
}
|
||||
if (endTimeObj.valueOf() < startTimeObj.valueOf()) {
|
||||
console.error("结束时间不能早于开始时间");
|
||||
return false;
|
||||
}
|
||||
const startTimestamp = startTimeObj.valueOf();
|
||||
const endTimestamp = endTimeObj.valueOf();
|
||||
return nowTimestamp >= startTimestamp && nowTimestamp <= endTimestamp;
|
||||
}
|
||||
exports.ShowLastTime = ShowLastTime;
|
||||
exports.getDay = getDay;
|
||||
exports.getDayTime = getDayTime;
|
||||
exports.getShowDay = getShowDay;
|
||||
exports.getTime = getTime;
|
||||
exports.getTimeStatus = getTimeStatus;
|
||||
exports.isCanCheckIn = isCanCheckIn;
|
||||
exports.isDatePassed = isDatePassed;
|
||||
exports.isOverHalfHourPast = isOverHalfHourPast;
|
||||
exports.isWithinTimeRange = isWithinTimeRange;
|
||||
|
||||
@ -3,7 +3,7 @@ const common_vendor = require("../vendor.js");
|
||||
const common_store_useWeAppAuthStore = require("../store/useWeAppAuthStore.js");
|
||||
const http = new common_vendor.Request();
|
||||
http.setConfig((config) => {
|
||||
config.baseURL = "http://10.39.13.78:8002/api/";
|
||||
config.baseURL = "https://weapp-api.linyikj.com.cn/api/";
|
||||
config.header = {
|
||||
...config.header
|
||||
};
|
||||
|
||||
25
dist/dev/mp-weixin/common/vendor.js
vendored
25
dist/dev/mp-weixin/common/vendor.js
vendored
@ -13048,24 +13048,16 @@ class Request2 {
|
||||
}
|
||||
}
|
||||
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
||||
function getDefaultExportFromCjs(x2) {
|
||||
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
||||
}
|
||||
var dayjs_minExports$1 = {};
|
||||
var dayjs_minExports = {};
|
||||
var dayjs_min = {
|
||||
get exports() {
|
||||
return dayjs_minExports$1;
|
||||
return dayjs_minExports;
|
||||
},
|
||||
set exports(v2) {
|
||||
dayjs_minExports$1 = v2;
|
||||
dayjs_minExports = v2;
|
||||
}
|
||||
};
|
||||
var hasRequiredDayjs_min;
|
||||
function requireDayjs_min() {
|
||||
if (hasRequiredDayjs_min)
|
||||
return dayjs_minExports$1;
|
||||
hasRequiredDayjs_min = 1;
|
||||
(function(module2, exports2) {
|
||||
(function(module2, exports2) {
|
||||
!function(t2, e2) {
|
||||
module2.exports = e2();
|
||||
}(commonjsGlobal, function() {
|
||||
@ -13353,11 +13345,8 @@ function requireDayjs_min() {
|
||||
return O(1e3 * t3);
|
||||
}, O.en = D2[g2], O.Ls = D2, O.p = {}, O;
|
||||
});
|
||||
})(dayjs_min);
|
||||
return dayjs_minExports$1;
|
||||
}
|
||||
var dayjs_minExports = requireDayjs_min();
|
||||
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
||||
})(dayjs_min);
|
||||
const dayjs = dayjs_minExports;
|
||||
var zhCnExports = {};
|
||||
var zhCn = {
|
||||
get exports() {
|
||||
@ -13369,7 +13358,7 @@ var zhCn = {
|
||||
};
|
||||
(function(module2, exports2) {
|
||||
!function(e2, _2) {
|
||||
module2.exports = _2(requireDayjs_min());
|
||||
module2.exports = _2(dayjs_minExports);
|
||||
}(commonjsGlobal, function(e2) {
|
||||
function _2(e3) {
|
||||
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
||||
|
||||
7
dist/dev/mp-weixin/pages/transfer/index.js
vendored
7
dist/dev/mp-weixin/pages/transfer/index.js
vendored
@ -37,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
}
|
||||
if (data[0] === "2") {
|
||||
common_vendor.index.redirectTo({
|
||||
url: `/INDEX/pass/index?id=${data[1]}`
|
||||
url: `/INDEX/pass/index?source=2&id=${data[1]}`
|
||||
});
|
||||
}
|
||||
if (data[0] === "3") {
|
||||
@ -45,6 +45,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||||
url: `/INDEX/patrol_task_list/index?id=${data[1]}`
|
||||
});
|
||||
}
|
||||
if (data[0] === "4") {
|
||||
common_vendor.index.redirectTo({
|
||||
url: `/INDEX/pass/index?source=4&customers_id=${data[1]}&asset_houses_id=${data[2]}`
|
||||
});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
common_vendor.index.showModal({
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="release_items_page">
|
||||
<view class="release_content">
|
||||
<view class="release_content" v-if="useModel?.formData?.value?.source === '2'">
|
||||
<view v-if="useModel?.isExpired?.value" class="expired">
|
||||
<view>
|
||||
<uni-icons type="info" size="50" color="#FF4D4F"></uni-icons>
|
||||
@ -10,15 +10,9 @@
|
||||
</view>
|
||||
|
||||
<view class="user_info" v-else>
|
||||
<view class="avatar"
|
||||
><u-avatar
|
||||
:src="
|
||||
useModel?.userInfo?.value?.worker_photo &&
|
||||
<view class="avatar"><u-avatar :src="useModel?.userInfo?.value?.worker_photo &&
|
||||
useModel?.userInfo?.value?.worker_photo[0]?.url
|
||||
"
|
||||
size="70"
|
||||
></u-avatar
|
||||
></view>
|
||||
" size="70"></u-avatar></view>
|
||||
<view class="name">{{ useModel?.showData?.value?.visitor_name || '-' }}</view>
|
||||
<view class="phone">{{ useModel?.showData?.value?.visitor_phone || '-' }}</view>
|
||||
</view>
|
||||
@ -58,24 +52,31 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<hs-footer
|
||||
btnParimaryName="进入小区"
|
||||
btnOtherShow
|
||||
v-if="useModel?.showData?.value?.status === 'Approved' && !useModel?.isExpired?.value"
|
||||
btnOtherName="离开小区"
|
||||
@handleParmaryClick="method?.handleSubmit('enter')"
|
||||
@handleOtherClick="method?.handleSubmit('exit')"
|
||||
/>
|
||||
|
||||
<view class="release_content" v-if="useModel?.formData?.value?.source === '4'">
|
||||
<view class="user_info">
|
||||
<view class="avatar"><u-avatar size="70"></u-avatar></view>
|
||||
<view class="name">{{ useModel?.showData?.value?.house?.full_name || '-' }}</view>
|
||||
<view class="phone">{{ useModel?.showData?.value?.occupant_name || '-' }}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<hs-footer btnParimaryName="进入小区" btnOtherShow
|
||||
v-if="useModel?.showData?.value?.status === 'Approved' && !useModel?.isExpired?.value && useModel?.formData?.value?.source === '2'"
|
||||
btnOtherName="离开小区" @handleParmaryClick="method?.handleSubmit('enter')"
|
||||
@handleOtherClick="method?.handleSubmit('exit')" />
|
||||
<hs-footer btnParimaryName="进入小区" btnOtherShow v-if="useModel?.formData?.value?.source === '4'" btnOtherName="离开小区"
|
||||
@handleParmaryClick="method?.handleSubmit('enter')" @handleOtherClick="method?.handleSubmit('exit')" />
|
||||
</view>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { VisitorAppliesStatusEnum } from '@/gen/Enums'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import method from './method'
|
||||
import useModel from './model'
|
||||
|
||||
onLoad((e: any) => {
|
||||
method?.getShow(e)
|
||||
method?.init(e)
|
||||
console.log(e)
|
||||
})
|
||||
</script>
|
||||
|
||||
@ -3,7 +3,7 @@ import { isDatePassed } from '@/common/libraries/day'
|
||||
import { showToast } from '@/common/libraries/naviHelper'
|
||||
import { Apis } from '@/gen/Apis'
|
||||
import useModel from './model'
|
||||
const getShow = (data: { id: string }) => {
|
||||
const getFitmentShow = (data: { id: string }) => {
|
||||
getApiLoading(Apis.Visitor.VisitorApplies.Show, data).then(res => {
|
||||
useModel.showData.value = res?.data
|
||||
if (res?.data?.renovation_workers?.length) {
|
||||
@ -15,15 +15,21 @@ const getShow = (data: { id: string }) => {
|
||||
console.log(res)
|
||||
})
|
||||
}
|
||||
|
||||
export default {
|
||||
getShow,
|
||||
init(e:any){
|
||||
useModel.formData.value = e
|
||||
console.log(e,useModel.formData.value,'sncd')
|
||||
getFitmentShow(e)
|
||||
},
|
||||
handleSubmit(val?: string) {
|
||||
getApiLoading(Apis.Visitor.VisitorApplies.Scan, {
|
||||
code: useModel?.showData?.value?.visitor_code,
|
||||
scan_type: val
|
||||
scan_type: val,
|
||||
...useModel?.formData?.value
|
||||
}).then(res => {
|
||||
showToast('操作成功!', () => {
|
||||
getShow({ id: useModel?.showData?.value?.id })
|
||||
getFitmentShow(useModel.formData.value)
|
||||
})
|
||||
console.log(res)
|
||||
})
|
||||
|
||||
@ -25,7 +25,7 @@ page {
|
||||
border-radius: 20rpx;
|
||||
margin: 0 30rpx;
|
||||
overflow: hidden;
|
||||
padding: 50rpx 0 30rpx 0;
|
||||
padding: 50rpx 0;
|
||||
.user_info {
|
||||
color: #3d3d3d;
|
||||
font-size: 26rpx;
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
<template>
|
||||
<view>
|
||||
<hs-empty v-if="!useModel?.showData?.value" />
|
||||
<view class="schedules_content">
|
||||
<view class="schedules_item" v-for="(i, index) in useModel?.showData?.value?.shift?.periods"
|
||||
:key="`periods_${index}`">
|
||||
<view class="schedules_item_header">
|
||||
打卡任务-{{ useModel?.showData?.value?.shift?.name }}
|
||||
打卡任务-{{ useModel?.showData?.value?.shift?.name }}({{
|
||||
getShowDay(useModel?.showData?.value?.schedule_date) }})
|
||||
</view>
|
||||
<view class="card_periods_item">
|
||||
<u-steps :current="method?.calculationCurrent(i)" direction="column" activeColor="#52C41A"
|
||||
@ -37,14 +39,15 @@
|
||||
</template>
|
||||
</view>
|
||||
<view class="to_check" @click="method?.toDetaile({ ...i, type: 'CheckIn' })" v-if="
|
||||
!i?.checkin_status?.start?.checked &&
|
||||
!isOverHalfHourPast(
|
||||
`${useModel?.showData?.value?.schedule_date} ${i?.work_start_time}`
|
||||
) &&
|
||||
isCanCheckIn(
|
||||
`${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_start}`,
|
||||
`${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_end}`
|
||||
)
|
||||
!i?.checkin_status?.start?.checked
|
||||
// &&
|
||||
// !isOverHalfHourPast(
|
||||
// `${useModel?.showData?.value?.schedule_date} ${i?.work_start_time}`
|
||||
// ) &&
|
||||
// isCanCheckIn(
|
||||
// `${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_start}`,
|
||||
// `${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_end}`
|
||||
// )
|
||||
">
|
||||
前往打卡<uni-icons type="right" size="14" color="#0082FA"></uni-icons>
|
||||
</view>
|
||||
@ -82,14 +85,15 @@
|
||||
</template>
|
||||
</view>
|
||||
<view class="to_check" @click="method?.toDetaile({ ...i, type: 'CheckOut' })" v-if="
|
||||
!i?.checkin_status?.end?.checked &&
|
||||
!isOverHalfHourPast(
|
||||
`${useModel?.showData?.value?.schedule_date} ${i?.work_end_time}`
|
||||
) &&
|
||||
isCanCheckIn(
|
||||
`${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_start}`,
|
||||
`${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_end}`
|
||||
)
|
||||
!i?.checkin_status?.end?.checked
|
||||
//&&
|
||||
// !isOverHalfHourPast(
|
||||
// `${useModel?.showData?.value?.schedule_date} ${i?.work_end_time}`
|
||||
// ) &&
|
||||
// isCanCheckIn(
|
||||
// `${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_start}`,
|
||||
// `${useModel?.showData?.value?.schedule_date} ${useModel?.showData?.value?.shift?.allow_checkin_end}`
|
||||
// )
|
||||
">
|
||||
前往打卡<uni-icons type="right" size="14" color="#0082FA"></uni-icons>
|
||||
</view>
|
||||
@ -104,11 +108,13 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
isCanCheckIn,
|
||||
getShowDay,
|
||||
isOverHalfHourPast,
|
||||
showTime
|
||||
} from '@/common/libraries/day'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<view v-if="useModel?.loading?.value" class="sign_clock_in_page">
|
||||
<view class="sign_clock_in_page_title"> 打卡地点 </view>
|
||||
<view class="sign_clock_in_page_title"> 打卡地点 ({{ getShowDay(useModel?.formData?.value?.date) }})</view>
|
||||
<view :class="`sign_clock_in_page_map ${useModel?.distanceNumber?.value > useModel?.attendanceConfigData?.value?.check_in_range
|
||||
? 'sign_clock_in_page_map_opacity'
|
||||
: ''
|
||||
@ -156,7 +156,7 @@
|
||||
<view>
|
||||
<view class="btn_label">
|
||||
<!-- {{ useModel?.attendanceConfigData?.value?.require_photo ? '拍照' : '' }} -->
|
||||
打卡
|
||||
打卡2
|
||||
</view>
|
||||
<view>
|
||||
{{
|
||||
@ -179,7 +179,7 @@
|
||||
<view>
|
||||
<view class="btn no_distance">
|
||||
<view>
|
||||
<view class="btn_label"> 打卡</view>
|
||||
<view class="btn_label"> 打卡1</view>
|
||||
<view>
|
||||
{{
|
||||
showTime(
|
||||
@ -209,12 +209,13 @@
|
||||
</view>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { isOverHalfHourPast, isWithinTimeRange, showTime } from '@/common/libraries/day'
|
||||
import { getShowDay, isOverHalfHourPast, isWithinTimeRange, showTime } from '@/common/libraries/day'
|
||||
import { AttendanceRecordsStatusEnum } from '@/gen/Enums'
|
||||
import { onLoad, onShow, onUnload } from '@dcloudio/uni-app'
|
||||
import method from './method'
|
||||
import useModel from './model'
|
||||
onLoad((e: any) => {
|
||||
console.log(e, 'e')
|
||||
useModel.formData.value = e
|
||||
method?.getLocation(e)
|
||||
method?.getAttendanceConfig()
|
||||
|
||||
@ -8,6 +8,32 @@ export function RelativeTime(time: number) {
|
||||
return dayjs(time * 1000).fromNow()
|
||||
}
|
||||
|
||||
export const getShowDay = (day: string) => {
|
||||
const weekMap = {
|
||||
0: '星期日',
|
||||
1: '星期一',
|
||||
2: '星期二',
|
||||
3: '星期三',
|
||||
4: '星期四',
|
||||
5: '星期五',
|
||||
6: '星期六'
|
||||
}
|
||||
const targetDate = dayjs(day).startOf('day')
|
||||
const today = dayjs().startOf('day')
|
||||
const yesterday = today.subtract(1, 'day')
|
||||
const tomorrow = today.add(1, 'day')
|
||||
const weekDay = weekMap[targetDate.day()]
|
||||
|
||||
if (targetDate.isSame(today, 'day')) {
|
||||
return `今天 ${weekDay}`
|
||||
} else if (targetDate.isSame(yesterday, 'day')) {
|
||||
return `昨天 ${weekDay}`
|
||||
} else if (targetDate.isSame(tomorrow, 'day')) {
|
||||
return `明天 ${weekDay}`
|
||||
} else {
|
||||
return `${day} ${weekDay}`
|
||||
}
|
||||
}
|
||||
export function ShowLastTime(time: string) {
|
||||
return time ? dayjs(time).fromNow() : '-'
|
||||
}
|
||||
@ -188,7 +214,7 @@ export function showCurrentTime() {
|
||||
|
||||
export function isDatePassed(fixedDate: string) {
|
||||
//判断固定日期是否已过
|
||||
console.log(dayjs().isAfter(dayjs(fixedDate)),'dayjs().isAfter(dayjs(fixedDate))')
|
||||
console.log(dayjs().isAfter(dayjs(fixedDate)), 'dayjs().isAfter(dayjs(fixedDate))')
|
||||
return dayjs().isAfter(dayjs(fixedDate), 'day')
|
||||
}
|
||||
|
||||
@ -214,7 +240,6 @@ export function getDayTime(time?: string) {
|
||||
return dayjs().format('YYYY-MM-DD HH:mm')
|
||||
}
|
||||
|
||||
|
||||
export function specificTime(targetTime: string) {
|
||||
let dataTime = targetTime?.replace(/-/g, '/')
|
||||
const now = dayjs()
|
||||
@ -225,7 +250,6 @@ export function specificTime(targetTime: string) {
|
||||
return hoursDiff
|
||||
}
|
||||
|
||||
|
||||
export function isOverHalfHourPast(targetTime: string) {
|
||||
let dataTime = targetTime?.replace(/-/g, '/')
|
||||
// 获取当前时间 [citation:5],是否超过目标时间30分钟
|
||||
@ -238,42 +262,26 @@ export function isOverHalfHourPast(targetTime: string) {
|
||||
// 判断是否超过30分钟
|
||||
return diffInMinutes > 30
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function isWithinTimeRange(targetTime: string, minutesRange = 30) {
|
||||
let dataTime = targetTime?.replace(/-/g, '/')
|
||||
// 是否在目标时间的前30分钟到后30分钟之间
|
||||
// 判断当前时间是否在目标时间的当天24小时内
|
||||
console.log(targetTime, dataTime, 'targetTime')
|
||||
const now = dayjs()
|
||||
// 构建打卡时间
|
||||
const checkTime = dayjs(dataTime)
|
||||
|
||||
// 计算可打卡时间范围
|
||||
const startTime = checkTime.subtract(30, 'minute') // 打卡前30分钟
|
||||
const endTime = checkTime.add(2, 'hour') // 打卡后2小时
|
||||
// 计算可打卡时间范围 - 当天0点到24点
|
||||
const startTime = checkTime.startOf('day') // 当天0点
|
||||
const endTime = checkTime.endOf('day') // 当天23:59:59
|
||||
|
||||
// 判断当前时间是否在范围内
|
||||
return now.isAfter(startTime) && now.isBefore(endTime)
|
||||
// const now = dayjs()
|
||||
// // 解析目标日期时间
|
||||
// const target = dayjs(dataTime)
|
||||
|
||||
// // 计算时间范围边界
|
||||
// const startTime = target.subtract(minutesRange, 'minute')
|
||||
// const endTime = target.add(minutesRange, 'minute')
|
||||
|
||||
// // 检查当前时间是否在范围内
|
||||
// return now.isAfter(startTime) && now.isBefore(endTime)
|
||||
}
|
||||
|
||||
|
||||
export function showTime(time: string) {
|
||||
let dataTime = time?.replace(/-/g, '/')
|
||||
return dataTime ? dayjs(dataTime).format('HH:mm') : ''
|
||||
}
|
||||
|
||||
|
||||
export function isCanCheckIn(startTime: string, endTime: string) {
|
||||
let dataTimeStr = startTime?.replace(/-/g, '/')
|
||||
let dataTimeEnd = endTime?.replace(/-/g, '/')
|
||||
|
||||
4
src/gen/ApiTypes.d.ts
vendored
4
src/gen/ApiTypes.d.ts
vendored
@ -680,7 +680,9 @@ declare namespace ApiTypes {
|
||||
namespace Visitor {
|
||||
namespace VisitorApplies {
|
||||
type Scan = {
|
||||
"code": string; // 通行码
|
||||
"code"?: string; // 通行码(访客二维码)
|
||||
"customers_id"?: number; // 客户ID(住户二维码)
|
||||
"asset_houses_id"?: number; // 房屋ID(住户二维码)
|
||||
"scan_type": string; // 扫码类型:[enum:VisitorScanTypeEnum]
|
||||
};
|
||||
type Show = {
|
||||
|
||||
@ -71,6 +71,7 @@ export const ApprovalTemplatesTypeEnum = {
|
||||
'ContractPayment': {'text':'合同支付','color':'#00bcd4','value':'ContractPayment'},
|
||||
'OtherContractSeal': {'text':'其它合同用印','color':'#795548','value':'OtherContractSeal'},
|
||||
'HouseBillUpdate': {'text':'物业账单修改','color':'#607d8b','value':'HouseBillUpdate'},
|
||||
'BillUpdate': {'text':'账单修改','color':'#795548','value':'BillUpdate'},
|
||||
};
|
||||
|
||||
// 车位产权类型
|
||||
@ -294,7 +295,7 @@ export const BannersTypeEnum = {
|
||||
|
||||
// 缓存类型
|
||||
export const CacheTypeEnum = {
|
||||
'MobilePhoneVerificationCode': {'text':'手机验证码','color':'#85e960','value':'MobilePhoneVerificationCode'},
|
||||
'MobilePhoneVerificationCode': {'text':'手机验证码','color':'#78b93d','value':'MobilePhoneVerificationCode'},
|
||||
};
|
||||
|
||||
// CompaniesMerchantTypeEnum
|
||||
|
||||
@ -7,8 +7,8 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app'
|
||||
import getLoginStatus from '@/common/libraries/userUserLogin'
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import { getCurrentInstance, ref } from 'vue'
|
||||
const scanQrCode = ref(false)
|
||||
|
||||
@ -32,7 +32,7 @@ onShow(async () => {
|
||||
if (data[0] === '2') {
|
||||
//通行证
|
||||
uni.redirectTo({
|
||||
url: `/INDEX/pass/index?id=${data[1]}`
|
||||
url: `/INDEX/pass/index?source=2&id=${data[1]}`
|
||||
})
|
||||
}
|
||||
if (data[0] === '3') {
|
||||
@ -41,6 +41,13 @@ onShow(async () => {
|
||||
url: `/INDEX/patrol_task_list/index?id=${data[1]}`
|
||||
})
|
||||
}
|
||||
if (data[0] === '4') {
|
||||
//业主租客或者已经绑定房屋-扫码
|
||||
//通行证
|
||||
uni.redirectTo({
|
||||
url: `/INDEX/pass/index?source=4&customers_id=${data[1]}&asset_houses_id=${data[2]}`
|
||||
})
|
||||
}
|
||||
}
|
||||
} else {
|
||||
uni.showModal({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user