details.vue 24 KB

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