details.vue 26 KB

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