移动端
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

339 líneas
8.7 KiB

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