details.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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>{{datainfo.boundary}}</view>
  27. <view class="txt"><text>党派</text>{{datainfo.partyAffiliation}}</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}}{{datainfo.unit}}</view>
  33. </view>
  34. <view class="titinf " :class="zheList[0].zheflag?'nact':'act'">
  35. <view class="bortop"></view>
  36. <view class="txt"><text>联名提案</text>{{datainfo.isJointly==0?'是':'否'}}</view>
  37. <view class="txt"><text>经过调研</text>{{datainfo.isSurvey==0?'是':'否'}}</view>
  38. <view class="txt"><text>第一次提出</text>{{datainfo.isFirst==0?'是':'否'}}</view>
  39. <view class="txt"><text>本人撰写</text>{{datainfo.isPerson==0?'是':'否'}}</view>
  40. <view class="txt"> <text>需要办理的协商方式</text>{{kaType(datainfo.negotiateType)}}</view>
  41. <view class="txt"><text>建议承办的单位</text>{{datainfo.proposedContractor}}</view>
  42. </view>
  43. <!-- 折叠 -->
  44. <view class="zhebox" :class="zheList[0].zheflag?'':'act'" @click="getZheFn(0)">
  45. <image :src="upsimg"></image>
  46. <view>{{zheList[0].zheflag?'展开信息':'折叠信息'}}</view>
  47. </view>
  48. </view>
  49. <view class="dbox">
  50. <view class="titbox mb14">
  51. <view class="tit flexc">
  52. <image :src="titimg"></image>
  53. <view>提案内容</view>
  54. </view>
  55. </view>
  56. <view class="txtbox" :class="zheList[1].zheflag?'nact':'act'">
  57. <rich-text :nodes="datainfo.proposalContent"></rich-text>
  58. </view>
  59. <!-- 折叠 -->
  60. <view class="zhebox" :class="zheList[1].zheflag?'':'act'" @click="getZheFn(1)">
  61. <image :src="upsimg"></image>
  62. <view>{{zheList[1].zheflag?'展开信息':'折叠信息'}}</view>
  63. </view>
  64. <view class="bortop"></view>
  65. <view class="ftit mb14">附件信息</view>
  66. <view class="fjlists flext" v-for="(ite,idx) in filelist" :key='idx' @click="getDown(ite.path)">
  67. <view class="imgl"><image :src="fjimg" ></image></view>
  68. <view class="tit">{{ite.name}}</view>
  69. <view class="fjlook">查看</view>
  70. </view>
  71. </view>
  72. <!-- 提案立案以下隐藏 -->
  73. <view class="dbox">
  74. <view class="titbox mb16">
  75. <view class="tit flexc">
  76. <image :src="titimg"></image>
  77. <view>办理情况</view>
  78. </view>
  79. </view>
  80. <view>
  81. <view class="dbtabs flexc mb20">
  82. <view class="dbtab" :class="ite.val==dwVal?'act':''" v-for="(ite,idx) in dwList" :key="idx" @click="getDwFn(ite.val)">{{ite.tit}}</view>
  83. </view>
  84. <view class="titinf">
  85. <view class="txt wb100"><text>主办单位</text>市公安局</view>
  86. <view class="txt"><text>办理方式</text>网络</view>
  87. <view class="txt"><text>办理程度</text>{{typeFormat(datainfo.complexType,dflxList)}}</view>
  88. <view class="txt"><text>签收时间</text>2024-01-03 17:56</view>
  89. <view class="txt"> <text>办结时间</text>2024-01-03 18:31</view>
  90. <view class="txt" :class="zheList[2].zheflag?'nact':'act'"><text>答复内容</text>
  91. <view>我市作为全省重要的化工城市,化工企业主要集中在大观区和高新区。2018年,安庆石化将投入大量资金建设化工项目,城区危化品安全管理难度进一步加大,而万华油品“4.2”事故已经暴露出城区危化品安全监管基层基础力量薄弱,缺乏专业化监管队伍、无危化品物流园等问题。</view>
  92. </view>
  93. </view>
  94. </view>
  95. <!-- 折叠 -->
  96. <view class="zhebox" :class="zheList[2].zheflag?'':'act'" @click="getZheFn(2)">
  97. <image :src="upsimg"></image>
  98. <view>{{zheList[2].zheflag?'展开信息':'折叠信息'}}</view>
  99. </view>
  100. <view class="bortop"></view>
  101. <view class="ftit mb14">答复函</view>
  102. <view class="fjlists flext" v-for="(ite,idx) in filelist" :key='idx' @click="getDown(ite.path)">
  103. <view class="imgl"><image :src="fjimg" ></image></view>
  104. <view class="tit">{{ite.name}}</view>
  105. <view class="fjlook">查看</view>
  106. </view>
  107. </view>
  108. <view class="dbox">
  109. <view class="titbox mb16">
  110. <view class="tit flexc">
  111. <image :src="titimg"></image>
  112. <view>反馈情况</view>
  113. </view>
  114. </view>
  115. <view class="titinf">
  116. <view class="txt wb100" style="align-items: center;"><text class="w65">对办理情况是否满意</text>{{typeFormat(datainfo.satisfaction,mycdlist)}}</view>
  117. <view class="txt"><text class="w65">有何进一步意见和建议</text>
  118. {{datainfo.membersOpinion}}
  119. </view>
  120. </view>
  121. </view>
  122. <view class="fbtns">
  123. <view class="btn btn1" @click="getDelFn">删除</view>
  124. <view class="btn btn1" @click="getEditFn">修改提案</view>
  125. <view class="btn btn2" @click="getScfkFn">审查反馈</view>
  126. </view>
  127. </view>
  128. <pop-up :type='ptype' @getClose="getClose"></pop-up>
  129. </view>
  130. </template>
  131. <script>
  132. import popUp from "@/work/components/popup/popup.vue"
  133. import { selectValue } from '@/utils/common.js';
  134. import {getCaseDetailFn,getCasDelFn} from "@/api/mine/case.js"
  135. import {getDictionaryFn} from "@/api/mine/register.js"
  136. export default{
  137. components:{popUp},
  138. data(){
  139. return{
  140. bgimg:require("@/static/images/bg.png"),
  141. fjimg:require("@/work/static/images/fjimg.png"),
  142. filelist:[],
  143. stepList:[],
  144. tabidx:5,
  145. titimg:require("@/work/static/images/titbg.png"),
  146. upsimg:require("@/work/static/images/ups.png"),
  147. 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},],
  148. dwList:[{tit:'主办单位',val:0},{tit:'协办单位',val:1}],
  149. dwdetList:[],
  150. dwVal:0,
  151. ptype:'',
  152. datainfo:{},
  153. matterList:[],
  154. mycdlist:[],
  155. dflxList:[],
  156. }
  157. },
  158. onUnload(){
  159. uni.$off('refreshdetail')
  160. },
  161. onLoad(e) {
  162. this.id=e.id;
  163. this.getDetail()
  164. this.init()
  165. uni.$on('refreshdetail', (e) => {
  166. this.getDetail()
  167. })
  168. },
  169. methods:{
  170. kaType(ite){
  171. if(ite){
  172. var newArr=ite.split(',')
  173. var actions=[];
  174. var datas=this.matterList;
  175. newArr.forEach(ite=>{
  176. Object.keys(datas).some((key) => {
  177. if (datas[key].value == ('' + ite)) {
  178. actions.push(datas[key].label);
  179. return true;
  180. }
  181. })
  182. })
  183. return actions.join(' ')
  184. }
  185. },
  186. typeFormat(ite,list){
  187. var aite=selectValue(list, ite);
  188. return aite.actions;
  189. },
  190. init(){
  191. //提案状态
  192. getDictionaryFn('proposal_progress').then(res=>{
  193. if(res.code==200&&res.data.length){
  194. this.stepList = res.data.map(v => {
  195. return {
  196. label: v.dictLabel,
  197. value:v.dictValue
  198. }
  199. })
  200. }
  201. })
  202. // 答复类型
  203. getDictionaryFn('proposal_complex_type').then(res=>{
  204. if(res.code==200&&res.data.length){
  205. this.dflxList = res.data.map(v => {
  206. return {
  207. label: v.dictLabel,
  208. value: v.dictValue
  209. }
  210. })
  211. }
  212. })
  213. // 协商方式
  214. getDictionaryFn('negotiation_mode').then(res=>{
  215. if(res.code==200&&res.data.length){
  216. this.matterList = res.data.map(v => {
  217. return {
  218. label: v.dictLabel,
  219. value: v.dictValue
  220. }
  221. })
  222. }
  223. })
  224. // 满意程度
  225. getDictionaryFn('member_satisfaction').then(res=>{
  226. if(res.code==200&&res.data.length){
  227. this.mycdlist = res.data.map(v => {
  228. return {
  229. label: v.dictLabel,
  230. value: v.dictValue
  231. }
  232. })
  233. }
  234. })
  235. },
  236. getEditFn(){
  237. this.$tab.navigateTo('/work/pages/case/add?type=edit&id='+this.id)
  238. },
  239. getClose(){
  240. this.ptype=""
  241. },
  242. getScfkFn(){
  243. this.ptype="scfk"
  244. },
  245. getZheFn(idx){
  246. this.zheList[idx].zheflag=!this.zheList[idx].zheflag
  247. },
  248. getDwFn(idx){
  249. this.dwVal=idx
  250. },
  251. getDelFn(){
  252. var that=this;
  253. uni.showModal({
  254. title: '确认删除',
  255. content: "是否确认删除该提案",
  256. cancelText: '取消',
  257. confirmText: '确认',
  258. success: function(res) {
  259. if (res.confirm) {
  260. getCasDelFn(this.id).then(res=>{
  261. if(res.code==200){
  262. that.$toast('删除成功')
  263. uni.$emit("refreshlist")
  264. setTimeout(function(){
  265. uni.navigateBack({
  266. delta: 1 //返回层数,2则上上页
  267. });
  268. },1200)
  269. }
  270. })
  271. } else if (res.cancel) {
  272. // console.log('用户点击取消');
  273. }
  274. }
  275. });
  276. },
  277. getDetail(){
  278. getCaseDetailFn(this.id).then(res=>{
  279. if(res.code==200){
  280. this.datainfo=res.data;
  281. if(res.data.zxFjList&&res.data.zxFjList.length){
  282. this.filelist=JSON.parse(JSON.stringify(res.data.zxFjList))
  283. }
  284. this.dwdetList=res.data.proposalUnitReplyList;
  285. }
  286. })
  287. },
  288. }
  289. }
  290. </script>
  291. <style scoped lang="scss">
  292. .detail{display: flex;flex-direction: column;height: 100vh;}
  293. .navbox{background-color: $com-cd3;flex:0 0 auto;
  294. .dtabs{display: flex;padding: 40rpx 24rpx;
  295. .tab{position: relative;display: flex;flex-direction: column;align-items: center;flex: 1;
  296. &::after{content: '';height: 2rpx;width: 50%;background: #86B2FF;left: 50%;top: 10rpx;position: absolute;transform: translateX(50%);}
  297. &:last-child{
  298. &::after{display: none;}
  299. }
  300. &.act{
  301. .cir{background: #FFFFFF;}
  302. .tit{color: #FFFFFF;}
  303. }
  304. .cir{width: 20rpx;height: 20rpx;background: #86B2FF;border-radius: 50%;margin-bottom: 24rpx;}
  305. .tit{font-weight: bold;font-size: 24rpx;color: #86B2FF;width: 100%;text-align: center;padding: 0 8rpx;}
  306. }
  307. }
  308. }
  309. .deboxs{flex:1;overflow: auto;padding-bottom: 30rpx;
  310. .bghbox{height: 60rpx;background-color: $com-cd3;}
  311. .dbox{background: #FFFFFF;border-radius: 10rpx;margin: 0 24rpx 24rpx;padding: 36rpx 24rpx 24rpx;
  312. .dtit{font-weight: bold;font-size: 15px;color: #222327;margin-bottom: 48rpx;
  313. text{color: #E70000;}
  314. }
  315. .titbox{
  316. .tit{
  317. image{width: 32rpx;height: 18rpx;margin-right: 10rpx;}
  318. view{font-weight: bold;font-size: 32rpx;color: #222327;}
  319. }
  320. }
  321. .titinf{display: flex;flex-wrap: wrap;
  322. &.nact{height: 0;overflow: hidden;}
  323. &.act{height: auto;}
  324. .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%;
  325. &.nact{height: 200rpx;overflow: hidden;}
  326. &.act{height: auto;}
  327. text{color: #AAAAAA;min-width: 104rpx;text-align-last: justify;flex: 0 0 auto;margin-right: 20rpx;
  328. &.w65{width: 130rpx;}
  329. }
  330. view{text-indent: 2rem;}
  331. }
  332. }
  333. .txtbox{text-indent: 2rem;line-height: 36rpx;font-weight: 500;font-size: 26rpx;color: #222327;
  334. &.nact{max-height: 432rpx;overflow: hidden;}
  335. &.act{height: auto;}
  336. }
  337. // tab
  338. .dbtabs{
  339. .dbtab{font-weight: 500;font-size: 26rpx;height: 60rpx;line-height: 60rpx;color: #666666;position: relative;padding: 0 38rpx;margin-left: 8rpx;
  340. &.act{font-weight: bold;font-size: 30rpx;color: #222327;
  341. &::after{content: "";width: 48rpx;height: 4rpx;background: #3699FF;border-radius: 2rpx;position: absolute;left: 50%;margin-left: -24rpx;bottom: -4rpx;}
  342. }
  343. }
  344. }
  345. .bortop{border-top: 2rpx dashed #C1C1C1;margin-bottom: 32rpx;margin-top: 14rpx;width: 100%;}
  346. .ftit{font-weight: bold;font-size: 26rpx;color: #222327;}
  347. .zhebox{display: flex;align-items: center;flex-direction: column;padding: 24rpx 0;
  348. image{width: 28rpx;height: 30rpx;margin-bottom: 10rpx;transition: all 0.3s;}
  349. &.act{
  350. image{transform: rotate(-180deg);}
  351. }
  352. view{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  353. }
  354. // 附件
  355. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  356. // image{margin-right: 18rpx;flex: 0 0 auto;}
  357. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 6rpx;flex: 0 0 auto;
  358. image{width: 26rpx;height: 24rpx;}
  359. }
  360. .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;flex:1;}
  361. .fjlook{font-weight: 500;font-size: 26rpx;color: #1D64E2;flex: 0 0 auto;margin-left: 20rpx;margin-top: 4rpx;}
  362. }
  363. }
  364. }
  365. // 按钮
  366. .fbtns{display: flex;align-items: center;justify-content: space-between;padding: 54rpx 12rpx 34rpx;
  367. .btn{height: 80rpx;font-weight: bold;font-size: 30rpx;box-sizing: border-box;border-radius: 40rpx;display: flex;align-items: center;
  368. justify-content: center;margin:0 12rpx;flex:1;
  369. &.btn1{border: 2rpx solid #1D64E2;background: #ffffff;color: #1D64E2;}
  370. &.btn2{background: #1D64E2;color: #ffffff;}
  371. }
  372. }
  373. </style>