Browse Source

bug表修改

lihuilin/feature-20250923114949-现金
ZhangYong 1 month ago
parent
commit
df7d7c75c4
  1. 4
      .env.development
  2. 7
      src/components/workspace/CashManagement.vue
  3. 14
      src/views/moneyManage/receiveDetail/receiveDetail.vue

4
.env.development

@ -1,4 +1,4 @@
VITE_API_BASE='https://hwjb.homilychart.com/dev/admin'
# VITE_API_BASE='https://hwjb.homilychart.com/dev/admin'
# 测试环境 # 测试环境
# VITE_API_BASE='http://54.255.212.181:10704/' # VITE_API_BASE='http://54.255.212.181:10704/'
# 正式环境 # 正式环境
@ -11,7 +11,7 @@ VITE_UPLOAD_URL=http://39.101.133.168:8828/hljw/api/aws/upload
# zhangyong # zhangyong
# VITE_API_BASE='http://192.168.3.83:8081/' # VITE_API_BASE='http://192.168.3.83:8081/'
# 本地 # 本地
# VITE_API_BASE='http://localhost:8081/'
VITE_API_BASE='http://localhost:8081/'
# sunjiabei # sunjiabei
# VITE_API_BASE='http://192.168.1.70:8081/' # VITE_API_BASE='http://192.168.1.70:8081/'

7
src/components/workspace/CashManagement.vue

@ -100,7 +100,6 @@ const startDate = `${currentYear}-01-01 00:00:00`;
const endDate = `${currentYear}-12-31 23:59:59`; const endDate = `${currentYear}-12-31 23:59:59`;
// //
const fetchCashData = async () => { const fetchCashData = async () => {
getAdminData()
try { try {
const res = await request({ const res = await request({
url: '/workbench/getTotalRevenue', url: '/workbench/getTotalRevenue',
@ -227,9 +226,9 @@ const renderChart = () => {
chartInstance.setOption(option) chartInstance.setOption(option)
} }
onMounted(() => {
// getAdminData()
fetchCashData()
onMounted( async() => {
await getAdminData()
await fetchCashData()
}) })
</script> </script>

14
src/views/moneyManage/receiveDetail/receiveDetail.vue

@ -48,7 +48,7 @@
</div> </div>
<div class="rowItem"> <div class="rowItem">
<el-text style="width: 4vw;">产品名称</el-text> <el-text style="width: 4vw;">产品名称</el-text>
<el-cascader v-model="searchData.goodsName" :options="productList" style="width: 10vw;" />
<el-cascader v-model="searchData.goodsName" :options="productList" style="width: 10vw;" clearable/>
</div> </div>
<div class="rowItem" style="width: 30vw"> <div class="rowItem" style="width: 30vw">
<el-text style="width: 4vw; margin-left: 0.5vw;">付款时间</el-text> <el-text style="width: 4vw; margin-left: 0.5vw;">付款时间</el-text>
@ -184,7 +184,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="auditTime" label="驳回时间" v-if="activeTab == 'reject' && !kefu" <el-table-column prop="auditTime" label="驳回时间" v-if="activeTab == 'reject' && !kefu"
width="150px" show-overflow-tooltip></el-table-column>
width="180px" show-overflow-tooltip></el-table-column>
<el-table-column prop="rejectReason" label="驳回理由" v-if="activeTab == 'reject' && !kefu" <el-table-column prop="rejectReason" label="驳回理由" v-if="activeTab == 'reject' && !kefu"
width="150px"> width="150px">
<template #default="scope"> <template #default="scope">
@ -687,11 +687,13 @@ const search = () => {
const reset = () => { const reset = () => {
searchData.value = {} searchData.value = {}
getTime.value = [] getTime.value = []
getlist()
} }
// //
const getlist = async () => { const getlist = async () => {
try { try {
let payCurrencySelect = '' let payCurrencySelect = ''
let goodsName = ''
if (getTime.value && getTime.value.length === 2) { if (getTime.value && getTime.value.length === 2) {
searchData.value.startTime = moment(getTime.value[0]).format('YYYY-MM-DD HH:mm:ss') searchData.value.startTime = moment(getTime.value[0]).format('YYYY-MM-DD HH:mm:ss')
searchData.value.endTime = moment(getTime.value[1]).format('YYYY-MM-DD HH:mm:ss') searchData.value.endTime = moment(getTime.value[1]).format('YYYY-MM-DD HH:mm:ss')
@ -702,7 +704,7 @@ const getlist = async () => {
} }
if (searchData.value.goodsName) { if (searchData.value.goodsName) {
searchData.value.goodsName = searchData.value.goodsName[searchData.value.goodsName.length - 1]
goodsName = searchData.value.goodsName[searchData.value.goodsName.length - 1]
} }
if (searchData.value.paymentCurrency) { if (searchData.value.paymentCurrency) {
payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency) payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency)
@ -739,7 +741,9 @@ const getlist = async () => {
receivedMarket: MarketNameForId(receivedMarket), receivedMarket: MarketNameForId(receivedMarket),
cashRoleId: cashRoleId, cashRoleId: cashRoleId,
paymentCurrency: payCurrencySelect, paymentCurrency: payCurrencySelect,
submitterMarket: receivedMarket
submitterMarket: receivedMarket,
goodsName:goodsName,
market:MarketNameForId(searchData.value.market)
} }
} }
}) })
@ -985,7 +989,7 @@ const beforeUpload = (rawFile) => {
ElMessage.error('图片必须是jpg或png类型!') ElMessage.error('图片必须是jpg或png类型!')
return false return false
} else if (rawFile.size / 1024 / 1024 > 1) { } else if (rawFile.size / 1024 / 1024 > 1) {
ElMessage.error('图片大小不能超过 1MB!')
ElMessage.error('图片大小不能超过 2MB!')
return false return false
} }
return true return true

Loading…
Cancel
Save