details.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. <template>
  2. <view class="detail">
  3. <view class="navbox">
  4. <uni-nav-bar color="#ffffff" rightWidth="150rpx" title="履职详情" @clickLeft="getBack" @clickRight="getEditFn" :background-color="backgroundColor" :border="false" statusBar='true' fixed="true">
  5. <block slot="left">
  6. <view class="topl">
  7. <image :src="backimg" ></image>
  8. </view>
  9. </block>
  10. <block slot="right">
  11. <view class="topr" v-if="checkPermi(['member:info:edit'])">
  12. <image :src="editimg"></image>
  13. <view>修改</view>
  14. </view>
  15. </block>
  16. </uni-nav-bar>
  17. </view>
  18. <!-- 主体 -->
  19. <view class="deboxs">
  20. <view class="dbox">
  21. <view class="titbox mb14">
  22. <view class="tit flexc">
  23. <image :src="titimg"></image>
  24. <view>基本信息</view>
  25. </view>
  26. </view>
  27. <view class="header flexc">
  28. <view class="titinf flex1">
  29. <view class="txt"><text>委员姓名</text>{{memberInfo.name}}</view>
  30. <view class="txt"><text>身份证号</text>{{memberInfo.card}}</view>
  31. <view class="txt"><text>联系方式</text>{{memberInfo.phonenumber}}</view>
  32. </view>
  33. <image :src="baseUrl+memberInfo.avatar"></image>
  34. </view>
  35. <view class="titinf">
  36. <view class="txt"><text>党派</text>{{kaType(memberInfo.partyAffiliation,dplist)}}</view>
  37. <view class="txt"> <text>界别</text>{{kaType(memberInfo.boundary,jblist)}}</view>
  38. <view class="txt"><text>工作单位及职务</text>{{memberInfo.unit}}</view>
  39. <view class="txt"><text>乡镇(经开区)委员工作室</text>{{memberInfo.studio}}</view>
  40. </view>
  41. </view>
  42. <view class="dbox">
  43. <view class="titbox mb27 flexc">
  44. <view class="tit flexc flex1">
  45. <image :src="titimg"></image>
  46. <view>提案方面</view>
  47. </view>
  48. <view class="tips">请左右滑动查看详细信息</view>
  49. </view>
  50. <view class="mb10">
  51. <block v-if="proposalInfoList&&proposalInfoList.length">
  52. <zb-table
  53. :show-header="true"
  54. :columns="columns"
  55. :headbgColor="headbgColor"
  56. :stripe="false"
  57. :fit="true"
  58. @rowClick="rowClick"
  59. @toggleRowSelection="toggleRowSelection"
  60. @toggleAllSelection="toggleAllSelection"
  61. :border="border"
  62. :borderr="borderr"
  63. @detail="getDetail"
  64. :data="proposalInfoList"></zb-table>
  65. </block>
  66. <block v-else>
  67. <no-data padtop="0" padbottom="20"></no-data>
  68. </block>
  69. </view>
  70. </view>
  71. <view class="dbox">
  72. <view class="titbox mb27 flexc">
  73. <view class="tit flexc flex1">
  74. <image :src="titimg"></image>
  75. <view>社情民意方面</view>
  76. </view>
  77. <view class="tips">请左右滑动查看详细信息</view>
  78. </view>
  79. <view class="mb10">
  80. <block v-if="sqmyInfoList&&sqmyInfoList.length">
  81. <zb-table
  82. :show-header="true"
  83. :columns="zxcolumns"
  84. :headbgColor="headbgColor"
  85. :stripe="false"
  86. :fit="true"
  87. @rowClick="rowClick"
  88. @toggleRowSelection="toggleRowSelection"
  89. @toggleAllSelection="toggleAllSelection"
  90. :border="border"
  91. :borderr="borderr"
  92. @detail="getDetail"
  93. :data="sqmyInfoList"></zb-table>
  94. </block>
  95. <block v-else>
  96. <no-data padtop="0" padbottom="20"></no-data>
  97. </block>
  98. </view>
  99. </view>
  100. <view class="dbox">
  101. <view class="titbox mb27 flexc">
  102. <view class="tit flexc flex1">
  103. <image :src="titimg"></image>
  104. <view>会议参与情况</view>
  105. </view>
  106. <view class="tips">请左右滑动查看详细信息</view>
  107. </view>
  108. <view class="mb10">
  109. <block v-if="zxConferenceList&&zxConferenceList.length">
  110. <zb-table
  111. :show-header="true"
  112. :columns="zxcolumns"
  113. :headbgColor="headbgColor"
  114. :stripe="false"
  115. :fit="true"
  116. @rowClick="rowClick"
  117. @toggleRowSelection="toggleRowSelection"
  118. @toggleAllSelection="toggleAllSelection"
  119. :border="border"
  120. :borderr="borderr"
  121. @detail="getDetail"
  122. :data="zxConferenceList"></zb-table>
  123. </block>
  124. <block v-else>
  125. <no-data padtop="0" padbottom="20"></no-data>
  126. </block>
  127. </view>
  128. </view>
  129. <view class="dbox">
  130. <view class="titbox mb27 flexc">
  131. <view class="tit flexc flex1">
  132. <image :src="titimg"></image>
  133. <view>活动参与情况</view>
  134. </view>
  135. <view class="tips">请左右滑动查看详细信息</view>
  136. </view>
  137. <view class="mb10">
  138. <block v-if="zxActivityList&&zxActivityList.length">
  139. <zb-table
  140. :show-header="true"
  141. :columns="hdcolumns"
  142. :headbgColor="headbgColor"
  143. :stripe="false"
  144. :fit="true"
  145. :parameter="parameter"
  146. @rowClick="rowClick"
  147. @toggleRowSelection="toggleRowSelection"
  148. @toggleAllSelection="toggleAllSelection"
  149. :border="border"
  150. :borderr="borderr"
  151. @detail="getDetail"
  152. :data="zxActivityList"></zb-table>
  153. </block>
  154. <block v-else>
  155. <no-data padtop="0" padbottom="20"></no-data>
  156. </block>
  157. </view>
  158. </view>
  159. <view class="dbox">
  160. <view class="titbox mb27 flexc">
  161. <view class="tit flexc flex1">
  162. <image :src="titimg"></image>
  163. <view>大会发言情况</view>
  164. </view>
  165. <view class="tips">请左右滑动查看详细信息</view>
  166. </view>
  167. <view class="mb10">
  168. <block v-if="zxSpeakList&&zxSpeakList.length">
  169. <zb-table
  170. :show-header="true"
  171. :columns="fycolumns"
  172. :headbgColor="headbgColor"
  173. :stripe="false"
  174. :fit="true"
  175. @rowClick="rowClick"
  176. @toggleRowSelection="toggleRowSelection"
  177. @toggleAllSelection="toggleAllSelection"
  178. :border="border"
  179. :borderr="borderr"
  180. @detail="getDetail"
  181. :data="zxSpeakList"></zb-table>
  182. </block>
  183. <block v-else>
  184. <no-data padtop="0" padbottom="20"></no-data>
  185. </block>
  186. </view>
  187. </view>
  188. <view class="fbtns">
  189. <view class="btn btn1" @click="getReportFn">生成报告</view>
  190. <!-- <view class="btn btn2" @click="getScfkFn">审核</view> -->
  191. </view>
  192. </view>
  193. <pop-up :type='ptype' @getClose="getClose"></pop-up>
  194. </view>
  195. </template>
  196. <script>
  197. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  198. import config from '@/config'
  199. const baseUrl = config.baseUrl
  200. import noData from "@/components/nodata/nodata.vue"
  201. import zbTable from "@/work/components/zb-table/zb-tables.vue"
  202. import popUp from "@/work/components/popup/popup.vue"
  203. import { selectValue } from '@/utils/common.js';
  204. import {getInfojopDetai} from "@/api/mine/report.js"
  205. import {getDictionaryFn} from "@/api/mine/register.js"
  206. export default{
  207. components:{popUp,zbTable,noData},
  208. data(){
  209. return{
  210. backimg:require("@/work/static/images/back.png"),
  211. editimg:require("@/work/static/images/edit.png"),
  212. fjimg:require("@/work/static/images/fjimg.png"),
  213. filelist:[],
  214. stepList:[],
  215. backgroundColor:"#1D64E2",
  216. titimg:require("@/work/static/images/titbg.png"),
  217. columns: [
  218. { name: 'num', label: '案号',width:230,align:'center', },
  219. { name: 'name', label: '题目',align:'center'},
  220. ],
  221. zxcolumns: [
  222. { name: 'num', label: '信息标题 ',width:230,align:'center', },
  223. { name: 'name', label: '类型',align:'center'},
  224. ],
  225. hdcolumns: [
  226. { name: 'activityTitle', label: '活动名称 ',width:230,align:'center', },
  227. { name: 'activityDate', label: '活动日期',align:'center'},
  228. { name: 'activityAddress', label: '活动地点',align:'center'},
  229. { name: 'activityType', type:"format", label: '活动类型',align:'center',key:"hdlxlist"},
  230. ],
  231. fycolumns: [
  232. { name: 'speakTitle', label: '发言题目 ',width:230,align:'center', },
  233. { name: 'conferenceTitle', label: '关联会议',align:'center'},
  234. ],
  235. parameter:{
  236. hdlxlist:[]
  237. },
  238. border:true,
  239. borderr:false,
  240. headbgColor:'#F1F1F1',
  241. tableData:[{num:"111",name:'题目关于拓展市校合作,助推高质量发展的建议'},{num:"111",name:'题目关于拓展市校合作,助推高质量发展的建议'}],
  242. dwdetList:[],
  243. dwVal:0,
  244. ptype:'',
  245. datainfo:{},
  246. matterList:[],
  247. memberInfo:{},
  248. proposalInfoList:{},
  249. sqmyInfoList:{},
  250. zxConferenceList:{},
  251. zxActivityList:{},
  252. zxSpeakList:{},
  253. jblist:[],
  254. dplist:[],
  255. }
  256. },
  257. onUnload(){
  258. uni.$off('refreshdetail')
  259. },
  260. onLoad(e) {
  261. this.id=e.id;
  262. this.baseUrl=baseUrl;
  263. this.getDetail()
  264. this.init()
  265. uni.$on('refreshdetail', (e) => {
  266. this.getDetail()
  267. })
  268. },
  269. mounted() {
  270. },
  271. methods:{
  272. checkPermi, checkRole,
  273. getBack(){
  274. uni.navigateBack({
  275. delta:1
  276. })
  277. },
  278. kaType(ite,list){
  279. return selectValue(list, ite);
  280. },
  281. typeFormat(ite,list){
  282. return selectValue(list, ite);
  283. },
  284. init(){
  285. // 界别
  286. getDictionaryFn('circles').then(res=>{
  287. if(res.code==200&&res.data.length){
  288. this.jblist = res.data.map(v => {
  289. return {
  290. label: v.dictLabel,
  291. value:v.dictValue
  292. }
  293. })
  294. }
  295. })
  296. // 党派
  297. getDictionaryFn('political_parties').then(res=>{
  298. if(res.code==200&&res.data.length){
  299. this.dplist = res.data.map(v => {
  300. return {
  301. label: v.dictLabel,
  302. value: v.dictValue
  303. }
  304. })
  305. }
  306. })
  307. getDictionaryFn('activity_type').then(res=>{
  308. if(res.code==200&&res.data.length){
  309. this.parameter.hdlxlist = res.data.map(v => {
  310. return {
  311. label: v.dictLabel,
  312. value:v.dictValue
  313. }
  314. })
  315. }
  316. })
  317. //活动类型
  318. },
  319. getReportFn(){
  320. this.$tab.navigateTo('/work/pages/report/report?id='+this.id)
  321. },
  322. getEditFn(){
  323. if(checkPermi(['member:info:edit'])){
  324. this.$tab.navigateTo('/work/pages/report/mineinfo?id='+this.id)
  325. }
  326. },
  327. getClose(){
  328. this.ptype=""
  329. },
  330. getScfkFn(){
  331. this.ptype="scfk"
  332. },
  333. getDelFn(){
  334. var that=this;
  335. uni.showModal({
  336. title: '确认删除',
  337. content: "是否确认删除该提案",
  338. cancelText: '取消',
  339. confirmText: '确认',
  340. success: function(res) {
  341. if (res.confirm) {
  342. getCasDelFn(this.id).then(res=>{
  343. if(res.code==200){
  344. that.$toast('删除成功')
  345. uni.$emit("refreshlist")
  346. setTimeout(function(){
  347. uni.navigateBack({
  348. delta: 1 //返回层数,2则上上页
  349. });
  350. },1200)
  351. }
  352. })
  353. } else if (res.cancel) {
  354. // console.log('用户点击取消');
  355. }
  356. }
  357. });
  358. },
  359. getDetail(){
  360. getInfojopDetai(this.id).then(res=>{
  361. if(res.code==200){
  362. this.datainfo=res.data;
  363. this.memberInfo=res.data.memberInfo;
  364. this.proposalInfoList=res.data.proposalInfoList;
  365. this.sqmyInfoList=res.data.sqmyInfoList;
  366. this.zxConferenceList=res.data.zxConferenceList;
  367. this.zxActivityList=res.data.zxActivityList;
  368. this.zxSpeakList=res.data.zxSpeakList;
  369. // if(res.data.zxFjList&&res.data.zxFjList.length){
  370. // this.filelist=JSON.parse(JSON.stringify(res.data.zxFjList))
  371. // }
  372. // this.dwdetList=res.data.proposalUnitReplyList;
  373. }
  374. })
  375. },
  376. }
  377. }
  378. </script>
  379. <style scoped lang="scss">
  380. .detail{display: flex;flex-direction: column;height: 100vh;}
  381. .navbox{background-color: $com-cd3;flex:0 0 auto;
  382. .topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
  383. image{width: 40rpx;height: 30rpx;}
  384. }
  385. .topr{display: flex;align-items: center;
  386. image{width: 26rpx;height: 26rpx;margin-right: 12rpx;}
  387. view{font-weight: 500;font-size: 26rpx;color: #FFFFFF;}
  388. }
  389. }
  390. .deboxs{flex:1;overflow: auto;padding-bottom: 30rpx;padding-top: 24rpx;
  391. .dbox{background: #FFFFFF;border-radius: 10rpx;margin: 0 24rpx 24rpx;padding: 36rpx 24rpx 24rpx;
  392. .titbox{
  393. .tit{
  394. image{width: 32rpx;height: 18rpx;margin-right: 10rpx;}
  395. view{font-weight: bold;font-size: 32rpx;color: #222327;}
  396. }
  397. .tips{font-weight: 500;font-size: 26rpx;color: #FF0000;}
  398. }
  399. .titinf{display: flex;flex-wrap: wrap;
  400. &.nact{height: 0;overflow: hidden;}
  401. &.act{height: auto;}
  402. .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%;
  403. &.nact{height: 200rpx;overflow: hidden;}
  404. &.act{height: auto;}
  405. text{color: #AAAAAA;min-width: 104rpx;text-align-last: justify;flex: 0 0 auto;margin-right: 20rpx;
  406. &.w65{width: 130rpx;}
  407. }
  408. view{text-indent: 2rem;}
  409. }
  410. }
  411. .header{
  412. image{width: 166rpx;height: 200rpx;flex: 0 0 auto;margin-top: -66rpx;}
  413. .txt{min-width: 100%;}
  414. }
  415. .bortop{border-top: 2rpx dashed #C1C1C1;margin-bottom: 32rpx;margin-top: 14rpx;width: 100%;}
  416. // 附件
  417. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  418. // image{margin-right: 18rpx;flex: 0 0 auto;}
  419. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 6rpx;flex: 0 0 auto;
  420. image{width: 26rpx;height: 24rpx;}
  421. }
  422. .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;flex:1;}
  423. .fjlook{font-weight: 500;font-size: 26rpx;color: #1D64E2;flex: 0 0 auto;margin-left: 20rpx;margin-top: 4rpx;}
  424. }
  425. }
  426. }
  427. // 按钮
  428. .fbtns{display: flex;align-items: center;justify-content: space-between;padding: 54rpx 12rpx 34rpx;
  429. .btn{height: 80rpx;font-weight: bold;font-size: 30rpx;box-sizing: border-box;border-radius: 40rpx;display: flex;align-items: center;
  430. justify-content: center;margin:0 12rpx;flex:1;
  431. &.btn1{border: 2rpx solid #1D64E2;background: #ffffff;color: #1D64E2;}
  432. &.btn2{background: #1D64E2;color: #ffffff;}
  433. }
  434. }
  435. </style>