付费结算

feature-JimuReport-1106-yjl
lijingjia 3 weeks ago
parent 449b9fca44
commit bb2a7a0250

@ -102,8 +102,10 @@
id, id,
businessType, businessType,
customerId customerId
}], }]
queryCondition }
if (queryCondition != '{}') {
postData['queryCondition'] = queryCondition
} }
loading.value = true loading.value = true
await GetFees(postData).then(res => { await GetFees(postData).then(res => {

@ -441,6 +441,11 @@
// id // id
const diffIds = findDifferentElements(v, old) const diffIds = findDifferentElements(v, old)
const rows = getSelectRows() const rows = getSelectRows()
const params = []
if (feeParams.value.currency) params.push({FieldName:"currency",FieldValue:feeParams.value.currency,ConditionalType:1})
if (feeParams.value.feeType) params.push({FieldName:"feeType",FieldValue:feeParams.value.feeType,ConditionalType:1})
if (feeParams.value.feeName) params.push({FieldName:"feeName",FieldValue:feeParams.value.feeName,ConditionalType:1})
if (feeParams.value.customerId) params.push({FieldName:"customerId",FieldValue:feeParams.value.customerId,ConditionalType:1})
if (v.length > old.length) { if (v.length > old.length) {
// //
diffIds.forEach(item => { diffIds.forEach(item => {
@ -450,11 +455,7 @@
}) })
let customerId = btype[0]?.customerId let customerId = btype[0]?.customerId
btype = btype[0]?.businessType btype = btype[0]?.businessType
const params = {} console.log(feeParams.value)
if (feeParams.value.currency) params['currency'] = feeParams.value.currency
if (feeParams.value.currency) params['feeType'] = feeParams.value.feeType
if (feeParams.value.currency) params['feeName'] = feeParams.value.feeName
if (feeParams.value.currency) params['customerId'] = feeParams.value.customerId
feeTabel.value.init([item], 'apply', btype, customerId, JSON.stringify(params)).then(res => { feeTabel.value.init([item], 'apply', btype, customerId, JSON.stringify(params)).then(res => {
allFeeData[item] = res allFeeData[item] = res
}) })
@ -468,13 +469,13 @@
// //
let btype = rows[0].businessType let btype = rows[0].businessType
let customerId = rows[0].customerId let customerId = rows[0].customerId
feeTabel.value.init([v[v.length - 1]], 'apply', btype, customerId) feeTabel.value.init([v[v.length - 1]], 'apply', btype, customerId, JSON.stringify(params))
} }
} else { } else {
// //
let btype = rows[0].businessType let btype = rows[0].businessType
let customerId = rows[0].customerId let customerId = rows[0].customerId
feeTabel.value.init(v, 'apply', btype, customerId) feeTabel.value.init(v, 'apply', btype, customerId, JSON.stringify(params))
} }
rrmb.value = 0 rrmb.value = 0
prmb.value = 0 prmb.value = 0

Loading…
Cancel
Save