details.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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">
  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>{{datainfo.proposalName}}</view>
  30. <view class="txt"><text>身份证号</text>{{datainfo.boundary}}</view>
  31. <view class="txt"><text>联系方式</text>{{datainfo.partyAffiliation}}</view>
  32. </view>
  33. <image :src="fjimg"></image>
  34. </view>
  35. <view class="titinf">
  36. <view class="txt"><text>党派</text>{{datainfo.proposalPhone}}</view>
  37. <view class="txt"> <text>界别</text>{{datainfo.categoryName}}</view>
  38. <view class="txt"><text>工作单位及职务</text>{{datainfo.proposalType==0?'大会提案':'平时提案'}}</view>
  39. <view class="txt"><text>乡镇(经开区)委员工作室</text>乡镇(经开区)委员工作室{{datainfo.createTime}}</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. <zb-table
  52. :show-header="true"
  53. :columns="columns"
  54. :headbgColor="headbgColor"
  55. :stripe="false"
  56. :fit="true"
  57. @rowClick="rowClick"
  58. @toggleRowSelection="toggleRowSelection"
  59. @toggleAllSelection="toggleAllSelection"
  60. :border="border"
  61. :borderr="borderr"
  62. @detail="getDetail"
  63. :data="tableData"></zb-table>
  64. </view>
  65. </view>
  66. <view class="dbox">
  67. <view class="titbox mb27 flexc">
  68. <view class="tit flexc flex1">
  69. <image :src="titimg"></image>
  70. <view>社情民意方面</view>
  71. </view>
  72. <view class="tips">请左右滑动查看详细信息</view>
  73. </view>
  74. <view class="mb10">
  75. <zb-table
  76. :show-header="true"
  77. :columns="zxcolumns"
  78. :headbgColor="headbgColor"
  79. :stripe="false"
  80. :fit="true"
  81. @rowClick="rowClick"
  82. @toggleRowSelection="toggleRowSelection"
  83. @toggleAllSelection="toggleAllSelection"
  84. :border="border"
  85. :borderr="borderr"
  86. @detail="getDetail"
  87. :data="tableData"></zb-table>
  88. </view>
  89. </view>
  90. <view class="dbox">
  91. <view class="titbox mb27 flexc">
  92. <view class="tit flexc flex1">
  93. <image :src="titimg"></image>
  94. <view>会议参与情况</view>
  95. </view>
  96. <view class="tips">请左右滑动查看详细信息</view>
  97. </view>
  98. <view class="mb10">
  99. <no-data padtop="0" padbottom="20"></no-data>
  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. <no-data padtop="0" padbottom="20"></no-data>
  112. </view>
  113. </view>
  114. <view class="dbox">
  115. <view class="titbox mb27 flexc">
  116. <view class="tit flexc flex1">
  117. <image :src="titimg"></image>
  118. <view>大会发言情况</view>
  119. </view>
  120. <view class="tips">请左右滑动查看详细信息</view>
  121. </view>
  122. <view class="mb10">
  123. <zb-table
  124. :show-header="true"
  125. :columns="fycolumns"
  126. :headbgColor="headbgColor"
  127. :stripe="false"
  128. :fit="true"
  129. @rowClick="rowClick"
  130. @toggleRowSelection="toggleRowSelection"
  131. @toggleAllSelection="toggleAllSelection"
  132. :border="border"
  133. :borderr="borderr"
  134. @detail="getDetail"
  135. :data="tableData"></zb-table>
  136. </view>
  137. </view>
  138. <view class="fbtns">
  139. <view class="btn btn1" @click="getReportFn">生成报告</view>
  140. <view class="btn btn2" @click="getScfkFn">审核</view>
  141. </view>
  142. </view>
  143. <pop-up :type='ptype' @getClose="getClose"></pop-up>
  144. </view>
  145. </template>
  146. <script>
  147. import noData from "@/components/nodata/nodata.vue"
  148. import zbTable from "@/work/components/zb-table/zb-tables.vue"
  149. import popUp from "@/work/components/popup/popup.vue"
  150. import { selectValue } from '@/utils/common.js';
  151. import {getCaseDetailFn,getCasDelFn} from "@/api/mine/case.js"
  152. import {getDictionaryFn} from "@/api/mine/register.js"
  153. export default{
  154. components:{popUp,zbTable,noData},
  155. data(){
  156. return{
  157. backimg:require("@/work/static/images/back.png"),
  158. editimg:require("@/work/static/images/edit.png"),
  159. fjimg:require("@/work/static/images/fjimg.png"),
  160. filelist:[],
  161. stepList:[],
  162. backgroundColor:"#1D64E2",
  163. titimg:require("@/work/static/images/titbg.png"),
  164. columns: [
  165. { name: 'num', label: '案号',width:230,align:'center', },
  166. { name: 'name', label: '题目',align:'center'},
  167. ],
  168. zxcolumns: [
  169. { name: 'num', label: '信息标题 ',width:230,align:'center', },
  170. { name: 'name', label: '类型',align:'center'},
  171. ],
  172. fycolumns: [
  173. { name: 'num', label: '发言题目 ',width:230,align:'center', },
  174. { name: 'name', label: '关联会议',align:'center'},
  175. ],
  176. border:true,
  177. borderr:false,
  178. headbgColor:'#F1F1F1',
  179. tableData:[{num:"111",name:'题目关于拓展市校合作,助推高质量发展的建议'},{num:"111",name:'题目关于拓展市校合作,助推高质量发展的建议'}],
  180. dwdetList:[],
  181. dwVal:0,
  182. ptype:'',
  183. datainfo:{},
  184. matterList:[],
  185. }
  186. },
  187. onUnload(){
  188. uni.$off('refreshdetail')
  189. },
  190. onLoad(e) {
  191. // this.id=e.id;
  192. // this.getDetail()
  193. // this.init()
  194. // uni.$on('refreshdetail', (e) => {
  195. // this.getDetail()
  196. // })
  197. },
  198. mounted() {
  199. },
  200. methods:{
  201. getBack(){
  202. uni.navigateBack({
  203. delta:1
  204. })
  205. },
  206. kaType(ite){
  207. if(ite){
  208. var newArr=ite.split(',')
  209. var actions=[];
  210. var datas=this.matterList;
  211. newArr.forEach(ite=>{
  212. Object.keys(datas).some((key) => {
  213. if (datas[key].value == ('' + ite)) {
  214. actions.push(datas[key].label);
  215. return true;
  216. }
  217. })
  218. })
  219. return actions.join(' ')
  220. }
  221. },
  222. typeFormat(ite,list){
  223. return selectValue(list, ite);
  224. },
  225. init(){
  226. //提案状态
  227. getDictionaryFn('proposal_progress').then(res=>{
  228. if(res.code==200&&res.data.length){
  229. this.stepList = res.data.map(v => {
  230. return {
  231. label: v.dictLabel,
  232. value:v.dictValue
  233. }
  234. })
  235. }
  236. })
  237. },
  238. getReportFn(){
  239. this.$tab.navigateTo('/work/pages/report/report')
  240. },
  241. getEditFn(){
  242. this.$tab.navigateTo('/work/pages/report/mineinfo')
  243. },
  244. getClose(){
  245. this.ptype=""
  246. },
  247. getScfkFn(){
  248. this.ptype="scfk"
  249. },
  250. getDelFn(){
  251. var that=this;
  252. uni.showModal({
  253. title: '确认删除',
  254. content: "是否确认删除该提案",
  255. cancelText: '取消',
  256. confirmText: '确认',
  257. success: function(res) {
  258. if (res.confirm) {
  259. getCasDelFn(this.id).then(res=>{
  260. if(res.code==200){
  261. that.$toast('删除成功')
  262. uni.$emit("refreshlist")
  263. setTimeout(function(){
  264. uni.navigateBack({
  265. delta: 1 //返回层数,2则上上页
  266. });
  267. },1200)
  268. }
  269. })
  270. } else if (res.cancel) {
  271. // console.log('用户点击取消');
  272. }
  273. }
  274. });
  275. },
  276. getDetail(){
  277. getCaseDetailFn(this.id).then(res=>{
  278. if(res.code==200){
  279. this.datainfo=res.data;
  280. if(res.data.zxFjList&&res.data.zxFjList.length){
  281. this.filelist=JSON.parse(JSON.stringify(res.data.zxFjList))
  282. }
  283. this.dwdetList=res.data.proposalUnitReplyList;
  284. }
  285. })
  286. },
  287. }
  288. }
  289. </script>
  290. <style scoped lang="scss">
  291. .detail{display: flex;flex-direction: column;height: 100vh;}
  292. .navbox{background-color: $com-cd3;flex:0 0 auto;
  293. .topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
  294. image{width: 40rpx;height: 30rpx;}
  295. }
  296. .topr{display: flex;align-items: center;
  297. image{width: 26rpx;height: 26rpx;margin-right: 12rpx;}
  298. view{font-weight: 500;font-size: 26rpx;color: #FFFFFF;}
  299. }
  300. }
  301. .deboxs{flex:1;overflow: auto;padding-bottom: 30rpx;padding-top: 24rpx;
  302. .dbox{background: #FFFFFF;border-radius: 10rpx;margin: 0 24rpx 24rpx;padding: 36rpx 24rpx 24rpx;
  303. .titbox{
  304. .tit{
  305. image{width: 32rpx;height: 18rpx;margin-right: 10rpx;}
  306. view{font-weight: bold;font-size: 32rpx;color: #222327;}
  307. }
  308. .tips{font-weight: 500;font-size: 26rpx;color: #FF0000;}
  309. }
  310. .titinf{display: flex;flex-wrap: wrap;
  311. &.nact{height: 0;overflow: hidden;}
  312. &.act{height: auto;}
  313. .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%;
  314. &.nact{height: 200rpx;overflow: hidden;}
  315. &.act{height: auto;}
  316. text{color: #AAAAAA;min-width: 104rpx;text-align-last: justify;flex: 0 0 auto;margin-right: 20rpx;
  317. &.w65{width: 130rpx;}
  318. }
  319. view{text-indent: 2rem;}
  320. }
  321. }
  322. .header{
  323. image{width: 166rpx;height: 200rpx;flex: 0 0 auto;margin-top: -66rpx;}
  324. .txt{min-width: 100%;}
  325. }
  326. .bortop{border-top: 2rpx dashed #C1C1C1;margin-bottom: 32rpx;margin-top: 14rpx;width: 100%;}
  327. // 附件
  328. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  329. // image{margin-right: 18rpx;flex: 0 0 auto;}
  330. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 6rpx;flex: 0 0 auto;
  331. image{width: 26rpx;height: 24rpx;}
  332. }
  333. .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;flex:1;}
  334. .fjlook{font-weight: 500;font-size: 26rpx;color: #1D64E2;flex: 0 0 auto;margin-left: 20rpx;margin-top: 4rpx;}
  335. }
  336. }
  337. }
  338. // 按钮
  339. .fbtns{display: flex;align-items: center;justify-content: space-between;padding: 54rpx 12rpx 34rpx;
  340. .btn{height: 80rpx;font-weight: bold;font-size: 30rpx;box-sizing: border-box;border-radius: 40rpx;display: flex;align-items: center;
  341. justify-content: center;margin:0 12rpx;flex:1;
  342. &.btn1{border: 2rpx solid #1D64E2;background: #ffffff;color: #1D64E2;}
  343. &.btn2{background: #1D64E2;color: #ffffff;}
  344. }
  345. }
  346. </style>