工作任务

This commit is contained in:
liuye
2024-08-05 17:12:10 +08:00
parent 329dcf52c2
commit ea30d6fbde
8 changed files with 2360 additions and 0 deletions

View File

@@ -0,0 +1,87 @@
<template>
<div v-if="btn" class="AiBack" @click.stop="back">
<img :src="$cdn + 'home/back.png'" alt="">
<text>返回</text>
</div>
<ai-fixed-btn v-else-if="!isTopPage||custom">
<div class="AiBack" @click.stop="back">
<img :src="$cdn + 'home/back.png'" alt="">
<text>返回</text>
</div>
</ai-fixed-btn>
</template>
<script>
import AiFixedBtn from "./AiFixedBtn";
export default {
name: "AiBack",
components: {AiFixedBtn},
inject: {root: {}},
props: {
delta: {
type: Number,
default: 1
},
eventName: {
type: String,
default: ''
},
data: {
type: Object | Boolean,
default: () => {
}
},
custom: Boolean,
visible: Boolean,
btn: Boolean
},
data() {
return {
isTopPage: false
}
},
methods: {
back() {
if (this.visible) {
return this.$parent.$emit(this.eventName, this.data)
} else if (this.custom) {
this.$emit("back")
} else if (this.custom) {
} else uni.navigateBack({
success: () => {
uni.$emit(this.eventName, this.data)
}
})
}
},
mounted() {
this.isTopPage = window.history.length <= 1
}
}
</script>
<style lang="scss" scoped>
.AiBack {
width: 108px;
height: 108px;
background: #6BA1F9;
box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.12);
border-radius: 50%;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
img {
width: 40px;
height: 40px;
}
text {
font-size: 26px;
font-weight: 800;
color: #FFFFFF;
line-height: 40px;
}
}
</style>

View File

@@ -0,0 +1,209 @@
<template>
<div class="selectResident">
<div class="search-top">
<u-search placeholder="搜索" v-model="name" :show-action="false" bg-color="#fff" search-icon-color="#E2E8F1"
color="#666" height="72" @search="current=1,getList()" @clear="handerClear" @change="current=1,getList()"></u-search>
</div>
<div class="user-list">
<template v-if="list.length>0">
<div class="item" v-for="(item, index) in list" :key="index">
<div class="select-img" @click="checkClick(index)">
<img :src="item.isCheck ? checkIcon : cirIcon" alt="">
</div>
<div class="user-info">
<img :src="item.photo" alt="" v-if="item.photo">
<img src="./img/user-img.png" alt="" v-else>
{{ item.name }}
<span v-if="isShowPhone && item.mobile">({{item.mobile}})</span>
<span v-if="isShowPhone && item.phone && !item.mobile">({{item.phone}})</span>
</div>
</div>
</template>
<template v-else>
<AiEmpty/>
<div class="pad-b118"/>
</template>
</div>
<div class="pad-b118"/>
<div class="footer">
<div class="btn" @click="confirm">确定选择</div>
</div>
</div>
</template>
<script>
import {mapState} from 'vuex'
export default {
name: "selectResident",
appName: "选择人员",
data() {
return {
current: 1,
total: 0,
name: '',
list: [],
cirIcon: require('./img/xz.png'),
checkIcon: require('./img/xzh.png'),
selected: [],
query: null,
isSingle: false,
nodeKey: 'idNumber',
isRequire: 1,
isShowPhone: false
}
},
computed: {
...mapState(['user']),
},
onLoad(query) {
console.log(query)
this.query = query
if (query.selected) {
this.selected = query.selected?.split(",") || []
}
this.isSingle = query.single || false
this.nodeKey = query.nodeKey || "idNumber"
this.isRequire = query.isRequire || 1
this.isShowPhone = query.isShowPhone || false
this.getList()
},
onShow() {
// document.title = this.nodeKey == 'openId' ? '选择居民' : '选择员工'
},
methods: {
getList() {
let {current, total, name: con} = this
let url = this.query.axiosUrl ? this.query.axiosUrl : `/admin/user/userIntegralList`
if ((!total && current == 1) || current <= total) {
url = decodeURIComponent(url)
this.$instance.post(url, null, {
params: {current, size: 20, con}
}).then(res => {
if (res?.data) {
this.total = res.data.pages || 0
res.data.records.forEach(e => {
e.isCheck = this.selected.includes(e[this.nodeKey])
})
this.list = [current == 1 ? [] : this.list, res.data.records || []].flat()
}
})
}
},
checkClick(index) {
if (this.isSingle) {
this.list.map((e, i) => {
e.isCheck = i == index;
})
} else this.list[index].isCheck = !this.list[index].isCheck
},
confirm() {
let checkList = []
this.list.map((item) => {
if (item.isCheck) {
checkList.push(item)
}
})
if (!checkList.length && this.isRequire == 1) {
return this.$u.toast('请先选择人员')
} else {
uni.navigateBack({
success: () => {
uni.$emit("pagePicker:sysUser", checkList)
}
})
}
}
},
onReachBottom() {
this.current++
this.getList()
},
}
</script>
<style lang="scss" scoped>
.selectResident {
::v-deep .AiTopFixed .u-search {
margin-bottom: 0 !important;
}
.pad-b118 {
padding-bottom: 118px;
}
.search-top {
position: fixed;
top: 0;
left: 0;
padding: 16px;
width: 100%;
box-sizing: border-box;
background-color: #E4E5E6;
z-index: 99;
}
.user-list {
padding-top: 100px;
background-color: #fff;
.item {
.select-img {
display: inline-block;
img {
width: 48px;
height: 48px;
margin: 12px 36px 12px 30px;
vertical-align: middle;
}
}
.user-info {
display: inline-block;
padding: 20px 0 20px 0;
width: calc(100% - 114px);
height: 100%;
border-bottom: 1px solid #E4E5E6;
font-size: 36px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
line-height: 74px;
img {
width: 74px;
height: 74px;
border-radius: 8px;
margin-right: 34px;
vertical-align: bottom;
}
}
}
}
.footer {
width: 100%;
height: 118px;
background: #F4F8FB;
position: fixed;
left: 0;
bottom: 0;
text-align: right;
.btn {
display: inline-block;
width: 192px;
height: 80px;
line-height: 80px;
background: #1365DD;
border-radius: 4px;
text-align: center;
font-size: 32px;
font-family: PingFangSC-Regular, PingFang SC;
color: #FFF;
margin: 20px 34px 0 0;
}
}
}
</style>

