Commit 7cae7bd8 authored by 胡's avatar

fix:一些格式修改

parent 81cda5dd
......@@ -25,6 +25,8 @@ import Plus from '@/components/Plus.vue'
import api from "../api";
import { useRouter } from "vue-router";
import { usePlan } from '../store/index'
import {currency} from '@/utils/textFormat'
const planStore = usePlan()
const refreshing = $ref(true);
......@@ -35,7 +37,7 @@ let getList = async () => {
let list = await api.financingCalculator({ userId: window.localStorage.getItem('userId') })
if (list.rows && list.rows.length) {
list = list.rows.map(item =>
({ ...item, title: item.creationDate.split(' ')[0], values: [["物件价格", "融资金额", "每期还款"], [`¥ ${item.priceOfItem}`, `¥ ${item.financeAmount}`, `¥ ${item.dueAmount}`]] })
({ ...item, title: item.creationDate.split(' ')[0], values: [["物件价格", "融资金额", "每期还款"], [`¥${currency(item.priceOfItem)}`, `¥${currency(item.financeAmount)}`, `¥${currency(item.dueAmount)}`]] })
)
} else {
list = []
......
......@@ -46,7 +46,7 @@ const queryList = async () => {
res.rows.forEach(item => {
listValue.push({
title: item.contractNumber + '' || '',
other_title: item.acceptDate || '',
other_title: item.acceptDate.split(' ')[0] || '',
values: [["机型", "机号", "状态", "代理店"], [item.model, item.machineNumber, item.contractStatus, item.agencyName]],
...item
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment