123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- <template>
- <view class="detail">
- <!-- 主体 -->
- <view class="deboxs">
- <view class="bghbox"></view>
- <view class="dbox fmt30">
- <view class="dtit">{{datainfo.clueName}}</view>
- <view class="titinf">
- <!-- <view class="txt"><text>项目线索名称</text>{{datainfo.clueName}}</view> -->
- <view class="txt"><text>拟投资额</text>{{datainfo.investmentAmount}}万元</view>
- <view class="txt"><text>联系人</text>{{datainfo.contactsName}}</view>
- <view class="txt"><text>联系方式</text>{{datainfo.contactsPhone}}</view>
- <view class="txt"><text>录入时间</text>{{datainfo.publishTime}}</view>
- <view class="txt"><text>状态</text>{{typeFormat(datainfo.type,xsztlist)}}</view>
- <!-- <view class="txt"><text>备注</text>{{datainfo.remark}}</view> -->
- </view>
- </view>
- <view class="dbox">
- <view class="titbox mb14">
- <view class="tit flexc">
- <image :src="titimg"></image>
- <view>内容</view>
- </view>
- </view>
- <view class="txtbox" :class="zheList[0].zheflag?'nact':'act'">
- <rich-text :nodes="datainfo.contactsContent"></rich-text>
- </view>
- <view class="zhebox" :class="zheList[0].zheflag?'':'act'" @click="getZheFn(0)">
- <image :src="upsimg"></image>
- <view>{{zheList[0].zheflag?'展开信息':'折叠信息'}}</view>
- </view>
-
- </view>
- <view class="fbtns" style="flex-wrap: wrap;">
- <view class="btn btn3" @click="getDelFn" v-if="checkPermi(['zx:investment:remove'])">删除</view>
- <view class="btn btn1" @click="getEditFn" v-if="checkPermi(['zx:investment:edit'])">修改</view>
- </view>
-
- </view>
- <pop-up :type='ptype' :qjlxlist="qjlxlist" @getClose="getClose" @getupSubmit="getupSubmit"></pop-up>
- </view>
- </template>
- <script>
- import config from '@/config'
- const baseUrl = config.baseUrl
- import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
- import popUp from "@/work/components/popup/popup.vue"
- import noData from "@/components/nodata/nodata.vue"
- import {getDeptTree} from"@/api/mine/mine.js"
- import { selectValue,selectValuetext } from '@/utils/common.js';
- import {getinvestmentDetailFn,getinvestmentDelFn,getinvestmentshlFn} from "@/api/mine/meeting.js"
- import {getDictionaryFn} from "@/api/mine/register.js"
- export default{
- components:{popUp,noData},
- data(){
- return{
- bgimg:require("@/static/images/bg.png"),
- fjimg:require("@/work/static/images/fjimg.png"),
- filelist:[],
-
- tabidx:5,
- titimg:require("@/work/static/images/titbg.png"),
- upsimg:require("@/work/static/images/ups.png"),
- zheList:[{val:0,zheflag:true,moreflag:true},],
- ptype:'',
- datainfo:{},
- tary:'',
- hdlxlist:[],
- qjlxlist:[],
- xsztlist:[],
- type:'',
- dfinfo:{}
- }
- },
- onUnload(){
- uni.$off('refreshdetail')
- },
- onLoad(e) {
- this.id=e.id;
- this.type=e.pt;
- this.getDetail()
- this.init()
- uni.$on('refreshdetail', (e) => {
- this.getDetail()
- })
- },
- methods:{
- checkPermi, checkRole,
- kaType(ite){
- if(ite){
- var newArr=ite.split(',')
- var actions=[];
- var datas=this.matterList;
- newArr.forEach(ite=>{
- Object.keys(datas).some((key) => {
- if (datas[key].value == ('' + ite)) {
- actions.push(datas[key].label);
- return true;
- }
- })
- })
- return actions.join(' ')
- }
- },
- typeFormat(ite,list){
- return selectValue(list, ite);
- },
- typeFormattext(ite,list){
- return selectValuetext(list, ite);
- },
- init(){
- // 线索状态
- getDictionaryFn('investment_type').then(res=>{
- if(res.code==200&&res.data.length){
- this.xsztlist = res.data.map(v => {
- return {
- label: v.dictLabel,
- value:v.dictValue
- }
- })
- }
- })
- },
- getupSubmit(e){
- var that=this;
- var type=this.ptype;
- var params=JSON.parse(JSON.stringify(e))
- params.activityId=this.id
- getzxActivityReplyFn(params).then(res=>{
- if(res.code==200){
- this.$toast("回复成功");
- setTimeout(function(){
- uni.$emit('refreshlist')
- that.ptype='';
- that.getDetail()
- },1200)
- }
- })
- },
- getEditFn(){
- this.$tab.navigateTo('/work/pages/meeting/addzsyz?type=edit&id='+this.id)
- },
- getClose(){
- this.ptype=""
- },
- getScfkFn(type){
- this.ptype=type
- },
- getZheFn(idx){
- this.zheList[idx].zheflag=!this.zheList[idx].zheflag
- },
- getDelFn(){
- var that=this;
- uni.showModal({
- title: '确认删除',
- content: "是否确认删除该线索",
- cancelText: '取消',
- confirmText: '确认',
- success: function(res) {
- if (res.confirm) {
- getinvestmentDelFn(that.id).then(res=>{
- if(res.code==200){
- that.$toast('删除成功')
- uni.$emit("refreshlist")
- setTimeout(function(){
- uni.navigateBack({
- delta: 1 //返回层数,2则上上页
- });
- },1200)
- }
- })
- } else if (res.cancel) {
- // console.log('用户点击取消');
- }
- }
- });
- },
- getDetail(){
- var params={
- investmentId:this.id
- }
- // if(this.type=='zsyz'){
- // params.userId=this.userId
- // }
- getinvestmentDetailFn(this.id).then(res=>{
- if(res.code==200){
- this.datainfo=res.data;
- }
- })
- },
- }
- }
- </script>
- <style scoped lang="scss">
- .detail{display: flex;flex-direction: column;height: 100vh;}
- .deboxs{flex:1;overflow: auto;padding-bottom: 30rpx;
- .bghbox{height: 80rpx;background-color: $com-cd3;}
- .dbox{background: #FFFFFF;border-radius: 10rpx;margin: 0 24rpx 24rpx;padding: 36rpx 24rpx 24rpx;
- .dtit{font-weight: bold;font-size: 15px;color: #222327;margin-bottom: 48rpx;
- text{color: #E70000;}
- }
- .titbox{
- .tit{
- image{width: 32rpx;height: 18rpx;margin-right: 10rpx;}
- view{font-weight: bold;font-size: 32rpx;color: #222327;}
- }
- }
- .titinf{display: flex;flex-wrap: wrap;flex-direction: column;
- &.nact{height: 0;overflow: hidden;}
- &.act{height: auto;}
- .txt{font-weight: 500;font-size: 26rpx;margin-bottom: 20rpx;color: #222327;display: flex;align-items: flex-start;wi
- &.nact{height: 200rpx;overflow: hidden;}
- &.act{height: auto;}
- text{color: #AAAAAA;min-width: 104rpx;text-align-last: justify;flex: 0 0 auto;margin-right: 20rpx;
- &.w65{width: 130rpx;}
- }
- // view{text-indent: 2rem;}
- }
- }
- .txtbox{text-indent: 2rem;line-height: 36rpx;font-weight: 500;font-size: 26rpx;color: #222327;
- &.nact{max-height: 432rpx;overflow: hidden;}
- &.act{height: auto;}
- }
- // tab
- .dbtabs{
- .dbtab{font-weight: 500;font-size: 26rpx;height: 60rpx;line-height: 60rpx;color: #666666;position: relative;padding: 0 38rpx;margin-left: 8rpx;
- &.act{font-weight: bold;font-size: 30rpx;color: #222327;
- &::after{content: "";width: 48rpx;height: 4rpx;background: #3699FF;border-radius: 2rpx;position: absolute;left: 50%;margin-left: -24rpx;bottom: -4rpx;}
- }
- }
- }
-
-
- .bortop{border-top: 2rpx dashed #C1C1C1;margin-bottom: 32rpx;margin-top: 14rpx;width: 100%;}
- .ftit{font-weight: bold;font-size: 26rpx;color: #222327;}
- .zhebox{display: flex;align-items: center;flex-direction: column;padding: 24rpx 0;
- image{width: 28rpx;height: 30rpx;margin-bottom: 10rpx;transition: all 0.3s;}
- &.act{
- image{transform: rotate(-180deg);}
- }
- view{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
- }
- // 附件
- .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
- // image{margin-right: 18rpx;flex: 0 0 auto;}
- .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 6rpx;flex: 0 0 auto;
- image{width: 26rpx;height: 24rpx;}
- }
- .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;flex:1;}
- .fjlook{font-weight: 500;font-size: 26rpx;color: #1D64E2;flex: 0 0 auto;margin-left: 20rpx;margin-top: 4rpx;}
- }
- }
-
- }
- // 按钮
- .fbtns{display: flex;align-items: center;justify-content: space-between;padding: 54rpx 12rpx 34rpx;display: flex;flex-wrap: wrap;
- .btn{height: 80rpx;font-weight: bold;font-size: 30rpx;box-sizing: border-box;border-radius: 40rpx;display: flex;align-items: center;
- justify-content: center;margin:0 12rpx;flex:1;
- &.btn1{border: 2rpx solid #1D64E2;background: #ffffff;color: #1D64E2;}
- &.btn2{background: #1D64E2;color: #ffffff;}
- &.btn3{border: 2rpx solid #FF0000;background: #ffffff;color: #FF0000;}
- }
- }
- </style>
|