View File

@@ -0,0 +1,299 @@
<template>
<div class="AppWorkTask">
<!-- <AiTopFixed>
<u-tabs :list="tabs" height="88" bar-width="136" :current="index" @change="change"></u-tabs>
</AiTopFixed> -->
<u-navbar back-icon-color="#000" title="特殊人群" title-color="#000" title-width="300" title-size="32"
:title-bold="true" :background="backgroundNavbar" :is-fixed="true" height="44" z-index="999">
</u-navbar>
<div class="header-content-bg">
<img src="https://cdn.sinoecare.com/i/2024/07/12/6690a1303d423.png" alt="">
</div>
<div class="top-tabs" :style="{'top': `${statusBarHeight+44}px`}">
<u-tabs :list="tabs" :is-scroll="false" :current="index" height="96" inactive-color="#222"
active-color="#1D2229" :bar-style="barStyle" font-size="34" @change="change">
</u-tabs>
</div>
<div class="list-data">
<div class="card" v-for="(item,index) in list" :key="index" @click="handleClick(item)">
<header>{{item.taskTitle}}</header>
<u-gap height="24"></u-gap>
<u-row>
<text>任务类型</text>
<text>{{$dict.getLabel("workTaskType",item.type)}}</text>
</u-row>
<u-gap height="8"></u-gap>
<u-row>
<text>截止时间</text>
<text>{{item.lastTime}}</text>
</u-row>
<u-gap height="8"></u-gap>
<u-row>
<text>剩余时间</text>
<text :style="{color:item.isOverTime==1?'#FF4466':'#1365DD'}">{{item.overTimeStatus}}</text>
</u-row>
<u-gap height="24"></u-gap>
<span>已完成{{item.percent}}%</span>
<u-gap height="16"></u-gap>
<div class="progress">
<div class="active" :style="{width: item.percent + '%'}"></div>
</div>
<img :src="$cdn + tag(item.status)" alt="">
</div>
<AiEmpty v-if="!list.length"></AiEmpty>
</div>
<AiAdd @add="add" />
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
appName: '工作任务',
customNavigation: true,
data() {
return {
index: 0,
current: 1,
list: [],
status: "加载更多",
userSelect: false,
backgroundNavbar: {
background: 'url(https://cdn.sinoecare.com/i/2024/07/12/6690a1309c7d3.png) no-repeat',
backgroundSize: 'cover',
},
barStyle: {
'width': '20px',
'height': '4px',
'border-radius': '3px',
'bottom': '-4px',
'background': '#026AF2'
},
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
}
},
computed: {
...mapState(['user']),
tabs() {
return [
{name: "我执行的"},
{name: "我完成的"},
{name: "我发起的"},
// {name: "我督办的"},
{name: "抄送我的"},
]
},
},
created() {
this.$dict.load("workTaskType").then(() => {
this.getList()
})
uni.$on('getList', () => {
this.current = 1
this.getList()
})
},
onShow() {
// document.title = '工作任务'
uni.pageScrollTo({
duration: 0,
scrollTop: 0
})
this.current = 1
this.getList()
},
methods: {
tag(status) {
return {
"0": "common/1jxz.png",
"1": "common/1ywc.png",
"2": "common/1ygb.png"
}[status]
},
handleClick(item) {
uni.navigateTo({
url: "./detail?id=" + item.id + "&taskCode=" + item.taskCode + "&isMine=" + this.index
})
},
add() {
uni.navigateTo({
url: "./create"
})
},
change(e) {
this.index = e
this.current = 1
this.getList()
},
map(index) {
return {
"0": {
taskRole: 1,
status: 0,
},
"1": {
taskRole: 1,
status: 1,
},
"2": {
taskRole: 0,
},
"3": {
taskRole: 2,
},
"4": {
taskRole: 3,
}
}[index]
},
getList() {
this.$instance.post("/app/appworktaskinfo/list", null, {
params: {
...this.map(this.index),
size: 10,
current: this.current
}
}).then(res => {
if (res && res.data) {
if (this.current > 1 && this.current > res.data.pages) {
this.status = "已经到底啦"
}
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
}
})
}
},
onReachBottom() {
this.current = this.current + 1;
this.getList()
}
}
</script>
<style lang="scss" scoped>
.AppWorkTask {
min-height: 100%;
background-color: #F5F5F5;
padding-bottom: 32px;
.header-content-bg {
width: 100%;
position: fixed;
// z-index: -1;
img {
width: 100%;
height: 592px;
}
}
.top-tabs {
width: calc(100% - 64px);
box-sizing: border-box;
position: fixed;
left: 32px;
z-index: 9;
.select-content {
width: 100%;
padding: 0 32px;
box-sizing: border-box;
background-color: #fff;
.search-input {
width: 100%;
padding: 28px 0;
}
.area-content {
width: 100%;
padding: 26px 0;
box-sizing: border-box;
font-family: PingFangSC-Regular;
font-size: 32px;
color: #222;
::v-deep u-icon,
::v-deep .u-icon {
width: 100%;
}
::v-deep .u-icon__label {
display: inline-block;
width: calc(100% - 32px);
}
}
}
}
::v-deep .u-tabs {
border-radius: 16px;
}
.list-data {
box-sizing: border-box;
margin-top: 128px;
padding: 0 32px 0 32px;
.card {
background: #FFFFFF;
border-radius: 8px;
box-sizing: border-box;
padding: 32px;
position: relative;
margin-bottom: 32px;
border-radius: 16px;
& > header {
font-size: 32px;
font-weight: 600;
color: #333333;
}
& > .u-row {
text {
font-size: 30px;
color: #999999;
line-height: 42px;
}
}
& > span {
font-size: 26px;
color: #649EFD;
}
.progress {
width: 100%;
height: 4px;
background: #F0F1F2;
border-radius: 2px;
position: relative;
.active {
position: absolute;
left: 0;
top: 0;
height: 4px;
background: #639EFD;
border-radius: 2px;
}
}
& > img {
width: 112px;
height: 112px;
position: absolute;
top: 0;
right: 0;
}
}
}
}
</style>

View File

