Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

list.vue 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <template>
  2. <z-paging ref="paging" v-model="state.dataList" @query="getList">
  3. <view class="address-line">
  4. <view
  5. v-for="(item, index) in state.dataList"
  6. :key="index"
  7. @click="editOption(item)"
  8. class="flex-bettwen">
  9. <view class="left">
  10. <view class="bank-name">{{ item.bankNameStr }}</view>
  11. <view class="bank-branch-name">{{ item.bankBranchName }}</view>
  12. <view class="bank-code">{{ maskBankCard(item.bankIdCode) }}</view>
  13. </view>
  14. <image class="edit-icon" :src="`${$imgUrl}applyCard/edit.png`" mode="heightFix"></image>
  15. </view>
  16. </view>
  17. <template #empty>
  18. <NoDataView style="width: 100%; height: 100%;" :text="'暂无退费信息'"></NoDataView>
  19. </template>
  20. <template #bottom>
  21. <FixedFooter>
  22. <button type="default" class="ui-btn" @click="add()">
  23. 新增退费资料
  24. </button>
  25. </FixedFooter>
  26. </template>
  27. </z-paging>
  28. </template>
  29. <script setup lang="ts">
  30. import { reactive, ref } from "vue";
  31. import { getItem, StorageKeys } from "@/utils/storage";
  32. import { onLoad, onShow } from "@dcloudio/uni-app";
  33. import { getRefundInfoPage } from "@/utils/network/api.js";
  34. import { requestNew } from "@/utils/network/request.js";
  35. import NoDataView from "@/components/no-data-view/no-data-view.vue";
  36. import { commonStore } from '@/stores/common.js'
  37. import FixedFooter from '@/components/common/FixedFooter.vue'
  38. import { maskBankCard } from '@/utils/utils'
  39. import { getCodeName } from '@/datas/queryKey.js'
  40. const { getIsRefresh, setIsRefresh } = commonStore();
  41. const refreshKey = 'runWaterRefundInfo'
  42. const paging = ref(null)
  43. const state = reactive({
  44. openId: '',
  45. dataList: [],
  46. fromOrder: false, //是否来自订单
  47. searchParams: {
  48. pageSize: 10,
  49. pageCount: 1,
  50. staffId: 'opId'
  51. }
  52. });
  53. const add = () => {
  54. uni.navigateTo({
  55. url: "/subpackage/after-sale/refund-info/add",
  56. });
  57. };
  58. const editOption = (item : any) => {
  59. uni.navigateTo({
  60. url: '/subpackage/after-sale/refund-info/add?jsonData=' + JSON.stringify(item)
  61. })
  62. };
  63. onLoad(() => {
  64. // getList()
  65. });
  66. onShow(() => {
  67. let blu = getIsRefresh(refreshKey)
  68. if (blu) {
  69. paging.value.reload()
  70. }
  71. });
  72. const getList = (pageNo, pageSize) => {
  73. const options = {
  74. type: 2,
  75. data: {
  76. ...state.searchParams,
  77. pageSize: pageSize,
  78. pageCount: pageNo
  79. },
  80. method: "POST",
  81. showLoading: true,
  82. };
  83. requestNew(getRefundInfoPage, options).then((res) => {
  84. const data = res.result ? res.result.map(item => {
  85. item.bankNameStr = getCodeName('BANK_TYPE', item.bankName)
  86. return item
  87. }) : [];
  88. paging.value.complete(data);
  89. });
  90. }
  91. </script>
  92. <style lang="scss" scoped>
  93. .flex {
  94. display: flex;
  95. align-items: center;
  96. }
  97. .content-wrap {
  98. position: relative;
  99. margin-top: -50rpx;
  100. padding: 0rpx 30rpx;
  101. .title {
  102. font-size: 30rpx;
  103. font-family: Noto Sans S Chinese;
  104. font-weight: 400;
  105. color: #000000;
  106. line-height: 30rpx;
  107. margin-bottom: 30rpx;
  108. }
  109. .car-input {}
  110. .chepai-lane {
  111. margin-top: 60rpx;
  112. margin-bottom: 20rpx;
  113. }
  114. .address-lane {
  115. margin-bottom: 30rpx;
  116. .title {
  117. font-size: 30rpx;
  118. font-weight: 400;
  119. color: #000000;
  120. line-height: 30rpx;
  121. }
  122. }
  123. }
  124. .address-content {
  125. display: flex;
  126. align-items: center;
  127. justify-content: space-between;
  128. padding-bottom: 30rpx;
  129. border-bottom: 1rpx solid #dcdcdc;
  130. .name {
  131. font-size: 26rpx;
  132. font-family: Microsoft YaHei;
  133. font-weight: 400;
  134. color: #999999;
  135. font-size: 26rpx;
  136. }
  137. .phone {
  138. font-size: 26rpx;
  139. font-family: Microsoft YaHei;
  140. font-weight: 400;
  141. color: #999999;
  142. line-height: 26rpx;
  143. margin-left: 20rpx;
  144. }
  145. .arror {
  146. width: 16rpx;
  147. height: 30rpx;
  148. color: rgba(153, 153, 153, 1);
  149. }
  150. .address {
  151. font-size: 32rpx;
  152. font-family: Microsoft YaHei;
  153. font-weight: 400;
  154. color: #333333;
  155. line-height: 32rpx;
  156. }
  157. }
  158. .address-line {
  159. padding: 24rpx 32rpx;
  160. .flex-bettwen {
  161. display: flex;
  162. align-items: center;
  163. justify-content: space-between;
  164. background-color: #FFFFFF;
  165. border-radius: 12rpx;
  166. padding: 24rpx;
  167. margin-bottom: 24rpx;
  168. .left{
  169. .bank-name{
  170. margin-bottom: 12rpx;
  171. color: #01253C;
  172. }
  173. .bank-branch-name{
  174. margin-bottom: 12rpx;
  175. color: #999999;
  176. font-size: 24rpx;
  177. }
  178. .bank-code{
  179. color: #01253C;
  180. }
  181. }
  182. .edit-icon{
  183. height: 36rpx;
  184. }
  185. }
  186. .content {
  187. margin-left: 20px;
  188. .name {
  189. font-size: 30rpx;
  190. font-family: Microsoft YaHei;
  191. font-weight: 500;
  192. color: #333333;
  193. }
  194. .phone {
  195. margin-left: 10rpx;
  196. font-size: 24rpx;
  197. font-family: Microsoft YaHei;
  198. font-weight: 400;
  199. color: #999999;
  200. line-height: 36rpx;
  201. }
  202. .address {
  203. margin-top: 10rpx;
  204. font-size: 26rpx;
  205. font-family: Microsoft YaHei;
  206. font-weight: 400;
  207. color: #333333;
  208. line-height: 36rpx;
  209. }
  210. .picture {
  211. width: 48rpx;
  212. height: 48rpx;
  213. }
  214. .editIcon {
  215. width: 48rpx;
  216. height: 48rpx;
  217. }
  218. }
  219. }
  220. </style>