mine.vue 22 KB

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