details.vue 26 KB

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