myNanDu.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. <template>
  2. <view style="width: 100%; height: 100vh; background: rgb(247, 248, 255)">
  3. <zj-page-container>
  4. <view class="toubuyangs">
  5. <view class="toubuyangsTab">
  6. <view class="toubuyangsTabItem" @click="tabQiehuan('1,3')">
  7. <view>待审核{{ websitCount.dsp ? ` (${websitCount.dsp})` : '' }}</view>
  8. <view :class="{ hengxian: true, xuanzhong: tab == '1,3' }"> </view>
  9. </view>
  10. <view class="toubuyangsTabItem" @click="tabQiehuan('5')">
  11. <view>已通过{{ websitCount.ytg ? ` (${websitCount.ytg})` : '' }}</view>
  12. <view :class="{ hengxian: true, xuanzhong: tab == '5' }"></view>
  13. </view>
  14. <view class="toubuyangsTabItem" @click="tabQiehuan('2,4')">
  15. <view>已驳回{{ websitCount.ybh ? ` (${websitCount.ybh})` : '' }}</view>
  16. <view :class="{ hengxian: true, xuanzhong: tab == '2,4' }"></view>
  17. </view>
  18. </view>
  19. <view class="search-container">
  20. <u-search
  21. shape="round"
  22. :showAction="false"
  23. placeholder="输入工单号,客户名称,客户地址"
  24. v-model="keyword"
  25. @search="getList"
  26. >
  27. </u-search>
  28. </view>
  29. </view>
  30. <zj-page-fill>
  31. <zj-page-layout
  32. :isScroll="true"
  33. :refresherTriggered="refresherTriggered"
  34. @refresherrefresh="refresherrefresh"
  35. @scrolltolower="scrolltolower"
  36. >
  37. <view class="list-container" v-if="dataList.length > 0">
  38. <view class="mode" @click="toNandufysq(item)" v-for="(item, index) in dataList" :key="index">
  39. <view class="flex_asb order">
  40. <view class="title"></view>
  41. <view class="status">{{ returnText(item) }}</view>
  42. </view>
  43. <view class="flex_asb" style="align-items: flex-start">
  44. <view class="content flex1">
  45. <view class="flex">
  46. <view class="hui">工单单号</view>
  47. <view class="text">{{ item.orderBaseId }}</view>
  48. </view>
  49. <view class="flex">
  50. <view class="hui">客户名称</view>
  51. <view class="text">{{ item.linkName }}</view>
  52. </view>
  53. <view class="flex">
  54. <view class="hui">客户电话</view>
  55. <view class="text">{{ item.userMobile }}</view>
  56. </view>
  57. <view class="flex">
  58. <view class="hui">提交时间</view>
  59. <view class="text">{{ item.createTime }}</view>
  60. </view>
  61. <view class="flex">
  62. <view class="hui">申请费用</view>
  63. <view class="text">{{ item.maintenancePricePass }}</view>
  64. </view>
  65. <view class="flex">
  66. <view class="hui">客户地址</view>
  67. <view class="text">{{ item.address || '无' }}</view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <Loading :loadStatus="loadStatus" :dataList="dataList" />
  74. </zj-page-layout>
  75. </zj-page-fill>
  76. </zj-page-container>
  77. </view>
  78. </template>
  79. <script>
  80. import zjPageContainer from '@/components/zj-page-container/zj-page-container.vue'
  81. import zjPageFill from '@/components/zj-page-container/zj-page-fill.vue'
  82. import { getStorage } from '@/common/utils/storage.js'
  83. import zjDialogPicker from '@/components/zj-dialog/zj-dialog-picker.vue'
  84. export default {
  85. components: {
  86. zjPageContainer,
  87. zjPageFill,
  88. zjDialogPicker
  89. },
  90. data() {
  91. return {
  92. tab: '1,3',
  93. dataList: [],
  94. refresherTriggered: false,
  95. loadStatus: 0,
  96. keyword: '',
  97. websitCount: {}
  98. }
  99. },
  100. onShow() {
  101. this.refreshLish()
  102. this.$api.post('/workerApply/count').then(res => {
  103. this.websitCount = res.data
  104. })
  105. },
  106. computed: {
  107. userInfo() {
  108. return getStorage('user')
  109. }
  110. },
  111. methods: {
  112. returnText(data) {
  113. return { 1: '待网点审核', 2: '驳回重申', 3: '待中心审核', 4: '驳回禁止申诉', 5: '通过审核' }[
  114. data.status || data.websitStatus
  115. ]
  116. },
  117. toNandufysq(item) {
  118. this.$api
  119. .post('/workerApply/detail', {
  120. orderBaseId: item.orderBaseId
  121. })
  122. .then(res => {
  123. if (res.data?.status == 2 || res.data?.websitStatus == 2) {
  124. this.$navToPage({
  125. url: `/packageWorkorder/pages/nandufysq?id=${item.orderBaseId}&type=shenhe`
  126. })
  127. } else {
  128. this.$navToPage({
  129. url: `/packageWorkorder/pages/nandufysq?id=${item.orderBaseId}&type=view`
  130. })
  131. }
  132. })
  133. .catch(res => {})
  134. },
  135. async getList() {
  136. this.loadStatus = 1
  137. this.$api
  138. .post('/workerApply/list', {
  139. status: this.tab,
  140. value: this.keyword,
  141. pageNum: 1,
  142. pageSize: -1
  143. })
  144. .then(res => {
  145. this.$api.post('/workerApply/count').then(res2 => {
  146. this.websitCount = res2.data
  147. })
  148. this.loadStatus = 2
  149. this.refresherTriggered = false
  150. this.dataList = res.data.records
  151. })
  152. },
  153. // 触发下拉刷新
  154. refresherrefresh(e) {
  155. this.refresherTriggered = true
  156. this.refreshLish()
  157. },
  158. refreshLish() {
  159. this.dataList = []
  160. this.getList()
  161. },
  162. tabQiehuan(index) {
  163. this.tab = index
  164. this.dataList = []
  165. this.getList()
  166. },
  167. // 滚动到底部
  168. scrolltolower(e) {},
  169. // 触发下拉刷新
  170. async refresherrefresh(e) {
  171. this.refresherTriggered = true
  172. this.dataList = []
  173. this.getList()
  174. }
  175. }
  176. }
  177. </script>
  178. <style lang="scss" scoped>
  179. .search-container {
  180. background: #ffffff;
  181. padding: 20rpx;
  182. ::v-deep .u-search {
  183. height: 60rpx;
  184. input {
  185. background: #f7f8ff !important;
  186. }
  187. .u-search__content {
  188. background: #f7f8ff !important;
  189. height: 60rpx;
  190. }
  191. }
  192. }
  193. .quanjuanniu {
  194. width: 100%;
  195. height: auto;
  196. padding: 30rpx;
  197. box-sizing: border-box;
  198. }
  199. .neirongquyu {
  200. width: 100%;
  201. height: auto;
  202. padding: 30rpx 30rpx 15rpx 30rpx;
  203. box-sizing: border-box;
  204. .zhegeshineirong {
  205. width: 100%;
  206. height: auto;
  207. padding: 30rpx;
  208. box-sizing: border-box;
  209. background: #fff;
  210. border-radius: 20rpx;
  211. margin-bottom: 30rpx;
  212. .neirongbiaot {
  213. width: 100%;
  214. height: auto;
  215. display: flex;
  216. align-items: center;
  217. justify-content: space-between;
  218. box-sizing: border-box;
  219. margin-bottom: 40rpx;
  220. text {
  221. font-size: 32rpx;
  222. font-weight: 700;
  223. }
  224. }
  225. .neironglieju {
  226. width: 100%;
  227. height: auto;
  228. display: flex;
  229. align-items: center;
  230. justify-content: flex-start;
  231. box-sizing: border-box;
  232. margin-bottom: 30rpx;
  233. text {
  234. font-size: 28rpx;
  235. }
  236. }
  237. .neironghengxin {
  238. width: 100%;
  239. border-bottom: 1rpx solid #aaa;
  240. margin-bottom: 30rpx;
  241. }
  242. .neironganniuqu {
  243. widows: 100%;
  244. text-align: right;
  245. }
  246. }
  247. }
  248. .toubuyangs {
  249. width: 100%;
  250. height: auto;
  251. box-sizing: border-box;
  252. padding: 30rpx 30rpx 15rpx 30rpx;
  253. .toubuyangsTab {
  254. width: 100%;
  255. height: auto;
  256. padding: 30rpx;
  257. box-sizing: border-box;
  258. background: #fff;
  259. border-radius: 20rpx;
  260. display: flex;
  261. align-items: center;
  262. justify-content: space-around;
  263. .toubuyangsTabItem {
  264. box-sizing: border-box;
  265. font-size: 32rpx;
  266. display: flex;
  267. align-items: center;
  268. justify-content: center;
  269. flex-direction: column;
  270. .hengxian {
  271. margin-top: 20rpx;
  272. width: 100rpx;
  273. }
  274. .xuanzhong {
  275. border-bottom: 4rpx solid #000;
  276. }
  277. }
  278. }
  279. }
  280. .flex {
  281. display: flex;
  282. align-items: center;
  283. }
  284. .flex_asb {
  285. display: flex;
  286. justify-content: space-between;
  287. align-items: center;
  288. }
  289. .flex_end {
  290. display: flex;
  291. align-items: center;
  292. justify-content: flex-end;
  293. margin-top: 30rpx;
  294. }
  295. .flex1 {
  296. flex: 1;
  297. }
  298. .list-container {
  299. box-sizing: border-box;
  300. padding: 0 30rpx;
  301. }
  302. .mode {
  303. @include zj-card;
  304. padding: 30rpx 20rpx;
  305. margin-top: 30rpx;
  306. border-radius: 20rpx;
  307. box-sizing: border-box;
  308. background-color: #ffffff;
  309. .order {
  310. margin-bottom: 20rpx;
  311. }
  312. .content {
  313. width: 450rpx;
  314. .title {
  315. font-weight: bold;
  316. font-size: 30rpx;
  317. }
  318. .text,
  319. .hui {
  320. font-size: 28rpx;
  321. margin-top: 16rpx;
  322. }
  323. .hui {
  324. color: #999999;
  325. margin-right: 20rpx;
  326. }
  327. }
  328. .status {
  329. font-size: 28rpx;
  330. color: #0379ff;
  331. }
  332. .zhihui {
  333. .text,
  334. .hui,
  335. .title,
  336. .status {
  337. color: #999999 !important;
  338. }
  339. }
  340. .img {
  341. width: 100rpx;
  342. height: 100rpx;
  343. margin-right: 30rpx;
  344. }
  345. }
  346. .search-container {
  347. background: #ffffff;
  348. padding: 20rpx;
  349. ::v-deep .u-search {
  350. height: 60rpx;
  351. input {
  352. background: #f7f8ff !important;
  353. }
  354. .u-search__content {
  355. background: #f7f8ff !important;
  356. height: 60rpx;
  357. }
  358. }
  359. }
  360. </style>