details.vue 16 KB

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