|
|
|
@ -23,7 +23,6 @@
|
|
|
|
|
:max="record.restAmount"
|
|
|
|
|
:step="0.01"
|
|
|
|
|
string-mode
|
|
|
|
|
@change="amountChange($event, record)"
|
|
|
|
|
@click.native.stop="handleInputClick"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
@ -35,7 +34,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</a-table>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
@ -84,9 +82,9 @@
|
|
|
|
|
loading.value = false
|
|
|
|
|
const { data } = res
|
|
|
|
|
data.forEach((item, index) => {
|
|
|
|
|
if (item.amount) item.amount = numberThousandFormat(item.amount, 2, true)
|
|
|
|
|
if (item.restAmount) item.restAmount = numberThousandFormat(item.restAmount, 2, true)
|
|
|
|
|
if (item.invoiceAmount) item.invoiceAmount = numberThousandFormat(item.invoiceAmount, 2, true)
|
|
|
|
|
if (item.amount) item.amount = numberThousandFormat(item.amount, 2, false)
|
|
|
|
|
if (item.restAmount) item.restAmount = numberThousandFormat(item.restAmount, 2, false)
|
|
|
|
|
if (item.invoiceAmount) item.invoiceAmount = numberThousandFormat(item.invoiceAmount, 2, false)
|
|
|
|
|
item['feeStatusText'] = feeStatusList[item.feeStatus]
|
|
|
|
|
if (item.createTime) item.createTime = item.createTime.split(' ')[0]
|
|
|
|
|
if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0]
|
|
|
|
@ -96,9 +94,10 @@
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 改变申请金额计算总金额
|
|
|
|
|
const amountChange = (e, row) => {
|
|
|
|
|
row.amount = Number(e * row.originalRate).toFixed(6)
|
|
|
|
|
}
|
|
|
|
|
// const amountChange = (e, row) => {
|
|
|
|
|
// console.log(row)
|
|
|
|
|
// row.amount = Number(e * row.originalRate || 1).toFixed(2)
|
|
|
|
|
// }
|
|
|
|
|
// 根据业务编号及类型获取关联费用记录 (Auth)
|
|
|
|
|
const getFees = async (id, businessType, customerId, queryCondition) => {
|
|
|
|
|
const postData = {
|
|
|
|
@ -116,9 +115,9 @@
|
|
|
|
|
const { data } = res
|
|
|
|
|
loading.value = false
|
|
|
|
|
data.items.forEach((item, index) => {
|
|
|
|
|
if (item.amount) item.amount = numberThousandFormat(item.amount, 2, true)
|
|
|
|
|
if (item.restAmount) item.restAmount = numberThousandFormat(item.restAmount, 2, true)
|
|
|
|
|
if (item.invoiceAmount) item.invoiceAmount = numberThousandFormat(item.invoiceAmount, 2, true)
|
|
|
|
|
if (item.amount) item.amount = numberThousandFormat(item.amount, 2, false)
|
|
|
|
|
if (item.restAmount) item.restAmount = numberThousandFormat(item.restAmount, 2, false)
|
|
|
|
|
if (item.invoiceAmount) item.invoiceAmount = numberThousandFormat(item.invoiceAmount, 2, false)
|
|
|
|
|
item['feeStatusText'] = feeStatusList[item.feeStatus]
|
|
|
|
|
item['id'] = item.recordId
|
|
|
|
|
if (item.createTime) item.createTime = item.createTime.split(' ')[0]
|
|
|
|
@ -146,9 +145,9 @@
|
|
|
|
|
const { data } = res
|
|
|
|
|
loading.value = false
|
|
|
|
|
data.forEach((item, index) => {
|
|
|
|
|
if (item.amount) item.amount = numberThousandFormat(item.amount, 2, true)
|
|
|
|
|
if (item.restAmount) item.restAmount = numberThousandFormat(item.restAmount, 2, true)
|
|
|
|
|
if (item.invoiceAmount) item.invoiceAmount = numberThousandFormat(item.invoiceAmount, 2, true)
|
|
|
|
|
if (item.amount) item.amount = numberThousandFormat(item.amount, 2, false)
|
|
|
|
|
if (item.restAmount) item.restAmount = numberThousandFormat(item.restAmount, 2, false)
|
|
|
|
|
if (item.invoiceAmount) item.invoiceAmount = numberThousandFormat(item.invoiceAmount, 2, false)
|
|
|
|
|
item['feeStatusText'] = feeStatusList[item.feeStatus]
|
|
|
|
|
if (item.createTime) item.createTime = item.createTime.split(' ')[0]
|
|
|
|
|
if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0]
|
|
|
|
@ -177,10 +176,13 @@
|
|
|
|
|
list.value.push(row)
|
|
|
|
|
}
|
|
|
|
|
if (currencyList[row.currency]) {
|
|
|
|
|
currencyList[row.currency] = currencyList[row.currency] + Number(row.amount) || 0
|
|
|
|
|
currencyList[row.currency] = Number(currencyList[row.currency]) + Number(row.amount) || 0
|
|
|
|
|
} else {
|
|
|
|
|
currencyList[row.currency] = row.amount
|
|
|
|
|
}
|
|
|
|
|
if (currencyList[row.currency]) {
|
|
|
|
|
currencyList[row.currency] = Number(currencyList[row.currency]).toFixed(2)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
@ -241,18 +243,20 @@
|
|
|
|
|
row['feeStatusText'] = '录入状态'
|
|
|
|
|
list.value.push(row)
|
|
|
|
|
}
|
|
|
|
|
console.log(row)
|
|
|
|
|
if (currencyList[row.currency]) {
|
|
|
|
|
currencyList[row.currency] = currencyList[row.currency] + Number(row.amount) || 0
|
|
|
|
|
currencyList[row.currency] = Number(currencyList[row.currency]) + Number(row.amount) || 0
|
|
|
|
|
} else {
|
|
|
|
|
currencyList[row.currency] = row.amount
|
|
|
|
|
}
|
|
|
|
|
if (currencyList[row.currency]) {
|
|
|
|
|
currencyList[row.currency] = Number(currencyList[row.currency]).toFixed(2)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
state.infoRowKeys = newSelectedRowKeys
|
|
|
|
|
}, 100)
|
|
|
|
|
console.log(state.infoRowKeys)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|