mine.vue 22 KB

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