@@ -0,0 +1,390 @@
<template>
<div class="create-sub-task">
<template>
<u-navbar back-icon-color="#000" title="创建任务" title-color="#000" title-width="300" title-size="32"
:title-bold="true" :background="backgroundNavbar" :is-fixed="true" height="44" z-index="999">
</u-navbar>
<div class="header-content-bg">
<img src="https://cdn.sinoecare.com/i/2024/07/12/6690a1303d423.png" alt="">
</div>
<div class="card-content">
<div class="card flex">
<div class="left">
<em>*</em>任务类型
</div>
<picker @change="change" :value="form.type" range-key="dictName" :range="$dict.getDict('workTaskType')" class="right">
<u-row>
<div v-if="form.type!=null" class="value">{{$dict.getDict('workTaskType')[form.type]["dictName"]}}</div>
<div v-else class="placeholder">请选择</div>
<div class="arrow"></div>
</u-row>
</picker>
</div>
<div class="card">
<u-row justify="between">
<div class="left">
<em>*</em>任务标题
</div>
</u-row>
<u-gap height="16"></u-gap>
<input maxlength="30" v-model.trim="form.taskTitle" placeholder="限30字">
<u-gap height="32"></u-gap>
</div>
<div class="card">
<u-row justify="between">
<div class="left">
<em>*</em>任务说明
</div>
</u-row>
<u-gap height="16"></u-gap>
<textarea maxlength="1000" v-model.trim="form.taskDescription" placeholder="请输入任务内容限1000字"/>
</div>
<div class="card flex">
<div class="left">
<em>*</em>截止日期
</div>
<div class="right">
<picker @change="dateChange" mode="date" :value="form.lastTime" :start="startDate" :end="endDate" >
<u-row>
<div v-if="form.lastTime!=null" class="value">{{form.lastTime}}</div>
<div v-else class="placeholder">请选择</div>
<div class="arrow" v-if="form.lastTime==null"></div>
<div class="clear" v-else @click.stop="form.lastTime = null"></div>
</u-row>
</picker>
</div>
</div>
<div class="card flex" style="padding: 13px 17px;margin-bottom: 0">
<div class="left" style="line-height: 22px;">
<em>*</em>执行人
</div>
<div class="right">
<AiPagePicker type="sysUser" :isShowPhone="true" :params="{axiosUrl:'/app/wxcp/wxuser/list?status=1'}"
nodeKey="id" class="select-user" @select="handleUserInfoList">
<app-nucleic-acid-sampling v-if="form.userInfoList.length" class="value">
已选择<em>{{form.userInfoList.slice(0,2).map(e=>e.name).join("、")}}</em>
<em>{{form.userInfoList.length}}</em>
</app-nucleic-acid-sampling>
<span v-else class="color-999">请选择</span>
<div class="arrow"></div>
</AiPagePicker>
</div>
</div>
<div class="card flex border" style="padding: 13px 17px;margin-bottom: 0">
<div class="left" style="line-height: 22px;">督办人</div>
<div class="right">
<AiPagePicker type="sysUser" :isShowPhone="true" :params="{axiosUrl:'/app/wxcp/wxuser/list?status=1'}"
nodeKey="id" class="select-user" @select="handleCheckUserList">
<app-nucleic-acid-sampling v-if="form.checkUserList.length" class="value">
已选择<em>{{form.checkUserList.slice(0,2).map(e=>e.name).join("、")}}</em>
<em>{{form.checkUserList.length}}</em>
</app-nucleic-acid-sampling>
<span v-else class="color-999">请选择</span>
<div class="arrow"></div>
</AiPagePicker>
</div>
</div>
<div class="card flex" style="padding: 13px 17px">
<div class="left" style="line-height: 22px;">抄送人</div>
<div class="right">
<AiPagePicker type="sysUser" :isShowPhone="true" :params="{axiosUrl:'/app/wxcp/wxuser/list?status=1'}"
nodeKey="id" class="select-user" @select="handleSendUserList">
<app-nucleic-acid-sampling v-if="form.sendUserList.length" class="value">
已选择<em>{{form.sendUserList.slice(0,2).map(e=>e.name).join("、")}}</em>
<em>{{form.sendUserList.length}}</em>
</app-nucleic-acid-sampling>
<span v-else class="color-999">请选择</span>
<div class="arrow"></div>
</AiPagePicker>
</div>
</div>
<div class="card flex flex-card" style="padding: 12px 17px;">
<div class="left"> 发送任务通知</div>
<div class="right">
<switch :checked="!!form.isNofity" @change="(e)=>form.isNofity=Number(e.detail.value)"/>
</div>
</div>
</div>
<div class="footer" @click="handleCreate">
<div class="btn">创建</div>
</div>
</template>
</div>
</template>
<script>
export default {
name: "create",
appName: '创建任务',
customNavigation: true,
data() {
return {
index: null,
selectList: [],
form: {
parentTaskCode: null,
type: null,
taskTitle: "",
taskDescription: "",
lastTime: null,
userInfoList: [],
checkUserList: [],
sendUserList: [],
isNofity: 0
},
currentClick: null,
backgroundNavbar: {
background: 'url(https://cdn.sinoecare.com/i/2024/07/12/6690a1309c7d3.png) no-repeat',
backgroundSize: 'cover',
},
barStyle: {
'width': '20px',
'height': '4px',
'border-radius': '3px',
'bottom': '-4px',
'background': '#026AF2'
},
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
}
},
onLoad(opt) {
if (opt.taskCode) {
this.form.parentTaskCode = opt.taskCode
}
this.$dict.load("workTaskType")
},
computed: {
startDate() {
return this.getDate('start');
},
endDate() {
return this.getDate('end');
}
},
methods: {
handleCreate() {
if (this.form.type==null) return this.$u.toast("请选择任务类型")
if (!this.form.taskTitle) return this.$u.toast("请输入任务标题")
if (!this.form.taskDescription) return this.$u.toast("请输入任务说明")
if (this.form.lastTime==null) return this.$u.toast("请选择截止日期")
if (!this.form.userInfoList.length) return this.$u.toast("请选择执行人")
this.$instance.post("/app/appworktaskinfo/addOrUpdate", {
...this.form,
lastTime:this.form.lastTime + " 23:59:59"
}).then(res => {
if (res.code == 0) {
this.$u.toast("创建成功")
uni.$emit('getList')
setTimeout(() => {
uni.navigateBack({
delta: 1
})
}, 500)
}
})
},
dateChange(e) {
let date = this.getDate({format: true});
if (new Date(date).getTime() > new Date(e.target.value).getTime()) {
this.form.lastTime = null
return this.$u.toast("截止时间不能小于当前时间")
}
this.form.lastTime = e.target.value
},
getDate(type) {
const date = new Date();
let year = date.getFullYear();
let month = date.getMonth() + 1;
let day = date.getDate();
if (type === 'start') {
year = year - 60;
} else if (type === 'end') {
year = year + 2;
}
month = month > 9 ? month : '0' + month;
day = day > 9 ? day : '0' + day;
return `${year}-${month}-${day}`;
},
change(e) {
this.form.type = e.detail.value
},
handleUserInfoList(e) {
this.form.userInfoList = e
},
handleCheckUserList(e) {
this.form.checkUserList = e
},
handleSendUserList(e) {
this.form.sendUserList = e
}
},
}
</script>
<style lang="scss" scoped>
.create-sub-task {
min-height: 100%;
background-color: #F5F5F5;
box-sizing: border-box;
.header-content-bg {
width: 100%;
position: fixed;
img {
width: 100%;
height: 592px;
}
}
.card-content {
position: relative;
z-index: 2;
padding-bottom: 200px;
}
.card {
background-color: #FFF;
padding: 32px 34px;
box-sizing: border-box;
margin: 0 0 16px 32px;
width: calc(100% - 64px);
border-radius: 16px;
.left {
font-size: 32px;
color: #333333;
font-weight: 400;
line-height: 48px;
& > em {
display: inline-block;
font-style: normal;
font-size: 32px;
color: #FF4466;
}
}
.value {
font-size: 32px;
color: #333333;
& > em {
display: inline-block;
font-style: normal;
font-size: 28px;
color: #1365DD;
}
}
.placeholder {
font-size: 28px;
color: #999999;
}
.arrow {
display: inline-block;
width: 16px;
height: 16px;
border-top: 5px solid #CCCCCC;
border-right: 5px solid #CCCCCC;
transform: rotate(45deg);
margin-left: 8px;
}
.clear {
display: inline-block;
width: 32px;
height: 32px;
border-radius: 50%;
background-color: #CCCCCC;
margin-left: 8px;
position: relative;
&:before {
content: "";
width: 4px;
height: 24px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) rotate(-45deg);
background-color: #FFFFFF;
border-radius: 4px;
}
&:after {
content: "";
width: 4px;
height: 24px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) rotate(45deg);
background-color: #FFFFFF;
border-radius: 4px;
}
}
textarea {
width: 100%;
}
}
.flex {
display: flex;
.left {
width: 150px;
}
.right {
width: calc(100% - 150px);
text-align: right;
.placeholder {
display: inline-block;
}
.value {
display: inline-block;
}
}
}
.flex-card {
.left {
width: 200px;
}
.right {
width: calc(100% - 200px);
}
}
.border {
border-top: 1px solid rgba(216, 221, 230, 0.5);
border-bottom: 1px solid rgba(216, 221, 230, 0.5);
}
.color-999 {
font-size: 28px;
}
.footer {
width: 100%;
position: fixed;
bottom: 0;
left: 0;
background-color: #F4F5FA;
padding: 64px 64px 68px 64px;
z-index: 9;
.btn {
width: calc(100% - 128px);
line-height: 88px;
background: #026AF2;
border-radius: 44px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 34px;
color: #FFF;
text-align: center;
}
}
}
</style>

