| src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/procurementManagement/procurementLedger/detail.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/procurementManagement/procurementLedger/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/procurementManagement/purchaseReturnOrder/New.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/salesManagement/salesLedger/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/salesManagement/salesQuotation/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/collaborativeApproval/approvalProcess/components/approvalDia.vue
@@ -75,7 +75,7 @@ <el-descriptions-item label="报价总额" :span="2"> <span style="font-size: 18px; color: #e6a23c; font-weight: bold;"> ¥{{ Number(currentQuotation.totalAmount ?? 0).toFixed(2) }} ¥{{ Number(currentQuotation.totalAmount ?? 0).toFixed(6) }} </span> </el-descriptions-item> </el-descriptions> @@ -92,7 +92,7 @@ label="单位" /> <el-table-column prop="unitPrice" label="单价"> <template #default="scope">¥{{ Number(scope.row.unitPrice ?? 0).toFixed(2) }}</template> <template #default="scope">¥{{ Number(scope.row.unitPrice ?? 0).toFixed(6) }}</template> </el-table-column> </el-table> </div> src/views/procurementManagement/procurementLedger/detail.vue
@@ -61,14 +61,14 @@ <el-table-column label="数量" prop="quantity" /> <el-table-column label="库存预留数量" prop="stockReservedQuantity" /> <el-table-column label="税率(%)" prop="taxRate" /> <el-table-column label="含税单价(元)" prop="taxInclusiveUnitPrice" :formatter="formattedNumber" width="150" /> <el-table-column label="含税单价(元)" prop="taxInclusiveUnitPrice" :formatter="unitPriceFormattedNumber" width="150" /> <el-table-column label="含税总价(元)" prop="taxInclusiveTotalPrice" :formatter="formattedNumber" width="150" /> <el-table-column label="不含税总价(元)" prop="taxExclusiveTotalPrice" :formatter="formattedNumber" width="150" /> <template #append> <div class="summary-row" v-if="productData.length > 0"> <div class="summary-label">合计</div> <div class="summary-value" style="width: 150px"> {{ formattedNumber(null, null, sumTaxInclusiveUnitPrice) }} {{ unitPriceFormattedNumber(null, null, sumTaxInclusiveUnitPrice) }} </div> <div class="summary-value" style="width: 150px"> {{ formattedNumber(null, null, sumTaxInclusiveTotalPrice) }} @@ -164,6 +164,14 @@ return cellValue } const unitPriceFormattedNumber = (row, column, cellValue) => { if (cellValue != null && !isNaN(cellValue)) { return Number(cellValue).toFixed(6) } return cellValue } const sumTaxInclusiveUnitPrice = computed(() => { return productData.value.reduce((sum, item) => { return sum + (Number(item.taxInclusiveUnitPrice) || 0) src/views/procurementManagement/procurementLedger/index.vue
@@ -68,7 +68,7 @@ <el-table-column label="可用数量" prop="availableQuality" /> <el-table-column label="退货数量" prop="returnQuality" /> <el-table-column label="税率(%)" prop="taxRate" /> <el-table-column label="含税单价(元)" prop="taxInclusiveUnitPrice" :formatter="formattedNumber" /> <el-table-column label="含税单价(元)" prop="taxInclusiveUnitPrice" :formatter="unitPriceFormatter" /> <el-table-column label="含税总价(元)" prop="taxInclusiveTotalPrice" :formatter="formattedNumber" /> <el-table-column label="不含税总价(元)" prop="taxExclusiveTotalPrice" :formatter="formattedNumber" /> </el-table> @@ -210,7 +210,7 @@ <el-table-column label="数量" prop="quantity" width="70" /> <el-table-column label="库存预警数量" prop="warnNum" width="120" show-overflow-tooltip /> <el-table-column label="税率(%)" prop="taxRate" width="80" /> <el-table-column label="含税单价(元)" prop="taxInclusiveUnitPrice" :formatter="formattedNumber" width="150" /> <el-table-column label="含税单价(元)" prop="taxInclusiveUnitPrice" :formatter="unitPriceFormatter" width="150" /> <el-table-column label="含税总价(元)" prop="taxInclusiveTotalPrice" :formatter="formattedNumber" width="150" /> <el-table-column label="不含税总价(元)" prop="taxExclusiveTotalPrice" :formatter="formattedNumber" width="150" /> <el-table-column label="是否质检" prop="isChecked" width="150"> @@ -310,7 +310,7 @@ <el-row :gutter="30"> <el-col :span="12"> <el-form-item label="含税单价(元):" prop="taxInclusiveUnitPrice"> <el-input-number v-model="productForm.taxInclusiveUnitPrice" :precision="2" :step="0.1" :min="0" clearable <el-input-number v-model="productForm.taxInclusiveUnitPrice" :precision="6" :step="0.1" :min="0" clearable style="width: 100%" @change="mathNum" /> </el-form-item> </el-col> @@ -772,6 +772,9 @@ const formattedNumber = (row, column, cellValue) => { return parseFloat(cellValue).toFixed(2); }; const unitPriceFormatter = (row, column, cellValue) => { return parseFloat(cellValue).toFixed(6); }; // 查询列表 /** 搜索按钮操作 */ @@ -1476,7 +1479,7 @@ productForm.value.taxInclusiveUnitPrice = ( Number(productForm.value.taxInclusiveTotalPrice) / Number(productForm.value.quantity) ).toFixed(2); ).toFixed(6); // 确保结果不为负数 if (Number(productForm.value.taxInclusiveUnitPrice) < 0) { productForm.value.taxInclusiveUnitPrice = "0"; @@ -1517,7 +1520,7 @@ productForm.value.taxInclusiveUnitPrice = ( Number(productForm.value.taxInclusiveTotalPrice) / Number(productForm.value.quantity) ).toFixed(2); ).toFixed(6); // 确保结果不为负数 if (Number(productForm.value.taxInclusiveUnitPrice) < 0) { productForm.value.taxInclusiveUnitPrice = "0"; src/views/procurementManagement/purchaseReturnOrder/New.vue
@@ -511,7 +511,7 @@ }); const formattedNumber = (row, column, cellValue) => { return parseFloat(cellValue).toFixed(2); return parseFloat(cellValue).toFixed(6); }; const formatAmount = (value) => { src/views/salesManagement/salesLedger/index.vue
@@ -161,7 +161,7 @@ prop="taxRate" /> <el-table-column label="含税单价(元)" prop="taxInclusiveUnitPrice" :formatter="sensitiveAmountFormatter" /> :formatter="sensitiveUnitPriceFormatter" /> <el-table-column label="含税总价(元)" prop="taxInclusiveTotalPrice" :formatter="sensitiveAmountFormatter" /> @@ -456,7 +456,7 @@ prop="taxRate" /> <el-table-column label="含税单价(元)" prop="taxInclusiveUnitPrice" :formatter="formattedNumber" /> :formatter="unitPriceFormatter" /> <el-table-column label="含税总价(元)" prop="taxInclusiveTotalPrice" :formatter="formattedNumber" /> @@ -668,7 +668,7 @@ :min="0" v-model="productForm.taxInclusiveUnitPrice" style="width: 100%" :precision="2" :precision="6" placeholder="请输入" clearable @change="calculateFromUnitPrice" /> @@ -1402,6 +1402,12 @@ } return parseFloat(cellValue).toFixed(2); }; const unitPriceFormatter = (row, column, cellValue) => { if (cellValue === undefined || cellValue === null || cellValue === "") { return "0.000000"; } return parseFloat(cellValue).toFixed(6); }; const findLedgerRecordByRow = row => { if (!row) return null; if ( @@ -1454,6 +1460,12 @@ return "*****"; } return formattedNumber(row, column, cellValue); }; const sensitiveUnitPriceFormatter = (row, column, cellValue) => { if (!isCurrentUserMaintainer(row)) { return "*****"; } return unitPriceFormatter(row, column, cellValue); }; // 获取tree子数据 const getModels = value => { @@ -1734,7 +1746,7 @@ unit: p.unit || "", quantity: quantity, taxRate: taxRate, taxInclusiveUnitPrice: unitPrice.toFixed(2), taxInclusiveUnitPrice: unitPrice.toFixed(6), taxInclusiveTotalPrice: taxInclusiveTotalPrice, taxExclusiveTotalPrice: taxExclusiveTotalPrice, invoiceType: "增普票", @@ -2466,7 +2478,7 @@ isCalculating.value = true; // 计算含税单价 = 含税总价 / 数量 productForm.value.taxInclusiveUnitPrice = (totalPrice / quantity).toFixed(2); productForm.value.taxInclusiveUnitPrice = (totalPrice / quantity).toFixed(6); // 如果有税率,计算不含税总价 if (productForm.value.taxRate) { @@ -2508,7 +2520,7 @@ // 计算含税单价 = 含税总价 / 数量 productForm.value.taxInclusiveUnitPrice = ( inclusiveTotalPrice / quantity ).toFixed(2); ).toFixed(6); isCalculating.value = false; }; src/views/salesManagement/salesQuotation/index.vue
@@ -65,7 +65,7 @@ </el-table-column> <el-table-column prop="totalAmount" label="报价金额" width="120"> <template #default="scope"> ¥{{ scope.row.totalAmount.toFixed(2) }} ¥{{ scope.row.totalAmount.toFixed(6) }} </template> </el-table-column> <el-table-column label="操作" width="200" fixed="right" align="center"> @@ -215,7 +215,7 @@ <el-table-column prop="unitPrice" label="单价"> <template #default="scope"> <el-form-item :prop="`products.${scope.$index}.unitPrice`" class="product-table-form-item"> <el-input-number v-model="scope.row.unitPrice" :min="0" :precision="2" style="width: 100%" /> <el-input-number v-model="scope.row.unitPrice" :min="0" :precision="6" style="width: 100%" /> </el-form-item> </template> </el-table-column> @@ -267,7 +267,7 @@ <!-- <el-tag :type="getStatusType(currentQuotation.status)">{{ currentQuotation.status }}</el-tag>--> <!-- </el-descriptions-item>--> <el-descriptions-item label="报价总额" :span="2"> <span style="font-size: 18px; color: #e6a23c; font-weight: bold;">¥{{ currentQuotation.totalAmount?.toFixed(2) }}</span> <span style="font-size: 18px; color: #e6a23c; font-weight: bold;">¥{{ currentQuotation.totalAmount?.toFixed(6) }}</span> </el-descriptions-item> </el-descriptions> @@ -279,7 +279,7 @@ <el-table-column prop="unit" label="单位" /> <el-table-column prop="unitPrice" label="单价"> <template #default="scope"> ¥{{ scope.row.unitPrice.toFixed(2) }} ¥{{ scope.row.unitPrice.toFixed(6) }} </template> </el-table-column> </el-table> @@ -536,6 +536,7 @@ } const handleEdit = async (row) => { console.log("1111111111111111111", row) dialogTitle.value = '编辑报价' isEdit.value = true editId.value = row.id