mine.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824
  1. <template>
  2. <view :style="'padding-top:'+nvaHeight+'px;'">
  3. <view class="navbox">
  4. <uni-nav-bar color="#ffffff" rightWidth="150rpx" title="政协提案" @clickLeft="getBack" @clickRight="getChFn" :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="ccicoimg"></image>
  13. <view>提案查重</view>
  14. </view>
  15. </block> -->
  16. </uni-nav-bar>
  17. <view class="plr12 mt18">
  18. <view class="search flex0 mb10">
  19. <image :src="searchimg"></image>
  20. <input placeholder="输入关键字进行查询" v-model="title" @confirm="getConfirm"/>
  21. </view>
  22. </view>
  23. <view class="tablists flexc mb20">
  24. <block v-for="(ite,idx) in tabList" >
  25. <view v-if="!ite.limit||ite.limit&&checkPermi([ite.limit])" @click="getTabFn(ite)" :class="{act:tabidx==ite.val}" :key="idx">{{ite.tit}}</view>
  26. </block>
  27. </view>
  28. <view style="height: 56rpx;"></view>
  29. <view class="lbtab flexc">
  30. <image :src="lbicoimg" class="limg"></image>
  31. <view class="lbtabs flexc">
  32. <!-- <view class="lbtabp" @click="getTalbFn">
  33. <view style="padding: 0 18rpx;" :class="tnlbname?'':'f16 co80'">{{tnlbname || "提案类别"}}</view>
  34. <image :src="upimg" class="upimg"></image>
  35. </view> -->
  36. <view class="lbtabp">
  37. <picker range-key='label' :value="talbidx" :range="talblist" @change='bindDateChangec'>
  38. <view :class="talb?'':'f16 co80'">{{talb || "提案类别"}}</view>
  39. </picker>
  40. <image :src="upimg" class="upimg"></image>
  41. </view>
  42. <view class="lbtabp" v-if="tabidx=='qb'">
  43. <picker range-key='label' :value="tajdidx" :range="tajdlist" @change='bindDateChanged'>
  44. <view :class="tajd?'':'f16 co80'">{{tajd || "提案进度"}}</view>
  45. </picker>
  46. <image :src="upimg" class="upimg"></image>
  47. </view>
  48. <view class="lbtabp" >
  49. <picker range-key='label' :value="talxidx" :range="talxList" @change='bindDateChangea'>
  50. <view :class="talx?'':'f16 co80'">{{talx || "提案类型"}}</view>
  51. </picker>
  52. <image :src="upimg" class="upimg"></image>
  53. </view>
  54. <view class="lbtabp">
  55. <picker mode="date" fields="year" range-key='label' @change='bindDateChangeb'>
  56. <view :class="year?'':'f16 co80'">{{year || "选择年份"}}</view>
  57. </picker>
  58. <image :src="upimg" class="upimg"></image>
  59. </view>
  60. <!-- <view class="lbtabp">
  61. <picker range-key='label' :value="talbidx" :range="taztList" @change='bindDateChangea'>
  62. <view :class="datainfo.dqjz?'':'f16 co80'">{{datainfo.talb || "单位答复"}}</view>
  63. </picker>
  64. <image :src="upimg" class="upimg"></image>
  65. </view> -->
  66. </view>
  67. <view class="czbtns" @click='getResetFn'>重置</view>
  68. </view>
  69. </view>
  70. <!-- 列表 -->
  71. <view class="mbox">
  72. <case-list :datalist="list" :listtype="listtype" :wtdt="wtdt" :tajdlist='tajdlist' :type='tabidx' @getDetail="getDetail" @getTuiFn="getTuiFn"></case-list>
  73. </view>
  74. <view v-if="checkPermi(['proposalInfo:info:add'])">
  75. <view style="height: 100rpx;"></view>
  76. <view class="fwbtns" @click="getAddCase">新增提案</view>
  77. </view>
  78. <!-- 弹窗 -->
  79. <pop-up :type='ptype' :sh="sh" :blfsList="matterList" :dflxlist="dflxlist" :blcdlist="blcdlist" :mycdlist="mycdlist" @getFaFn="getFaFn" :dataTree="deptTree" @getClose="getClose" @getupSubmit="getupSubmit"></pop-up>
  80. </view>
  81. </template>
  82. <script>
  83. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  84. import {getCaseListFn,getInfoisRecordFn,getInfoAssignFn,getInfoReplyFn,getInfoShFn,getInfoIdeaFn,getInfozxIdeaFn,
  85. getInfourgeFn,getInfokeyPointFn,getInfooutstandingFn,getUserverifyFn,getInfojointlyListFn,geturgeListFn,getInfounitListFn,
  86. getInfoReplywyFn,gettacbListFn,getCasetalbFn} from "@/api/mine/case.js"
  87. import popUp from "@/work/components/popup/popup.vue"
  88. import caseList from "@/work/components/case/list.vue"
  89. import {getDictionaryFn} from "@/api/mine/register.js"
  90. import {getDeptTree} from"@/api/mine/mine.js"
  91. export default{
  92. components:{caseList,popUp},
  93. data(){
  94. return{
  95. searchimg: require("@/work/static/images/search.png"),
  96. ccicoimg:require("@/work/static/images/ccico.png"),
  97. lbicoimg:require("@/work/static/images/lbico.png"),
  98. backimg:require("@/work/static/images/back.png"),
  99. upimg:require("@/work/static/images/up.png"),
  100. backgroundColor:"#1D64E2",
  101. tabidx:'qb',
  102. tabtype:'',//进度查询
  103. // {tit:'征集通知',val:0}, 提案催办 目前看所有
  104. tabList:[
  105. {tit:'提案列表',val:'qb',limit:'proposalInfo:info:alllist'},
  106. {tit:'提案审查',jd:1,val:'tasc',limit:'proposalInfo:info:isRecord'},
  107. {tit:'提案交办',jd:2,val:'tajb',limit:"proposalInfo:info:assign"},
  108. // {tit:'提案办理',val:'tabl',limit:'proposalInfo:info:unitList'},
  109. // {tit:'办结审核',jd:6,val:'jbsh',},
  110. {tit:'提案催办',val:'tacb',limit:'proposalInfo:info:tacbList'},
  111. // {tit:'接收催办',val:'jstacb',limit:'zxUrge:urge:list'},
  112. // {tit:'发出催办',val:'fctacb',limit:'zxUrge:urge:list'},
  113. {tit:'我的提案',val:'wdta',limit:'proposalInfo:info:list'},
  114. {tit:'联名提案',val:'lmta',limit:"proposalInfo:info:jointlyList"},
  115. // {tit:'推荐优秀',val:'tjyx',limit:'proposalInfo:info:outstanding'},
  116. {tit:'推荐重点',val:'tjzd',limit:'proposalInfo:info:keyPoint'},
  117. {tit:'公开提案',val:'gkta',limit:'proposalInfo:info:list'},
  118. ],
  119. litablist:[{tit:'提案类别',val:0},{tit:'提案类型',val:1},{tit:'单位类型',val:2},{tit:'选择年份',val:3},],
  120. // {tit:'开始日期',val:1},{tit:'结束日期',val:2},
  121. // "proposalProgress":"提案进度(0:提交提案,1:提案审查,2:提案立案,3:提案交办,4:办理提案,5:提案反馈,6:办结审核,7:已办结) ",
  122. nvaHeight:44,
  123. talblist:[],
  124. taztList:[{label:'是',value:'0'},{label:'否',value:'1'}],
  125. talxList:[{label:'大会提案',value:'0'},{label:'平时提案',value:'1'}],
  126. dwlxList:[{label:'答复单位',value:'1'},{label:'主办单位',value:'2'},{label:'协办单位',value:'3'}],
  127. talbidx:'',
  128. talb:'',
  129. tajd:'',
  130. tajdidx:'',
  131. tajdid:'',
  132. talxidx:'',
  133. datainfo:{
  134. talb:'',
  135. },
  136. ptype:'',//弹窗类型
  137. list:[],
  138. pageSize: 10,
  139. pageNum: 1,
  140. reachflag: true,
  141. wtdt:'',
  142. tajdlist:[],
  143. listtype:'case',
  144. tnlbname:'',//提案类别
  145. talbid:'',//提案类别id
  146. talx:'',//提案类型
  147. talxid:'',
  148. year:'',//提案时间
  149. title:'',
  150. deptTree:[],
  151. matterList:[],
  152. blcdlist:[],
  153. mycdlist:[],
  154. dflxlist:[],
  155. id:'',
  156. userId:this.$store.state.user.userId,
  157. deptId:this.$store.state.user.deptId,
  158. iteinfo:'',//选择 的数据,
  159. sh:""
  160. }
  161. },
  162. onUnload(){
  163. uni.$off('refreshlist')
  164. uni.$off('refreshtalb')
  165. },
  166. onLoad(e) {
  167. this.getDataFn()
  168. this.init()
  169. this.getCasetalbFn()
  170. uni.$on('refreshlist', (e) => {
  171. this.pageNum=1;
  172. this.list=[];
  173. this.reachflag=true;
  174. this.getDataFn()
  175. })
  176. uni.$on('refreshtalb', (e) => {
  177. this.tnlbname=e.categoryName;
  178. this.talbid=e.categoryId;
  179. this.pageNum=1;
  180. this.list=[];
  181. this.reachflag=true;
  182. this.getDataFn()
  183. })
  184. },
  185. // 上拉触底加载更多触发事件
  186. onReachBottom() {
  187. if (this.reachflag) {
  188. this.pageNum++
  189. this.getDataFn()
  190. }
  191. },
  192. mounted() {
  193. this.getHeightFn()
  194. },
  195. methods:{
  196. checkPermi, checkRole,
  197. //提案类别
  198. getCasetalbFn(){
  199. getCasetalbFn().then(res=>{
  200. if(res.code==200){
  201. this.talblist = res.data.map(v => {
  202. return {
  203. label: v.label,
  204. value: v.id
  205. }
  206. })
  207. }
  208. })
  209. },
  210. // 提案状态
  211. init(){
  212. getDictionaryFn('proposal_progress').then(res=>{
  213. if(res.code==200&&res.data.length){
  214. this.tajdlist = res.data.map(v => {
  215. return {
  216. label: v.dictLabel,
  217. value: v.dictValue
  218. }
  219. })
  220. }
  221. })
  222. // 协办单位
  223. getDeptTree().then(res=>{
  224. if(res.code==200){
  225. this.deptTree=res.data
  226. }
  227. })
  228. // 办理方式
  229. getDictionaryFn('negotiation_mode').then(res=>{
  230. if(res.code==200&&res.data.length){
  231. this.matterList = res.data.map(v => {
  232. return {
  233. label: v.dictLabel,
  234. value: v.dictValue
  235. }
  236. })
  237. }
  238. })
  239. // 办理程度degree
  240. getDictionaryFn('degree').then(res=>{
  241. if(res.code==200&&res.data.length){
  242. this.blcdlist = res.data.map(v => {
  243. return {
  244. text: v.dictLabel,
  245. value: v.dictValue
  246. }
  247. })
  248. }
  249. })
  250. // 满意程度
  251. getDictionaryFn('member_satisfaction').then(res=>{
  252. if(res.code==200&&res.data.length){
  253. this.mycdlist = res.data.map(v => {
  254. return {
  255. text: v.dictLabel,
  256. value: v.dictValue
  257. }
  258. })
  259. }
  260. })
  261. //答复类型
  262. getDictionaryFn('proposal_complex_type').then(res=>{
  263. if(res.code==200&&res.data.length){
  264. this.dflxlist = res.data.map(v => {
  265. return {
  266. text: v.dictLabel,
  267. value: v.dictValue
  268. }
  269. })
  270. }
  271. })
  272. },
  273. getFaFn(type,ptype){
  274. this.ptype='';
  275. if(ptype=='zcta'){
  276. if(type=='new'){uni.removeStorageSync('tjtaList')}
  277. this.$tab.navigateTo('/work/pages/case/add?type='+type)
  278. }
  279. },
  280. getConfirm(){
  281. this.pageNum=1;
  282. this.list=[];
  283. this.reachflag=true;
  284. this.getDataFn()
  285. },
  286. getTuiFn(data){
  287. var sh=data.sh;
  288. this.id=data.id;
  289. var type=data.type;
  290. this.iteinfo=data.ite;
  291. var that=this;
  292. if(type=='scfk'){
  293. this.ptype=data.type;
  294. this.sh=data.sh;
  295. // if(sh==1){
  296. // }else{
  297. // var params={
  298. // proposalId:data.id,
  299. // isRecord:0,
  300. // }
  301. // getInfoisRecordFn(params).then(res=>{
  302. // if(res.code==200){
  303. // this.$toast("操作成功");
  304. // setTimeout(function(){
  305. // that.ptype='';
  306. // that.pageNum=1;
  307. // that.list=[];
  308. // that.reachflag=true;
  309. // that.getDataFn()
  310. // },1200)
  311. // }
  312. // })
  313. // }
  314. }else if(type=='lmta'){
  315. var str="同意"
  316. if(sh==2){
  317. str='反对'
  318. }
  319. // if(sh==2){
  320. // this.ptype=data.type;
  321. // }else{
  322. var params={
  323. proposalId:data.id,
  324. isAgree:sh,
  325. }
  326. getUserverifyFn(params).then(res=>{
  327. if(res.code==200){
  328. this.$toast(str+"联名提案成功");
  329. setTimeout(function(){
  330. that.ptype='';
  331. that.pageNum=1;
  332. that.list=[];
  333. that.reachflag=true;
  334. that.getDataFn()
  335. },1200)
  336. }
  337. })
  338. // }
  339. }else{
  340. this.ptype=type
  341. }
  342. },
  343. getupSubmit(e){
  344. var that=this;
  345. var type=this.ptype;
  346. if(type=='scfk'){
  347. var params=JSON.parse(JSON.stringify(e))
  348. params.proposalId=this.id
  349. var str='立案';
  350. if(params.isRecord=='1'){
  351. str='不予立案'
  352. }
  353. getInfoisRecordFn(params).then(res=>{
  354. if(res.code==200){
  355. this.$toast(str+"成功");
  356. setTimeout(function(){
  357. that.ptype='';
  358. that.pageNum=1;
  359. that.list=[];
  360. that.reachflag=true;
  361. that.getDataFn()
  362. },1200)
  363. }
  364. })
  365. }else if(type=='tajb'){
  366. var params=JSON.parse(JSON.stringify(e))
  367. params.proposalId=this.id
  368. getInfoAssignFn(params).then(res=>{
  369. if(res.code==200){
  370. this.$toast("提案交办成功");
  371. setTimeout(function(){
  372. that.ptype='';
  373. that.pageNum=1;
  374. that.list=[];
  375. that.reachflag=true;
  376. that.getDataFn()
  377. },1200)
  378. }
  379. })
  380. }else if(type=='dffk'||type=='dwdf'){
  381. var params=JSON.parse(JSON.stringify(e))
  382. params.proposalId=this.id
  383. if(this.iteinfo.proposalProgress==7){
  384. params.cbdwdfwy=params.content;
  385. getInfoReplywyFn(params).then(res=>{
  386. if(res.code==200){
  387. this.$toast("答复反馈成功");
  388. setTimeout(function(){
  389. that.ptype='';
  390. that.pageNum=1;
  391. that.list=[];
  392. that.reachflag=true;
  393. that.getDataFn()
  394. },1200)
  395. }
  396. })
  397. }else{
  398. getInfoReplyFn(params).then(res=>{
  399. if(res.code==200){
  400. this.$toast("答复反馈成功");
  401. setTimeout(function(){
  402. that.ptype='';
  403. that.pageNum=1;
  404. that.list=[];
  405. that.reachflag=true;
  406. that.getDataFn()
  407. },1200)
  408. }
  409. })
  410. }
  411. }else if(type=='jbsh'){
  412. var params=JSON.parse(JSON.stringify(e))
  413. params.proposalId=this.id
  414. getInfoShFn(params).then(res=>{
  415. if(res.code==200){
  416. this.$toast("交办审核成功");
  417. setTimeout(function(){
  418. that.ptype='';
  419. that.pageNum=1;
  420. that.list=[];
  421. that.reachflag=true;
  422. that.getDataFn()
  423. },1200)
  424. }
  425. })
  426. }else if(type=='wymyfk'){
  427. var params=JSON.parse(JSON.stringify(e))
  428. params.proposalId=this.id
  429. getInfoIdeaFn(params).then(res=>{
  430. if(res.code==200){
  431. this.$toast("提案办结成功");
  432. setTimeout(function(){
  433. that.ptype='';
  434. that.pageNum=1;
  435. that.list=[];
  436. that.reachflag=true;
  437. that.getDataFn()
  438. },1200)
  439. }
  440. })
  441. }else if(type=='zxmyfk'){
  442. var params=JSON.parse(JSON.stringify(e))
  443. params.proposalId=this.id
  444. getInfozxIdeaFn(params).then(res=>{
  445. if(res.code==200){
  446. this.$toast("提案办结成功");
  447. setTimeout(function(){
  448. that.ptype='';
  449. that.pageNum=1;
  450. that.list=[];
  451. that.reachflag=true;
  452. that.getDataFn()
  453. },1200)
  454. }
  455. })
  456. }else if(type=='tacb'){
  457. var params=JSON.parse(JSON.stringify(e))
  458. params.scoreId=this.id
  459. params.urgeType=1
  460. getInfourgeFn(params).then(res=>{
  461. if(res.code==200){
  462. this.$toast("催办成功");
  463. setTimeout(function(){
  464. that.ptype='';
  465. that.pageNum=1;
  466. that.list=[];
  467. that.reachflag=true;
  468. that.getDataFn()
  469. },1200)
  470. }
  471. })
  472. }else if(type=='tjyx'){
  473. var params=JSON.parse(JSON.stringify(e))
  474. params.proposalId=this.id
  475. getInfooutstandingFn(params).then(res=>{
  476. if(res.code==200){
  477. this.$toast("推荐优秀成功");
  478. setTimeout(function(){
  479. that.ptype='';
  480. that.pageNum=1;
  481. that.list=[];
  482. that.reachflag=true;
  483. that.getDataFn()
  484. },1200)
  485. }
  486. })
  487. }else if(type=='tjzd'){
  488. var params=JSON.parse(JSON.stringify(e))
  489. params.proposalId=this.id
  490. getInfokeyPointFn(params).then(res=>{
  491. if(res.code==200){
  492. this.$toast("推荐重点成功");
  493. setTimeout(function(){
  494. that.ptype='';
  495. that.pageNum=1;
  496. that.list=[];
  497. that.reachflag=true;
  498. that.getDataFn()
  499. },1200)
  500. }
  501. })
  502. }else if(type=='lmta'){
  503. var params=JSON.parse(JSON.stringify(e))
  504. var str='同意'
  505. if(params.isAgree==2){
  506. str="反对"
  507. }
  508. params.proposalId=this.id
  509. getUserverifyFn(params).then(res=>{
  510. if(res.code==200){
  511. this.$toast(str+"成功");
  512. setTimeout(function(){
  513. that.ptype='';
  514. that.pageNum=1;
  515. that.list=[];
  516. that.reachflag=true;
  517. that.getDataFn()
  518. },1200)
  519. }
  520. })
  521. }
  522. },
  523. getAddCase(){
  524. if(uni.getStorageSync('tjtaList')){
  525. // var newObj=JSON.parse(JSON.stringify(uni.getStorageSync('tjtaList')))
  526. this.ptype='zcta'
  527. }else{
  528. this.$tab.navigateTo('/work/pages/case/add')
  529. }
  530. },
  531. getHeightFn(){
  532. var s=uni.getSystemInfoSync().statusBarHeight;
  533. let query = uni.createSelectorQuery().in(this);
  534. //需要给黄色区域设置一个id标识,在这里是demo
  535. query.select('.navbox').boundingClientRect(data => {
  536. this.nvaHeight =s? data.height:Number(data.height)-20//赋值,待会要用
  537. }).exec();
  538. },
  539. getClose(){
  540. this.ptype=""
  541. },
  542. getTabFn(ite){
  543. this.tabidx=ite.val;
  544. this.pageNum=1;
  545. this.list=[],
  546. this.reachflag=true;
  547. this.tabtype=ite.jd||"";
  548. this.getDataFn()
  549. },
  550. getBack(){
  551. uni.navigateBack({
  552. delta:1
  553. })
  554. },
  555. getrefreshData(){
  556. this.pageNum=1;
  557. this.list=[];
  558. this.reachflag=true;
  559. this.getDataFn()
  560. },
  561. bindDateChangea(e){
  562. var val=e.detail.value;
  563. this.talx=this.talxList[val].label;
  564. this.talxid=this.talxList[val].value;
  565. this.getrefreshData()
  566. },
  567. bindDateChangeb(e){
  568. var val=e.detail.value;
  569. this.year=val;
  570. this.getrefreshData()
  571. },
  572. bindDateChangec(e){
  573. var val=e.detail.value;
  574. this.talb=this.talblist[val].label;
  575. this.talbid=this.talblist[val].value;
  576. this.getrefreshData()
  577. },
  578. bindDateChanged(e){
  579. var val=e.detail.value;
  580. this.tajd=this.tajdlist[val].label;
  581. this.tajdid=this.tajdlist[val].value;
  582. this.getrefreshData()
  583. },
  584. getTalbFn(){
  585. var obj={
  586. id:this.talbid,
  587. name:this.tnlbname,
  588. }
  589. this.$tab.navigateTo('/work/pages/case/talbclass?data='+encodeURIComponent(JSON.stringify(obj)))
  590. },
  591. getChFn(){
  592. // this.$tab.navigateTo('/work/pages/case/tacheck')
  593. },
  594. getDetail(data){
  595. this.$tab.navigateTo('/work/pages/case/details?id='+data+'&f='+this.tabidx)
  596. },
  597. getResetFn(){
  598. var tab=this.tabidx;
  599. this.talb='';
  600. this.talx='';
  601. this.year='';
  602. if(tab=='qb'){
  603. this.tajd='';
  604. }
  605. this.title='';
  606. this.getrefreshData()
  607. },
  608. getDataFn(){
  609. var tab=this.tabidx;
  610. var params={
  611. pageSize:this.pageSize,
  612. pageNum: this.pageNum,
  613. }
  614. if(this.tabtype){
  615. params.proposalProgress=this.tabtype
  616. }
  617. if(this.talx){
  618. params.proposalType=this.talxid
  619. }
  620. if(this.talb){
  621. params.categoryId=this.talbid
  622. }
  623. if(this.title){
  624. params.title=this.title
  625. }
  626. if(this.year){
  627. params.year=this.year
  628. }
  629. if(tab=='tjyx'){
  630. // params.isOutstanding="0"
  631. }else if(tab=='tjzd'){
  632. // params.isKeyPoint="0"
  633. }else if(tab=='gkta'){
  634. params.isPublicity="是"
  635. }else if(tab=='wdta'){
  636. params.proposalUserId=this.userId
  637. }
  638. if(this.tabidx=='lmta'){
  639. getInfojointlyListFn(params).then(res=>{
  640. if(res.code==200){
  641. if (res.rows.length < this.pageSize) {
  642. this.reachflag = false
  643. this.wtdt = '到底了~';
  644. } else {
  645. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  646. if (num < res.total) {
  647. this.reachflag = true
  648. this.wtdt = '上拉加载更多'
  649. } else {
  650. this.reachflag = false
  651. this.wtdt = '到底了~';
  652. }
  653. }
  654. if (this.pageNum == 1) {
  655. this.list = res.rows;
  656. } else {
  657. this.list = this.list.concat(res.rows)
  658. }
  659. }else{
  660. this.$toast(res.msg)
  661. }
  662. })
  663. }else if(this.tabidx=='tacb'){
  664. gettacbListFn(params).then(res=>{
  665. if(res.code==200){
  666. if (res.rows.length < this.pageSize) {
  667. this.reachflag = false
  668. this.wtdt = '到底了~';
  669. } else {
  670. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  671. if (num < res.total) {
  672. this.reachflag = true
  673. this.wtdt = '上拉加载更多'
  674. } else {
  675. this.reachflag = false
  676. this.wtdt = '到底了~';
  677. }
  678. }
  679. if (this.pageNum == 1) {
  680. this.list = res.rows;
  681. } else {
  682. this.list = this.list.concat(res.rows)
  683. }
  684. }else{
  685. this.$toast(res.msg)
  686. }
  687. })
  688. }else if(this.tabidx=='jstacb'||this.tabidx=='fctacb'){
  689. if(tab=='jstacb'){
  690. params.acceptDeptId=this.deptId
  691. }else{
  692. params.issuerDeptId=this.deptId
  693. }
  694. geturgeListFn(params).then(res=>{
  695. if(res.code==200){
  696. if (res.rows.length < this.pageSize) {
  697. this.reachflag = false
  698. this.wtdt = '到底了~';
  699. } else {
  700. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  701. if (num < res.total) {
  702. this.reachflag = true
  703. this.wtdt = '上拉加载更多'
  704. } else {
  705. this.reachflag = false
  706. this.wtdt = '到底了~';
  707. }
  708. }
  709. if (this.pageNum == 1) {
  710. this.list = res.rows;
  711. } else {
  712. this.list = this.list.concat(res.rows)
  713. }
  714. }else{
  715. this.$toast(res.msg)
  716. }
  717. })
  718. }else if(this.tabidx=='tabl'){
  719. // params.acceptDeptId=this.deptId
  720. getInfounitListFn(params).then(res=>{
  721. if(res.code==200){
  722. if (res.rows.length < this.pageSize) {
  723. this.reachflag = false
  724. this.wtdt = '到底了~';
  725. } else {
  726. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  727. if (num < res.total) {
  728. this.reachflag = true
  729. this.wtdt = '上拉加载更多'
  730. } else {
  731. this.reachflag = false
  732. this.wtdt = '到底了~';
  733. }
  734. }
  735. if (this.pageNum == 1) {
  736. this.list = res.rows;
  737. } else {
  738. this.list = this.list.concat(res.rows)
  739. }
  740. }else{
  741. this.$toast(res.msg)
  742. }
  743. })
  744. }else{
  745. if(this.tabidx=='qb'&&this.tajd){
  746. params.proposalProgress=this.tajdid
  747. }
  748. if(this.tabidx=='wdta'){
  749. params.proposalUserId=this.userId
  750. }
  751. getCaseListFn(params).then(res=>{
  752. if(res.code==200){
  753. if (res.rows.length < this.pageSize) {
  754. this.reachflag = false
  755. this.wtdt = '到底了~';
  756. } else {
  757. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  758. if (num < res.total) {
  759. this.reachflag = true
  760. this.wtdt = '上拉加载更多'
  761. } else {
  762. this.reachflag = false
  763. this.wtdt = '到底了~';
  764. }
  765. }
  766. if (this.pageNum == 1) {
  767. this.list = res.rows;
  768. } else {
  769. this.list = this.list.concat(res.rows)
  770. }
  771. }else{
  772. this.$toast(res.msg)
  773. }
  774. })
  775. }
  776. },
  777. }
  778. }
  779. </script>
  780. <style scoped lang="scss">
  781. .navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4;background-color: $com-cd3;
  782. .topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
  783. image{width: 40rpx;height: 30rpx;}
  784. }
  785. .topr{display: flex;align-items: center;
  786. image{width: 26rpx;height: 26rpx;margin-right: 12rpx;}
  787. view{font-weight: 500;font-size: 26rpx;color: #FFFFFF;}
  788. }
  789. .tablists{
  790. overflow: auto;flex-wrap: nowrap;
  791. view{font-weight: bold;font-size: 26rpx;color: #FFFFFF;position: relative;flex: 1 0 auto;padding: 22rpx 24rpx;margin-right: 6rpx;box-sizing: border-box;text-align: center;
  792. &:last-child{margin-right: 0;}
  793. &.act{font-size: 30rpx;
  794. &::after{content: '';width: 62rpx;height: 10rpx;background: #FFFFFF;border-radius: 4rpx;left: 50%;margin-left: -31rpx;bottom: 0rpx;position: absolute;}
  795. }
  796. }
  797. }
  798. .lbtab{height: 114rpx;background: #FFFFFF;border-radius: 30rpx;padding-left: 24rpx;position: absolute;left:24rpx;right: 24rpx;bottom: -58rpx;
  799. .limg{width: 40rpx;height: 34rpx;margin-right: 10rpx;flex:0 0 auto;}
  800. .lbtabs{overflow: auto;flex-wrap: nowrap;flex: 1;
  801. .lbtabp{display: flex;align-items: center;flex: 1 0 auto;margin-right: 24rpx;}
  802. .upimg{width: 18rpx;height: 10rpx;}
  803. }
  804. }
  805. }
  806. .mbox{padding:58rpx 24rpx 28rpx;}
  807. .lbtabs /deep/ picker{padding: 0 18rpx;}
  808. </style>