View File

@@ -0,0 +1,536 @@
<template>
<div class="detail">
<u-navbar back-icon-color="#000" :background="backgroundNavbar" :is-fixed="true" height="44" z-index="999">
</u-navbar>
<div class="header-content-bg">
<img src="https://cdn.sinoecare.com/i/2024/07/12/6690a1303d423.png" alt="">
</div>
<div class="top-tabs" :style="{'top': `${statusBarHeight+44}px`}">
<u-tabs :list="tabs" :is-scroll="false" :current="index" height="96" inactive-color="#222"
active-color="#1D2229" :bar-style="barStyle" font-size="34" @change="change">
</u-tabs>
</div>
<!-- <ai-top-fixed>
<u-tabs :list="tabs" height="96" :is-scroll="false" item-width="33.33%" bar-width="250" :current="index"
@change="change"></u-tabs>
</ai-top-fixed> -->
<div class="mar-t128">
<template v-if="index==0" >
<div class="card mar-t128">
<header>{{detail.taskTitle}}</header>
<u-gap height="16"></u-gap>
<u-row>
<span>任务类型</span>
<span>{{$dict.getLabel("workTaskType",detail.type)}}</span>
</u-row>
<u-gap height="8"></u-gap>
<u-row>
<span>开始时间</span>
<span>{{detail.createTime}}</span>
</u-row>
<u-gap height="8"></u-gap>
<u-row>
<span>截止时间</span>
<span style="color:#1365DD">{{detail.lastTime}}</span>
</u-row>
<u-gap height="8"></u-gap>
<u-row>
<span>剩余时间</span>
<span style="color:#1365DD">{{detail.overTimeStatus}}</span>
</u-row>
<u-gap height="8"></u-gap>
<u-row>
<span>任务状态</span>
<span>{{$dict.getLabel("workTaskDoStatus",detail.status)}}</span>
</u-row>
<u-gap height="8"></u-gap>
<u-row>
<span>执行说明</span>
<span>{{detail.doDescription}}</span>
</u-row>
<u-gap height="16"></u-gap>
</div>
<div class="card" style="padding-top: 0">
<div class="label">任务说明</div>
<u-read-more close-text="展开" color="#999999" show-height="300">
<span>{{detail.taskDescription}}</span>
</u-read-more>
</div>
<div class="card" style="padding-top: 0" v-if="detail.fileList && detail.fileList.length">
<div class="label">相关附件</div>
<div class="file" v-for="(item,index) in detail.fileList" :key="index" @click="preFile(item)">
<u-row justify="between">
<label class="left">
<img :src="$cdn + 'common/appendix.png'" alt="">
<span>{{item.name}}.{{item.postfix}}</span>
</label>
<span>{{(item.size/1024).toFixed(2)}}KB</span>
</u-row>
</div>
</div>
</template>
<template v-if="index==1">
<template v-if="['0','1'].includes(isMine)">
<div class="card mar-t128">
<div class="label">我的进度</div>
<text>已完成{{detail.myUserInfo.percent}}%</text>
<div class="progress">
<div class="pro-active" :style="{width:detail.myUserInfo.percent + '%'}"></div>
</div>
</div>
<div class="card" v-if="detail.processList.length">
<u-collapse>
<u-collapse-item :title="item.createDate && item.createDate.split(' ')[0]" v-for="(item, index) in detail.processList" :key="index">
<template slot="info">
完成到<em>{{item.percent}}%</em>
</template>
{{item.remarks}}
</u-collapse-item>
</u-collapse>
</div>
</template>
<template v-else>
<div class="card mar-t128" v-for="(item,index) in detail.userInfoList" :key="index">
<div class="label">{{item.userName}}</div>
<text>已完成{{item.percent}}%</text>
<div class="progress">
<div class="pro-active" :style="{width:item.percent + '%'}"></div>
</div>
</div>
</template>
</template>
<template v-if="index==2">
<div class="card" v-if="list.length">
<u-row justify="between" v-for="(item,index) in list" :key="index" class="item" @click="subDetail(item)">
<label class="title">{{item.taskTitle}}</label>
<label class="right">{{item.percent}}%
<div class="arrow"></div>
</label>
</u-row>
</div>
<AiEmpty v-else></AiEmpty>
</template>
</div>
<ai-back></ai-back>
<div class="footer" v-if="index==1 && detail.myUserInfo.taskRole == 1 && detail.myUserInfo.doStatus==0" @click="handleClick">
<div class="btn">去完成</div>
</div>
<div class="footer" v-if="index==2" @click="createSubTask">
<div class="btn">创建子任务</div>
</div>
</div>
</template>
<script>
import {mapActions} from "vuex";
export default {
name: "detail",
customNavigation: true,
data() {
return {
current: 1,
index: 0,
id: null,
taskCode: null,
isMine: null,
detail: {},
list: [],
backgroundNavbar: {
background: 'url(https://cdn.sinoecare.com/i/2024/07/12/6690a1309c7d3.png) no-repeat',
backgroundSize: 'cover',
},
barStyle: {
'width': '20px',
'height': '4px',
'border-radius': '3px',
'bottom': '-4px',
'background': '#026AF2'
},
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
}
},
onLoad(opt) {
this.id = opt.id
this.taskCode = opt.taskCode
this.isMine = opt.isMine
this.$dict.load("workTaskType", "workTaskDoStatus")
},
computed: {
tabs() {
return [
{name: "信息"},
{name: "进度"},
{name: "子任务"},
]
}
},
methods: {
...mapActions(['previewFile', 'injectJWeixin']),
preFile(e) {
if([".jpg",".png",".gif"].includes(e.postfix.toLowerCase())){
uni.previewImage({
current: e.url,
urls: [e.url]
})
}else {
this.previewFile({ ...e})
}
},
getDetail() {
this.$instance.post("/app/appworktaskinfo/queryDetailById", null, {
params: {
id: this.id
}
}).then(res => {
if (res && res.data) {
this.detail = res.data
}
})
},
getList(){
this.$instance.post("/app/appworktaskinfo/list", null, {
params: {
parentTaskCode: this.detail.taskCode,
size: 999,
}
}).then(res => {
if (res && res.data) {
this.list = res.data.records
}
})
},
createSubTask() {
uni.navigateTo({
url: "./create?taskCode=" + this.taskCode
})
},
subDetail({id}) {
uni.navigateTo({
url: "./subDetail?id=" + id
})
},
handleClick() {
uni.navigateTo({
url: "./finish?taskCode=" + this.detail.taskCode + "&percent=" + this.detail.myUserInfo.percent
})
},
change(e) {
this.index = e
if (e == 2) {
this.getList()
}
}
},
onShow(){
this.getDetail()
this.getList()
}
}
</script>
<style lang="scss" scoped>
.detail {
min-height: 100%;
background-color: #F5F5F5;
padding-bottom: 140px;
.header-content-bg {
width: 100%;
position: fixed;
img {
width: 100%;
height: 592px;
}
}
.top-tabs {
width: calc(100% - 64px);
box-sizing: border-box;
position: fixed;
left: 32px;
.select-content {
width: 100%;
padding: 0 32px;
box-sizing: border-box;
background-color: #fff;
.search-input {
width: 100%;
padding: 28px 0;
}
.area-content {
width: 100%;
padding: 26px 0;
box-sizing: border-box;
font-family: PingFangSC-Regular;
font-size: 32px;
color: #222;
::v-deep u-icon,
::v-deep .u-icon {
width: 100%;
}
::v-deep .u-icon__label {
display: inline-block;
width: calc(100% - 32px);
}
}
}
}
::v-deep .u-tabs {
border-radius: 16px;
}
.card {
width: calc(100% - 64px);
background-color: #FFF;
margin-bottom: 8px;
padding: 16px 32px;
box-sizing: border-box;
margin-left: 32px;
border-radius: 16px;
margin-bottom: 32px;
header {
font-size: 40px;
font-weight: 600;
color: #333333;
line-height: 64px;
letter-spacing: 1px;
}
.u-row {
& > div {
background-color: #2266FF;
border-radius: 50%;
text-align: center;
font-size: 22px;
font-weight: bold;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
& > span:first-child {
font-size: 30px;
color: #999999;;
line-height: 48px;
}
& > span:last-child {
font-size: 30px;
color: #343D65;
margin-left: 16px;
line-height: 48px;
}
.title {
width: 490px;
height: 112px;
display: flex;
align-items: center;
font-size: 32px;
color: #333333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.right {
font-size: 28px;
color: #1365DD;
display: flex;
align-items: center;
.arrow {
width: 16px;
height: 16px;
border-top: 3px solid #CCCCCC;
border-right: 3px solid #CCCCCC;
transform: rotate(45deg);
}
}
}
.item {
position: relative;
&:after {
width: 100%;
height: 1px;
background-color: rgba(216, 221, 230, 0.5);
content: "";
position: absolute;
left: 0;
bottom: 0;
}
}
& > span {
font-size: 32px;
color: #333333;
line-height: 48px;
letter-spacing: 1px;
display: inline-block;
}
.label {
height: 80px;
font-size: 32px;
color: #333333;
display: flex;
align-items: center;
margin-bottom: 16px;
& > em {
font-style: normal;
font-size: 32px;
color: #1365DD;
}
}
.file {
height: 128px;
background: #FFFFFF;
border-radius: 8px;
border: 1px solid #CCCCCC;
box-sizing: border-box;
padding: 0 16px;
margin-bottom: 32px;
& > .u-row {
height: 100%;
.left {
width: 476px;
display: flex;
align-items: center;
& > img {
flex-shrink: 0;
width: 96px;
height: 96px;
}
& > span {
font-size: 32px;
color: #333333;
display: inline-block;
line-height: 44px;
overflow: hidden;
text-overflow: ellipsis;
display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-line-clamp:2;
}
}
& > span {
font-size: 28px;
color: #999999;
}
}
}
.active {
background-color: #F3F6F9;
}
& > text {
width: 100%;
display: inline-block;
font-size: 30px;
color: #649EFD;
text-align: center;
}
.progress {
height: 12px;
background: #F2F4FC;
border-radius: 12px;
position: relative;
margin: 16px 0 64px 0;
.pro-active {
height: 12px;
background: #639EFD;
border-radius: 12px;
position: absolute;
left: 0;
top: 0;
}
}
em {
font-style: normal;
font-size: 28px;
color: #1365DD;
}
::v-deep .u-collapse {
position: relative;
&:after {
content: "";
width: 718px;
height: 1px;
background-color: rgba(216, 221, 230, 0.5);
position: absolute;
left: 0;
bottom: 0;
}
.u-collapse-head {
padding: 40px 0;
}
.u-collapse-content {
font-size: 32px;
color: #333333;
line-height: 48px;
letter-spacing: 1px;
}
}
}
::v-deep .u-content {
text-indent: 0!important;
font-size: 28px!important;
color: #333!important;
line-height: 40px!important;
}
.mar-t128 {
margin-top: 128px;
position: relative;
z-index: 2;
}
.footer {
width: 100%;
position: fixed;
bottom: 0;
left: 0;
background-color: #F4F5FA;
padding: 64px 64px 68px 64px;
z-index: 9;
.btn {
width: calc(100% - 128px);
line-height: 88px;
background: #026AF2;
border-radius: 44px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 34px;
color: #FFF;
text-align: center;
}
}
}
</style>

View File

@@ -0,0 +1,224 @@
<template>
<div class="finish">
<u-navbar back-icon-color="#000" :background="backgroundNavbar" :is-fixed="true" height="44" z-index="999">
</u-navbar>
<div class="header-content-bg">
<img src="https://cdn.sinoecare.com/i/2024/07/12/6690a1303d423.png" alt="">
</div>
<div class="card-content">
<div class="card">
<header>设置进度</header>
<u-gap height="120"></u-gap>
<u-slider v-model="form.percent" min="0" max="100" :use-slot="true">
<div class="wrap">
<div class="value" :style="{right:form.percent<30?'-50px':''}">{{ form.percent }}%</div>
<div class="btn" :style="{background:'url('+$cdn+ 'common/yuan.png)'}"></div>
</div>
</u-slider>
<u-gap height="70"></u-gap>
</div>
<div class="card">
<div class="label">
<em>*</em>
完成说明
</div>
<textarea placeholder="请输入说明" v-model.trim="form.remarks" :maxlength="1000"></textarea>
<u-gap height="28"></u-gap>
<u-row justify="between">
<text @click="form.remarks=''">清空内容</text>
<text>{{ form.remarks.length }}/1000</text>
</u-row>
<u-gap height="48"></u-gap>
</div>
</div>
<div class="footer" @click="submit">
<div class="btn">提交</div>
</div>
<u-modal v-model="show" content="提交后将无法撤回,您确定要执行此操作?" @confirm="handleConfirm"></u-modal>
<ai-back ref="aiBack"></ai-back>
</div>
</template>
<script>
export default {
name: "finish",
customNavigation: true,
data() {
return {
value: 0,
show: false,
form: {
percent: 0,
remarks: "",
taskCode: null,
},
backgroundNavbar: {
background: 'url(https://cdn.sinoecare.com/i/2024/07/12/6690a1309c7d3.png) no-repeat',
backgroundSize: 'cover',
},
barStyle: {
'width': '20px',
'height': '4px',
'border-radius': '3px',
'bottom': '-4px',
'background': '#026AF2'
},
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
}
},
onLoad(opt) {
this.form.taskCode = opt.taskCode
this.form.percent = opt.percent
},
methods: {
submit() {
if (!this.form.remarks) return this.$u.toast("请输入完成说明")
this.show = true
},
handleConfirm() {
this.$instance.post("/app/appworktaskprocess/addOrUpdate", {
...this.form
}).then(res => {
if (res.code == 0) {
this.$u.toast("提交成功")
setTimeout(() => {
uni.navigateBack({
delta: 1
})
}, 500)
}
})
}
}
}
</script>
<style lang="scss" scoped>
.finish {
min-height: 100%;
background-color: #F5F5F5;
padding-bottom: 140px;
.header-content-bg {
width: 100%;
position: fixed;
img {
width: 100%;
height: 592px;
}
}
.card-content {
position: relative;
z-index: 2;
padding-bottom: 200px;
}
.card {
width: calc(100% - 64px);
margin: 0 0 32px 32px;
background-color: #FFF;
box-sizing: border-box;
padding: 16px 32px;
border-radius: 16px;
header {
font-size: 32px;
font-weight: 600;
color: #333333;
line-height: 44px;
padding: 10px 0;
}
::v-deep .u-slider {
background: #F2F4FC !important;
border-radius: 12px !important;
.u-slider__gap {
height: 12px !important;
.u-slider__button-wrap {
top: 100% !important;
.wrap {
display: flex;
align-items: center;
.value {
width: 136px;
height: 64px;
background: #4F8DE7;
border-radius: 6px;
position: absolute;
top: -80px;
right: 50px;
font-size: 32px;
font-weight: 600;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
.btn {
width: 80px;
height: 80px;
background-size: 100% 100% !important;
}
}
}
}
}
.label {
height: 80px;
font-size: 32px;
color: #333333;
display: flex;
align-items: center;
& > em {
font-style: normal;
font-size: 32px;
color: #FF4466;
line-height: 44px;
}
}
textarea {
width: 100%;
}
.u-row {
& > text:first-child {
font-size: 28px;
color: #1365DD;
}
& > text:last-child {
font-size: 24px;
color: #999999;
}
}
}
.footer {
width: 100%;
position: fixed;
bottom: 0;
left: 0;
background-color: #F4F5FA;
padding: 64px 64px 68px 64px;
z-index: 9;
.btn {
width: calc(100% - 128px);
line-height: 88px;
background: #026AF2;
border-radius: 44px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 34px;
color: #FFF;
text-align: center;
}
}
}
</style>

View File

@@ -0,0 +1,219 @@
<template>
<div class="finish-detail">
<u-navbar back-icon-color="#000" title-color="#000" title-width="300" title-size="32"
:title-bold="true" :background="backgroundNavbar" :is-fixed="true" height="44" z-index="999">
</u-navbar>
<div class="header-content-bg">
<img src="https://cdn.sinoecare.com/i/2024/07/12/6690a1303d423.png" alt="">
</div>
<div class="card-content">
<div class="card">
<u-row justify="between">
<div class="left">
<u-avatar :src="detail.avatar" v-if="detail.avatar"></u-avatar>
<div class="avatar" v-else>{{detail.name && detail.name.substr(-2)}}</div>
<div class="info">
<div class="name">{{detail.name}}</div>
<div class="status">{{$dict.getLabel("workTaskRole",detail.taskRole)}}</div>
</div>
</div>
<!-- <div class="btn">-->
<!-- <img src="../static/tx.png" alt="">催办提醒-->
<!-- </div>-->
</u-row>
<u-gap height="32"></u-gap>
<u-row>
<div class="label">完成时间</div>
<div class="value">{{detail.finishTime}}</div>
</u-row>
<u-gap height="16"></u-gap>
<u-row>
<div class="label">逾期时间</div>
<div class="value" style="color: #FF4466">{{detail.overTimeStatus}}</div>
</u-row>
<u-gap height="30"></u-gap>
</div>
<div class="card" v-if="detail.processList && detail.processList.length">
<u-collapse v-for="(item,index) in detail.processList" :key="index">
<u-collapse-item :title="item.createDate && item.createDate.split(' ')[0]">
<template slot="info">
完成到<em>{{item.percent}}%</em>
</template>
{{item.remarks}}
</u-collapse-item>
</u-collapse>
</div>
</div>
<ai-back></ai-back>
</div>
</template>
<script>
export default {
name: "finishDetail",
customNavigation: true,
data() {
return {
id: null,
detail: {},
backgroundNavbar: {
background: 'url(https://cdn.sinoecare.com/i/2024/07/12/6690a1309c7d3.png) no-repeat',
backgroundSize: 'cover',
},
barStyle: {
'width': '20px',
'height': '4px',
'border-radius': '3px',
'bottom': '-4px',
'background': '#026AF2'
},
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
}
},
onLoad(opt) {
this.id = opt.id
this.$dict.load("workTaskRole").then(_=>this.getDetail())
},
methods: {
getDetail() {
this.$instance.post("/app/appworktaskuserinfo/queryDetailById", null, {
params: {
id: this.id
}
}).then(res => {
if (res && res.data) {
this.detail = res.data;
}
})
}
},
}
</script>
<style lang="scss" scoped>
.finish-detail {
min-height: 100%;
background-color: #F5F5F5;
.header-content-bg {
width: 100%;
position: fixed;
img {
width: 100%;
height: 592px;
}
}
.card-content {
position: relative;
z-index: 2;
padding-bottom: 200px;
}
.card {
width: calc(100% - 64px);
margin: 0 0 32px 32px;
background-color: #FFF;
box-sizing: border-box;
padding: 16px 32px;
border-radius: 16px;
.left {
display: flex;
align-items: center;
.avatar {
width: 80px;
height: 80px;
border-radius: 50%;
font-size: 28px;
font-weight: 500;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
background: #2266FF;
}
.info {
display: flex;
flex-direction: column;
margin-left: 16px;
.name {
font-size: 32px;
font-weight: 400;
color: #333333;
line-height: 44px;
}
.status {
font-size: 24px;
font-weight: 400;
color: #999999;
line-height: 34px;
}
}
}
.btn {
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
font-weight: 400;
color: #1365DD;
& > img {
width: 40px;
height: 40px;
}
}
.label {
font-size: 30px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999999;
line-height: 42px;
}
.value {
font-size: 30px;
font-weight: 400;
color: #343D65;
line-height: 48px;
}
em {
font-style: normal;
font-size: 28px;
color: #1365DD;
}
::v-deep .u-collapse {
position: relative;
&:after {
content: "";
width: 718px;
height: 1px;
background-color: rgba(216, 221, 230, 0.5);
position: absolute;
left: 0;
bottom: 0;
}
.u-collapse-head {
padding: 40px 0;
}
.u-collapse-content {
font-size: 32px;
color: #333333;
line-height: 48px;
letter-spacing: 1px;
}
}
}
}
</style>

View File

@@ -0,0 +1,396 @@
<template>
<div class="sub-detail">
<u-navbar back-icon-color="#000" title-color="#000" title-width="300" title-size="32"
:title-bold="true" :background="backgroundNavbar" :is-fixed="true" height="44" z-index="999">
</u-navbar>
<div class="header-content-bg">
<img src="https://cdn.sinoecare.com/i/2024/07/12/6690a1303d423.png" alt="">
</div>
<div class="card-content">
<div class="card">
<header>
<em>[子任务]</em>
{{detail.taskTitle}}
</header>
<u-gap height="16"></u-gap>
<u-row>
<span>任务类型</span>
<span>{{$dict.getLabel("workTaskType",detail.type)}}</span>
</u-row>
<u-gap height="8"></u-gap>
<u-row>
<span>开始时间</span>
<span>{{detail.createTime}}</span>
</u-row>
<u-gap height="8"></u-gap>
<u-row>
<span>截止时间</span>
<span>{{detail.lastTime}}</span>
</u-row>
<u-gap height="8"></u-gap>
<u-row>
<span>剩余时间</span>
<span style="color:#1365DD">{{detail.overTimeStatus}}</span>
</u-row>
<u-gap height="8"></u-gap>
<u-row>
<span>任务状态</span>
<span style="color:#1365DD">{{$dict.getLabel("workTaskDoStatus",detail.status)}}</span>
</u-row>
<u-gap height="16"></u-gap>
</div>
<div class="card" style="padding-top: 0">
<div class="label">任务说明</div>
<u-read-more close-text="展开" color="#999999" show-height="300">
<span>{{detail.taskDescription}}</span>
</u-read-more>
</div>
<div class="card">
<div class="label">当前进度</div>
<text>已完成{{detail.percent}}%</text>
<div class="progress">
<div class="pro-active" :style="{width:detail.percent + '%'}"></div>
</div>
</div>
<div class="card" style="padding-top: 0" v-if="detail.userInfoList && detail.userInfoList.length">
<div class="label title">任务完成进度(<i>{{count}}</i>/{{detail.userInfoList.length}})</div>
<div class="flex" v-for="(item,index) in detail.userInfoList" :key="index" @click="finishDetail(item)">
<div class="name-img">{{item.userName && item.userName.substr(-2)}}</div>
<div class="item flex-item">
<div class="name">{{item.userName}}</div>
<div class="right">
<span>已完成{{item.percent}}%</span>
<label class="arrow"></label>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="footer" v-if="detail.status==0">
<div>
<img :src="$cdn + 'common/gb.png'" alt="" @click="show=true,content='确定是否要关闭任务?',idx=0">关闭任务
</div>
<div>
<img :src="$cdn + 'common/tx.png'" alt="" @click="show=true,content='该操作会向所有执行人发送提醒,您确定发送吗?',idx=1">一键催办
</div>
</div> -->
<div class="footer" v-if="detail.status==0">
<div class="btn">
<div class="flex trans" @click="show=true,content='确定是否要关闭任务?',idx=0">关闭任务</div>
<div class="flex confirm" @click="show=true,content='该操作会向所有执行人发送提醒,您确定发送吗?',idx=1">
<div>一键催办</div>
</div>
</div>
</div>
<u-modal v-model="show" :content="content" @confirm="confirm"></u-modal>
<ai-back></ai-back>
</div>
</template>
<script>
export default {
name: "subDetail",
customNavigation: true,
data() {
return {
id: null,
detail: {},
show: false,
content: "",
idx: null,
count: 0,
backgroundNavbar: {
background: 'url(https://cdn.sinoecare.com/i/2024/07/12/6690a1309c7d3.png) no-repeat',
backgroundSize: 'cover',
},
barStyle: {
'width': '20px',
'height': '4px',
'border-radius': '3px',
'bottom': '-4px',
'background': '#026AF2'
},
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
}
},
onLoad(opt) {
this.id = opt.id
this.$dict.load("workTaskType", "workTaskDoStatus").then(_ => this.getDetail())
},
methods: {
finishDetail({id}){
uni.navigateTo({
url:"./finishDetail?id=" + id
})
},
confirm() {
this.$instance.post(this.idx == 0 ? "/app/appworktaskinfo/stopOrFinish" : "/app/appworktaskuserinfo/sendMesage", null, {
params: {
id: this.id,
status: this.idx == 0 ? 2 : null
}
}).then(res => {
if (res.code == 0) {
this.$u.toast(this.idx == 0 ? "关闭成功" : "催办成功")
this.getDetail()
}
})
},
getDetail() {
this.$instance.post("/app/appworktaskinfo/queryDetailById", null, {
params: {
id: this.id
}
}).then(res => {
if (res && res.data) {
this.detail = res.data
this.count = res.data?.userInfoList?.reduce((pre,cur)=>{
return pre + (cur.percent==100 ? 1 : 0)
},0)
}
})
}
},
}
</script>
<style lang="scss" scoped>
.sub-detail {
min-height: 100%;
overflow-x: hidden;
background-color: #F5F5F5;
padding-bottom: 140px;
.header-content-bg {
width: 100%;
position: fixed;
img {
width: 100%;
height: 592px;
}
}
.card-content {
position: relative;
z-index: 2;
padding-bottom: 200px;
}
.card {
background-color: #FFF;
padding: 32px 34px;
box-sizing: border-box;
margin: 0 0 16px 32px;
width: calc(100% - 64px);
border-radius: 16px;
header {
font-size: 40px;
font-weight: 600;
color: #333333;
line-height: 64px;
letter-spacing: 1px;
& > em {
font-style: normal;
color: #1365DD;
font-size: 40px;
}
}
.flex {
display: flex;
margin-left: 16px;
position: relative;
.item {
height: 112px;
&:after {
width: 622px;
height: 2px;
content: "";
position: absolute;
left: 0;
bottom: 0;
background-color: rgba(216, 221, 230, 0.5);
}
}
.name-img {
width: 80px;
height: 80px;
background-color: #4E8EEE;
border-radius: 50%;
text-align: center;
font-size: 28px;
font-weight: bold;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
& > span:first-child {
font-size: 30px;
color: #999999;;
line-height: 48px;
}
& > span:last-child {
font-size: 30px;
color: #343D65;
margin-left: 16px;
line-height: 48px;
}
.name {
font-size: 32px;
font-weight: 400;
color: #333333;
line-height: 120px;
margin-left: 16px;
}
.title {
width: 490px;
height: 112px;
display: flex;
align-items: center;
font-size: 32px;
color: #333333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.right {
font-size: 28px;
color: #1365DD;
display: flex;
align-items: center;
.arrow {
width: 16px;
height: 16px;
border-top: 3px solid #CCCCCC;
border-right: 3px solid #CCCCCC;
transform: rotate(45deg);
}
}
}
.flex-item {
width: calc(100% - 96px);
display: flex;
justify-content: space-between;
border-bottom: 1px solid #ddd;
}
& > text {
width: 100%;
display: inline-block;
font-size: 30px;
color: #649EFD;
text-align: center;
}
.progress {
height: 12px;
background: #F2F4FC;
border-radius: 12px;
position: relative;
margin: 16px 0 80px 0;
.pro-active {
height: 12px;
background: #639EFD;
border-radius: 12px;
position: absolute;
left: 0;
top: 0;
}
}
& > span {
font-size: 32px;
color: #333333;
line-height: 48px;
letter-spacing: 1px;
display: inline-block;
}
.label {
height: 80px;
font-size: 32px;
color: #333333;
display: flex;
align-items: center;
margin-bottom: 16px;
& > em {
font-style: normal;
font-size: 32px;
color: #1365DD;
}
& > i {
font-style: normal;
font-size: 32px;
color: #2EA222;
}
}
.title {
font-weight: bold;
height: 96px;
border-bottom: 1px solid rgba(216, 221, 230, 0.5);
}
}
.footer {
padding: 32px 32px 68px;
width: 100%;
box-sizing: border-box;
background-color: #F4F5FA;
position: fixed;
bottom: 0;
left: 0;
z-index: 99;
.btn {
width: 100%;
display: flex;
padding: 30px 28px;
box-sizing: border-box;
background-color: #fff;
border-radius: 16px;
.flex {
flex: 1;
line-height: 88px;
font-family: PingFangSC-Regular;
font-size: 34px;
box-sizing: border-box;
}
.trans {
color: #222;
border-right: 1px solid #ddd;
}
.confirm {
width: calc(50% - 32px);
margin-left: 32px;
div {
width: 100%;
background-color: #026AF2;
color: #fff;
border-radius: 44px;
text-align: center;
}
}
}
}
}
</style>