Commit 7cae7bd8 authored by 胡's avatar

fix:一些格式修改

parent 81cda5dd
...@@ -25,6 +25,8 @@ import Plus from '@/components/Plus.vue' ...@@ -25,6 +25,8 @@ import Plus from '@/components/Plus.vue'
import api from "../api"; import api from "../api";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { usePlan } from '../store/index' import { usePlan } from '../store/index'
import {currency} from '@/utils/textFormat'
const planStore = usePlan() const planStore = usePlan()
const refreshing = $ref(true); const refreshing = $ref(true);
...@@ -35,7 +37,7 @@ let getList = async () => { ...@@ -35,7 +37,7 @@ let getList = async () => {
let list = await api.financingCalculator({ userId: window.localStorage.getItem('userId') }) let list = await api.financingCalculator({ userId: window.localStorage.getItem('userId') })
if (list.rows && list.rows.length) { if (list.rows && list.rows.length) {
list = list.rows.map(item => 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 { } else {
list = [] list = []
......
...@@ -46,7 +46,7 @@ const queryList = async () => { ...@@ -46,7 +46,7 @@ const queryList = async () => {
res.rows.forEach(item => { res.rows.forEach(item => {
listValue.push({ listValue.push({
title: item.contractNumber + '' || '', title: item.contractNumber + '' || '',
other_title: item.acceptDate || '', other_title: item.acceptDate.split(' ')[0] || '',
values: [["机型", "机号", "状态", "代理店"], [item.model, item.machineNumber, item.contractStatus, item.agencyName]], values: [["机型", "机号", "状态", "代理店"], [item.model, item.machineNumber, item.contractStatus, item.agencyName]],
...item ...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