|
@@ -0,0 +1,236 @@
|
|
|
+<template>
|
|
|
+ <view class="activity-detail">
|
|
|
+ <!-- 路演 -->
|
|
|
+ <block v-if="info.RsCalendarItem.ActivityType=='路演'">
|
|
|
+ <view class="section white-wrap">
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">活动时间:</view>
|
|
|
+ <view>{{info.RsCalendarResearcherItem.StartDate}}({{info.RsCalendarResearcherItem.StartWeek}}) {{info.RsCalendarResearcherItem.StartTime}}-{{info.RsCalendarResearcherItem.EndTime}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">活动类型:</view>
|
|
|
+ <view>{{info.RsCalendarItem.ActivityType}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">路演形式:</view>
|
|
|
+ <view>{{info.RsCalendarItem.RoadshowType}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">路演平台:</view>
|
|
|
+ <view>{{info.RsCalendarItem.RoadshowPlatform}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">客户名称:</view>
|
|
|
+ <view>{{info.CompanyDetail.CompanyName}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="section white-wrap">
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">客户状态:</view>
|
|
|
+ <view>{{info.CompanyDetail.Status}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">所属行业:</view>
|
|
|
+ <view>{{info.CompanyDetail.IndustryName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">开通品种:</view>
|
|
|
+ <view>{{info.CompanyDetail.PermissionName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">累计阅读报告次数:</view>
|
|
|
+ <view>{{info.CompanyDetail.ReportReadTotal}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="line"></view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">提交销售:</view>
|
|
|
+ <view>{{info.RsCalendarItem.SysUserRealName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">提交时间:</view>
|
|
|
+ <view>{{info.RsCalendarItem.CreateTime}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="section white-wrap" v-if="info.RsCalendarResearcherItem.Status==2||info.RsCalendarResearcherItem.Status==3">
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">审批时间:</view>
|
|
|
+ <view>{{info.RsCalendarResearcherItem.Status==2?info.RsCalendarResearcherItem.ApproveTime:info.RsCalendarResearcherItem.RefuseTime}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex" v-if="info.RsCalendarResearcherItem.Status==3">
|
|
|
+ <view class="label">拒绝理由:</view>
|
|
|
+ <view>{{info.RsCalendarResearcherItem.RefuseReason}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <block v-else>
|
|
|
+ <view class="section white-wrap">
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">活动时间:</view>
|
|
|
+ <view>{{info.RsCalendarResearcherItem.StartDate}}({{info.RsCalendarResearcherItem.StartWeek}}) {{info.RsCalendarResearcherItem.StartTime}}-{{info.RsCalendarResearcherItem.EndTime}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">活动类型:</view>
|
|
|
+ <view>{{info.RsCalendarItem.ActivityType}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">会议形式:</view>
|
|
|
+ <view>{{info.RsCalendarItem.RoadshowType}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">会议城市:</view>
|
|
|
+ <view>{{info.RsCalendarItem.Province}}{{info.RsCalendarItem.City}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">会议主题:</view>
|
|
|
+ <view>{{info.RsCalendarItem.Theme}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">合作方名称:</view>
|
|
|
+ <view>{{info.RsCalendarItem.CooperationName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">合作方名称:</view>
|
|
|
+ <view>{{info.RsCalendarItem.CooperationName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">提交销售:</view>
|
|
|
+ <view>{{info.RsCalendarItem.SysUserRealName}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">提交时间:</view>
|
|
|
+ <view>{{info.RsCalendarItem.CreateTime}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="section white-wrap" v-if="info.RsCalendarResearcherItem.Status==2||info.RsCalendarResearcherItem.Status==3">
|
|
|
+ <view class="info-item flex">
|
|
|
+ <view class="label">审批时间:</view>
|
|
|
+ <view>{{info.RsCalendarResearcherItem.Status==2?info.RsCalendarResearcherItem.ApproveTime:info.RsCalendarResearcherItem.RefuseTime}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item flex" v-if="info.RsCalendarResearcherItem.Status==3">
|
|
|
+ <view class="label">拒绝理由:</view>
|
|
|
+ <view>{{info.RsCalendarResearcherItem.RefuseReason}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+
|
|
|
+ <!-- 审批按钮 -->
|
|
|
+ <view class="fix-bottom-wrap btns-wrap flex" v-if="info.RsCalendarResearcherItem.Status==1">
|
|
|
+ <button class="refuse-btn" @click="handleRefuse">拒绝</button>
|
|
|
+ <button class="pass-btn" @click="handlePass">接受</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import {apiRoadShowInfo,apiRoadShowApproved} from '@/api/approve/activity.js'
|
|
|
+export default {
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ RsCalendarResearcherId:null,//活动研究员id
|
|
|
+ RsCalendarId:null,//路演活动id
|
|
|
+ info:null,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad(options) {
|
|
|
+ this.RsCalendarResearcherId=options.RsCalendarResearcherId
|
|
|
+ this.RsCalendarId=options.RsCalendarId
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+ // this.getDetail()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 获取详情
|
|
|
+ async getDetail(){
|
|
|
+ const res=await apiRoadShowInfo({
|
|
|
+ RsCalendarId:this.RsCalendarId,
|
|
|
+ RsCalendarResearcherId:this.RsCalendarResearcherId
|
|
|
+ })
|
|
|
+ if(res.code===200){
|
|
|
+ this.info=res.data
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ handlePass(){
|
|
|
+ uni.showModal({
|
|
|
+ content: '接受申请后会加入您的日历,请确认!',
|
|
|
+ showCancel: true,
|
|
|
+ cancelColor:'#A9AFB8',
|
|
|
+ confirmColor:'#3385FF',
|
|
|
+ success: ({ confirm, cancel }) => {
|
|
|
+ if (confirm) {
|
|
|
+ console.log('用户点击确定');
|
|
|
+ this.passApprove()
|
|
|
+ } else if (cancel) {
|
|
|
+ console.log('用户点击取消');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ // 通过申请
|
|
|
+ async passApprove(){
|
|
|
+ const res=await apiRoadShowApproved({
|
|
|
+ RsCalendarId:this.RsCalendarId,
|
|
|
+ RsCalendarResearcherId:this.RsCalendarResearcherId
|
|
|
+ })
|
|
|
+ if(res.code===200){
|
|
|
+ this.getDetail()
|
|
|
+ uni.$emit('activityApproveListUpdate',{
|
|
|
+ RsCalendarId:this.RsCalendarId,
|
|
|
+ RsCalendarResearcherId:this.RsCalendarResearcherId
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ handleRefuse(){
|
|
|
+ uni.navigateTo({
|
|
|
+ url:`./reason?RsCalendarId=${this.RsCalendarId}&RsCalendarResearcherId=${this.RsCalendarResearcherId}`
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.activity-detail{
|
|
|
+ .section{
|
|
|
+ margin-bottom: 14rpx;
|
|
|
+ padding: 33rpx 34rpx;
|
|
|
+ .line{
|
|
|
+ width: 100%;
|
|
|
+ height: 0;
|
|
|
+ border-top: 1px dashed #707070;
|
|
|
+ margin: 30rpx 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .info-item{
|
|
|
+ .label{
|
|
|
+ flex-shrink: 0;
|
|
|
+ color: #666;
|
|
|
+ margin-right: 20rpx;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .btns-wrap {
|
|
|
+ justify-content: center;
|
|
|
+ button {
|
|
|
+ width: 260rpx;
|
|
|
+ height: 70rpx;
|
|
|
+ border-radius: 28px;
|
|
|
+ border: none;
|
|
|
+ margin: 0 15px;
|
|
|
+ font-size: 15px;
|
|
|
+ color: #fff;
|
|
|
+ line-height: 70rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .pass-btn {
|
|
|
+ background-color: #5890fb;
|
|
|
+ }
|
|
|
+
|
|
|
+ .refuse-btn {
|
|
|
+ background-color: #f55768;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|