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