mine.vue 23 KB

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