1251 lines
28 KiB
Vue
1251 lines
28 KiB
Vue
<template>
|
|
<view class="dangerbig-list">
|
|
<view class="fixedheader">
|
|
<headers :showBack="true" :themeType="true">
|
|
<view class="headerName">
|
|
危大工程
|
|
</view>
|
|
</headers>
|
|
</view>
|
|
<view class="search-box" :style="{paddingTop: mobileTopHeight + 44 + 'px'}">
|
|
<view class="uni-form-item">
|
|
<u-search class="uni-input" placeholder="请输入名称" :show-action="false"
|
|
v-model="projectTypeName" @change="loadData"></u-search>
|
|
<view @click="dropdownBtnChange('')" class="search-btn">
|
|
<image src="/static/riskPoint/screenIcon.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="content" :style="{paddingTop: mobileTopHeight + 110 + 'px'}">
|
|
<view class="content_main" v-if="listData.length > 0">
|
|
<view class="main3_box" @click="checkItem(item)" v-for="item in listData" :key="item.id">
|
|
<view class="main3_box-bottom">
|
|
<view class="box-item1">
|
|
<view class="cw-box">
|
|
<view>{{item.regionNames ? item.regionNames : '--'}}</view>
|
|
<view v-if="item.dangerType == 2" class="cw-box1">超危</view>
|
|
</view>
|
|
<view class="state-main">
|
|
<view class="state-box"
|
|
:class="{'wkg-box':item.recordStatus == 1 || item.recordStatus == 4,'zs-box':item.recordStatus == 2,'wg-box':item.recordStatus == 3}">
|
|
{{ recordStatusUp(item.recordStatus) }}
|
|
</view>
|
|
<view class="state-box" v-if="item.securityStatus"
|
|
:class="{'wg-box':item.securityStatus == 2,'xgz-box':item.securityStatus == 1}">
|
|
{{ item.securityStatus == 1 ? '需关注' : '安全可控' }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="box-item1">
|
|
<view>施工专业:</view>
|
|
<view>{{item.projectClassifyName ? item.projectClassifyName : '--'}}</view>
|
|
</view>
|
|
<view class="box-item1">
|
|
<view>计划时间:</view>
|
|
<view>{{item.planStartTime ? item.planStartTime : '--'}} -
|
|
{{item.planEndTime ? item.planEndTime : '--'}}
|
|
</view>
|
|
</view>
|
|
<view class="box-item1">
|
|
<view>施工部位:</view>
|
|
<view>{{item.regionNames ? item.regionNames : '--'}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="new-nodata" v-else>
|
|
<view></view>
|
|
<text>暂无数据...</text>
|
|
</view>
|
|
</view>
|
|
<u-toast ref="uToast" />
|
|
<u-popup v-model="issueInvoiceShow" :closeable="false" mode="bottom">
|
|
<view class="content-popup">
|
|
<!-- <view class="content-popup_header">
|
|
管控清单类型
|
|
</view> -->
|
|
<scroll-view scroll-y="true" style="height: 800rpx;">
|
|
<view class="content-popup_main">
|
|
<view class="view-box">
|
|
<view>施工专业</view>
|
|
<view>
|
|
<view @click="onRiskLevelClick(item.data, 1)"
|
|
:class="{'active': policeCameraInfo.projectClassify === item.data}"
|
|
v-for="item in projectTypeList" :key="item.data">{{item.name}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="view-box">
|
|
<view>施工情况</view>
|
|
<view>
|
|
<view @click="onRiskLevelClick(item.id, 2)"
|
|
:class="{'active': policeCameraInfo.recordStatus === item.id}"
|
|
v-for="item in bigDangerModuleList" :key="item.id">{{item.title}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="view-box">
|
|
<view>安全情况</view>
|
|
<view>
|
|
<view @click="onRiskLevelClick(item.id, 3)"
|
|
:class="{'active': policeCameraInfo.securityStatus === item.id}"
|
|
v-for="item in riskLevelList" :key="item.id">{{item.name}}</view>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>施工部位负责人</view>
|
|
<view @click="onConstructionAreasType(5)">
|
|
<view>
|
|
{{searchInfo.systemUserNames ? searchInfo.systemUserNames : '请选择'}}
|
|
</view>
|
|
<u-icon name="arrow-left" color="#A2A4AF" size="32"></u-icon>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>计划实施时间</view>
|
|
<view @click="constructionTimeShow = true">
|
|
<view v-if="policeCameraInfo.effectiveTimeEnd_begin">
|
|
{{policeCameraInfo.effectiveTimeEnd_begin }} -
|
|
{{policeCameraInfo.effectiveTimeBegin_end}}
|
|
</view>
|
|
<view v-else>
|
|
请选择
|
|
</view>
|
|
<u-icon name="arrow-left" color="#A2A4AF" size="32"></u-icon>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>施工部位</view>
|
|
<view @click="onConstructionAreasType(1)">
|
|
<view>
|
|
{{searchInfo.regionNames ? searchInfo.regionNames : '请选择'}}
|
|
</view>
|
|
<u-icon name="arrow-left" color="#A2A4AF" size="32"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
<view class="confrim-btn">
|
|
<view @click="onCancel">重置</view>
|
|
<view @click="onSubmit">确定</view>
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
<u-calendar v-model="constructionTimeShow" mode="range" :max-date="'2300-01-01'"
|
|
@change="onConstructionTimeChange"></u-calendar>
|
|
<u-popup :mask-close-able="false" v-model="constructionAreasShow" :closeable="false" mode="bottom">
|
|
<view class="content-popup">
|
|
<view class="content-popup_header">
|
|
{{constructionAreasType == 5 ? '施工部位负责人' : '施工部位'}}
|
|
</view>
|
|
<scroll-view v-if="checkPointList.length > 0 && constructionAreasType == 1" scroll-y="true">
|
|
<TreeView :defaultExpanded="true" @node-click="onConstructionAreasClick" :multiple="false"
|
|
checked-bg-color="rgba(81,129,246,0.1)" :data="checkPointList" :children-key="'children'"
|
|
:label-key="'regionName'" :id-key="'id'" :value="constructionAreasList" />
|
|
</scroll-view>
|
|
<scroll-view v-else-if="systemUserList.length > 0 && constructionAreasType == 5" scroll-y="true">
|
|
<TreeView :defaultExpanded="true" @node-click="onApplicantsClick" :multiple="true"
|
|
checked-bg-color="rgba(81,129,246,0.1)" :data="systemUserList" :children-key="'children'"
|
|
:label-key="'text'" :id-key="'value'" :value="systemUserIdList" />
|
|
</scroll-view>
|
|
<view class="new-nodata_height" v-else>
|
|
<view class="new-nodata">
|
|
<view></view>
|
|
<text>暂无数据...</text>
|
|
</view>
|
|
</view>
|
|
<view class="confrim-btn">
|
|
<view @click="onCancelClick">取消</view>
|
|
<view @click="onSubmitType">确定</view>
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
<levitatedsphere :x="100" :y="80"></levitatedsphere>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
// import levitatedsphere from "@/components/levitatedsphere/levitatedsphere.vue";
|
|
import {
|
|
isJSON
|
|
} from "@/utils/tool.js"
|
|
import TreeView from '@/components/tree-view/TreeView.vue';
|
|
export default {
|
|
components: {
|
|
TreeView,
|
|
},
|
|
data() {
|
|
return {
|
|
projectSn: "",
|
|
listData: [],
|
|
isLoadMore: false,
|
|
loadStatus: 'more',
|
|
mobileTopHeight: 0,
|
|
policeCameraInfo: {
|
|
effectiveTimeEnd_begin: "",
|
|
effectiveTimeBegin_end: "",
|
|
securityStatus: "",
|
|
projectClassify: "",
|
|
recordStatus: "",
|
|
},
|
|
pageNo: 1,
|
|
pageSize: 10,
|
|
issueInvoiceShow: false,
|
|
constructionTimeShow: false,
|
|
|
|
// 区域
|
|
constructionAreasList: [],
|
|
constructionAreasNameList: [],
|
|
constructionAreasShow: false,
|
|
constructionAreasType: "",
|
|
searchInfo: {
|
|
regionIds: [],
|
|
regionNames: "",
|
|
systemUserIds: [],
|
|
systemUserNames: "",
|
|
},
|
|
projectTypeName: "",
|
|
projectTypeList: [],
|
|
riskPointTreeList: [],
|
|
|
|
riskLevelList: [{
|
|
id: 1,
|
|
name: "需关注",
|
|
},
|
|
{
|
|
id: 0,
|
|
name: "安全可控",
|
|
},
|
|
],
|
|
checkPointList: [],
|
|
// 施工人员
|
|
systemUserList: [],
|
|
systemUserIdList: [],
|
|
systemUserNameList: [],
|
|
bigDangerModuleList: [{
|
|
id: 1,
|
|
title: "未开工",
|
|
},
|
|
{
|
|
id: 2,
|
|
title: "在施",
|
|
},
|
|
{
|
|
id: 3,
|
|
title: "完工",
|
|
},
|
|
{
|
|
id: 4,
|
|
title: "已取消",
|
|
},
|
|
],
|
|
}
|
|
},
|
|
onLoad() {
|
|
this.projectSn = JSON.parse(uni.getStorageSync('userInfo')).sn
|
|
this.initData()
|
|
this.getProjectChilderSystemUserList();
|
|
this.getCheckPointList();
|
|
this.getDicProjectTypeList();
|
|
},
|
|
mounted() {
|
|
var that = this
|
|
uni.getSystemInfo({
|
|
success(res) {
|
|
that.mobileTopHeight = res.statusBarHeight ? res.statusBarHeight : 0;
|
|
uni.setStorageSync('systemInfo', res)
|
|
console.log(res)
|
|
}
|
|
})
|
|
},
|
|
onReachBottom() {
|
|
console.log(1)
|
|
if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
|
|
this.isLoadMore = true
|
|
this.pageNo += 1
|
|
this.initData()
|
|
}
|
|
},
|
|
onPullDownRefresh() {
|
|
console.log(2)
|
|
this.pageNo = 1
|
|
this.listData = []
|
|
this.initData()
|
|
},
|
|
methods: {
|
|
checkItem(val) {
|
|
console.log(val)
|
|
uni.navigateTo({
|
|
url: './details?id=' + val.id
|
|
})
|
|
},
|
|
loadData() {
|
|
this.pageNo = 1
|
|
this.listData = []
|
|
this.initData();
|
|
},
|
|
initData() {
|
|
let data = {
|
|
pageNo: this.pageNo,
|
|
pageSize: this.pageSize,
|
|
projectSn: this.projectSn,
|
|
regionNames: this.projectTypeName,
|
|
planStartTime_begin: this.policeCameraInfo.effectiveTimeEnd_begin,
|
|
planEndTime_end: this.policeCameraInfo.effectiveTimeBegin_end,
|
|
regionId: this.searchInfo.regionIds.join(','),
|
|
safeControlDutyIdList: this.searchInfo.systemUserIds,
|
|
projectClassify: this.policeCameraInfo.projectClassify,
|
|
recordStatus: this.policeCameraInfo.recordStatus,
|
|
securityStatus: this.policeCameraInfo.securityStatus,
|
|
}
|
|
this.sendRequest({
|
|
url: 'xmgl/bigDangerRecord/page',
|
|
method: 'post',
|
|
data: data,
|
|
success: res => {
|
|
uni.hideLoading()
|
|
if (res.code == 200) {
|
|
// this.listData = res.result.records
|
|
this.listData = this.listData.concat(res.result.records)
|
|
if (res.result.records.length < this.pageSize) { //判断接口返回数据量小于请求数据量,则表示此为最后一页
|
|
this.isLoadMore = true
|
|
this.loadStatus = 'nomore'
|
|
} else {
|
|
this.isLoadMore = false
|
|
// that.loadStatus='more'
|
|
}
|
|
uni.stopPullDownRefresh()
|
|
}
|
|
console.log(res)
|
|
}
|
|
})
|
|
},
|
|
jumPage() {
|
|
uni.navigateTo({
|
|
url: './dangerBigCheckList'
|
|
})
|
|
},
|
|
// 获取企业列表
|
|
getCheckPointList() {
|
|
let that = this;
|
|
let data = {
|
|
projectSn: this.projectSn
|
|
};
|
|
this.sendRequest({
|
|
url: 'xmgl/qualityRegion/list',
|
|
method: 'POST',
|
|
data: data,
|
|
success: res => {
|
|
if (res.code == 200) {
|
|
const resultList = res.result.map(item => {
|
|
return {
|
|
...item,
|
|
}
|
|
})
|
|
that.checkPointList = [{
|
|
id: "",
|
|
regionName: "全部",
|
|
}, ...resultList];
|
|
}
|
|
}
|
|
})
|
|
},
|
|
onRiskLevelClick(rowId, type) {
|
|
const obj = {
|
|
1: 'projectClassify',
|
|
2: 'recordStatus',
|
|
3: 'securityStatus',
|
|
}
|
|
if (this.policeCameraInfo[obj[type]] == rowId) {
|
|
this.policeCameraInfo[obj[type]] = "";
|
|
return
|
|
}
|
|
this.policeCameraInfo[obj[type]] = rowId;
|
|
},
|
|
dropdownBtnChange(e) {
|
|
this.issueInvoiceShow = true;
|
|
},
|
|
// 多选下拉 1区域 2单位 3人员
|
|
onConstructionAreasType(type) {
|
|
this.constructionAreasType = type;
|
|
if (type == 1) {
|
|
this.constructionAreasList = this.searchInfo.regionIds.map(item => item);
|
|
this.constructionAreasNameList = this.searchInfo.regionNames ? this.searchInfo
|
|
.regionNames.split(',') : [];
|
|
} else if (type == 5) {
|
|
this.systemUserIdList = this.searchInfo.systemUserIds.map(item => item);
|
|
this.systemUserNameList = this.searchInfo.systemUserNames ? this.searchInfo
|
|
.systemUserNames.split(',') : [];
|
|
}
|
|
this.constructionAreasShow = true;
|
|
},
|
|
// 区域
|
|
onConstructionAreasClick(id, checked, label) {
|
|
console.log(id, checked, label)
|
|
this.constructionAreasList = [id];
|
|
this.constructionAreasNameList = [label];
|
|
// const idx = this.constructionAreasList.indexOf(id);
|
|
// if (checked && idx === -1) {
|
|
// this.constructionAreasList.push(id);
|
|
// this.constructionAreasNameList.push(label);
|
|
// } else if (!checked && idx !== -1) {
|
|
// this.constructionAreasList.splice(idx, 1);
|
|
// this.constructionAreasNameList.splice(idx, 1);
|
|
// }
|
|
console.log(1122, this.constructionAreasNameList, this.constructionAreasList)
|
|
},
|
|
// 施工人员
|
|
onApplicantsClick(id, checked, label) {
|
|
if (this.constructionAreasType == 5) {
|
|
// this.systemUserIdList = [id];
|
|
// this.systemUserNameList = [label];
|
|
const idx = this.systemUserIdList.indexOf(id);
|
|
if (checked && idx === -1) {
|
|
this.systemUserIdList.push(id);
|
|
this.systemUserNameList.push(label);
|
|
} else if (!checked && idx !== -1) {
|
|
this.systemUserIdList.splice(idx, 1);
|
|
this.systemUserNameList.splice(idx, 1);
|
|
}
|
|
}
|
|
},
|
|
onSubmitType() {
|
|
if (this.constructionAreasType == 1) {
|
|
this.searchInfo.regionIds = [...this.constructionAreasList];
|
|
this.searchInfo.regionNames = this.constructionAreasNameList.join(',');
|
|
|
|
} else if (this.constructionAreasType == 5) {
|
|
console.log(this.systemUserIdList)
|
|
this.searchInfo.systemUserIds = [...this.systemUserIdList];
|
|
this.searchInfo.systemUserNames = this.systemUserNameList.join(',');
|
|
}
|
|
this.constructionAreasShow = false;
|
|
},
|
|
onCancelClick() {
|
|
if (this.constructionAreasType == 1) {
|
|
this.constructionAreasList = [...this.searchInfo.regionIds];
|
|
} else if (this.constructionAreasType == 5) {
|
|
this.systemUserIdList = [...this.searchInfo.systemUserIds];
|
|
}
|
|
this.constructionAreasShow = false;
|
|
},
|
|
// 获取时间
|
|
onConstructionTimeChange(event) {
|
|
this.policeCameraInfo.effectiveTimeEnd_begin = event.startDate;
|
|
this.policeCameraInfo.effectiveTimeBegin_end = event.endDate;
|
|
},
|
|
onCancel() {
|
|
this.searchInfo = {
|
|
regionIds: [],
|
|
regionNames: "",
|
|
systemUserIds: [],
|
|
systemUserNames: "",
|
|
};
|
|
this.policeCameraInfo = {
|
|
effectiveTimeEnd_begin: "",
|
|
effectiveTimeBegin_end: "",
|
|
securityStatus: "",
|
|
projectClassify: "",
|
|
recordStatus: "",
|
|
};
|
|
this.onSubmit();
|
|
},
|
|
onSubmit() {
|
|
this.loadData();
|
|
this.issueInvoiceShow = false;
|
|
},
|
|
// 获取字典工程类别列表
|
|
getDicProjectTypeList() {
|
|
let that = this;
|
|
// 风险清单库工程类别
|
|
this.sendRequest({
|
|
url: 'xmgl/dictionaryItem/list',
|
|
method: 'GET',
|
|
data: {
|
|
projectSn: this.projectSn,
|
|
dictionaryEncoding: "risk_list_project_type",
|
|
},
|
|
success: res => {
|
|
if (res.code == 200) {
|
|
that.projectTypeList = res.result;
|
|
}
|
|
}
|
|
})
|
|
},
|
|
// 查询人员列表
|
|
getProjectChilderSystemUserList() {
|
|
let that = this;
|
|
let data = {
|
|
projectSn: this.projectSn
|
|
};
|
|
this.sendRequest({
|
|
url: 'xmgl/systemUser/getProjectChilderSystemUserList',
|
|
method: 'POST',
|
|
data: data,
|
|
success: res => {
|
|
if (res.code == 200) {
|
|
const resultList = res.result.filter(item => item.realName).map(item => {
|
|
return {
|
|
...item,
|
|
text: item.realName,
|
|
label: item.realName,
|
|
value: item.userId,
|
|
}
|
|
})
|
|
that.systemUserList = [{
|
|
value: "",
|
|
text: "全部",
|
|
label: "全部",
|
|
}, ...resultList];
|
|
}
|
|
}
|
|
})
|
|
},
|
|
showToast(title, type) {
|
|
this.$refs.uToast.show({
|
|
title: title,
|
|
type: type,
|
|
})
|
|
},
|
|
},
|
|
computed: {
|
|
recordStatusUp() {
|
|
return (recordStatus) => {
|
|
const find = this.bigDangerModuleList.find((item) => item.id === recordStatus);
|
|
return find ? find.title : "--";
|
|
};
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.dangerbig-list {
|
|
background-color: #EFF3F7;
|
|
}
|
|
|
|
.content-popup {
|
|
border-radius: 16rpx 16rpx 0rpx 0rpx;
|
|
|
|
.content-popup_main {
|
|
padding: 0 26rpx;
|
|
|
|
>view {
|
|
display: flex;
|
|
// align-items: center;
|
|
justify-content: space-between;
|
|
line-height: 72rpx;
|
|
|
|
>view:first-child {
|
|
font-weight: 500;
|
|
font-size: 30rpx;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
>view:last-child {
|
|
font-size: 28rpx;
|
|
color: #808080;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
width: 70%;
|
|
|
|
.u-input {
|
|
text-align: right !important;
|
|
}
|
|
|
|
.u-icon {
|
|
margin-left: 10rpx;
|
|
transform: rotate(-90deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
>.view-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
line-height: 72rpx;
|
|
// margin-bottom: 20rpx;
|
|
|
|
>view:first-child {
|
|
font-weight: 500;
|
|
font-size: 30rpx;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
>view:last-child {
|
|
font-size: 28rpx;
|
|
color: #808080;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
flex-wrap: wrap;
|
|
width: 100%;
|
|
|
|
>view:not(:nth-child(4n + 1)) {
|
|
margin-left: 16rpx;
|
|
}
|
|
|
|
>view {
|
|
min-width: calc(160rpx);
|
|
padding: 0 12rpx;
|
|
height: 80rpx;
|
|
background: #F4F5F7;
|
|
border-radius: 8rpx;
|
|
font-size: 28rpx;
|
|
color: #A2A4AF;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
>.active {
|
|
background: #498CEC;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.content-popup_header {
|
|
height: 86rpx;
|
|
box-shadow: 0rpx 8rpx 10rpx -8rpx rgba(81, 129, 246, 0.42);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 800;
|
|
font-size: 30rpx;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
uni-scroll-view {
|
|
margin: 26rpx 0;
|
|
}
|
|
|
|
.confrim-btn {
|
|
padding: 18rpx 26rpx;
|
|
background-color: #FFFFFF;
|
|
box-shadow: 0rpx -8rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
|
|
display: flex;
|
|
|
|
>view {
|
|
width: 50%;
|
|
height: 76rpx;
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
>view:first-child {
|
|
background-color: rgba(81, 129, 246, 0.1);
|
|
border-radius: 6rpx 0rpx 0rpx 6rpx;
|
|
color: #5181F6;
|
|
}
|
|
|
|
>view:last-child {
|
|
background-color: #5181F6;
|
|
border-radius: 0rpx 6rpx 6rpx 0rpx;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
}
|
|
|
|
.addIssue {
|
|
min-height: 100vh;
|
|
background-color: #F2F3F7;
|
|
}
|
|
|
|
.content {
|
|
.content_main {
|
|
// margin-top: 26rpx;
|
|
// background-color: white;
|
|
padding-bottom: 26rpx;
|
|
min-height: calc(100vh - 130rpx - 26rpx - 26rpx);
|
|
|
|
.pb_140 {
|
|
padding-bottom: 140rpx !important;
|
|
}
|
|
|
|
.main3_box {
|
|
margin-top: 26rpx;
|
|
// border-radius: 18rpx;
|
|
position: relative;
|
|
|
|
.main3_box-header {
|
|
padding: 20rpx 26rpx;
|
|
font-size: 28rpx;
|
|
color: #4D4D4D;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.main3_box-bottom {
|
|
padding: 26rpx;
|
|
background-color: white;
|
|
position: relative;
|
|
> view:not(:last-child){
|
|
margin-bottom: 20rpx;
|
|
}
|
|
.state-main {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
|
|
>view:not(:first-child) {
|
|
margin-left: 20rpx;
|
|
}
|
|
}
|
|
|
|
.state-box {
|
|
width: 120rpx;
|
|
height: 48rpx;
|
|
|
|
border-radius: 6rpx;
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
color: #FFFFFF;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: #F1F1F1;
|
|
// position: absolute;
|
|
// right: 26rpx;
|
|
// top: 20rpx;
|
|
}
|
|
|
|
.wkg-box {
|
|
background-color: #F1F1F1;
|
|
}
|
|
|
|
.zs-box {
|
|
background-color: #0088FF;
|
|
}
|
|
|
|
.wg-box {
|
|
background-color: #34C759;
|
|
}
|
|
|
|
.xgz-box {
|
|
background-color: #FF8D28;
|
|
color: #fff;
|
|
}
|
|
|
|
.box-box2 {
|
|
margin-top: 20rpx;
|
|
display: flex;
|
|
|
|
>view:first-child {
|
|
margin-right: 26rpx;
|
|
}
|
|
}
|
|
|
|
.box-item1 {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 28rpx;
|
|
|
|
>view:first-child {
|
|
width: 162rpx;
|
|
margin-right: 26rpx;
|
|
color: #808080;
|
|
}
|
|
|
|
>view:last-child {
|
|
flex: 1;
|
|
color: #4D4D4D;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.cw-box {
|
|
display: flex;
|
|
flex: 1;
|
|
align-items: center;
|
|
.cw-box1 {
|
|
width: 88rpx;
|
|
height: 36rpx;
|
|
background: #E40000;
|
|
border-radius: 6rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24rpx;
|
|
color: #FFFFFF;
|
|
margin-left: 26rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.main3_box-main {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 20rpx;
|
|
|
|
.main3_box-image {
|
|
width: 164rpx;
|
|
height: 164rpx;
|
|
}
|
|
|
|
.main3_box-right {
|
|
margin-left: 26rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
width: calc(100% - 164rpx - 26rpx);
|
|
height: 164rpx;
|
|
}
|
|
}
|
|
|
|
.box-bottom {
|
|
width: 100%;
|
|
padding: 0 26rpx;
|
|
height: 112rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: #FFFFFF;
|
|
box-shadow: 0rpx -8rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
|
|
border-radius: 0 0 18rpx 18rpx;
|
|
justify-content: flex-end;
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
|
|
>view {
|
|
padding: 10rpx 18rpx;
|
|
border-radius: 6rpx;
|
|
border: 2rpx solid #3E89FD;
|
|
font-size: 28rpx;
|
|
color: #3E89FD;
|
|
}
|
|
|
|
>view:not(:first-child) {
|
|
margin-left: 20rpx;
|
|
}
|
|
|
|
.btn-error {
|
|
border-color: #ED2B29;
|
|
color: #ED2B29;
|
|
}
|
|
|
|
.btn-start {
|
|
background-color: #3E89FD;
|
|
border-color: #3E89FD;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
|
|
.box-content_detail {
|
|
font-size: 28rpx;
|
|
color: #4D4D4D;
|
|
margin-top: 4rpx;
|
|
}
|
|
|
|
.webkit-clamp_2 {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
/* 限制为两行 */
|
|
overflow: hidden;
|
|
}
|
|
|
|
.box-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 26rpx;
|
|
font-size: 28rpx;
|
|
|
|
>view:first-child {
|
|
color: #808080;
|
|
}
|
|
|
|
>view:last-child {
|
|
font-size: 24rpx;
|
|
color: #4D8EEC;
|
|
}
|
|
}
|
|
|
|
.box-item {
|
|
display: flex;
|
|
align-items: center;
|
|
// margin-top: 26rpx;
|
|
font-size: 28rpx;
|
|
|
|
>view:first-child {
|
|
width: 120rpx;
|
|
margin-right: 26rpx;
|
|
color: #808080;
|
|
}
|
|
|
|
>view:last-child {
|
|
flex: 1;
|
|
color: #4D4D4D;
|
|
word-break: break-all;
|
|
// display: -webkit-box;
|
|
// -webkit-box-orient: vertical;
|
|
// -webkit-line-clamp: 1;
|
|
// /* 限制为两行 */
|
|
// overflow: hidden;
|
|
}
|
|
|
|
.color-error {
|
|
color: #FF0000 !important;
|
|
}
|
|
|
|
.color-49 {
|
|
color: #498CEC !important;
|
|
}
|
|
}
|
|
|
|
.box-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
>view:first-child {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
>view:last-child {
|
|
font-weight: 800;
|
|
font-size: 30rpx;
|
|
color: #171717;
|
|
}
|
|
}
|
|
|
|
// >view:last-child {
|
|
// padding: 4rpx 20rpx;
|
|
// border-radius: 4rpx;
|
|
// border: 2rpx solid #F1F1F1;
|
|
// font-weight: 500;
|
|
// font-size: 22rpx;
|
|
// }
|
|
|
|
.wks_active {
|
|
background-color: #898989;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
.sgz_active {
|
|
background-color: #BED0FA;
|
|
color: #5181F6;
|
|
}
|
|
|
|
.ztz_active {
|
|
background-color: #C38100;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.ywg_acitve {
|
|
background-color: #88CF65;
|
|
color: #1A1A1A;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.box2 {
|
|
width: 84rpx;
|
|
height: 84rpx;
|
|
background: #5181F6;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: fixed;
|
|
right: 40rpx;
|
|
bottom: 162rpx;
|
|
|
|
/deep/ .uni-file-picker {
|
|
position: absolute;
|
|
height: 100%;
|
|
z-index: 99;
|
|
|
|
.uni-file-picker__container {
|
|
margin: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
.file-picker__box {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
z-index: 99;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
>image {
|
|
width: 36rpx;
|
|
height: 33rpx;
|
|
}
|
|
}
|
|
|
|
.confrim-bottom {
|
|
width: 100%;
|
|
padding: 26rpx 26rpx;
|
|
background-color: #FFFFFF;
|
|
box-shadow: 0rpx -8rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: fixed;
|
|
bottom: 0;
|
|
z-index: 1;
|
|
|
|
.btn-primary {
|
|
width: 100%;
|
|
padding: 18rpx 26rpx;
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 6rpx;
|
|
background-color: #5181F6;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
}
|
|
|
|
.fixedheader {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 999;
|
|
|
|
/deep/ .headerBox {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.headerName {
|
|
z-index: 1;
|
|
}
|
|
}
|
|
|
|
.search-box {
|
|
background-color: white;
|
|
width: 100%;
|
|
position: fixed;
|
|
z-index: 99;
|
|
|
|
.uni-form-item {
|
|
padding: 26rpx;
|
|
position: relative;
|
|
display: flex;
|
|
|
|
.uni-input {
|
|
border: 2rpx solid #E4E4E4;
|
|
border-radius: 68rpx;
|
|
padding: 0;
|
|
font-size: 30rpx;
|
|
color: #444444;
|
|
|
|
/deep/ .u-content {
|
|
background-color: #FFFFFF !important;
|
|
|
|
.u-input {
|
|
background-color: #FFFFFF !important;
|
|
color: #999999 !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.search-btn {
|
|
width: 72rpx;
|
|
height: 72rpx;
|
|
background: #498CEC;
|
|
border-radius: 48rpx;
|
|
margin-left: 30rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
>image {
|
|
width: 50rpx;
|
|
height: 50rpx;
|
|
}
|
|
}
|
|
}
|
|
|
|
/deep/ .u-dropdown {
|
|
padding-right: 60rpx;
|
|
}
|
|
|
|
.calendar_box {
|
|
position: absolute;
|
|
right: 28rpx;
|
|
bottom: 20rpx;
|
|
|
|
.calendar {
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
background-image: url('@/static/workTicketManage/calendar.png');
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
.calendar_active {
|
|
background-image: url('@/static/workTicketManage/calendar-active.png');
|
|
}
|
|
}
|
|
}
|
|
|
|
.scroll-view {
|
|
margin: 10rpx 26rpx;
|
|
width: calc(100% - 26rpx - 26rpx);
|
|
max-height: 60vh;
|
|
border-radius: 6rpx;
|
|
}
|
|
|
|
/deep/ .u-dropdown__menu__item__text {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 1;
|
|
/* 限制为两行 */
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cell-box {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
padding: 13px 16px;
|
|
font-size: 14px;
|
|
line-height: 27px;
|
|
color: #606266;
|
|
background-color: #fff;
|
|
text-align: left;
|
|
|
|
>view {
|
|
flex: 1;
|
|
margin-right: 20rpx;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 1;
|
|
/* 限制为两行 */
|
|
overflow: hidden;
|
|
}
|
|
|
|
.box-active {
|
|
color: rgb(49, 144, 243);
|
|
}
|
|
|
|
>image {
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
}
|
|
}
|
|
|
|
/deep/ .u-mask {
|
|
z-index: 10 !important;
|
|
}
|
|
|
|
/deep/ .u-dropdown__content {
|
|
// height: initial !important;
|
|
// top: 166rpx !important;
|
|
overflow: visible !important;
|
|
}
|
|
|
|
/deep/ .van-dropdown-item__content,
|
|
/deep/ .u-cell-item-box {
|
|
margin: 20rpx 26rpx;
|
|
width: calc(100% - 26rpx - 26rpx);
|
|
border-radius: 6rpx;
|
|
}
|
|
|
|
/deep/ .u-cell-item-box {
|
|
// max-height: 60vh;
|
|
// overflow-y: scroll;
|
|
}
|
|
|
|
/deep/ .uicon-arrow-down {
|
|
// position: absolute;
|
|
// top: 50%;
|
|
// right: -4px;
|
|
margin-top: -5px;
|
|
border: 3px solid;
|
|
border-color: transparent transparent #dcdee0 #dcdee0;
|
|
-webkit-transform: rotate(-45deg);
|
|
transform: rotate(-45deg);
|
|
opacity: .8;
|
|
content: '';
|
|
}
|
|
|
|
/deep/ .u-dropdown__menu__item__arrow--rotate .uicon-arrow-down {
|
|
border-color: transparent transparent rgb(49, 144, 243) rgb(49, 144, 243);
|
|
}
|
|
|
|
/deep/ .uicon-arrow-down::before {
|
|
display: none;
|
|
}
|
|
|
|
/deep/ .u-dropdown__menu {
|
|
flex-wrap: wrap;
|
|
// height: 166rpx !important;
|
|
box-shadow: none;
|
|
|
|
.u-dropdown__menu__item {
|
|
width: 33%;
|
|
// height: 82rpx;
|
|
flex: initial;
|
|
}
|
|
}
|
|
|
|
.new-nodata {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
>view {
|
|
width: 300rpx;
|
|
height: 300rpx;
|
|
background-image: url('@/static/staffAttendance/nodata.png');
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
>text {
|
|
font-size: 22rpx;
|
|
color: #808080;
|
|
margin-top: 60rpx;
|
|
}
|
|
}
|
|
|
|
.new-nodata_height {
|
|
min-height: 500rpx;
|
|
position: relative;
|
|
}
|
|
|
|
.new-nodata {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
>view {
|
|
width: 300rpx;
|
|
height: 300rpx;
|
|
background-image: url('@/static/staffAttendance/nodata.png');
|
|
background-repeat: no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
>text {
|
|
font-size: 22rpx;
|
|
color: #808080;
|
|
margin-top: 60rpx;
|
|
}
|
|
}
|
|
</style> |