hls_crm/pagesA/crm/salesTarget/history_detail.vue

260 lines
5.6 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view>
<view class="target_att">
<view>目标年份<text>{{info.year}}</text></view>
<view>目标类型<text>{{info.status == 1 ? '成交金额' : '回款金额'}}</text></view>
</view>
<view class="de_warp">
<view class="de_li">
<view class="de_label">年度目标</view>
<view class="de_mondy">{{info.yeartarget}}</view>
</view>
<view class="de_li">
<view class="de_label">1</view>
<view class="de_mondy">{{info.january}}</view>
</view>
<view class="de_li">
<view class="de_label">2</view>
<view class="de_mondy">{{info.february}}</view>
</view>
<view class="de_li">
<view class="de_label">3</view>
<view class="de_mondy">{{info.march}}</view>
</view>
<view class="de_li">
<view class="de_label">4</view>
<view class="de_mondy">{{info.april}}</view>
</view>
<view class="de_li">
<view class="de_label">5</view>
<view class="de_mondy">{{info.may}}</view>
</view>
<view class="de_li">
<view class="de_label">6</view>
<view class="de_mondy">{{info.june}}</view>
</view>
<view class="de_li">
<view class="de_label">7</view>
<view class="de_mondy">{{info.july}}</view>
</view>
<view class="de_li">
<view class="de_label">8</view>
<view class="de_mondy">{{info.august}}</view>
</view>
<view class="de_li">
<view class="de_label">9</view>
<view class="de_mondy">{{info.september}}</view>
</view>
<view class="de_li">
<view class="de_label">10</view>
<view class="de_mondy">{{info.october}}</view>
</view>
<view class="de_li">
<view class="de_label">11</view>
<view class="de_mondy">{{info.november}}</view>
</view>
<view class="de_li">
<view class="de_label">12</view>
<view class="de_mondy">{{info.december}}</view>
</view>
<!-- 审批流程 -->
<approval-status :process="payment_approval"></approval-status>
</view>
<view style="height:100rpx"></view>
<view class="botbox" v-if="payment_approval.is_check == 1">
<view class="botbtn" @click="toPass">通过</view>
<view class="botbtn firbg" @click="toRefuse">拒绝</view>
</view>
</view>
</template>
<script>
import { netGetRecordDetail, } from '@/api/kehu.js'
import { netApprovalDetail } from '@/api/index'
import { BASE_IMG_URL } from '@/util/api.js'
import approvalStatus from '@/components/approvalStatus.vue'
export default {
components:{
approvalStatus
},
data(){
return{
id:'',
info:{},
payment_approval:{}, //审批流程
BASE_IMG_URL:BASE_IMG_URL,
}
},
onLoad(options){
this.id = options.id
},
onShow(){
this.getDetail()
//获取 审批 流程
this.getApprovalList()
},
methods:{
getDetail() {
netGetRecordDetail({id:this.id}).then(res=>{
this.info = res.data
})
},
getApprovalList() {
let params = {
type: 'achievement',
relation_id: this.id
}
netApprovalDetail(params).then(res=>{
this.payment_approval = res.data
})
},
//通过
toPass() {
uni.navigateTo({ //status 1成功 2失败
url:'/pages/examine/examine?id='+this.id+'&type=achievement&status=1'
})
},
//拒绝
toRefuse() {
uni.navigateTo({ //status 1成功 2失败
url:'/pages/examine/examine?id='+this.id+'&type=achievement&status=2'
})
}
}
}
</script>
<style lang="scss" scoped>
.de_warp{
width:702rpx;
background:#fff;
border-radius: 10rpx;
margin:20rpx auto;
padding:0rpx 30rpx;
box-sizing: border-box;
.de_li{
display: flex;;
justify-content: space-between;
align-items: center;
padding:30rpx 0;
border-bottom:1rpx solid #f5f5f5;
font-size:26rpx;
color:#333;
.de_label{
flex-shrink: 0;
}
.remind_li{
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
.re_li{
.re_img{
width:80rpx;
height:80rpx;
border-radius: 50%;
margin-bottom:15rpx;
}
.re_name{
font-size:24rpx;
color:#333;
text-align: center;
}
}
}
}
}
.basic_main {
display: flex;
justify-content: space-between;
background-color: #fff;
height: 90rpx;
line-height: 90rpx;
}
.operation_record {
background:#fff;
padding: 20rpx 30rpx;
.record_item {
display: flex;
justify-content: space-between;
margin-bottom: 20rpx;
padding-bottom:20rpx;
border-bottom:1rpx solid #EAEAEA;
margin-bottom:20rpx;
&:last-child{
border-bottom:none;
}
image {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
flex-shrink: 0;
}
.record_info {
flex: 1;
margin-left: 25rpx;
line-height: 40rpx;
font-size: 28rpx;
.info_top{
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom:10rpx;
}
.shenhetext{
font-size:26rpx;
color:#666;
line-height: 34rpx;
}
}
.record_line {
position: absolute;
top: -102rpx;
left: -26rpx;
height: 105rpx;
border-left: 4rpx dotted #dedede;
}
}
}
// 目标时间,目标类型模块
.target_att {
display: flex;
padding-left: 30rpx;
height: 80rpx;
line-height: 80rpx;
view {
color: #999;
margin-right:20rpx;
text {
color: #666;
margin-right: 10rpx;
}
}
}
.botbox{
position: fixed;
left:0;
bottom:0;
width:750rpx;
height:100rpx;
display: flex;
justify-content: space-around;
align-items: center;
background:#fff;
border-top:1rpx solid #f5f5f5;
.botbtn{
width:300rpx;
height:70rpx;
color:#fff;
text-align: center;
line-height: 70rpx;
font-size:26rpx;
border-radius: 35rpx;
background:$uni-text-color;
}
.firbg{
background:#ff7800;
}
}
</style>