details.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  1. <template>
  2. <view class="detail">
  3. <view class="navbox">
  4. <!-- 步骤条 -->
  5. <view class="dtabs">
  6. <view class="tab" :class="datainfo.proposalProgress==ite.value?'act':''" v-for="(ite,idx) in stepList" :key="idx">
  7. <view class="cir"></view>
  8. <view class="tit">{{ite.label}}</view>
  9. </view>
  10. </view>
  11. </view>
  12. <!-- 主体 -->
  13. <view class="deboxs">
  14. <view class="bghbox"></view>
  15. <view class="dbox fmt30">
  16. <!-- <text>【市政协十五届一 次会议第301号提案】</text> -->
  17. <view class="dtit">关于{{datainfo.titile}}</view>
  18. <!-- <view class="titbox mb14">
  19. <view class="tit flexc">
  20. <image :src="titimg"></image>
  21. <view>提案者信息</view>
  22. </view>
  23. </view> -->
  24. <view class="titinf">
  25. <view class="txt"><text>提案者</text>{{datainfo.proposalName}}</view>
  26. <view class="txt"><text>界别</text>{{typeFormat(datainfo.boundary,jblist)}}</view>
  27. <view class="txt"><text>党派</text>{{typeFormat(datainfo.partyAffiliation,dplist)}}</view>
  28. <view class="txt"><text>联系方式</text>{{datainfo.proposalPhone}}</view>
  29. <view class="txt"> <text>提案类别</text>{{datainfo.categoryName}}</view>
  30. <view class="txt"><text>提案类型</text>{{datainfo.proposalType==0?'大会提案':'平时提案'}}</view>
  31. <view class="txt"><text>提交时间</text>{{datainfo.createTime}}</view>
  32. <view class="txt"><text>工作单位及职务</text>{{datainfo.contactAddress}}</view>
  33. <!-- {{datainfo.contactAddress}} -->
  34. </view>
  35. <view class="titinf " :class="zheList[0].zheflag?'nact':'act'">
  36. <view class="bortop"></view>
  37. <view class="txt"><text>联名提案</text>{{datainfo.isJointly}}</view>
  38. <view class="txt" v-if="datainfo.isJointly=='是'"><text>联名提案人员</text>{{tary}}</view>
  39. <view class="txt"><text>经过调研</text>{{datainfo.isSurvey}}</view>
  40. <view class="txt"><text>第一次提出</text>{{datainfo.isFirst}}</view>
  41. <view class="txt"><text>本人撰写</text>{{datainfo.isPerson}}</view>
  42. <view class="txt"> <text>需要办理的协商方式</text>{{datainfo.negotiateType}}</view>
  43. <view class="txt"><text>建议承办的单位</text>{{datainfo.proposedContractor}}</view>
  44. </view>
  45. <!-- 折叠 -->
  46. <view class="zhebox" :class="zheList[0].zheflag?'':'act'" @click="getZheFn(0)">
  47. <image :src="upsimg"></image>
  48. <view>{{zheList[0].zheflag?'展开信息':'折叠信息'}}</view>
  49. </view>
  50. </view>
  51. <view class="dbox">
  52. <view class="titbox mb14">
  53. <view class="tit flexc">
  54. <image :src="titimg"></image>
  55. <view>提案内容</view>
  56. </view>
  57. </view>
  58. <view class="txtbox" :class="zheList[1].zheflag?'nact':'act'">
  59. <rich-text :nodes="datainfo.proposalContent"></rich-text>
  60. </view>
  61. <!-- 折叠 -->
  62. <view class="zhebox" :class="zheList[1].zheflag?'':'act'" @click="getZheFn(1)">
  63. <image :src="upsimg"></image>
  64. <view>{{zheList[1].zheflag?'展开信息':'折叠信息'}}</view>
  65. </view>
  66. <view class="bortop"></view>
  67. <view class="ftit mb14">附件信息</view>
  68. <view class="fjlists flext" v-for="(ite,idx) in filelist" :key='idx' @click="getDown(ite.url)">
  69. <view class="imgl"><image :src="fjimg" ></image></view>
  70. <view class="tit">{{ite.name}}</view>
  71. <view class="fjlook">查看</view>
  72. </view>
  73. </view>
  74. <!-- 提案立案以下隐藏 -->
  75. <view class="dbox" v-if="hflist.length||lmlist.length||datainfo.cbdwdfwy">
  76. <view class="titbox mb16">
  77. <view class="tit flexc">
  78. <image :src="titimg"></image>
  79. <view>反馈情况</view>
  80. </view>
  81. </view>
  82. <!-- 单位回复委员 -->
  83. <!-- 联名反馈 -->
  84. <view class="titinf" v-for="(ite,idx) in lmlist" :key="idx">
  85. <view class="ftit mb10">联名人:{{ite.name}}</view>
  86. <view class="txt wb100"><text class="w65">联名确认</text>{{ite.isAgree=='1'?'同意':'不同意'}}</view>
  87. </view>
  88. <!-- 单位反馈 -->
  89. <view class="titinf" v-for="(ite,idx) in hflist" :key="idx">
  90. <view class="ftit mb10">{{ite.deptName}}</view>
  91. <view class="txt wb100"><text class="w65">回复内容</text>{{ite.content}}</view>
  92. <block v-if="ite.zxFjList.length">
  93. <view class="txt fjbox">
  94. <text class="w65">附件</text>
  95. <view class="fjlists flext" v-for="(fite,fidx) in ite.zxFjList" :key='fidx' @click="getDown(fite.url)">
  96. <view class="imgl"><image :src="fjimg" ></image></view>
  97. <view class="tit">{{fite.name}}</view>
  98. <view class="fjlook">查看</view>
  99. </view>
  100. </view>
  101. </block>
  102. </view>
  103. <view class="titinf" v-if="datainfo.cbdwdfwy">
  104. <view class="ftit mb10">单位反馈委员</view>
  105. <view class="txt wb100"><text class="w65">反馈内容</text>{{datainfo.cbdwdfwy}}</view>
  106. </view>
  107. </view>
  108. <view class="dbox" v-if="zblist.length||xblist.length">
  109. <view class="titbox mb16">
  110. <view class="tit flexc">
  111. <image :src="titimg"></image>
  112. <view>办理情况</view>
  113. </view>
  114. </view>
  115. <view class="dbtabs flexc mb20">
  116. <view class="dbtab" :class="ite.val==dwVal?'act':''" v-for="(ite,idx) in dwList" :key="idx" @click="getDwFn(ite.val)">{{ite.tit}}</view>
  117. </view>
  118. <block v-for="(ite,idx) in datainfo.proposalUnitReplyList" :key="idx">
  119. <view v-if="dwVal==ite.type">
  120. <view class="titinf">
  121. <view class="txt wb100"><text>{{ite.type==2?'主办单位':'协办单位'}}</text>{{ite.deptName}}</view>
  122. <view class="txt"><text>办理方式</text>{{ite.handling}}</view>
  123. <view class="txt"><text>办理程度</text>{{ite.degree}}</view>
  124. <view class="txt"><text>签收时间</text>{{ite.startTime}}</view>
  125. <view class="txt"> <text>办结时间</text>{{ite.endTime}}</view>
  126. <view class="txt wb100" :class="zheList[2].zheflag?'nact':'act'"><text>答复内容</text>
  127. <rich-text :nodes="ite.content" v-if="ite.content"></rich-text>
  128. </view>
  129. </view>
  130. <!-- 折叠 -->
  131. <view class="zhebox" :class="zheList[2].zheflag?'':'act'" @click="getZheFn(2)">
  132. <image :src="upsimg"></image>
  133. <view>{{zheList[2].zheflag?'展开信息':'折叠信息'}}</view>
  134. </view>
  135. <view class="bortop"></view>
  136. <view class="ftit mb14">答复函</view>
  137. <view class="fjlists flext" v-for="(item,idx) in ite.zxFjList" :key='item.id' @click="getDown(item.url)">
  138. <view class="imgl"><image :src="fjimg" ></image></view>
  139. <view class="tit">{{item.name}}</view>
  140. <view class="fjlook">查看</view>
  141. </view>
  142. </view>
  143. <!-- 暂无反馈 -->
  144. <!-- <block v-else>
  145. <no-data></no-data>
  146. </block> -->
  147. </block>
  148. </view>
  149. <view class="dbox" v-if="progress>7">
  150. <view class="titbox mb16">
  151. <view class="tit flexc">
  152. <image :src="titimg"></image>
  153. <view>反馈情况</view>
  154. </view>
  155. </view>
  156. <view class="titinf">
  157. <view class="ftit mb10">委员反馈</view>
  158. <view class="txt wb100" style="align-items: center;"><text class="w65">对办理情况是否满意</text>{{typeFormattext(datainfo.satisfaction,mycdlist)}}</view>
  159. <view class="txt"><text class="w65">有何进一步意见和建议</text>
  160. {{datainfo.membersOpinion}}
  161. </view>
  162. </view>
  163. <view class="titinf">
  164. <view class="ftit mb10 mt2">政协反馈</view>
  165. <view class="txt wb100" style="align-items: center;"><text class="w65">对办理情况是否满意</text>{{typeFormattext(datainfo.zxSatisfaction,mycdlist)}}</view>
  166. <view class="txt"><text class="w65">有何进一步意见和建议</text>
  167. {{datainfo.zxOpinion}}
  168. </view>
  169. </view>
  170. </view>
  171. <view class="fbtns" style="flex-wrap: wrap;">
  172. <!-- 按角色选择按钮 -->
  173. <view class="btn btn1" @click="getDelFn" v-if="checkPermi(['proposalInfo:info:remove'])">删除</view>
  174. <view class="btn btn1" @click="getEditFn" v-if="checkPermi(['proposalInfo:info:edit'])&&progress==1">修改</view>
  175. <view class="btn btn2" @click="getScfkFn('scfk')" v-if="checkPermi(['proposalInfo:info:isRecord'])&&progress==1">2审查反馈</view>
  176. <view class="btn btn2" @click="getScfkFn('tajb')" v-if="checkPermi(['proposalInfo:info:assign'])&&progress==2">3提案交办</view>
  177. <view class="btn btn2" @click="getScfkFn('dffk')" v-if="checkPermi(['proposal:unit:reply'])&&(progress==4||progress==6||from=='tabl')&&progress!=7">4答复反馈</view>
  178. <view class="btn btn2" @click="getScfkFn('jbsh')" v-if="checkPermi(['proposalInfo:info:assignsh'])&&progress==5">5交办审核</view>
  179. <view class="btn btn2" @click="getScfkFn('dwdf')" v-if="checkPermi(['proposal:unit:reply'])&&progress==3&&hflist[0].isReply!=0">5单位答复反馈</view>
  180. <view class="btn btn2" @click="getScfkFn('dwdf')" v-if="checkPermi(['proposalInfo:info:cbdwdfwy'])&&progress==7">5承办单位答复委员</view>
  181. <view class="btn btn2" @click="getScfkFn('wymyfk')" v-if="checkPermi(['proposalInfo:info:idea'])&&progress==8">6办结审核</view>
  182. <view class="btn btn2" @click="getScfkFn('zxmyfk')" v-if="checkPermi(['proposalInfo:info:zxIdea'])&&progress==8">7办结审核</view>
  183. <!-- 提案办理进来的 协办单位 不考虑进度 -->
  184. <!-- 联名提案反对同意 从联名提案进来的才有按钮-->
  185. <view class="btn btn3" @click="getlmtaFn('lmta',2)" v-if="checkPermi(['proposal:user:verify'])&&from=='lmta'">反对联名</view>
  186. <view class="btn btn2" @click="getlmtaFn('lmta',1)" v-if="checkPermi(['proposal:user:verify'])&&from=='lmta'">同意联名</view>
  187. <!--委员答复填内容,委员填满意度 -->
  188. <!--协办单位,主办单位 填办理方式,办理程度,内容 附件 -->
  189. <!-- 4.承办单位答复,交办单位审核(通过,不通过), -->
  190. <!-- 交办单位 审核后,承办单位答复(),委员直接提交评价(满意程度)-->
  191. <!-- 流程 -->
  192. <!-- 提案进度(0:提交提案,1:提案审查,2:提案立案,3:提案交办,4:办理提案,5:提案反馈,6:办结审核,7:已办结) -->
  193. <!-- 1.委员录入
  194. 2.提案委立案是否,否 指定答复(交办)单位 不立案 3,回复单位回复
  195. 3.交办 选择答复(承办)单位(主办,协办)
  196. 4.承办单位 答复反馈(办理方式,办理程度,内容)
  197. 5.交办单位审核(通过,不通过),承办单位答复交办单位审核(内容,附件)
  198. 6.审核不通过,承办单位答复
  199. 7.审核通过 承办单位答复委员
  200. 8.委员提交满意度,评价
  201. 8.政协 提交满意度(办结审核) -->
  202. <!-- 只要提案就可以 推荐重点,推荐优秀
  203. 提案办理,催办,联名,单列表 -->
  204. <!-- 征集通知 ,提案查重,暂不需要 -->
  205. <!-- 政协评价 -->
  206. </view>
  207. </view>
  208. <pop-up :type='ptype' :blfsList="matterList" :blcdlist="blcdlist" :mycdlist="mycdlist" :dataTree="deptTree" @getClose="getClose" @getupSubmit="getupSubmit"></pop-up>
  209. </view>
  210. </template>
  211. <script>
  212. import config from '@/config'
  213. const baseUrl = config.baseUrl
  214. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  215. import popUp from "@/work/components/popup/popup.vue"
  216. import noData from "@/components/nodata/nodata.vue"
  217. import {getDeptTree} from"@/api/mine/mine.js"
  218. import { selectValue,selectValuetext } from '@/utils/common.js';
  219. import {getCaseDetailFn,getCasDelFn,getInfoisRecordFn,getInfoAssignFn,getInfoReplyFn,getInfoShFn,getInfoIdeaFn,getInfozxIdeaFn,getInfoReplywyFn,getUserverifyFn} from "@/api/mine/case.js"
  220. import {getDictionaryFn} from "@/api/mine/register.js"
  221. export default{
  222. components:{popUp,noData},
  223. data(){
  224. return{
  225. bgimg:require("@/static/images/bg.png"),
  226. fjimg:require("@/work/static/images/fjimg.png"),
  227. filelist:[],
  228. tabidx:5,
  229. titimg:require("@/work/static/images/titbg.png"),
  230. upsimg:require("@/work/static/images/ups.png"),
  231. zheList:[{val:0,zheflag:true,moreflag:true},{val:0,zheflag:true,moreflag:true},{val:0,zheflag:true,moreflag:true},{val:0,zheflag:true,moreflag:true},],
  232. dwList:[{tit:'主办单位',val:2},{tit:'协办单位',val:3}],
  233. dwdetList:[],
  234. dwVal:2,
  235. ptype:'',
  236. datainfo:{},
  237. dflxList:[],
  238. stepList:[],//提案状态
  239. jblist:[],//界别
  240. dplist:[],//党派
  241. matterList:[],//方式
  242. blcdlist:[],//办理程度
  243. deptTree:[],//答复单位
  244. mycdlist:[],//满意程度
  245. tary:'',
  246. progress:'',
  247. hflist:[],
  248. zblist:[],
  249. xblist:[],
  250. lmlist:[],//联名人员反馈
  251. from:'',
  252. }
  253. },
  254. onUnload(){
  255. uni.$off('refreshdetail')
  256. },
  257. onLoad(e) {
  258. this.id=e.id;
  259. this.getDetail()
  260. this.init()
  261. uni.$on('refreshdetail', (e) => {
  262. this.getDetail()
  263. })
  264. if(e.f){
  265. this.from=e.f
  266. }
  267. // this.deptTree=[{id:100,label:"若依科技",children:[{id:200,label:"吃完",},{id:201,label:"vf",}]}]
  268. },
  269. methods:{
  270. checkPermi, checkRole,
  271. kaType(ite){
  272. if(ite){
  273. var newArr=ite.split(',')
  274. var actions=[];
  275. var datas=this.matterList;
  276. newArr.forEach(ite=>{
  277. Object.keys(datas).some((key) => {
  278. if (datas[key].value == ('' + ite)) {
  279. actions.push(datas[key].label);
  280. return true;
  281. }
  282. })
  283. })
  284. return actions.join(' ')
  285. }
  286. },
  287. typeFormat(ite,list){
  288. return selectValue(list, ite);
  289. },
  290. typeFormattext(ite,list){
  291. return selectValuetext(list, ite);
  292. },
  293. init(){
  294. // 协办单位
  295. getDeptTree().then(res=>{
  296. if(res.code==200){
  297. this.deptTree=res.data
  298. }
  299. })
  300. //提案状态
  301. getDictionaryFn('proposal_progress').then(res=>{
  302. if(res.code==200&&res.data.length){
  303. this.stepList = res.data.map(v => {
  304. return {
  305. label: v.dictLabel,
  306. value:v.dictValue
  307. }
  308. })
  309. }
  310. })
  311. // 界别circles
  312. getDictionaryFn('circles').then(res=>{
  313. if(res.code==200&&res.data.length){
  314. this.jblist = res.data.map(v => {
  315. return {
  316. label: v.dictLabel,
  317. value: v.dictValue
  318. }
  319. })
  320. }
  321. })
  322. // 党派circles
  323. getDictionaryFn('political_parties').then(res=>{
  324. if(res.code==200&&res.data.length){
  325. this.dplist = res.data.map(v => {
  326. return {
  327. label: v.dictLabel,
  328. value: v.dictValue
  329. }
  330. })
  331. }
  332. })
  333. // 办理方式
  334. getDictionaryFn('negotiation_mode').then(res=>{
  335. if(res.code==200&&res.data.length){
  336. this.matterList = res.data.map(v => {
  337. return {
  338. label: v.dictLabel,
  339. value: v.dictValue
  340. }
  341. })
  342. }
  343. })
  344. // 办理程度degree
  345. getDictionaryFn('degree').then(res=>{
  346. if(res.code==200&&res.data.length){
  347. this.blcdlist = res.data.map(v => {
  348. return {
  349. text: v.dictLabel,
  350. value: v.dictValue
  351. }
  352. })
  353. }
  354. })
  355. // 满意程度
  356. getDictionaryFn('member_satisfaction').then(res=>{
  357. if(res.code==200&&res.data.length){
  358. this.mycdlist = res.data.map(v => {
  359. return {
  360. text: v.dictLabel,
  361. value: v.dictValue
  362. }
  363. })
  364. }
  365. })
  366. },
  367. getInfoisRecordFn(){
  368. getInfoisRecordFn().then(res=>{
  369. })
  370. },
  371. getupSubmit(e){
  372. var that=this;
  373. var type=this.ptype;
  374. if(type=='scfk'){
  375. var params=JSON.parse(JSON.stringify(e))
  376. params.proposalId=this.id
  377. getInfoisRecordFn(params).then(res=>{
  378. if(res.code==200){
  379. var str='立案';
  380. if(params.isRecord==1){
  381. str='不立案'
  382. }
  383. this.$toast(str+"成功");
  384. setTimeout(function(){
  385. that.ptype='';
  386. that.getDetail()
  387. },1200)
  388. }
  389. })
  390. }else if(type=='tajb'){
  391. var params=JSON.parse(JSON.stringify(e))
  392. params.proposalId=this.id
  393. getInfoAssignFn(params).then(res=>{
  394. if(res.code==200){
  395. this.$toast("提案交办成功");
  396. setTimeout(function(){
  397. that.ptype='';
  398. that.getDetail()
  399. },1200)
  400. }
  401. })
  402. }else if(type=='dffk'||type=='dwdf'){
  403. var params=JSON.parse(JSON.stringify(e))
  404. params.proposalId=this.id
  405. if(this.progress==7){
  406. params.cbdwdfwy=params.content;
  407. getInfoReplywyFn(params).then(res=>{
  408. params.cbdwdfwy=params.content;
  409. if(res.code==200){
  410. this.$toast("答复反馈成功");
  411. setTimeout(function(){
  412. that.ptype='';
  413. that.getDetail()
  414. },1200)
  415. }
  416. })
  417. }else{
  418. getInfoReplyFn(params).then(res=>{
  419. if(res.code==200){
  420. this.$toast("答复反馈成功");
  421. setTimeout(function(){
  422. that.ptype='';
  423. that.getDetail()
  424. },1200)
  425. }
  426. })
  427. }
  428. }else if(type=='jbsh'){
  429. var params=JSON.parse(JSON.stringify(e))
  430. params.proposalId=this.id
  431. getInfoShFn(params).then(res=>{
  432. if(res.code==200){
  433. this.$toast("交办审核成功");
  434. setTimeout(function(){
  435. that.ptype='';
  436. that.getDetail()
  437. },1200)
  438. }
  439. })
  440. }else if(type=='wymyfk'){
  441. var params=JSON.parse(JSON.stringify(e))
  442. params.proposalId=this.id
  443. getInfoIdeaFn(params).then(res=>{
  444. if(res.code==200){
  445. this.$toast("提案办结成功");
  446. setTimeout(function(){
  447. that.ptype='';
  448. that.getDetail()
  449. },1200)
  450. }
  451. })
  452. }else if(type=='zxmyfk'){
  453. var params=JSON.parse(JSON.stringify(e))
  454. params.proposalId=this.id
  455. getInfozxIdeaFn(params).then(res=>{
  456. if(res.code==200){
  457. this.$toast("提案办结成功");
  458. setTimeout(function(){
  459. that.ptype='';
  460. that.getDetail()
  461. },1200)
  462. }
  463. })
  464. }
  465. },
  466. getEditFn(){
  467. this.$tab.navigateTo('/work/pages/case/add?type=edit&id='+this.id)
  468. },
  469. getClose(){
  470. this.ptype=""
  471. },
  472. getlmtaFn(type,sh){
  473. var that=this;
  474. var str="同意"
  475. if(sh==2){
  476. str='反对'
  477. }
  478. var params={
  479. proposalId:this.id,
  480. isAgree:sh,
  481. }
  482. getUserverifyFn(params).then(res=>{
  483. if(res.code==200){
  484. this.$toast(str+"联名提案成功");
  485. setTimeout(function(){
  486. uni.$emit("refreshlist")
  487. that.getDetail()
  488. },1200)
  489. }
  490. })
  491. },
  492. getScfkFn(type){
  493. this.ptype=type
  494. },
  495. getZheFn(idx){
  496. this.zheList[idx].zheflag=!this.zheList[idx].zheflag
  497. },
  498. getDwFn(idx){
  499. this.dwVal=idx
  500. },
  501. getDelFn(){
  502. var that=this;
  503. uni.showModal({
  504. title: '确认删除',
  505. content: "是否确认删除该提案",
  506. cancelText: '取消',
  507. confirmText: '确认',
  508. success: function(res) {
  509. if (res.confirm) {
  510. getCasDelFn(that.id).then(res=>{
  511. if(res.code==200){
  512. that.$toast('删除成功')
  513. uni.$emit("refreshlist")
  514. setTimeout(function(){
  515. uni.navigateBack({
  516. delta: 1 //返回层数,2则上上页
  517. });
  518. },1200)
  519. }
  520. })
  521. } else if (res.cancel) {
  522. // console.log('用户点击取消');
  523. }
  524. }
  525. });
  526. },
  527. getDetail(){
  528. var that=this;
  529. getCaseDetailFn(this.id).then(res=>{
  530. if(res.code==200){
  531. this.datainfo=res.data;
  532. this.progress=res.data.proposalProgress;
  533. if(res.data.zxFjList&&res.data.zxFjList.length){
  534. this.filelist=JSON.parse(JSON.stringify(res.data.zxFjList))
  535. }
  536. var taryList=res.data.proposalUserList||[];
  537. if(taryList&&taryList.length){
  538. var newArr=[]
  539. taryList.forEach(ite=>{
  540. newArr.push(ite.name)
  541. })
  542. this.tary=newArr.join('/')
  543. }
  544. this.lmlist=taryList;
  545. var dwList=res.data.proposalUnitReplyList||[];
  546. var hflist=[],zblist=[],xblist=[];
  547. if(dwList&&dwList.length){
  548. dwList.forEach(ite=>{
  549. if(ite.type==1){
  550. hflist.push(ite)
  551. }else if(ite.type==2){
  552. zblist.push(ite)
  553. }else if(ite.type==3){
  554. xblist.push(ite)
  555. }
  556. })
  557. that.$nextTick(function(){
  558. that.hflist=hflist;
  559. that.zblist=zblist;
  560. that.xblist=xblist;
  561. })
  562. }
  563. }
  564. })
  565. },
  566. getDown(e){
  567. uni.showLoading({
  568. title: '加载中'
  569. });
  570. var url=baseUrl+e;
  571. uni.downloadFile({
  572. url: url,//文件的下载路径
  573. success(result) {
  574. uni.hideLoading()
  575. var filePath = result.tempFilePath;
  576. uni.openDocument({
  577. filePath: filePath,
  578. showMenu: true,
  579. success: function (res) {
  580. // console.log('打开文档成功');
  581. }
  582. });
  583. },
  584. fail(res) {uni.hideLoading()}
  585. })
  586. },
  587. }
  588. }
  589. </script>
  590. <style scoped lang="scss">
  591. .detail{display: flex;flex-direction: column;height: 100vh;}
  592. .navbox{background-color: $com-cd3;flex:0 0 auto;
  593. .dtabs{display: flex;padding: 40rpx 24rpx;
  594. .tab{position: relative;display: flex;flex-direction: column;align-items: center;flex: 1;
  595. &::after{content: '';height: 2rpx;width: 50%;background: #86B2FF;left: 50%;top: 10rpx;position: absolute;transform: translateX(50%);}
  596. &:last-child{
  597. &::after{display: none;}
  598. }
  599. &.act{
  600. .cir{background: #FFFFFF;}
  601. .tit{color: #FFFFFF;}
  602. }
  603. .cir{width: 20rpx;height: 20rpx;background: #86B2FF;border-radius: 50%;margin-bottom: 24rpx;}
  604. .tit{font-weight: bold;font-size: 24rpx;color: #86B2FF;width: 100%;text-align: center;padding: 0 8rpx;}
  605. }
  606. }
  607. }
  608. .deboxs{flex:1;overflow: auto;padding-bottom: 30rpx;
  609. .bghbox{height: 60rpx;background-color: $com-cd3;}
  610. .dbox{background: #FFFFFF;border-radius: 10rpx;margin: 0 24rpx 24rpx;padding: 36rpx 24rpx 24rpx;
  611. .dtit{font-weight: bold;font-size: 15px;color: #222327;margin-bottom: 48rpx;
  612. text{color: #E70000;}
  613. }
  614. .titbox{
  615. .tit{
  616. image{width: 32rpx;height: 18rpx;margin-right: 10rpx;}
  617. view{font-weight: bold;font-size: 32rpx;color: #222327;}
  618. }
  619. }
  620. .titinf{display: flex;flex-wrap: wrap;
  621. &.nact{height: 0;overflow: hidden;}
  622. &.act{height: auto;}
  623. .txt{font-weight: 500;font-size: 26rpx;margin-bottom: 20rpx;color: #222327;display: flex;align-items: flex-start;flex:0 1 auto;min-width: 50%;
  624. &.nact{height: 200rpx;overflow: hidden;}
  625. &.act{height: auto;}
  626. text{color: #AAAAAA;min-width: 104rpx;text-align-last: justify;flex: 0 0 auto;margin-right: 20rpx;
  627. &.w65{width: 130rpx;}
  628. }
  629. &.fjbox{flex: 1 !important;display: flex;
  630. .fjlists{flex: 1;}
  631. }
  632. // view{text-indent: 2rem;}
  633. }
  634. }
  635. .txtbox{text-indent: 2rem;line-height: 36rpx;font-weight: 500;font-size: 26rpx;color: #222327;
  636. &.nact{max-height: 432rpx;overflow: hidden;}
  637. &.act{height: auto;}
  638. }
  639. // tab
  640. .dbtabs{
  641. .dbtab{font-weight: 500;font-size: 26rpx;height: 60rpx;line-height: 60rpx;color: #666666;position: relative;padding: 0 38rpx;margin-left: 8rpx;
  642. &.act{font-weight: bold;font-size: 30rpx;color: #222327;
  643. &::after{content: "";width: 48rpx;height: 4rpx;background: #3699FF;border-radius: 2rpx;position: absolute;left: 50%;margin-left: -24rpx;bottom: -4rpx;}
  644. }
  645. }
  646. }
  647. .bortop{border-top: 2rpx dashed #C1C1C1;margin-bottom: 32rpx;margin-top: 14rpx;width: 100%;}
  648. .ftit{font-weight: bold;font-size: 26rpx;color: #222327;}
  649. .zhebox{display: flex;align-items: center;flex-direction: column;padding: 24rpx 0;
  650. image{width: 28rpx;height: 30rpx;margin-bottom: 10rpx;transition: all 0.3s;}
  651. &.act{
  652. image{transform: rotate(-180deg);}
  653. }
  654. view{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  655. }
  656. // 附件
  657. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  658. // image{margin-right: 18rpx;flex: 0 0 auto;}
  659. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 6rpx;flex: 0 0 auto;
  660. image{width: 26rpx;height: 24rpx;}
  661. }
  662. .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;flex:1;}
  663. .fjlook{font-weight: 500;font-size: 26rpx;color: #1D64E2;flex: 0 0 auto;margin-left: 20rpx;margin-top: 4rpx;}
  664. }
  665. }
  666. }
  667. // 按钮
  668. .fbtns{display: flex;align-items: center;justify-content: space-between;padding: 54rpx 12rpx 34rpx;display: flex;flex-wrap: wrap;
  669. .btn{height: 80rpx;font-weight: bold;font-size: 30rpx;box-sizing: border-box;border-radius: 40rpx;display: flex;align-items: center;
  670. justify-content: center;margin:0 12rpx;flex:1;
  671. &.btn1{border: 2rpx solid #1D64E2;background: #ffffff;color: #1D64E2;}
  672. &.btn2{background: #1D64E2;color: #ffffff;}
  673. &.btn3{border: 2rpx solid #FF0000;background: #ffffff;color: #FF0000;}
  674. }
  675. }
  676. </style>