mine.vue 22 KB

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