cluedetails.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. <template>
  2. <view class="clued navbar">
  3. <!-- 顶部 -->
  4. <view class="pfixed">
  5. <uni-nav-bar left-icon="left" fixed="true" :border='border' statusBar='true' title="线索详情" rightWidth='180rpx' @clickRight="clickRight" @clickLeft='getBack'>
  6. <block slot="right">
  7. <view class="min_top" >
  8. <image :src="moreimg"></image>
  9. </view>
  10. </block>
  11. </uni-nav-bar>
  12. <tab-list :tablist='tablist' :tabidx='tabidx' :height='90' @getCheck="goCheck"></tab-list>
  13. </view>
  14. <!-- 站位的 -->
  15. <uni-nav-bar left-icon="left" :border='border' statusBar='true' />
  16. <view style="height: 90rpx;"></view>
  17. <view class="zhanline"></view>
  18. <!-- 线索详情 -->
  19. <view class="cldetail" v-if="(datainfoa&&tabidx==0)||(datainfob&&tabidx==1)||(datainfoc&&tabidx==2)||(datainfod&&tabidx==3)">
  20. <uni-steps :options="list1" :active="active" active-icon="smallcircle-filled" active-color='#FD8218' />
  21. <view class="cldelist">
  22. <view class="flexc pdtb10">
  23. <view class="flex0 f16 fw c34">上报单位</view>
  24. <view class="flex1 f16 c6 txr">{{datacominfo.sbdw}}</view>
  25. </view>
  26. <view class="flexc pdtb10">
  27. <view class="flex0 f16 fw c34">填表日期</view>
  28. <view class="flex1 f16 c6 txr">{{datacominfo.tbrq}}</view>
  29. </view>
  30. <view class="flexc pdtb10">
  31. <view class="flex0 f16 fw c34">项目负责人</view>
  32. <view class="flex1 f16 c6 txr">{{datacominfo.zszxfzr}}</view>
  33. </view>
  34. </view>
  35. <view >
  36. <!-- 线索 -->
  37. <block v-if="tabidx==0"><clue :datainfo='datainfoa' :yzadr='yzadr' :cytype="cytype" :projectlist="projectlist" :backgroundlist="backgroundlist" @getDown="getDown" :qiaddlist="qiaddlist" :ziaddlist="ziaddlist"></clue></block>
  38. <!-- 签约 -->
  39. <block v-if="tabidx==1"><sign-up :datainfo='datainfob' @getDown="getDown"></sign-up></block>
  40. <!-- 开工 -->
  41. <block v-if="tabidx==2"><start-work :datainfo='datainfoc' :ratelist="ratelist" @getDown="getDown"></start-work></block>
  42. <!-- 投产 -->
  43. <block v-if="tabidx==3"><put-into :datainfo='datainfod' @getDown="getDown"></put-into></block>
  44. </view>
  45. </view>
  46. <view v-else>
  47. <!-- 无数据 -->
  48. <no-data ></no-data>
  49. <!-- 上报签约信息 -->
  50. <view class="pfixedb flexc" >
  51. <view class="cluebtn btn2" @click="getAddQianFn" v-if="progress==2">上报签约信息</view>
  52. <view class="cluebtn btn2" @click="getAddKaiFn" v-if="progress==3">上报开工信息</view>
  53. <view class="cluebtn btn2" @click="getAddTouFn" v-if="progress==4">上报投产信息</view>
  54. </view>
  55. </view>
  56. <!-- 弹窗 -->
  57. <pop-up :type="type" @getClose='getClose' @getzanFn='getzanFn' @getyjSubmit='getyjSubmit' @getXmSubmitFn='getXmSubmitFn'></pop-up>
  58. <!-- 弹窗 -->
  59. <view class="bgbox" @click="getClose" v-if="moreflag"></view>
  60. <view class="more_fixed" v-if="moreflag">
  61. <view class="more_fixedt">
  62. <!-- 撤回 -->
  63. <!-- <view v-if="checkPermi(['projectV2:common:xsch'])&&addinfotype=='-1'&&xmStatus!=1" @click="getXsch">撤回</view> -->
  64. <view v-if="checkPermi(['projectV2:sbbzb:editYj'])&&progress==1&&addinfotype=='-1'&&xmStatus!=2" @click="getUpdate">修改信息</view>
  65. <view v-if="checkPermi(['projectV2:qyxx:editYj'])&&progress==3&&addinfotype=='-1'&&xmStatus!=2" @click="getUpdate">修改信息</view>
  66. <view v-if="checkPermi(['projectV2:kgxx:editYj'])&&progress==4&&addinfotype=='-1'&&xmStatus!=2" @click="getUpdate">修改信息</view>
  67. <view v-if="checkPermi(['projectV2:tcxx:editYj'])&&progress==5&&addinfotype=='-1'&&xmStatus!=2" @click="getUpdate">修改信息</view>
  68. <!-- <view v-if="checkPermi(['projectV2:sbbzb:edit'])&&addinfotype=='-1'&&(xmStatus!=2||(progress==4&&xmStatus==2))" @click="getUpdate">修改信息</view> -->
  69. <!-- checkPermi(['projectV2:kgxx:editYjKg'])&& -->
  70. <view v-if="(progress==5&&xmStatus!=2)||(progress==4&&xmStatus==2)" @click="getUpdatekg">修改开工信息</view>
  71. <!-- <view>撤回信息</view> -->
  72. <!-- 专班跟进 -->
  73. <view @click="getFollowup" v-if="checkPermi(['projectV2:sbbzb:meet'])">专班跟进</view>
  74. <view v-if="checkPermi(['projectV2:shyj:list'])" @click="getshprogress">审核进度</view>
  75. <view v-if="checkPermi(['projectV2:jzqk:add'])" @click="getAddProject">添加项目进展</view>
  76. <view v-if="checkPermi(['projectV2:jzqk:list'])" @click="getProject">查看项目进展</view>
  77. <view v-if="checkPermi(['system:ldps:list'])" @click="getLdwrlistFn">查看领导批示</view>
  78. <!-- 查看批示 -->
  79. </view>
  80. <view class="more_fixedb" @click="getClose">取消</view>
  81. </view>
  82. </view>
  83. </template>
  84. <script>
  85. import tabList from "@/components/toptab/tab.vue"
  86. import { getToken } from '@/utils/auth'
  87. import popUp from "@/components/popup/popup.vue"
  88. import clue from "@/components/clue/clue.vue" //线索
  89. import signUp from "@/components/clue/signup.vue" //签约
  90. import startWork from "@/components/clue/startwork.vue" //开工
  91. import putInto from "@/components/clue/tputinto.vue" //投产
  92. import { getsbbzbdetail,getCommonXszc,getshyjFn,getCommonXssh,getcommonXsshCjd,getcommonXsshYsbm,getjzqkFn,getrateXschFn,gesbbzbmeetFn } from '@/api/work/clue.js'
  93. import { getDictionaryFn} from '@/api/work/index.js'
  94. import {getPersionList,getInvestorList,getrateListFn,getqyxxYjListFn,getkgxxYjListFn,gettcxxYjListFn} from "@/api/work/addclue.js"
  95. import config from '@/config.js';
  96. const baseUrl = config.baseUrl;
  97. import {clickPeople } from "@/utils/common.js"
  98. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  99. import noData from "@/components/nodata/nodata.vue"
  100. export default{
  101. data(){
  102. return{
  103. border:false,
  104. tabidx:0,
  105. id:'',
  106. tablist:[{tit:'线索',val:0,limt:'projectV2:sbbzb:query'},{tit:'签约',val:1,limt:'projectV2:qyxx:query'},{tit:'开工',val:2,limt:'projectV2:kgxx:query'},{tit:'投产',val:3,limt:'projectV2:tcxx:query'},],
  107. active: 0,
  108. list1: [{title: '线索'}, {title: '签约'}, {title: '开工'}, {title: '投产'}],
  109. showArrow:false,
  110. type:0,//弹窗类型 1暂存/消耗 2审核意见 3批示
  111. upimg:require('@/static/images/index/up.png'),
  112. moreimg:require("@/static/images/index/more.png"),
  113. datacominfo:{},
  114. cytype:[],
  115. yzadr:[],
  116. projectlist:[],
  117. backgroundlist:[],
  118. fotbtnflag:true,
  119. moreflag:false,
  120. roles:this.$store.state.user.roles[0],
  121. progress:'',//项目进度 1:项目首谈 2:项目承接 3:项目签约 4:项目开工 5:项目投产
  122. xmStatus:'',//1:待审核 2:已通过 3:被退回
  123. deptId:this.$store.state.user.deptId,
  124. addinfotype:-1,
  125. datainfoa:'',
  126. datainfob:'',
  127. datainfoc:'',
  128. datainfod:'',
  129. qiaddlist:[],
  130. ziaddlist:[],
  131. ratelist:[],
  132. }
  133. },
  134. components:{
  135. tabList,popUp,clue,signUp,startWork,putInto,noData
  136. },
  137. onUnload(){
  138. uni.$off('refreshdata')
  139. },
  140. onLoad(e) {
  141. uni.$on('refreshdata',(e) => {
  142. this.addinfotype=-1;
  143. this.datainfoa='';
  144. this.datainfob='';
  145. this.datainfoc='';
  146. this.datainfod='';
  147. this.getDataFn();
  148. uni.$emit('refreshdatalist');
  149. })
  150. this.id=e.id;
  151. this.addinfotype=-1;
  152. // 项目进度 1:项目首谈 2:项目承接 3:项目签约 4:项目开工 5:项目投产
  153. //2,2 上报线索
  154. //3,2 上报开工
  155. //4,2 上报项目投产
  156. if(checkPermi(['projectV2:sbbzb:query'])){
  157. this.getDataFn()
  158. }
  159. // this.getDataFnes()
  160. // 线索
  161. this.getinvestmentarea()
  162. },
  163. methods:{
  164. checkPermi, checkRole,
  165. init(){
  166. this.getInvestorList()//企业列表
  167. this.getPersionList()//自然人列表
  168. },
  169. getLdwrlistFn(){
  170. this.moreflag=false
  171. var newobj={
  172. xmId:this.datacominfo.xmId,
  173. xmmc:this.datacominfo.xmmc,
  174. xmbh:this.datacominfo.xmbh,
  175. }
  176. this.$tab.navigateTo('/pages/work/ldwritten?data='+encodeURIComponent(JSON.stringify(newobj)))
  177. },
  178. getFollowup(){
  179. this.moreflag=false;
  180. this.type=5
  181. },
  182. getzbSubmit(e){
  183. var params={
  184. id:this.datacominfo.xmId,
  185. isMeet:e
  186. }
  187. gesbbzbmeetFn(params).then(res=>{
  188. if(res.code==200){
  189. this.type=0;
  190. this.$toast(res.msg)
  191. }else{
  192. this.$toast(res.msg)
  193. }
  194. })
  195. },
  196. // 项目列表
  197. getRateList(){
  198. var params={
  199. xmbh:this.datacominfo.xmbh
  200. }
  201. getrateListFn(params).then(res=>{
  202. if(res.code==200){
  203. //
  204. var newArr=res.rows||[];
  205. if(newArr.length){
  206. newArr.forEach(ite=>{
  207. ite.photo=ite.photo.split(',')
  208. })
  209. }
  210. this.ratelist=newArr
  211. // if(res.rows.length){
  212. // this.qiziflag=true
  213. // }
  214. }else{
  215. this.$toast(res.msg)
  216. }
  217. })
  218. },
  219. getInvestorList(){
  220. var params={
  221. xmbh:this.datacominfo.xmbh
  222. }
  223. getInvestorList(params).then(res=>{
  224. if(res.code==200){
  225. this.qiaddlist=res.rows||[]
  226. }else{
  227. this.$toast(res.msg)
  228. }
  229. })
  230. },
  231. getPersionList(){
  232. var params={
  233. xmbh:this.datacominfo.xmbh
  234. }
  235. getPersionList(params).then(res=>{
  236. if(res.code==200){
  237. this.ziaddlist=res.rows||[];
  238. }else{
  239. this.$toast(res.msg)
  240. }
  241. })
  242. },
  243. getUpdatekg(){
  244. this.moreflag=false
  245. var newobj={
  246. xmId:this.datacominfo.xmId,
  247. xmmc:this.datacominfo.xmmc,
  248. xmbh:this.datacominfo.xmbh,
  249. pagetype:'update',
  250. dis:true,
  251. progress:this.progress,
  252. xmStatus:this.xmStatus
  253. }
  254. // 修改开工信息
  255. this.$tab.navigateTo('/pages/work/yinpages/addstart?data='+encodeURIComponent(JSON.stringify(newobj)))
  256. },
  257. // 修改信息
  258. getUpdate(){
  259. var progress=this.progress;
  260. this.moreflag=false;
  261. var newobj={
  262. xmId:this.datacominfo.xmId,
  263. xmmc:this.datacominfo.xmmc,
  264. xmbh:this.datacominfo.xmbh,
  265. progress:this.progress,
  266. xmStatus:this.xmStatus,
  267. pagetype:'update'
  268. }
  269. if(progress==1||progress==2){
  270. this.$tab.navigateTo('/pages/work/yinpages/addclues?data='+encodeURIComponent(JSON.stringify(newobj)))
  271. }else if(progress==3){
  272. this.$tab.navigateTo('/pages/work/yinpages/addcontract?data='+encodeURIComponent(JSON.stringify(newobj)))
  273. }else if(progress==4){
  274. this.$tab.navigateTo('/pages/work/yinpages/addstart?data='+encodeURIComponent(JSON.stringify(newobj)))
  275. }else if(progress==5){
  276. this.$tab.navigateTo('/pages/work/yinpages/addtproduction?data='+encodeURIComponent(JSON.stringify(newobj)))
  277. }
  278. },
  279. getAddQianFn(){
  280. var newobj={
  281. xmId:this.datacominfo.xmId,
  282. xmmc:this.datacominfo.xmmc,
  283. xmbh:this.datacominfo.xmbh,
  284. pagetype:'add'
  285. }
  286. this.$tab.navigateTo('/pages/work/yinpages/addcontract?data='+encodeURIComponent(JSON.stringify(newobj)))
  287. },
  288. getAddKaiFn(){
  289. var newobj={
  290. xmId:this.datacominfo.xmId,
  291. xmmc:this.datacominfo.xmmc,
  292. xmbh:this.datacominfo.xmbh,
  293. pagetype:'add'
  294. }
  295. this.$tab.navigateTo('/pages/work/yinpages/addstart?data='+encodeURIComponent(JSON.stringify(newobj)))
  296. },
  297. getAddTouFn(){
  298. var newobj={
  299. xmId:this.datacominfo.xmId,
  300. xmmc:this.datacominfo.xmmc,
  301. xmbh:this.datacominfo.xmbh,
  302. pagetype:'add'
  303. }
  304. this.$tab.navigateTo('/pages/work/yinpages/addtproduction?data='+encodeURIComponent(JSON.stringify(newobj)))
  305. },
  306. getTabchange(){
  307. var progress=this.progress;
  308. var xmStatus=this.xmStatus;
  309. if(xmStatus==2){
  310. if(progress==2){//上报签约
  311. this.active=1;
  312. this.tabidx=1;
  313. }else if(progress==3){//上报开工
  314. this.active=2;
  315. this.tabidx=2;
  316. }else if(progress==4){//上报投产
  317. this.active=3;
  318. this.tabidx=3;
  319. }else if(progress==5){
  320. this.active=4;
  321. this.tabidx=0;
  322. }
  323. }else{
  324. if(progress==1||progress==2){
  325. this.active=0;
  326. }else if(progress==3){
  327. this.active=1;
  328. }else if(progress==4){
  329. this.active=2;
  330. }else if(progress==5){
  331. this.active=3;
  332. }
  333. this.tabidx=this.active;
  334. }
  335. if(this.tabidx>this.active){
  336. }else{
  337. this.getDataFnes()
  338. }
  339. },
  340. getDown(e){
  341. var url=baseUrl+e;
  342. uni.showLoading({
  343. title: '加载中'
  344. });
  345. uni.downloadFile({
  346. url: url,//文件的下载路径
  347. success(result) {
  348. uni.hideLoading()
  349. var filePath = result.tempFilePath;
  350. uni.openDocument({
  351. filePath: filePath,
  352. showMenu: true,
  353. success: function (res) {
  354. console.log('打开文档成功');
  355. }
  356. });
  357. },
  358. fail(res) {uni.hideLoading()}
  359. })
  360. },
  361. // 字典值
  362. getinvestmentarea(){
  363. // 引资地区
  364. getDictionaryFn('investment_area').then(res=>{
  365. if(res.code==200){
  366. this.yzadr=res.data
  367. }
  368. })
  369. // 产业类型
  370. // getDictionaryFn('industry_type').then(res=>{
  371. // if(res.code==200){
  372. // this.cytype=res.data
  373. // }
  374. // })
  375. //项目类别
  376. // getDictionaryFn('project_category').then(res=>{
  377. // if(res.code==200){
  378. // this.projectlist=res.data
  379. // }
  380. // })
  381. //企业背景
  382. getDictionaryFn('enterprise_background').then(res=>{
  383. if(res.code==200){
  384. this.backgroundlist=res.data
  385. }
  386. })
  387. },
  388. getXsch(){
  389. var that=this;
  390. uni.showModal({
  391. title: '确认撤回',
  392. content: '确认撤回项目状态',
  393. cancelText: '取消',
  394. confirmText: '确认',
  395. success: function(res) {
  396. if (res.confirm) {
  397. var params={
  398. id:that.datacominfo.xmId,
  399. progress:that.progress,
  400. xmStatus:that.xmStatus
  401. }
  402. getrateXschFn(params).then(res=>{
  403. if(res.code==200){
  404. that.$toast('撤回成功')
  405. uni.$emit('refreshdatalist');
  406. setTimeout(function(){
  407. uni.navigateBack({
  408. delta:1
  409. })
  410. },1500)
  411. }else{
  412. that.$toast(res.msg)
  413. }
  414. })
  415. } else if (res.cancel) {
  416. }
  417. }
  418. });
  419. },
  420. // 暂缓
  421. getOperate(e){
  422. this.type=Number(e)
  423. },
  424. getAddProject(){
  425. this.moreflag=false;
  426. this.type=Number(4)
  427. },
  428. getProject(){
  429. this.moreflag=false;
  430. this.$tab.navigateTo('/pages/work/projectprogress?id='+this.datacominfo.xmId+'&xmbh='+this.datacominfo.xmbh)
  431. },
  432. // 项目进展
  433. getXmSubmitFn(data){
  434. var that=this;
  435. var params=JSON.parse(JSON.stringify(data))
  436. params.xmId=this.datacominfo.xmId;
  437. params.xmmc=this.datacominfo.xmmc;
  438. params.xmbh=this.datacominfo.xmbh;
  439. getjzqkFn(params).then(res=>{
  440. if(res.code==200){
  441. that.$toast('添加项目进展成功')
  442. setTimeout(function(){
  443. that.type=0;
  444. },1500)
  445. }else{
  446. this.$toast(res.msg)
  447. }
  448. })
  449. },
  450. getzanFn(e){
  451. var str='';
  452. var that=this;
  453. var params={
  454. id:this.id
  455. }
  456. if(e){
  457. params.type=2;
  458. str='暂缓成功'
  459. }else{
  460. params.isDel='Y'
  461. str='销号成功'
  462. }
  463. getCommonXszc(params).then(res=>{
  464. if(res.code==200){
  465. that.$toast(str)
  466. uni.$emit('refreshdatalist');
  467. setTimeout(function(){
  468. uni.navigateBack({
  469. delta:1
  470. })
  471. },1500)
  472. }else{
  473. this.$toast(res.msg)
  474. }
  475. })
  476. // console.log(params)
  477. },
  478. getyjSubmit(data){
  479. // 承接地 xmjd:4
  480. // 分发要素部门 xmjd:3
  481. //招商中心签约审核 6
  482. //招商中心开工审核 8
  483. //招商中心投产审核 10
  484. //项目进度 1:项目首谈 2:项目承接 3:项目签约 4:项目开工 5:项目投产
  485. var params=JSON.parse(JSON.stringify(data))
  486. params.deptId=this.$store.state.user.deptId;
  487. params.shrxm=this.$store.state.user.name;
  488. var that=this;
  489. params.xmId=this.datacominfo.xmId;
  490. params.xmmc=this.datacominfo.xmmc;
  491. params.xmbh=this.datacominfo.xmbh;
  492. params.xmjd=this.progress;
  493. var roles=this.roles;
  494. // console.log(roles,1)
  495. // console.log(params,77)
  496. // return
  497. if(roles=='cjd'){
  498. getcommonXsshCjd(params).then(res=>{
  499. if(res.code==200){
  500. that.$toast("审核提交成功")
  501. setTimeout(function(){
  502. uni.$emit('refreshdatalist');
  503. that.type=0;
  504. uni.navigateBack({
  505. delta:1
  506. })
  507. },1500)
  508. }else{
  509. this.$toast(res.msg)
  510. }
  511. })
  512. }else if(roles=='ysbm'){
  513. getcommonXsshYsbm(params).then(res=>{
  514. if(res.code==200){
  515. that.$toast("审核提交成功")
  516. setTimeout(function(){
  517. uni.$emit('refreshdatalist');
  518. that.type=0;
  519. uni.navigateBack({
  520. delta:1
  521. })
  522. },1500)
  523. }else{
  524. this.$toast(res.msg)
  525. }
  526. })
  527. }else{
  528. getCommonXssh(params).then(res=>{
  529. if(res.code==200){
  530. that.$toast("审核提交成功")
  531. setTimeout(function(){
  532. uni.$emit('refreshdatalist');
  533. that.type=0;
  534. if(that.progress==1&&params.shjg==2){
  535. that.addinfotype=-1;
  536. that.datainfoa='';
  537. that.datainfob='';
  538. that.datainfoc='';
  539. that.datainfod='';
  540. that.getDataFn();
  541. var newobj={
  542. xmId:that.datacominfo.xmId,
  543. xmmc:that.datacominfo.xmmc,
  544. xmbh:that.datacominfo.xmbh,
  545. }
  546. that.$tab.navigateTo('/pages/work/xminquiry?data='+JSON.stringify(newobj))
  547. }else{
  548. uni.navigateBack({
  549. delta:1
  550. })
  551. }
  552. },1500)
  553. }else{
  554. this.$toast(res.msg)
  555. }
  556. })
  557. }
  558. },
  559. //审核
  560. getYuShenFn(){
  561. var newobj={
  562. xmId:this.datacominfo.xmId,
  563. xmmc:this.datacominfo.xmmc,
  564. xmbh:this.datacominfo.xmbh,
  565. }
  566. this.$tab.navigateTo('/pages/work/xminquiry?data='+encodeURIComponent(JSON.stringify((newobj))))
  567. },
  568. getClose(){
  569. this.type=0;
  570. this.moreflag=false;
  571. },
  572. radioChange(){
  573. },
  574. getToken(){
  575. // console.log(this.getToken())
  576. },
  577. clickRight(){
  578. this.moreflag=true
  579. // if(checkPermi(['projectV2:shyj:list'])){
  580. // this.$tab.navigateTo('/pages/work/shprogress?id='+this.id)
  581. // }else{
  582. // return
  583. // }
  584. },
  585. getshprogress(){
  586. this.moreflag=false;
  587. if(checkPermi(['projectV2:shyj:list'])){
  588. this.$tab.navigateTo('/pages/work/shprogress?id='+this.id)
  589. }else{
  590. return
  591. }
  592. },
  593. goCheck(data){
  594. // 未进行的不能点击
  595. // this.tabidx=data;
  596. // return
  597. // console.log(data)
  598. if(data>this.active){
  599. }else{
  600. this.tabidx=data;
  601. this.getDataFnes()
  602. }
  603. },
  604. getBack(){
  605. uni.navigateBack({
  606. delta:1
  607. })
  608. },
  609. // 拿到当前线进程
  610. getDataFn(){
  611. var that=this;
  612. getsbbzbdetail(this.id).then(res=>{
  613. if(res.code==200){
  614. var newobj={
  615. xmId:res.data.id,
  616. xmmc:res.data.xmxsmc,
  617. xmbh:res.data.xmbh,
  618. sbdw:res.data.sbdw,
  619. tbrq:res.data.tbrq,
  620. zszxfzr:res.data.zszxfzr,
  621. shjg:res.data.shjg,
  622. }
  623. this.datacominfo=JSON.parse(JSON.stringify(newobj));
  624. this.progress=res.data.progress;
  625. this.xmStatus=res.data.xmStatus;
  626. // 看是在哪个阶段
  627. this.getTabchange()
  628. }else{
  629. this.$toast(res.msg)
  630. }
  631. })
  632. },
  633. getDataFnes(){
  634. // console.log(this.addinfotype,8)
  635. //1:项目首谈 2:项目承接 3:项目签约 4:项目开工 5:项目投产
  636. var addinfotype=this.addinfotype;
  637. if(this.tabidx==1){//签约
  638. if(checkPermi(['projectV2:qyxx:query'])&&!this.datainfob&&addinfotype!=1){
  639. getqyxxYjListFn(this.id).then(res=>{
  640. if(res.code==200){
  641. this.datainfob=res.data||'';
  642. if(!this.datainfob&&addinfotype==-1){
  643. this.addinfotype=1;
  644. }
  645. }else{
  646. this.$toast(res.msg)
  647. }
  648. })
  649. }
  650. }else if(this.tabidx==2){//开工
  651. if(checkPermi(['projectV2:kgxx:query'])&&!this.datainfoc&&addinfotype!=2){
  652. getkgxxYjListFn(this.id).then(res=>{
  653. if(res.code==200){
  654. this.datainfoc=res.data||'';
  655. if(!this.datainfoc&&addinfotype==-1){
  656. this.addinfotype=2;
  657. }
  658. }else{
  659. this.$toast(res.msg)
  660. }
  661. this.getRateList()//进度图片
  662. })
  663. }
  664. }else if(this.tabidx==3){//投产
  665. if(checkPermi(['projectV2:tcxx:query'])&&!this.datainfod&&addinfotype!=3){
  666. gettcxxYjListFn(this.id).then(res=>{
  667. if(res.code==200){
  668. this.datainfod=res.data||'';
  669. if(!this.datainfod&&addinfotype==-1){
  670. this.addinfotype=3;
  671. }
  672. }else{
  673. this.$toast(res.msg)
  674. }
  675. })
  676. }
  677. }else{//全部 线索
  678. if(checkPermi(['projectV2:sbbzb:query'])&&!this.datainfoa&&addinfotype!=0){
  679. getsbbzbdetail(this.id).then(res=>{
  680. if(res.code==200){
  681. this.datainfoa=res.data||'';
  682. if(!this.datainfoa&&addinfotype==-1){
  683. this.addinfotype=0;
  684. }
  685. // 获取企业,自然人
  686. this.init()
  687. }else{
  688. this.$toast(res.msg)
  689. }
  690. })
  691. }
  692. }
  693. }
  694. }
  695. }
  696. </script>
  697. <style lang="scss" scoped>
  698. .clued{min-height: 100vh;background-color: #fff;box-sizing: border-box;padding-bottom: 100rpx;}
  699. .cldetail{padding-top: 70rpx;}
  700. .cldelist{padding: 48rpx 28rpx 36rpx;border-bottom: 2rpx solid #E5E5E5;}
  701. .cldelista{
  702. border-bottom: 2rpx solid #E5E5E5;
  703. .contentt{padding:48rpx 28rpx;
  704. .cldelistz{display: flex;align-items: center;justify-content: flex-end;
  705. image{width: 26rpx;height: 20rpx;margin-left: 20rpx;transition: all .5s; }
  706. }
  707. }
  708. .content{padding: 0rpx 28rpx 40rpx 28rpx;}
  709. .contenta{padding: 22rpx 0;
  710. .tit{font-size: 32rpx;font-weight: bold;color: #343434;margin-bottom: 20rpx;}
  711. .txt{font-size: 32rpx;color: #666666;}
  712. }
  713. &.cldelistb{padding: 48rpx 28rpx;}
  714. }
  715. // 操作按钮
  716. .cluebtn{
  717. display: flex;align-items: center;justify-content: center;font-weight: bold;font-size: 32rpx;color: #ffff;height: 100rpx;
  718. &.btn1{background-color: #1FB9F7;flex: 1;}
  719. &.btn2{background-color:#FF6400;flex: 1;}
  720. }
  721. // 审核通过
  722. .clued_tong{width: 100%;height: 70rpx;font-size: 32rpx;font-weight: 500;
  723. &.btn{background: #C0FFC0;color: #28C529;}
  724. &.btn1{background: #ffcaac;color: #ff440b;}
  725. }
  726. // 消息
  727. .min_top{position: relative;width: 44rpx;height: 44rpx;display: flex;align-items: center;justify-content: center;margin-right: 32rpx;
  728. image{width: 44rpx;height: 34rpx;}
  729. }
  730. </style>