移动端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

caseAllocation.vue 8.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <template>
  2. <div class="home_wrapper">
  3. <div class="header_main">
  4. 案件分配
  5. <div class="return_btn" @click="onClickLeft"></div>
  6. </div>
  7. <div style="height: 58px;"></div>
  8. <div class="search_box">
  9. <img src="../../../../static/images/lawEnforcement/new/list_icon_02.png" @click="$router.push({name:'lawEnforcementCaseHistory'})"/>
  10. <div class="search">
  11. <input type="text" placeholder="请输入搜索内容" />
  12. <img src="../../../../static/images/lawEnforcement/new/index_icon_04.png">
  13. </div>
  14. <!-- <img src="../../../../static/images/lawEnforcement/new/list_icon_03.png"/>-->
  15. </div>
  16. <van-list
  17. v-model="loading"
  18. :finished="finished"
  19. finished-text="没有更多了"
  20. >
  21. <van-swipe-cell v-for="(item,index) in 10" :key="index">
  22. <van-cell title="关于徐胜峰在禁渔期内收购非法捕捞渔获..." center :to="{name:'lawEnforcementCaseDetail', query: {id:item.id}}">
  23. <template #icon>
  24. <van-icon name="../../../../static/images/lawEnforcement/new/list_icon_01.png" size="20" color="#FF4646" style="margin-right: 10px;" />
  25. </template>
  26. <template #label>
  27. <p>上级交办</p>
  28. <p>第一中队</p>
  29. <p>2021-09-07</p>
  30. </template>
  31. </van-cell>
  32. <template #right>
  33. <van-row>
  34. <van-col>
  35. <van-button square text="退回" type="danger" :to="{name:'lawEnforcementCaseReturn', query: {id:item.id}}" class="delete-button" />
  36. </van-col>
  37. <van-col>
  38. <van-button square text="分配" type="info" :to="{name:'lawEnforcementCaseDistribution', query: {id:item.id}}" class="delete-button" />
  39. </van-col>
  40. </van-row>
  41. </template>
  42. </van-swipe-cell>
  43. </van-list>
  44. </div>
  45. </template>
  46. <script>
  47. import { financePublicList,openRemove } from "@/api/sunVillage_info/fixedAssets";
  48. import Cookies from "js-cookie";
  49. import request from '@/utils/request'
  50. export default {
  51. name: "caseAllocation",
  52. data() {
  53. return {
  54. applicationList:[],
  55. applicationListSecond:[],
  56. assetStatusOptions:[],
  57. auditStatus:[],
  58. loading: false,
  59. finished: false,
  60. show: false,
  61. showTab: false,
  62. fileList:[],
  63. listLength:'0',
  64. searchInput:'',
  65. queryParams:{
  66. pageNum:1,
  67. pageSize:10,
  68. orderByColumn:'createTime',
  69. isAsc:'desc',
  70. year:'2022',
  71. },
  72. uploadFiles1:[],
  73. projectId:'',
  74. projectIndex:'',
  75. showBtn:true,
  76. };
  77. },
  78. created() {
  79. },
  80. methods: {
  81. getList(){
  82. var _this = this;
  83. financePublicList(_this.queryParams).then(response => {
  84. _this.listLength = response.total;
  85. response.rows.map(res=>{
  86. _this.applicationList.push(res);
  87. })
  88. if(_this.applicationList.length >= response.total){
  89. _this.finished = true;
  90. return;
  91. }else{
  92. _this.loading = false;
  93. _this.queryParams.pageNum += 1 ;
  94. }
  95. });
  96. },
  97. tabClick(year){
  98. this.queryParams.year = year ;
  99. this.applicationList = [];
  100. this.getList();
  101. },
  102. tabShow(){
  103. this.showTab = !this.showTab;
  104. },
  105. /** 删除按钮操作 */
  106. handleDelete(row,index) {
  107. let assetStatus = row.assetStatus ? row.assetStatus : data[0].assetStatus;
  108. if (assetStatus === '2' || assetStatus === '3') {
  109. this.$notify({
  110. message: "不允许删除已出售或已报废的资产",
  111. type: "warning",
  112. });
  113. return;
  114. }
  115. let useType = row.useType;
  116. if(useType == 3) {
  117. this.$notify({
  118. message: "出租或出借的资产不允许删除",
  119. type: "warning",
  120. });
  121. return ;
  122. }
  123. const ids = row.id || this.ids;
  124. this.$dialog.alert(
  125. {
  126. message:'是否确认删除固定资产?',
  127. title:"警告",
  128. confirmButtonText: "确定",
  129. cancelButtonText: "取消",
  130. }
  131. )
  132. .then(function () {
  133. return delPermanent(ids);
  134. })
  135. .then(() => {
  136. this.applicationList.splice(index, 1);
  137. this.$notify({ type: 'success', message: '删除成功' });
  138. });
  139. },
  140. goAdd(){
  141. this.$router.push('/sunVillage_info/list_finance_add')
  142. },
  143. goDetail(id){
  144. this.$router.push({path:'/sunVillage_info/list_finance_detail',query: {id:id,type:'finance'}})
  145. },
  146. goRanking(id,time){
  147. this.$router.push({path:'/sunVillage_info/list_finance_ranking',query: {id:id,time:time}})
  148. },
  149. goEdit(id){
  150. this.$router.push({path:'/sunVillage_info/list_finance_edit',query: {id:id,type:'finance'}})
  151. },
  152. goRemove(id){
  153. this.$dialog.alert({
  154. title: '提示',
  155. message: '确认删除?',
  156. showCancelButton:true,
  157. })
  158. .then(() => {
  159. openRemove(id).then(response => {
  160. this.$notify({ type: 'success', message: '删除成功' });
  161. this.getList()
  162. });
  163. })
  164. .catch(() => {
  165. // on cancel
  166. });
  167. }
  168. },
  169. }
  170. </script>
  171. <style scoped lang="scss">
  172. .home_wrapper{
  173. background: #e9e9e9;
  174. min-height: 100vh;
  175. width: 100vw;
  176. padding: 0 3% 0.2rem;
  177. .search_box{
  178. display: flex;
  179. justify-content: space-between;
  180. align-items: center;
  181. width: 92%;
  182. margin: 0PX auto;
  183. .search{
  184. background: #ffffff;
  185. display: flex;
  186. justify-content: space-between;
  187. align-items: center;
  188. width: 100%;
  189. margin: 10PX auto;
  190. border: 1px solid #1D6FE9;
  191. padding: 1PX 1PX 1PX 12PX ;
  192. border-radius: 50PX;
  193. margin-left: 10PX;
  194. input{
  195. flex: 1;
  196. background: transparent;
  197. }
  198. }
  199. }
  200. .header_main{
  201. height: 116px;
  202. background: url('../../../../static/images/lawEnforcement/new/list_head.png') no-repeat;
  203. background-size: 100% 100%;
  204. position: fixed;
  205. top: 0;
  206. left: 0;
  207. width: 100%;
  208. font-size: 36px;
  209. line-height: 116px;
  210. text-align: center;
  211. color: #fff;
  212. z-index: 999;
  213. .return_btn{
  214. width: 24px;
  215. height: 43.2px;
  216. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  217. background-size: 20px 36px;
  218. position: absolute;
  219. left: 38px;
  220. top: 36px;
  221. }
  222. .add_btn{
  223. width: 56.4px;
  224. height: 40.8px;
  225. background: url('../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  226. background-size: 47px 34px;
  227. position: absolute;
  228. right: 38px;
  229. top: 36px;
  230. }
  231. }
  232. }
  233. /deep/.van-cell__title span{
  234. font-family: Arial;
  235. font-size: 0.4rem;
  236. font-weight: normal;
  237. color: #666666;
  238. display: -webkit-box;
  239. -webkit-box-orient: vertical;
  240. -webkit-line-clamp: 1;
  241. word-break: break-all;
  242. overflow: hidden;
  243. }
  244. /deep/.van-cell__label {
  245. display: flex;
  246. justify-content: space-between;
  247. p{
  248. display: inline-block;
  249. &:first-child{
  250. background: rgba(28,184,177,0.2);
  251. padding: 0 5PX;
  252. border-radius: 3PX;
  253. color: #1CB8B1;
  254. }
  255. }
  256. }
  257. /deep/.van-cell__value{
  258. flex: 0.3;
  259. color: #1D6FE9;
  260. font-weight: bold;
  261. }
  262. /deep/.van-swipe-cell{
  263. margin-bottom: 0.2rem;
  264. border-radius: 0.2rem;
  265. overflow: hidden;
  266. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  267. .van-swipe-cell__right{
  268. right: -2PX;
  269. }
  270. }
  271. /deep/van-ellipsis{
  272. font-weight: bold;
  273. }
  274. .van-row{
  275. height: 100%;
  276. }
  277. .van-col{
  278. height: 100%;
  279. }
  280. .delete-button {
  281. height: 100%;
  282. }
  283. </style>