fix: 统计功能图标统一优化。
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
|
||||
<view class="search-view">
|
||||
<u-input v-model="queryParams.creditCardName" border="false" type="select" @click="handleCreditCard" placeholder="请选择信用卡" suffixIcon="search"
|
||||
suffixIconStyle="color: #909399" class="search-input">
|
||||
</u-input>
|
||||
</view>
|
||||
</u-sticky>
|
||||
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
|
||||
<view class="search-view">
|
||||
<u-input v-model="queryParams.accountName" border="false" type="select" @click="handleAccount" placeholder="请选择POS机" suffixIcon="search"
|
||||
suffixIconStyle="color: #909399" class="search-input">
|
||||
@@ -118,6 +125,8 @@
|
||||
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
|
||||
<u-picker itemHeight="88" :show="showAccount" :columns="accountList" keyName="nameCode" @cancel="handleAccountCancel"
|
||||
@confirm="handleAccountConfirm"></u-picker>
|
||||
<u-picker itemHeight="88" :show="showCreditCard" :columns="bankCardLendList" keyName="nameCode" @cancel="handleCreditCardCancel"
|
||||
@confirm="handleCreditCardConfirm"></u-picker>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -141,6 +150,8 @@ const settingColumns = ref([])
|
||||
const timeShow= ref(false)
|
||||
const showAccount = ref(false)
|
||||
const accountList = ref([])
|
||||
const showCreditCard = ref(false)
|
||||
const bankCardLendList = ref([])
|
||||
const flag= ref(true)
|
||||
const time =ref( Number(new Date()))
|
||||
const data = reactive({
|
||||
@@ -151,6 +162,12 @@ const data = reactive({
|
||||
type: '6',
|
||||
pageSize: 100
|
||||
},
|
||||
queryBankCardLendParams: {
|
||||
pageNum: 1,
|
||||
type: '2',
|
||||
status: '1',
|
||||
pageSize: 100
|
||||
},
|
||||
queryParams: {
|
||||
name: null,
|
||||
type: '1',
|
||||
@@ -161,7 +178,7 @@ const data = reactive({
|
||||
dealType: null
|
||||
}
|
||||
})
|
||||
const { filterPanel, queryAccountParams, queryParams} = toRefs(data)
|
||||
const { filterPanel, queryAccountParams,queryBankCardLendParams, queryParams} = toRefs(data)
|
||||
const windowHeight = computed(() => {
|
||||
uni.getSystemInfoSync().windowHeight - 50
|
||||
})
|
||||
@@ -187,6 +204,9 @@ function loadmore() {
|
||||
}
|
||||
}
|
||||
function getList() {
|
||||
listAccounts(queryBankCardLendParams.value).then((response) => {
|
||||
bankCardLendList.value = [response.rows]
|
||||
})
|
||||
listAccounts(queryAccountParams.value).then((response) => {
|
||||
accountList.value = [response.rows]
|
||||
})
|
||||
@@ -249,6 +269,26 @@ function settingCancel() {
|
||||
}
|
||||
function handleAccountCancel() {
|
||||
showAccount.value = false
|
||||
}
|
||||
function handleCreditCard() {
|
||||
if (bankCardLendList.value[0].length === 0) {
|
||||
proxy.$refs['uToast'].show({
|
||||
message: '信用卡为空 ', type: 'warning'
|
||||
})
|
||||
} else {
|
||||
showCreditCard.value = true
|
||||
}
|
||||
}
|
||||
function handleCreditCardConfirm(e) {
|
||||
queryParams.value.creditCardName = e.value[0].nameCode
|
||||
queryParams.value.outAccountId= e.value[0].id
|
||||
showCreditCard.value = false
|
||||
pageNum.value = 1
|
||||
listData.value = []
|
||||
getList()
|
||||
}
|
||||
function handleCreditCardCancel() {
|
||||
showCreditCard.value = false
|
||||
}
|
||||
function searchBlur() {
|
||||
pageNum.value = 1
|
||||
|
||||
Reference in New Issue
Block a user