details.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. <template>
  2. <view class="detail">
  3. <view class="navbox">
  4. <!-- 步骤条 -->
  5. <view class="dtabs">
  6. <view class="tab" :class="datainfo.proposalProgress==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="idx">
  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='fidx' @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'])&&progress==1">修改</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. dwVal:2,
  253. ptype:'',
  254. datainfo:{},
  255. dflxlist:[],
  256. stepList:[],//提案状态
  257. jblist:[],//界别
  258. dplist:[],//党派
  259. matterList:[],//方式
  260. blcdlist:[],//办理程度
  261. deptTree:[],//答复单位
  262. mycdlist:[],//满意程度
  263. tary:'',
  264. progress:'',
  265. hflist:[],
  266. zblist:[],
  267. xblist:[],
  268. lmlist:[],//联名人员反馈
  269. from:'',
  270. }
  271. },
  272. onUnload(){
  273. uni.$off('refreshdetail')
  274. },
  275. onLoad(e) {
  276. this.id=e.id;
  277. this.getDetail()
  278. this.init()
  279. uni.$on('refreshdetail', (e) => {
  280. this.getDetail()
  281. })
  282. if(e.f){
  283. this.from=e.f
  284. }
  285. // this.deptTree=[{id:100,label:"若依科技",children:[{id:200,label:"吃完",},{id:201,label:"vf",}]}]
  286. },
  287. methods:{
  288. checkPermi, checkRole,
  289. kaType(ite){
  290. if(ite){
  291. var newArr=ite.split(',')
  292. var actions=[];
  293. var datas=this.matterList;
  294. newArr.forEach(ite=>{
  295. Object.keys(datas).some((key) => {
  296. if (datas[key].value == ('' + ite)) {
  297. actions.push(datas[key].label);
  298. return true;
  299. }
  300. })
  301. })
  302. return actions.join(' ')
  303. }
  304. },
  305. typeFormat(ite,list){
  306. return selectValue(list, ite);
  307. },
  308. typeFormattext(ite,list){
  309. return selectValuetext(list, ite);
  310. },
  311. init(){
  312. // 协办单位
  313. getDeptTree().then(res=>{
  314. if(res.code==200){
  315. this.deptTree=res.data
  316. }
  317. })
  318. //提案状态
  319. getDictionaryFn('proposal_progress').then(res=>{
  320. if(res.code==200&&res.data.length){
  321. this.stepList = res.data.map(v => {
  322. return {
  323. label: v.dictLabel,
  324. value:v.dictValue
  325. }
  326. })
  327. }
  328. })
  329. // 界别circles
  330. getDictionaryFn('circles').then(res=>{
  331. if(res.code==200&&res.data.length){
  332. this.jblist = res.data.map(v => {
  333. return {
  334. label: v.dictLabel,
  335. value: v.dictValue
  336. }
  337. })
  338. }
  339. })
  340. // 党派circles
  341. getDictionaryFn('political_parties').then(res=>{
  342. if(res.code==200&&res.data.length){
  343. this.dplist = res.data.map(v => {
  344. return {
  345. label: v.dictLabel,
  346. value: v.dictValue
  347. }
  348. })
  349. }
  350. })
  351. // 办理方式
  352. getDictionaryFn('negotiation_mode').then(res=>{
  353. if(res.code==200&&res.data.length){
  354. this.matterList = res.data.map(v => {
  355. return {
  356. label: v.dictLabel,
  357. value: v.dictValue
  358. }
  359. })
  360. }
  361. })
  362. // 办理程度degree
  363. getDictionaryFn('degree').then(res=>{
  364. if(res.code==200&&res.data.length){
  365. this.blcdlist = res.data.map(v => {
  366. return {
  367. text: v.dictLabel,
  368. value: v.dictValue
  369. }
  370. })
  371. }
  372. })
  373. // 满意程度
  374. getDictionaryFn('member_satisfaction').then(res=>{
  375. if(res.code==200&&res.data.length){
  376. this.mycdlist = res.data.map(v => {
  377. return {
  378. text: v.dictLabel,
  379. value: v.dictValue
  380. }
  381. })
  382. }
  383. })
  384. //答复类型
  385. getDictionaryFn('proposal_complex_type').then(res=>{
  386. if(res.code==200&&res.data.length){
  387. this.dflxlist = res.data.map(v => {
  388. return {
  389. text: v.dictLabel,
  390. value: v.dictValue
  391. }
  392. })
  393. }
  394. })
  395. },
  396. getupSubmit(e){
  397. var that=this;
  398. var type=this.ptype;
  399. if(type=='scfk'){
  400. var params=JSON.parse(JSON.stringify(e))
  401. params.proposalId=this.id
  402. getInfoisRecordFn(params).then(res=>{
  403. if(res.code==200){
  404. var str='立案';
  405. if(params.isRecord==1){
  406. str='不立案'
  407. }
  408. this.$toast(str+"成功");
  409. setTimeout(function(){
  410. uni.$emit('refreshlist')
  411. that.ptype='';
  412. that.getDetail()
  413. },1200)
  414. }
  415. })
  416. }else if(type=='tajb'){
  417. var params=JSON.parse(JSON.stringify(e))
  418. params.proposalId=this.id
  419. getInfoAssignFn(params).then(res=>{
  420. if(res.code==200){
  421. this.$toast("提案交办成功");
  422. setTimeout(function(){
  423. uni.$emit('refreshlist')
  424. that.ptype='';
  425. that.getDetail()
  426. },1200)
  427. }
  428. })
  429. }else if(type=='dffk'||type=='dwdf'){
  430. var params=JSON.parse(JSON.stringify(e))
  431. params.proposalId=this.id
  432. if(this.progress==7){
  433. params.cbdwdfwy=params.content;
  434. getInfoReplywyFn(params).then(res=>{
  435. params.cbdwdfwy=params.content;
  436. if(res.code==200){
  437. this.$toast("答复反馈成功");
  438. setTimeout(function(){
  439. uni.$emit('refreshlist')
  440. that.ptype='';
  441. that.getDetail()
  442. },1200)
  443. }
  444. })
  445. }else{
  446. getInfoReplyFn(params).then(res=>{
  447. if(res.code==200){
  448. this.$toast("答复反馈成功");
  449. setTimeout(function(){
  450. uni.$emit('refreshlist')
  451. that.ptype='';
  452. that.getDetail()
  453. },1200)
  454. }
  455. })
  456. }
  457. }else if(type=='jbsh'){
  458. var params=JSON.parse(JSON.stringify(e))
  459. params.proposalId=this.id
  460. getInfoShFn(params).then(res=>{
  461. if(res.code==200){
  462. this.$toast("交办审核成功");
  463. setTimeout(function(){
  464. uni.$emit('refreshlist')
  465. that.ptype='';
  466. that.getDetail()
  467. },1200)
  468. }
  469. })
  470. }else if(type=='wymyfk'){
  471. var params=JSON.parse(JSON.stringify(e))
  472. params.proposalId=this.id
  473. getInfoIdeaFn(params).then(res=>{
  474. if(res.code==200){
  475. this.$toast("提案办结成功");
  476. setTimeout(function(){
  477. that.ptype='';
  478. that.getDetail()
  479. },1200)
  480. }
  481. })
  482. }else if(type=='zxmyfk'){
  483. var params=JSON.parse(JSON.stringify(e))
  484. params.proposalId=this.id
  485. getInfozxIdeaFn(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. }
  495. },
  496. getEditFn(){
  497. this.$tab.navigateTo('/work/pages/case/add?type=edit&id='+this.id)
  498. },
  499. getClose(){
  500. this.ptype=""
  501. },
  502. getlmtaFn(type,sh){
  503. var that=this;
  504. var str="同意"
  505. if(sh==2){
  506. str='反对'
  507. }
  508. uni.showModal({
  509. title: '确认'+str+'联名',
  510. content: "是否确认"+str+"联名",
  511. cancelText: '取消',
  512. confirmText: '确认',
  513. success: function(res) {
  514. if (res.confirm) {
  515. var params={
  516. proposalId:that.id,
  517. isAgree:sh,
  518. }
  519. getUserverifyFn(params).then(res=>{
  520. if(res.code==200){
  521. that.$toast(str+"联名提案成功");
  522. setTimeout(function(){
  523. uni.$emit("refreshlist")
  524. that.getDetail()
  525. },1200)
  526. }
  527. })
  528. } else if (res.cancel) {
  529. // console.log('用户点击取消');
  530. }
  531. }
  532. });
  533. },
  534. getScfkFn(type){
  535. this.ptype=type
  536. },
  537. getZheFn(idx){
  538. this.zheList[idx].zheflag=!this.zheList[idx].zheflag
  539. },
  540. getDwFn(idx){
  541. this.dwVal=idx
  542. },
  543. getDelFn(){
  544. var that=this;
  545. uni.showModal({
  546. title: '确认删除',
  547. content: "是否确认删除该提案",
  548. cancelText: '取消',
  549. confirmText: '确认',
  550. success: function(res) {
  551. if (res.confirm) {
  552. getCasDelFn(that.id).then(res=>{
  553. if(res.code==200){
  554. that.$toast('删除成功')
  555. uni.$emit("refreshlist")
  556. setTimeout(function(){
  557. uni.navigateBack({
  558. delta: 1 //返回层数,2则上上页
  559. });
  560. },1200)
  561. }
  562. })
  563. } else if (res.cancel) {
  564. // console.log('用户点击取消');
  565. }
  566. }
  567. });
  568. },
  569. getDetail(){
  570. var that=this;
  571. getCaseDetailFn(this.id).then(res=>{
  572. if(res.code==200){
  573. this.datainfo=res.data;
  574. this.progress=res.data.proposalProgress;
  575. if(res.data.zxFjList&&res.data.zxFjList.length){
  576. this.filelist=JSON.parse(JSON.stringify(res.data.zxFjList))
  577. }
  578. var taryList=res.data.proposalUserList||[];
  579. if(taryList&&taryList.length){
  580. var newArr=[]
  581. taryList.forEach(ite=>{
  582. newArr.push(ite.name)
  583. })
  584. this.tary=newArr.join('/')
  585. }
  586. this.lmlist=taryList;
  587. var dwList=res.data.proposalUnitReplyList||[];
  588. var hflist=[],zblist=[],xblist=[];
  589. if(dwList&&dwList.length){
  590. dwList.forEach(ite=>{
  591. if(ite.type==1){
  592. hflist.push(ite)
  593. }else if(ite.type==2){
  594. zblist.push(ite)
  595. }else if(ite.type==3){
  596. xblist.push(ite)
  597. }
  598. })
  599. that.$nextTick(function(){
  600. that.hflist=hflist;
  601. that.zblist=zblist;
  602. that.xblist=xblist;
  603. })
  604. }
  605. }
  606. })
  607. },
  608. getDown(e){
  609. uni.showLoading({
  610. title: '加载中'
  611. });
  612. var url=baseUrl+e;
  613. uni.downloadFile({
  614. url: url,//文件的下载路径
  615. success(result) {
  616. uni.hideLoading()
  617. var filePath = result.tempFilePath;
  618. uni.openDocument({
  619. filePath: filePath,
  620. showMenu: true,
  621. success: function (res) {
  622. // console.log('打开文档成功');
  623. }
  624. });
  625. },
  626. fail(res) {uni.hideLoading()}
  627. })
  628. },
  629. }
  630. }
  631. </script>
  632. <style scoped lang="scss">
  633. .detail{display: flex;flex-direction: column;height: 100vh;}
  634. .navbox{background-color: $com-cd3;flex:0 0 auto;
  635. .dtabs{display: flex;padding: 40rpx 24rpx;
  636. .tab{position: relative;display: flex;flex-direction: column;align-items: center;flex: 1;
  637. &::after{content: '';height: 2rpx;width: 50%;background: #86B2FF;left: 50%;top: 10rpx;position: absolute;transform: translateX(50%);}
  638. &:last-child{
  639. &::after{display: none;}
  640. }
  641. &.act{
  642. .cir{background: #FFFFFF;}
  643. .tit{color: #FFFFFF;}
  644. }
  645. .cir{width: 20rpx;height: 20rpx;background: #86B2FF;border-radius: 50%;margin-bottom: 24rpx;}
  646. .tit{font-weight: bold;font-size: 24rpx;color: #86B2FF;width: 100%;text-align: center;padding: 0 8rpx;}
  647. }
  648. }
  649. }
  650. .deboxs{flex:1;overflow: auto;padding-bottom: 30rpx;
  651. .bghbox{height: 60rpx;background-color: $com-cd3;}
  652. .dbox{background: #FFFFFF;border-radius: 10rpx;margin: 0 24rpx 24rpx;padding: 36rpx 24rpx 24rpx;
  653. .dtit{font-weight: bold;font-size: 15px;color: #222327;margin-bottom: 48rpx;
  654. text{color: #E70000;}
  655. }
  656. .titbox{
  657. .tit{
  658. image{width: 32rpx;height: 18rpx;margin-right: 10rpx;}
  659. view{font-weight: bold;font-size: 32rpx;color: #222327;}
  660. }
  661. }
  662. .titinf{display: flex;flex-wrap: wrap;
  663. &.nact{height: 0;overflow: hidden;}
  664. &.act{height: auto;}
  665. .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%;
  666. &.nact{height: 80rpx;overflow: hidden;}
  667. &.act{height: auto;}
  668. text{color: #AAAAAA;min-width: 104rpx;text-align-last: justify;flex: 0 0 auto;margin-right: 20rpx;
  669. &.w65{width: 130rpx;}
  670. }
  671. &.fjbox{flex: 1 !important;display: flex;
  672. .fjlists{flex: 1;}
  673. }
  674. // view{text-indent: 2rem;}
  675. }
  676. }
  677. .txtbox{text-indent: 2rem;line-height: 36rpx;font-weight: 500;font-size: 26rpx;color: #222327;
  678. &.nact{max-height: 432rpx;overflow: hidden;}
  679. &.act{height: auto;}
  680. }
  681. // tab
  682. .dbtabs{
  683. .dbtab{font-weight: 500;font-size: 26rpx;height: 60rpx;line-height: 60rpx;color: #666666;position: relative;padding: 0 38rpx;margin-left: 8rpx;
  684. &.act{font-weight: bold;font-size: 30rpx;color: #222327;
  685. &::after{content: "";width: 48rpx;height: 4rpx;background: #3699FF;border-radius: 2rpx;position: absolute;left: 50%;margin-left: -24rpx;bottom: -4rpx;}
  686. }
  687. }
  688. }
  689. .bortop{border-top: 2rpx dashed #C1C1C1;margin-bottom: 32rpx;margin-top: 14rpx;width: 100%;}
  690. .ftit{font-weight: bold;font-size: 26rpx;color: #222327;}
  691. .zhebox{display: flex;align-items: center;flex-direction: column;padding: 24rpx 0;
  692. image{width: 28rpx;height: 30rpx;margin-bottom: 10rpx;transition: all 0.3s;}
  693. &.act{
  694. image{transform: rotate(-180deg);}
  695. }
  696. view{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  697. }
  698. // 附件
  699. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  700. // image{margin-right: 18rpx;flex: 0 0 auto;}
  701. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 6rpx;flex: 0 0 auto;
  702. image{width: 26rpx;height: 24rpx;}
  703. }
  704. .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;flex:1;}
  705. .fjlook{font-weight: 500;font-size: 26rpx;color: #1D64E2;flex: 0 0 auto;margin-left: 20rpx;margin-top: 4rpx;}
  706. }
  707. }
  708. }
  709. // 按钮
  710. .fbtns{display: flex;align-items: center;justify-content: space-between;padding: 54rpx 12rpx 34rpx;display: flex;flex-wrap: wrap;
  711. .btn{height: 80rpx;font-weight: bold;font-size: 30rpx;box-sizing: border-box;border-radius: 40rpx;display: flex;align-items: center;
  712. justify-content: center;margin:0 12rpx;flex:1;
  713. &.btn1{border: 2rpx solid #1D64E2;background: #ffffff;color: #1D64E2;}
  714. &.btn2{background: #1D64E2;color: #ffffff;}
  715. &.btn3{border: 2rpx solid #FF0000;background: #ffffff;color: #FF0000;}
  716. }
  717. }
  718. </style>