1183 lines
25 KiB
Vue
1183 lines
25 KiB
Vue
<template>
|
|
<view class="addIssue">
|
|
<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"></u-search>
|
|
<!-- <u-input v-model="projectType" type="select" :border="true" @click="projectTypeShow = true" /> -->
|
|
<!-- <view @click="dropdownBtnChange('')" class="search-btn">
|
|
<image src="/static/riskPoint/screenIcon.png" mode=""></image>
|
|
</view> -->
|
|
</view>
|
|
<u-tabs :bar-height="4" :font-size="28" active-color="#498CEC" inactive-color="#B3B3B3" :bar-width="120"
|
|
:list="list" :is-scroll="true" :current="current" @change="change"></u-tabs>
|
|
|
|
<u-select :default-value="defaultIndex" value-name="data" label-name="name" :list="projectTypeList"
|
|
v-model="projectTypeShow" @confirm="actionSheetCallback"></u-select>
|
|
</view>
|
|
<view class="content" :style="{paddingTop: mobileTopHeight + 130 + 'px'}">
|
|
<u-collapse class="my-collapse" ref="myCollapse" v-if="workTicketList.length > 0" accordion>
|
|
<u-collapse-item @change="onRiskPointChange(item)" :index="item.id" v-for="item in workTicketList"
|
|
:key="item.id">
|
|
<template v-slot:title>
|
|
<view class="item-cell flex-center item-cell_title">
|
|
{{item.regionName}}({{item.riskListPointTodoNum}})
|
|
</view>
|
|
</template>
|
|
<template v-if="riskListPointList.length > 0">
|
|
<view class="content-box content-box1" v-for="ele in riskListPointList" :key="ele.id">
|
|
<view class="content-header" @click.stop>
|
|
<u-checkbox-group>
|
|
<u-checkbox shape="circle" v-model="ele.checked" :name="item.id"></u-checkbox>
|
|
</u-checkbox-group>
|
|
<view class="header-title">
|
|
{{fullPathCutOut(ele.riskPointName, 2)}}
|
|
</view>
|
|
</view>
|
|
<view class="content-row" @click="onNavigateToDetail(5, ele)">
|
|
<view>危险源数量:</view>
|
|
<view>{{ele.hazardSourceNumberTodo ? ele.hazardSourceNumberTodo : '--'}}</view>
|
|
</view>
|
|
<view class="content-btn">
|
|
<view class="nohiddendanger" @click="onNavigateToDetail(1, ele)">无隐患</view>
|
|
<view class="underconstruction" @click="onNavigateToDetail(2, ele)">未施工</view>
|
|
<view class="hiddendanger" @click="onNavigateToDetail(3, ele)">有隐患</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<view class="new-nodata1" v-else>
|
|
<view></view>
|
|
<text>暂无数据...</text>
|
|
</view>
|
|
</u-collapse-item>
|
|
</u-collapse>
|
|
<view class="new-nodata" v-else>
|
|
<view></view>
|
|
<text>暂无数据...</text>
|
|
</view>
|
|
<view class="confrim-bottom">
|
|
<view class="">
|
|
<u-checkbox-group @change="checkedAll">
|
|
<u-checkbox shape="circle" v-model="checked">全选{{checkedAllCount}}项</u-checkbox>
|
|
</u-checkbox-group>
|
|
</view>
|
|
<view class="confrim-btn">
|
|
<view class="btn-primary" @click="onNavigateToDetail(4)">批量创建未施工记录</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<u-toast ref="uToast" />
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import TreeView from '@/components/tree-view/TreeView.vue';
|
|
export default {
|
|
components: {
|
|
TreeView
|
|
},
|
|
data() {
|
|
return {
|
|
mobileTopHeight: 0,
|
|
projectDetail: {},
|
|
list: [{
|
|
name: '今日待办'
|
|
}, {
|
|
name: '本周待办'
|
|
}, {
|
|
name: '本月待办'
|
|
}, {
|
|
name: '季度待办'
|
|
}, {
|
|
name: '半年待办'
|
|
}],
|
|
current: 0,
|
|
checked: false,
|
|
searchName: "",
|
|
inserviceTypeList: [{
|
|
label: '全部',
|
|
value: ''
|
|
},
|
|
{
|
|
label: '未开始',
|
|
value: '1'
|
|
},
|
|
{
|
|
label: '施工中',
|
|
value: '2'
|
|
},
|
|
{
|
|
label: '暂停中',
|
|
value: '3'
|
|
},
|
|
{
|
|
label: '已完工',
|
|
value: '4'
|
|
}
|
|
],
|
|
dropDownShow: false,
|
|
submitShow: false,
|
|
workTicketList: [],
|
|
policeCameraInfo: {
|
|
effectiveTimeEnd_begin: "",
|
|
effectiveTimeBegin_end: "",
|
|
effectiveTimeBegin: "",
|
|
effectiveTimeEnd: "",
|
|
},
|
|
typeIds: [''],
|
|
checkedIds: [''],
|
|
statusIds: [''],
|
|
selectList: [],
|
|
pageNo: 1,
|
|
pageSize: 10,
|
|
issueInvoiceShow: false,
|
|
checkedIdList: [],
|
|
constructionTimeShow: false,
|
|
stateShow: false,
|
|
stateType: "",
|
|
stateInfo: {},
|
|
// 区域
|
|
qualityRegionList: [],
|
|
constructionAreasList: [],
|
|
constructionAreasNameList: [],
|
|
constructionAreasShow: false,
|
|
// 申请单位
|
|
applicantsList: [],
|
|
applicantsNameList: [],
|
|
constructionAreasType: "",
|
|
searchInfo: {
|
|
regionIds: [],
|
|
regionNames: "",
|
|
containLibraryIds: [],
|
|
containLibraryNames: "",
|
|
specificResponsibilityAreaIds: [],
|
|
specificResponsibilityAreaNames: "",
|
|
},
|
|
value1: 1,
|
|
options1: [{
|
|
label: '有效时间',
|
|
value: 1,
|
|
},
|
|
{
|
|
label: '具体责任区域',
|
|
value: 2,
|
|
},
|
|
],
|
|
projectTypeShow: false,
|
|
defaultIndex: [0],
|
|
projectTypeId: "",
|
|
projectTypeName: "",
|
|
projectTypeList: [],
|
|
riskFactorTypeList: [],
|
|
riskPointTreeList: [],
|
|
riskPointIds: [],
|
|
riskPointShow: false,
|
|
issueInvoiceType: "",
|
|
riskListPointList: [],
|
|
riskListSourceList: [],
|
|
regionIds: "",
|
|
}
|
|
},
|
|
onLoad(opts) {
|
|
this.projectDetail = JSON.parse(uni.getStorageSync('projectDetail'));
|
|
this.loadData();
|
|
},
|
|
mounted() {
|
|
var that = this
|
|
uni.getSystemInfo({
|
|
success(res) {
|
|
that.mobileTopHeight = res.statusBarHeight ? res.statusBarHeight : 0;
|
|
uni.setStorageSync('systemInfo', res)
|
|
console.log(res)
|
|
}
|
|
})
|
|
},
|
|
onShow() {
|
|
let that = this
|
|
uni.$on('updateData', function(data) {
|
|
that.loadData();
|
|
})
|
|
},
|
|
// onReachBottom() {
|
|
// console.log(1)
|
|
// if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
|
|
// this.isLoadMore = true
|
|
// this.pageNo += 1
|
|
// this.getPoliceCameraItemListFn()
|
|
// }
|
|
// },
|
|
// onPullDownRefresh() {
|
|
// console.log(2)
|
|
// this.pageNo = 1
|
|
// this.workTicketList = []
|
|
// this.getPoliceCameraItemListFn()
|
|
// },
|
|
methods: {
|
|
change(index) {
|
|
this.current = index;
|
|
this.loadData();
|
|
},
|
|
onRiskPointChange(row) {
|
|
console.log("event", row)
|
|
this.regionIds = row.id;
|
|
this.checked = false;
|
|
let data = {
|
|
projectSn: this.projectDetail.projectSn,
|
|
pageNo: 1,
|
|
pageSize: -1,
|
|
isMySourceToDo: 1,
|
|
regionIds: row.id,
|
|
checkPeriod: this.current + 1,
|
|
}
|
|
|
|
this.sendRequest({
|
|
url: 'xmgl/riskListPoint/page',
|
|
method: 'GET',
|
|
data: data,
|
|
success: res => {
|
|
if (res.code == 200) {
|
|
this.riskListPointList = res.result.records.map(item => {
|
|
return {
|
|
...item,
|
|
checked: false,
|
|
}
|
|
});
|
|
this.$nextTick(() => {
|
|
console.log(this.$refs.myCollapse)
|
|
this.$refs.myCollapse.init();
|
|
})
|
|
}
|
|
}
|
|
})
|
|
},
|
|
open() {
|
|
this.dropDownShow = true
|
|
},
|
|
close() {
|
|
this.dropDownShow = false
|
|
},
|
|
// 打开详情
|
|
onNavigateToDetail(type, ele) {
|
|
if (type == 1 || type == 3) {
|
|
const dataList = [{
|
|
pointId: ele.id,
|
|
regionIds: this.regionIds
|
|
}]
|
|
uni.navigateTo({
|
|
url: `./addRiskRanking?typeId=${type}®ionPointList=${JSON.stringify(dataList)}&type=add&sourceIdList=${JSON.stringify(ele.hazardSourceNumberTodoIdList)}`
|
|
})
|
|
} else if (type == 2) {
|
|
const dataList = [{
|
|
pointId: ele.id,
|
|
regionId: this.regionIds
|
|
}]
|
|
uni.navigateTo({
|
|
url: `./addUnconstructed?regionPointList=${JSON.stringify(dataList)}&sourceIdList=${JSON.stringify(ele.hazardSourceNumberTodoIdList)}`
|
|
})
|
|
} else if (type == 4) {
|
|
const resultList = this.riskListPointList.filter(item => item.checked);
|
|
if (resultList.length == 0) {
|
|
this.showToast('请先选择需要设置的风险点', 'warning');
|
|
return
|
|
}
|
|
const dataList = resultList.map(item => {
|
|
return {
|
|
pointId: item.id,
|
|
regionId: this.regionIds
|
|
}
|
|
});
|
|
uni.navigateTo({
|
|
url: `./addUnconstructed?regionPointList=${JSON.stringify(dataList)}`
|
|
})
|
|
} else if (type == 5) {
|
|
if (ele.hazardSourceNumber == 0) {
|
|
this.showToast('该风险点没有危险源!', 'warning');
|
|
return
|
|
}
|
|
uni.navigateTo({
|
|
url: `./createRiskRankingList?id=${ele.id}®ionIds=${this.regionIds}&checkPeriod=${this.current + 1}`
|
|
})
|
|
}
|
|
},
|
|
// 全选
|
|
checkedAll(e) {
|
|
this.riskListPointList.forEach(item => {
|
|
item.checked = this.checked;
|
|
})
|
|
},
|
|
loadData() {
|
|
this.pageNo = 1
|
|
this.workTicketList = []
|
|
this.getPoliceCameraItemListFn();
|
|
this.getTodoRegionCountFn();
|
|
},
|
|
// 获取管控清单列表
|
|
getPoliceCameraItemListFn() {
|
|
let data = {
|
|
// pageNo: this.pageNo,
|
|
// pageSize: this.pageSize,
|
|
projectType: this.projectTypeId,
|
|
projectSn: this.projectDetail.projectSn,
|
|
isMySourceToDo: 1,
|
|
checkPeriod: this.current + 1,
|
|
}
|
|
|
|
this.sendRequest({
|
|
url: 'xmgl/qualityRegion/notTreeList',
|
|
method: 'POST',
|
|
data: data,
|
|
success: res => {
|
|
uni.hideLoading()
|
|
if (res.code == 200) {
|
|
console.log("workList======================", res)
|
|
|
|
this.workTicketList = res.result;
|
|
// const resultList = res.result.records.map(item => {
|
|
// return {
|
|
// ...item,
|
|
// checked: false,
|
|
// expandMoreShow: false,
|
|
// }
|
|
// })
|
|
// this.workTicketList = this.workTicketList.concat(resultList)
|
|
// if (res.result.records.length < this.pageSize) { //判断接口返回数据量小于请求数据量,则表示此为最后一页
|
|
// this.isLoadMore = true
|
|
// this.loadStatus = 'nomore'
|
|
// } else {
|
|
// this.isLoadMore = false
|
|
// // that.loadStatus='more'
|
|
// }
|
|
// uni.stopPullDownRefresh()
|
|
}
|
|
}
|
|
})
|
|
},
|
|
getTodoRegionCountFn() {
|
|
let data = {
|
|
projectType: this.projectTypeId,
|
|
projectSn: this.projectDetail.projectSn,
|
|
isMySourceToDo: 1,
|
|
checkPeriod: this.current >= 2 ? this.current + 2 : this.current + 1
|
|
}
|
|
this.sendRequest({
|
|
url: 'xmgl/qualityRegion/getTodoRegionCount',
|
|
method: 'POST',
|
|
data: data,
|
|
success: res => {
|
|
if (res.code == 200) {
|
|
this.list = [{
|
|
name: `今日待办(${res.result.todayNum})`
|
|
}, {
|
|
name: `本周待办(${res.result.weekNum})`
|
|
},{
|
|
name: `本月待办(${res.result.monthNum})`
|
|
}, {
|
|
name: `季度待办(${res.result.qualityNum})`
|
|
}, {
|
|
name: `半年待办(${res.result.halfYearNum})`
|
|
}];
|
|
}
|
|
}
|
|
})
|
|
},
|
|
// 截取指定/字符串
|
|
fullPathCutOut(strName, startIndex) {
|
|
const parts = strName.split('/');
|
|
if (startIndex < 1 || startIndex >= parts.length) return ''; // n 无效或超出范围
|
|
return parts.slice(startIndex).join('/'); // 拼接第 n 部分之后的内容
|
|
},
|
|
showToast(title, type) {
|
|
this.$refs.uToast.show({
|
|
title: title,
|
|
type: type,
|
|
})
|
|
},
|
|
},
|
|
computed: {
|
|
checkedAllCount() {
|
|
return this.riskListPointList.filter(item => item.checked).length;
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.content-box1 {
|
|
// height: 554rpx;
|
|
margin-top: 26rpx;
|
|
position: relative;
|
|
padding-bottom: 120rpx !important;
|
|
|
|
.content-btn {
|
|
width: 100%;
|
|
padding: 18rpx 26rpx;
|
|
background: #FFFFFF;
|
|
box-shadow: 0rpx -8rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
|
|
>view {
|
|
// width: 216rpx;
|
|
// background: #5181F6;
|
|
border-radius: 6rpx;
|
|
padding: 10rpx 18rpx;
|
|
font-size: 28rpx;
|
|
// color: #FFFFFF;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.nohiddendanger {
|
|
border: 2rpx solid #4AC164;
|
|
color: #4AC164;
|
|
}
|
|
|
|
.underconstruction {
|
|
border: 2rpx solid #3E89FD;
|
|
color: #3E89FD;
|
|
}
|
|
|
|
.hiddendanger {
|
|
border: 2rpx solid #ED2B29;
|
|
color: #ED2B29;
|
|
}
|
|
|
|
>view:not(:first-child) {
|
|
margin-left: 20rpx;
|
|
}
|
|
}
|
|
|
|
.content-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
padding: 20rpx 0;
|
|
// border-bottom: 2rpx solid #F2F2F2;
|
|
font-size: 28rpx;
|
|
|
|
>view:first-child {
|
|
width: 162rpx;
|
|
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;
|
|
}
|
|
}
|
|
|
|
.attachment {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
|
|
>view:not(:first-child) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 32rpx;
|
|
width: 100%;
|
|
|
|
>view:first-child {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 70%;
|
|
|
|
>image {
|
|
width: 40rpx;
|
|
height: 40rpx
|
|
}
|
|
|
|
>view {
|
|
font-size: 28rpx;
|
|
color: #171717;
|
|
margin-left: 32rpx;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
>view:last-child {
|
|
font-size: 24rpx;
|
|
color: #808080;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.content-box {
|
|
width: 698rpx;
|
|
padding: 26rpx;
|
|
background: #FFFFFF;
|
|
box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(3, 92, 181, 0.1), 0rpx 8rpx 40rpx 0rpx rgba(0, 0, 0, 0.05);
|
|
// border-radius: 16rpx;
|
|
|
|
.content-header {
|
|
display: flex;
|
|
align-items: center;
|
|
// justify-content: space-between;
|
|
|
|
.header-title {
|
|
font-weight: 500;
|
|
font-size: 30rpx;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
// >view:last-child {
|
|
// font-size: 22rpx;
|
|
// color: #4D4D4D;
|
|
// background-color: #FFFF00;
|
|
// padding: 4rpx 14rpx;
|
|
// }
|
|
}
|
|
}
|
|
|
|
/deep/ .u-collapse-item {
|
|
margin-top: 26rpx;
|
|
}
|
|
|
|
/deep/ .u-collapse-head {
|
|
padding: 12rpx 0;
|
|
background-color: #FFFFFF;
|
|
|
|
.u-collapse-title {
|
|
color: #498CEC;
|
|
}
|
|
|
|
// .u-icon__icon {
|
|
// color: #498CEC !important;
|
|
// }
|
|
}
|
|
|
|
/deep/ .u-collapse-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding-bottom: 13px;
|
|
}
|
|
|
|
/deep/ .van-cell,
|
|
.item-cell {
|
|
padding: 22rpx 26rpx;
|
|
}
|
|
|
|
/deep/ .van-cell__title,
|
|
.item-cell_title {
|
|
font-weight: 500;
|
|
font-size: 30rpx;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
/deep/ .van-collapse-item__content,
|
|
/deep/ .u-collapse-item__wrap-content {
|
|
background-color: #F2F3F7;
|
|
padding: 26rpx;
|
|
}
|
|
|
|
/deep/ .van-cell__title,
|
|
.item-cell_title {
|
|
font-weight: 500;
|
|
font-size: 30rpx;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
/deep/ .van-collapse-item__content,
|
|
/deep/ .uni-collapse-item__wrap-content {
|
|
background-color: #F2F3F7;
|
|
padding: 26rpx;
|
|
}
|
|
|
|
/deep/ .u-mode-center-box {
|
|
width: 698rpx !important;
|
|
|
|
.u-model__title {
|
|
padding: 0;
|
|
font-size: 32rpx;
|
|
color: #272D45;
|
|
height: 86rpx;
|
|
background-color: #FFFFFF;
|
|
box-shadow: 0rpx 8rpx 10rpx -8rpx rgba(81, 129, 246, 0.42);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.u-model__content__message {
|
|
padding: 26rpx 26rpx 72rpx;
|
|
font-size: 28rpx;
|
|
color: #171717;
|
|
}
|
|
|
|
.u-model__footer__button {
|
|
height: 76rpx;
|
|
line-height: 76rpx;
|
|
background-color: rgba(81, 129, 246, 0.1);
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
color: #5181F6;
|
|
}
|
|
|
|
.hairline-left {
|
|
background-color: #5181F6;
|
|
color: white !important;
|
|
}
|
|
|
|
.content_main-box1 {
|
|
padding: 26rpx 28rpx;
|
|
|
|
>view:first-child {
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
color: #171717;
|
|
}
|
|
|
|
>view:last-child {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
font-size: 24rpx;
|
|
color: #FFA026;
|
|
margin-top: 26rpx;
|
|
|
|
.u-icon {
|
|
font-size: 35rpx;
|
|
margin-right: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/deep/ .u-drawer-content-visible {
|
|
border-radius: 16rpx 16rpx 0rpx 0rpx;
|
|
}
|
|
|
|
.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: 80%;
|
|
|
|
.u-input {
|
|
text-align: right !important;
|
|
}
|
|
|
|
.u-icon {
|
|
margin-left: 10rpx;
|
|
transform: rotate(-90deg);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.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: 138rpx;
|
|
min-height: calc(100vh - 130rpx - 138rpx - 26rpx);
|
|
|
|
>.main3_box:not(:first-child) {
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.pb_140 {
|
|
padding-bottom: 140rpx !important;
|
|
}
|
|
|
|
.main3_box {
|
|
padding: 30rpx 28rpx;
|
|
background-color: white;
|
|
// border-radius: 18rpx;
|
|
position: relative;
|
|
|
|
.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: 220rpx;
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
|
|
>view:first-child {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.confrim-btn {
|
|
display: flex;
|
|
|
|
>view {
|
|
padding: 10rpx 20rpx;
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 2rpx solid #D9D9D9;
|
|
border-radius: 6rpx;
|
|
color: #808080;
|
|
}
|
|
|
|
.btn-error {
|
|
border: 2rpx solid #ED2B29;
|
|
color: #ED2B29;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: #5181F6;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
>view:nth-child(n + 2) {
|
|
margin-left: 12rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.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 26rpx 0;
|
|
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;
|
|
}
|
|
|
|
.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-nodata1 {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: white;
|
|
padding: 20rpx;
|
|
width: 698rpx;
|
|
margin-top: 26rpx;
|
|
|
|
>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> |