Files
dvcp_v2_wxcp_app/src/apps/AppIntegralAudit/detail.vue

322 lines
7.3 KiB
Vue
Raw Normal View History

2022-02-14 15:02:14 +08:00
<template>
2022-02-15 09:09:50 +08:00
<div class="detail">
<div class="detail-list">
2022-02-15 10:55:42 +08:00
<div class="detail-info">
<div class="detail-name">申请人:<span>李毅</span></div>
<div class="detail-type">新冠疫苗接种</div>
</div>
<div class="detail-area">
<div class="time">2020-05-06 13:45</div>
<div class="address">
2022-02-15 18:42:21 +08:00
<img src="./img/address.png" alt="">
2022-02-15 09:09:50 +08:00
<div>新港镇三联村</div>
</div>
</div>
2022-02-15 10:55:42 +08:00
<div class="detail-text">
2022-02-15 09:09:50 +08:00
经村两委及村篮球队青年商讨决定我村赴黎平参加百村杯篮球赛经费分两阶段分发第一阶段为小组循环赛第二阶段为淘汰赛
第一阶段费用预计一万元整其中包括队员球服两套住宿饮食
</div>
2022-02-15 10:55:42 +08:00
<div class="detail-img">
2022-02-15 09:09:50 +08:00
<img :src="item.url" alt="" v-for="(item, i) in data.files" :key="i" @click="previewImage(data.files, item.url)" />
</div>
</div>
2022-02-15 10:55:42 +08:00
<!-- 审核通过不通过 -->
2022-02-15 14:38:58 +08:00
<div class="integral" v-if="admin === 1">
<div class="result">
<div>积分审核结果</div>
<div class="options">
<div class="opts-item" :class="!opts? 'current': ''" @click="opts = 0">通过</div>
<div class="opts-item" :class="opts? 'current': ''" @click="opts = 1">不通过</div>
</div>
</div>
<!-- 通过 -->
<div class="integral-select" v-if="opts === 0">
<div class="integral-item">
<div>积分类别</div>
<div>
<span>请选择</span>
<u-icon name="arrow-right" color="#E1E2E3"/>
</div>
</div>
<div class="integral-item">
<div>积分事项</div>
<div>
<span>请选择</span>
<u-icon name="arrow-right" color="#E1E2E3"/>
</div>
</div>
<div class="integral-item last">
<div>积分事项</div>
<div style="color: #E6736E">+20</div>
</div>
</div>
<!-- 不通过 -->
<div class="reject" v-else>
<div>不通过理由</div>
<textarea class="reasons" placeholder="请输入不通过理由" :maxlength="200" auto-height height="100"
v-model="reason"></textarea>
<div class="tips">{{ reason.length }}/200</div>
</div>
2022-02-15 10:55:42 +08:00
2022-02-15 14:38:58 +08:00
<u-select :list="getList" value-name="value" label-name="label"
v-model="isShowType" @confirm="answerChange"></u-select>
<u-select :list="getList" value-name="dictValue" label-name="dictName"
v-model="isShowOption" @confirm="pointTypeChange"></u-select>
2022-02-15 10:55:42 +08:00
</div>
<!-- 只读通过不通过 -->
2022-02-15 14:38:58 +08:00
<div class="readOnly" v-else>
2022-02-15 10:55:42 +08:00
<div class="item">
<div>积分审核</div>
<div>通过</div>
</div>
<!-- 通过 -->
<div v-if="nopass === 0">
<div class="item">
<div>积分类别</div>
<div>乡村建设类</div>
</div>
<div class="item">
<div>积分事项</div>
<div>多字段显示</div>
</div>
<div class="item">
<div>积分方式</div>
2022-02-15 14:38:58 +08:00
<div style="color: #E6736E;">+20</div>
2022-02-15 10:55:42 +08:00
</div>
</div>
<!-- 不通过 -->
<div v-else>
<div class="item nopass">
<div>不通过的理由</div>
<div class="textarea">我村赴黎平参加百村杯篮球赛经费分两阶段分发 第一阶段为小组循环赛第二阶段为淘汰赛第一 其中包括队员球服两套住宿饮食</div>
</div>
</div>
<div class="item">
<div>审核人</div>
<div>李维民</div>
</div>
<div class="item last">
<div>审核时间</div>
<div>2022-02-18 18:16:27</div>
</div>
</div>
<div style="height: 56px"></div>
2022-02-15 14:38:58 +08:00
<div class="saveBtn" v-if="admin === 1">保存</div>
2022-02-14 15:02:14 +08:00
</div>
</template>
<script>
export default {
name: 'detail',
data () {
return {
2022-02-15 09:09:50 +08:00
data: {
2022-02-15 10:55:42 +08:00
files: [],
},
2022-02-15 14:38:58 +08:00
nopass: 1,
admin: 1,
opts: 0,
isShowType: false,
isShowOption: false,
getList: [],
reason: ''
2022-02-14 15:02:14 +08:00
}
},
methods: {
2022-02-15 09:09:50 +08:00
previewImage() {}
2022-02-14 15:02:14 +08:00
},
onShow() {
2022-02-14 17:31:52 +08:00
document.title = '积分审核'
2022-02-14 15:02:14 +08:00
},
onLoad() {
2022-02-14 17:31:52 +08:00
// this.$dict.load('yesOrNo')
2022-02-14 15:02:14 +08:00
},
}
</script>
<style lang="scss" scoped>
2022-02-15 09:09:50 +08:00
.detail {
2022-02-15 10:55:42 +08:00
.detail-list {
padding: 20px 30px;
box-sizing: border-box;
background-color: #FFFFFF;
margin-bottom: 16px;
.detail-info {
display: flex;
justify-content: space-between;
height: 50px;
line-height: 50px;
.detail-name {
font-size: 30px;
font-weight: 600;
color: #333333;
}
.detail-type {
height: 50px;
line-height: 50px;
color: #135AB8;
font-size: 24px;
background-color: #e6edf7;
padding: 0 25px;
border-radius: 16px;
}
}
.detail-area {
display: flex;
color: #999999;
font-size: 22px;
2022-02-15 18:42:21 +08:00
margin: 15px 0;
2022-02-15 10:55:42 +08:00
.address {
display: flex;
margin-left: 30px;
2022-02-15 18:42:21 +08:00
img {
width: 32px;
height: 32px;
2022-02-15 10:55:42 +08:00
}
}
}
.detail-text {
color: #333333;
font-size: 30px;
}
.detail-img {
img {
2022-02-15 09:09:50 +08:00
width: 220px;
height: 220px;
margin-right: 8px;
2022-02-15 10:55:42 +08:00
}
img:nth-child(3n) {
margin-right: 0;
}
}
}
2022-02-15 14:38:58 +08:00
.integral {
font-size: 32px;
.result {
padding: 20px 30px;
box-sizing: border-box;
background-color: #FFFFFF;
border-bottom: 1px solid #D8DDE6;
.options {
display: flex;
justify-content: space-between;
.opts-item {
width: 45%;
height: 112px;
line-height: 112px;
background: #F5F5F5;
text-align: center;
margin-top: 30px;
border-radius: 6px;
}
}
}
.current {
color: #1174fe;
background: #e7f1fe !important;
position: relative;
}
.integral-select {
padding: 0px 30px;
box-sizing: border-box;
background: #FFFFFF;
.integral-item {
display: flex;
justify-content: space-between;
padding: 34px 0;
border-bottom: 1px solid #D8DDE6;
}
.integral-item:last-child {
border-bottom: none;
}
}
.reject {
padding: 30px 30px;
background: #FFFFFF;
// height: 288px;
.reasons {
margin-top: 30px;
width: 100%;
}
.tips {
margin-top: 30px;
text-align: right;
font-size: 30px;
color: #999;
}
}
}
2022-02-15 10:55:42 +08:00
.readOnly {
padding: 20px 30px;
box-sizing: border-box;
2022-02-15 14:38:58 +08:00
background: #FFFFFF;
2022-02-15 10:55:42 +08:00
.item {
display: flex;
justify-content: space-between;
padding: 30px 0;
font-size: 32px;
color: #333333;
border-bottom: 1px solid #D8DDE6;
.textarea {
margin-top: 30px;
color: #999999;
}
2022-02-15 09:09:50 +08:00
}
2022-02-15 10:55:42 +08:00
.nopass {
flex-direction: column;
border-bottom: 1px solid #D8DDE6;
}
.last {
border-bottom: none;
2022-02-15 09:09:50 +08:00
}
2022-02-15 10:55:42 +08:00
}
2022-02-15 14:38:58 +08:00
2022-02-15 10:55:42 +08:00
.saveBtn {
position: fixed;
bottom: 0;
height: 112px;
width: 100%;
line-height: 112px;
background-color: #3975C6;
font-size: 32px;
color: #FFFFFF;
text-align: center;
}
2022-02-15 09:09:50 +08:00
}
2022-02-14 15:02:14 +08:00
</style>