123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- <template>
- <z-paging ref="paging" v-model="state.dataList" @query="getList">
- <view class="address-line">
- <view
- v-for="(item, index) in state.dataList"
- :key="index"
- @click="editOption(item)"
- class="flex-bettwen">
- <view class="left">
- <view class="bank-name">{{ item.bankNameStr }}</view>
- <view class="bank-branch-name">{{ item.bankBranchName }}</view>
- <view class="bank-code">{{ maskBankCard(item.bankIdCode) }}</view>
- </view>
- <image class="edit-icon" :src="`${$imgUrl}applyCard/edit.png`" mode="heightFix"></image>
- </view>
- </view>
-
- <template #empty>
- <NoDataView style="width: 100%; height: 100%;" :text="'暂无退费信息'"></NoDataView>
- </template>
-
- <template #bottom>
- <FixedFooter>
- <button type="default" class="ui-btn" @click="add()">
- 新增退费资料
- </button>
- </FixedFooter>
- </template>
- </z-paging>
- </template>
-
- <script setup lang="ts">
- import { reactive, ref } from "vue";
- import { getItem, StorageKeys } from "@/utils/storage";
- import { onLoad, onShow } from "@dcloudio/uni-app";
- import { getRefundInfoPage } from "@/utils/network/api.js";
- import { requestNew } from "@/utils/network/request.js";
- import NoDataView from "@/components/no-data-view/no-data-view.vue";
- import { commonStore } from '@/stores/common.js'
- import FixedFooter from '@/components/common/FixedFooter.vue'
- import { maskBankCard } from '@/utils/utils'
- import { getCodeName } from '@/datas/queryKey.js'
-
- const { getIsRefresh, setIsRefresh } = commonStore();
-
- const refreshKey = 'runWaterRefundInfo'
- const paging = ref(null)
-
- const state = reactive({
- openId: '',
- dataList: [],
- fromOrder: false, //是否来自订单
- searchParams: {
- pageSize: 10,
- pageCount: 1,
- staffId: 'opId'
- }
- });
-
- const add = () => {
- uni.navigateTo({
- url: "/subpackage/after-sale/refund-info/add",
- });
- };
-
- const editOption = (item : any) => {
- uni.navigateTo({
- url: '/subpackage/after-sale/refund-info/add?jsonData=' + JSON.stringify(item)
- })
- };
-
- onLoad(() => {
- // getList()
- });
-
- onShow(() => {
- let blu = getIsRefresh(refreshKey)
- if (blu) {
- paging.value.reload()
- }
- });
-
- const getList = (pageNo, pageSize) => {
- const options = {
- type: 2,
- data: {
- ...state.searchParams,
- pageSize: pageSize,
- pageCount: pageNo
- },
- method: "POST",
- showLoading: true,
- };
- requestNew(getRefundInfoPage, options).then((res) => {
- const data = res.result ? res.result.map(item => {
- item.bankNameStr = getCodeName('BANK_TYPE', item.bankName)
- return item
- }) : [];
- paging.value.complete(data);
- });
- }
- </script>
-
- <style lang="scss" scoped>
- .flex {
- display: flex;
- align-items: center;
- }
-
- .content-wrap {
- position: relative;
- margin-top: -50rpx;
- padding: 0rpx 30rpx;
-
- .title {
- font-size: 30rpx;
- font-family: Noto Sans S Chinese;
- font-weight: 400;
- color: #000000;
- line-height: 30rpx;
- margin-bottom: 30rpx;
- }
-
- .car-input {}
-
- .chepai-lane {
- margin-top: 60rpx;
- margin-bottom: 20rpx;
- }
-
- .address-lane {
- margin-bottom: 30rpx;
-
- .title {
- font-size: 30rpx;
- font-weight: 400;
- color: #000000;
- line-height: 30rpx;
- }
- }
- }
-
- .address-content {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-bottom: 30rpx;
- border-bottom: 1rpx solid #dcdcdc;
-
- .name {
- font-size: 26rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #999999;
- font-size: 26rpx;
- }
-
- .phone {
- font-size: 26rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #999999;
- line-height: 26rpx;
- margin-left: 20rpx;
- }
-
- .arror {
- width: 16rpx;
- height: 30rpx;
- color: rgba(153, 153, 153, 1);
- }
-
- .address {
- font-size: 32rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #333333;
- line-height: 32rpx;
- }
- }
-
- .address-line {
- padding: 24rpx 32rpx;
-
- .flex-bettwen {
- display: flex;
- align-items: center;
- justify-content: space-between;
- background-color: #FFFFFF;
- border-radius: 12rpx;
- padding: 24rpx;
- margin-bottom: 24rpx;
- .left{
- .bank-name{
- margin-bottom: 12rpx;
- color: #01253C;
- }
- .bank-branch-name{
- margin-bottom: 12rpx;
- color: #999999;
- font-size: 24rpx;
- }
- .bank-code{
- color: #01253C;
- }
- }
- .edit-icon{
- height: 36rpx;
- }
- }
-
- .content {
- margin-left: 20px;
-
- .name {
- font-size: 30rpx;
- font-family: Microsoft YaHei;
- font-weight: 500;
- color: #333333;
- }
-
- .phone {
- margin-left: 10rpx;
- font-size: 24rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #999999;
- line-height: 36rpx;
- }
-
- .address {
- margin-top: 10rpx;
- font-size: 26rpx;
- font-family: Microsoft YaHei;
- font-weight: 400;
- color: #333333;
- line-height: 36rpx;
- }
-
- .picture {
- width: 48rpx;
- height: 48rpx;
- }
-
- .editIcon {
- width: 48rpx;
- height: 48rpx;
- }
- }
- }
- </style>
|