|
|
@ -45,6 +45,7 @@
|
|
|
|
import { feeStatusList } from '../columns'
|
|
|
|
import { feeStatusList } from '../columns'
|
|
|
|
// 根据记录id查询费用
|
|
|
|
// 根据记录id查询费用
|
|
|
|
import { GetList, GetFees } from '../api'
|
|
|
|
import { GetList, GetFees } from '../api'
|
|
|
|
|
|
|
|
import { numberThousandFormat } from '/@/utils/commonUtil'
|
|
|
|
// 模版id查询费用
|
|
|
|
// 模版id查询费用
|
|
|
|
import { GetFeeTemplateDetailList } from '/@/views/fee/template/api'
|
|
|
|
import { GetFeeTemplateDetailList } from '/@/views/fee/template/api'
|
|
|
|
const props = defineProps({
|
|
|
|
const props = defineProps({
|
|
|
@ -83,6 +84,9 @@
|
|
|
|
loading.value = false
|
|
|
|
loading.value = false
|
|
|
|
const { data } = res
|
|
|
|
const { data } = res
|
|
|
|
data.forEach((item, index) => {
|
|
|
|
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)
|
|
|
|
item['feeStatusText'] = feeStatusList[item.feeStatus]
|
|
|
|
item['feeStatusText'] = feeStatusList[item.feeStatus]
|
|
|
|
if (item.createTime) item.createTime = item.createTime.split(' ')[0]
|
|
|
|
if (item.createTime) item.createTime = item.createTime.split(' ')[0]
|
|
|
|
if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0]
|
|
|
|
if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0]
|
|
|
@ -112,6 +116,9 @@
|
|
|
|
const { data } = res
|
|
|
|
const { data } = res
|
|
|
|
loading.value = false
|
|
|
|
loading.value = false
|
|
|
|
data.items.forEach((item, index) => {
|
|
|
|
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)
|
|
|
|
item['feeStatusText'] = feeStatusList[item.feeStatus]
|
|
|
|
item['feeStatusText'] = feeStatusList[item.feeStatus]
|
|
|
|
item['id'] = item.recordId
|
|
|
|
item['id'] = item.recordId
|
|
|
|
if (item.createTime) item.createTime = item.createTime.split(' ')[0]
|
|
|
|
if (item.createTime) item.createTime = item.createTime.split(' ')[0]
|
|
|
@ -139,6 +146,9 @@
|
|
|
|
const { data } = res
|
|
|
|
const { data } = res
|
|
|
|
loading.value = false
|
|
|
|
loading.value = false
|
|
|
|
data.forEach((item, index) => {
|
|
|
|
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)
|
|
|
|
item['feeStatusText'] = feeStatusList[item.feeStatus]
|
|
|
|
item['feeStatusText'] = feeStatusList[item.feeStatus]
|
|
|
|
if (item.createTime) item.createTime = item.createTime.split(' ')[0]
|
|
|
|
if (item.createTime) item.createTime = item.createTime.split(' ')[0]
|
|
|
|
if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0]
|
|
|
|
if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0]
|
|
|
|