Browse Source

筛选bug修改

zhangyong/milestone-20250913-现金管理
ZhangYong 1 month ago
parent
commit
bfa5f6b1a1
  1. 10
      src/views/moneyManage/receiveDetail/receiveDetail.vue

10
src/views/moneyManage/receiveDetail/receiveDetail.vue

@ -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.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