| | |
| | | import { modelList, productTreeList } from "@/api/basicData/product.js"; |
| | | import dayjs from "dayjs"; |
| | | import FileUpload from "@/components/AttachmentUpload/file/index.vue"; |
| | | import { trimZeros } from "@/utils/formatNumber.js"; |
| | | |
| | | const userStore = useUserStore(); |
| | | |
| | |
| | | }; |
| | | |
| | | const formattedNumber = (row, column, cellValue) => { |
| | | return parseFloat(cellValue).toFixed(6); |
| | | return trimZeros(cellValue, 6); |
| | | }; |
| | | // 查询列表 |
| | | /** 搜索按钮操作 */ |
| | |
| | | "futureTicketsAmount", |
| | | ], |
| | | { |
| | | taxInclusiveUnitPrice: { decimalPlaces: 6 }, |
| | | taxInclusiveTotalPrice: { decimalPlaces: 6 }, |
| | | taxExclusiveTotalPrice: { decimalPlaces: 6 }, |
| | | ticketsAmount: { decimalPlaces: 6 }, |
| | | futureTicketsAmount: { decimalPlaces: 6 }, |
| | | taxInclusiveUnitPrice: { decimalPlaces: 6, trimZeros: true }, |
| | | taxInclusiveTotalPrice: { decimalPlaces: 6, trimZeros: true }, |
| | | taxExclusiveTotalPrice: { decimalPlaces: 6, trimZeros: true }, |
| | | ticketsAmount: { decimalPlaces: 6, trimZeros: true }, |
| | | futureTicketsAmount: { decimalPlaces: 6, trimZeros: true }, |
| | | ticketsNum: { noDecimal: true }, // 不保留小数 |
| | | futureTickets: { noDecimal: true }, // 不保留小数 |
| | | } |
| | |
| | | param, |
| | | ["contractAmount", "netContractAmount"], |
| | | { |
| | | contractAmount: { decimalPlaces: 6 }, |
| | | netContractAmount: { decimalPlaces: 6 }, |
| | | contractAmount: { decimalPlaces: 6, trimZeros: true }, |
| | | netContractAmount: { decimalPlaces: 6, trimZeros: true }, |
| | | } |
| | | ); |
| | | }; |
| | |
| | | "taxExclusiveTotalPrice", |
| | | ], |
| | | { |
| | | taxInclusiveUnitPrice: { decimalPlaces: 6 }, |
| | | taxInclusiveTotalPrice: { decimalPlaces: 6 }, |
| | | taxExclusiveTotalPrice: { decimalPlaces: 6 }, |
| | | taxInclusiveUnitPrice: { decimalPlaces: 6, trimZeros: true }, |
| | | taxInclusiveTotalPrice: { decimalPlaces: 6, trimZeros: true }, |
| | | taxExclusiveTotalPrice: { decimalPlaces: 6, trimZeros: true }, |
| | | } |
| | | ); |
| | | }; |