details.vue 24 KB

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