details.vue 25 KB

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