details.vue 14 KB

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