更新0808

This commit is contained in:
xyc 2025-08-08 13:46:05 +08:00
parent abc0d069e7
commit 7eb4c3e635
5 changed files with 638 additions and 627 deletions

View File

@ -197,6 +197,27 @@
"navigationStyle": "custom"
}
},
{
"path": "pages/statistics/staffStatistics",
"style": {
"navigationBarTitleText": "员工统计",
"navigationStyle": "custom"
}
},
{
"path": "pages/statistics/staffStatistics/index",
"style": {
"navigationBarTitleText": "员工统计",
"navigationStyle": "custom"
}
},
{
"path": "pages/statistics/staffStatisticsDetail/index",
"style": {
"navigationBarTitleText": "员工统计详情",
"navigationStyle": "custom"
}
},
{
"path": "pages/statistics/statistics",
"style": {

View File

@ -2,8 +2,8 @@
<view class="content">
<view class="top">
<view class="dalan">你好</view>
<view class="dalan">欢迎来到驭车无忧</view>
<!-- <view class="dalan">你好</view>
<view class="dalan">欢迎来到驭车无忧</view> -->
</view>
</view>
@ -314,14 +314,19 @@
.top {
box-sizing: border-box;
padding: 0px 27px;
padding: 0 27px;
padding-top: 100px;
// background-color:lightseagreen;
background-image: url('../../static/detection/newLoginBj.png');
background-image: url('/static/imgs/start.png');
background-size: cover;
// background-position: center;
background-position: center;
/* 确保图片居中显示 */
background-repeat: no-repeat;
/* 防止图片重复 */
width: 100%;
height: calc(100vh);
height: 100vh;
/* 使用 100vh 确保全屏 */
min-height: 100vh;
/* 防止内容不足时背景图不完整 */
}
.touxiang {

View File

@ -21,11 +21,11 @@
</view>
<view class="d_b" v-if="!userId">
<view class="">姓名</view>
<input type="text" placeholder="请输入姓名" v-model="staff.nickname" style="text-align: right;"/>
<input type="text" placeholder="请输入姓名" v-model="staff.nickname" style="text-align: right;" />
</view>
<view class="d_b" v-if="!userId">
<view class="">手机号</view>
<input type="text" placeholder="请输入手机号" v-model="staff.mobile" style="text-align: right;"/>
<input type="text" placeholder="请输入手机号" v-model="staff.mobile" style="text-align: right;" />
</view>
<view class="d_b">
<view class="">学历</view>
@ -35,7 +35,7 @@
</view>
<view class="d_b">
<view class="">身份证号</view>
<input type="text" placeholder="请输入身份证号" v-model="staff.idCard" style="text-align: right;"/>
<input type="text" placeholder="请输入身份证号" v-model="staff.idCard" style="text-align: right;" />
</view>
<view class="d_b">
<view class="">入职时间</view>
@ -99,74 +99,43 @@
</view>
</view>
<u-picker :show="showEducation" ref="uPicker" :columns="[educations]"
@confirm="chooseEducation" @cancel="showEducation = false"
keyName="label"></u-picker>
<u-picker :show="showEducation" ref="uPicker" :columns="[educations]" @confirm="chooseEducation"
@cancel="showEducation = false" keyName="label"></u-picker>
<qianziyu-select
:show="showDriveType"
type="checkbox"
name="id"
:dataLists="driverLicenseType"
:showSearch=false
@cancel="showDriveType = false"
:checkboxData="driverLicenseTypeArr"
@submit="onsubmit"
@update:checkboxData="driverLicenseTypeArr = $event"
>
<qianziyu-select :show="showDriveType" type="checkbox" name="id" :dataLists="driverLicenseType"
:showSearch=false @cancel="showDriveType = false" :checkboxData="driverLicenseTypeArr" @submit="onsubmit"
@update:checkboxData="driverLicenseTypeArr = $event">
</qianziyu-select>
<u-datetime-picker
:show="showJoinedDate"
v-model="selectJoinDate"
@cancel="showJoinedDate = false"
@confirm="chooseJoinDate"
mode="date"
return-type='string'
></u-datetime-picker>
<u-datetime-picker
:show="showFormalDate"
v-model="selectProbationPeriod"
@cancel="showFormalDate = false"
@confirm="chooseFormalDate"
mode="date"
return-type='string'
></u-datetime-picker>
<u-datetime-picker
:show="showSafeDate"
v-model="selectSocialSecurityBuyDate"
@cancel="showSafeDate = false"
@confirm="chooseSafeDate"
mode="date"
return-type='string'
></u-datetime-picker>
<!-- <u-picker :show="showRole" ref="uPicker" :columns="[roles]"-->
<!-- @confirm="chooseRole" @cancel="showRole = false"-->
<!-- keyName="name"></u-picker>-->
<qianziyu-select
:show="showRole"
type="checkbox"
name="name"
:dataLists="roles"
:showSearch=false
@cancel="showRole = false"
:checkboxData="staff.roleIds"
@submit="chooseRole()"
popupTitle='汇报对象选择'
@update:checkboxData="staff.roleIds = $event"
>
<u-datetime-picker :show="showJoinedDate" v-model="selectJoinDate" @cancel="showJoinedDate = false"
@confirm="chooseJoinDate" mode="date" return-type='string'></u-datetime-picker>
<u-datetime-picker :show="showFormalDate" v-model="selectProbationPeriod" @cancel="showFormalDate = false"
@confirm="chooseFormalDate" mode="date" return-type='string'></u-datetime-picker>
<u-datetime-picker :show="showSafeDate" v-model="selectSocialSecurityBuyDate" @cancel="showSafeDate = false"
@confirm="chooseSafeDate" mode="date" return-type='string'></u-datetime-picker>
<!-- <u-picker :show="showRole" ref="uPicker" :columns="[roles]"-->
<!-- @confirm="chooseRole" @cancel="showRole = false"-->
<!-- keyName="name"></u-picker>-->
<qianziyu-select :show="showRole" type="checkbox" name="name" :dataLists="roles" :showSearch=false
@cancel="showRole = false" :checkboxData="staff.roleIds" @submit="chooseRole()" popupTitle='汇报对象选择'
@update:checkboxData="staff.roleIds = $event">
</qianziyu-select>
</view>
</template>
<script>
import headersVue from '../../components/header/headers.vue';
import request from "@/utils/request";
import {formatDate, getDictDataByType} from "@/utils/utils";
import upload from "@/utils/upload";
import {baseImageUrl} from "@/config";
import headersVue from '../../components/header/headers.vue';
import request from "@/utils/request";
import {
formatDate,
getDictDataByType
} from "@/utils/utils";
import upload from "@/utils/upload";
import {
baseImageUrl
} from "@/config";
export default {
export default {
data() {
return {
titles: "新增员工",
@ -279,7 +248,8 @@ export default {
method: 'post',
data: {
userId: this.userId,
roleIds: this.staff.roleIds
roleIds: this.staff.roleIds,
servicePackageId: 'jiance'
}
})
uni.showToast({
@ -524,39 +494,39 @@ export default {
});
},
},
}
}
</script>
<style scoped lang="scss">
.content {
.content {
background: #f4f5f6;
height: 100vh;
}
}
.container {
.container {
width: 100%;
background: #f4f5f6;
box-sizing: border-box;
padding: 30rpx;
padding-top: 200rpx;
padding-bottom: 28px;
}
}
.box_ {
.box_ {
background: #FFFFFF;
width: 100%;
box-sizing: border-box;
padding: 30rpx;
border-radius: 8rpx;
}
}
.d_s {
.d_s {
display: flex;
align-items: center;
}
}
.d_b {
.d_b {
display: flex;
align-items: center;
justify-content: space-between;
@ -566,9 +536,9 @@ export default {
font-size: 28rpx;
color: #8D90A6;
}
}
.touxiang_ {
.touxiang_ {
width: 90rpx;
height: 90rpx;
margin-right: 20rpx;
@ -577,9 +547,9 @@ export default {
width: 100%;
height: 100%;
}
}
}
.tel_ {
.tel_ {
width: 30rpx;
height: 30rpx;
margin-right: 20rpx;
@ -588,20 +558,20 @@ export default {
width: 100%;
height: 100%;
}
}
}
.name_ {
.name_ {
font-size: 32rpx;
color: #101A3E;
margin-bottom: 5px;
}
}
.telnum {
.telnum {
font-size: 24rpx;
color: #366FFF;
}
}
.lan_ {
.lan_ {
font-size: 28rpx;
color: #327DFB;
display: flex;
@ -612,9 +582,9 @@ export default {
height: 36rpx;
margin-left: 15rpx;
}
}
}
.hui_box {
.hui_box {
width: 100%;
background: #F5F6F9;
border-radius: 16rpx;
@ -628,19 +598,19 @@ export default {
height: 90rpx;
margin-right: 15rpx;
}
}
}
.big_ {
.big_ {
font-size: 28rpx;
color: #101A3E;
}
}
.sm_ {
.sm_ {
font-size: 22rpx;
color: #8D90A6;
}
}
.anniu {
.anniu {
width: 622rpx;
height: 78rpx;
background: #427FFE;
@ -650,5 +620,5 @@ export default {
justify-content: center;
color: #fff;
margin-top: 200rpx;
}
}
</style>

View File

@ -105,7 +105,11 @@
<view class="">业务统计</view>
</view>
<view class="jg_ys" @click="goemployees()">
<!-- <view class="jg_ys" @click="goemployees()">
<image src="/static/imgs/newStaffCount.png" mode=""></image>
<view class="">员工统计</view>
</view> -->
<view class="jg_ys" @click="goemnewployees()">
<image src="/static/imgs/newStaffCount.png" mode=""></image>
<view class="">员工统计</view>
</view>
@ -617,6 +621,12 @@
})
this.clearMyInterval()
},
goemnewployees() {
uni.navigateTo({
url: '/pages/statistics/staffStatistics/index'
})
this.clearMyInterval()
},
goneworderStatistic() {
uni.navigateTo({
url: '/pages/index/orderStatistics'

View File

@ -11,6 +11,9 @@
清除时间
<u-icon name="close-circle" size="24" color="#327DFB" style="margin-left: 10rpx"></u-icon>
</view>
<view class="" style="display:flex;" @click="cleanSelectTime">
筛选总数量 - {{total}}
</view>
</view>
<view class="container" v-if="tableData">
@ -382,7 +385,8 @@
isTriggered: false,
goodsName: null,
windowsHeight: 600,
scrollHeight: 0
scrollHeight: 0,
total: 0
}
},
onReachBottom() { //
@ -446,6 +450,7 @@
this.tableData = this.groupByDate(this.tableData)
}
}
this.total = res.data.total
this.loading = false; //
this.isTriggered = false
}).catch(err => {