✨ ERP:增加金额计算的四舍五入
This commit is contained in:
parent
3308a494c7
commit
318d5261ad
@ -61,9 +61,24 @@
|
||||
<el-table-column label="规格" align="center" prop="standard" />
|
||||
<el-table-column label="分类" align="center" prop="categoryName" />
|
||||
<el-table-column label="单位" align="center" prop="unitName" />
|
||||
<el-table-column label="采购价格" align="center" prop="purchasePrice" />
|
||||
<el-table-column label="销售价格" align="center" prop="salePrice" />
|
||||
<el-table-column label="最低价格" align="center" prop="minPrice" />
|
||||
<el-table-column
|
||||
label="采购价格"
|
||||
align="center"
|
||||
prop="purchasePrice"
|
||||
:formatter="erpPriceTableColumnFormatter"
|
||||
/>
|
||||
<el-table-column
|
||||
label="销售价格"
|
||||
align="center"
|
||||
prop="salePrice"
|
||||
:formatter="erpPriceTableColumnFormatter"
|
||||
/>
|
||||
<el-table-column
|
||||
label="最低价格"
|
||||
align="center"
|
||||
prop="minPrice"
|
||||
:formatter="erpPriceTableColumnFormatter"
|
||||
/>
|
||||
<el-table-column label="状态" align="center" prop="status">
|
||||
<template #default="scope">
|
||||
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
||||
@ -118,6 +133,7 @@ import { ProductCategoryApi, ProductCategoryVO } from '@/api/erp/product/categor
|
||||
import ProductForm from './ProductForm.vue'
|
||||
import { DICT_TYPE } from '@/utils/dict'
|
||||
import { defaultProps, handleTree } from '@/utils/tree'
|
||||
import { erpPriceTableColumnFormatter } from '@/utils'
|
||||
|
||||
/** ERP 产品列表 */
|
||||
defineOptions({ name: 'ErpProduct' })
|
||||
|
@ -71,6 +71,7 @@
|
||||
<el-input-number
|
||||
v-model="formData.taxPercent"
|
||||
:min="0"
|
||||
:precision="2"
|
||||
placeholder="请输入税率"
|
||||
class="!w-1/1"
|
||||
/>
|
||||
|
@ -110,7 +110,7 @@
|
||||
<dict-tag :type="DICT_TYPE.ERP_STOCK_RECORD_BIZ_TYPE" :value="scope.row.bizType" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="出入库单号" align="center" prop="bizNo" />
|
||||
<el-table-column label="出入库单号" align="center" prop="bizNo" width="200" />
|
||||
<el-table-column
|
||||
label="出入库日期"
|
||||
align="center"
|
||||
@ -118,8 +118,18 @@
|
||||
:formatter="dateFormatter"
|
||||
width="180px"
|
||||
/>
|
||||
<el-table-column label="出入库数量" align="center" prop="count" />
|
||||
<el-table-column label="库存量" align="center" prop="totalCount" />
|
||||
<el-table-column
|
||||
label="出入库数量"
|
||||
align="center"
|
||||
prop="count"
|
||||
:formatter="erpCountTableColumnFormatter"
|
||||
/>
|
||||
<el-table-column
|
||||
label="库存量"
|
||||
align="center"
|
||||
prop="totalCount"
|
||||
:formatter="erpCountTableColumnFormatter"
|
||||
/>
|
||||
<el-table-column label="操作人" align="center" prop="creatorName" />
|
||||
</el-table>
|
||||
<!-- 分页 -->
|
||||
@ -139,6 +149,7 @@ import download from '@/utils/download'
|
||||
import { StockRecordApi, StockRecordVO } from '@/api/erp/stock/record'
|
||||
import { ProductApi, ProductVO } from '@/api/erp/product/product'
|
||||
import { WarehouseApi, WarehouseVO } from '@/api/erp/stock/warehouse'
|
||||
import { erpCountTableColumnFormatter } from '@/utils'
|
||||
|
||||
/** ERP 产品库存明细列表 */
|
||||
defineOptions({ name: 'ErpStockRecord' })
|
||||
|
@ -69,7 +69,12 @@
|
||||
<el-table-column label="产品名称" align="center" prop="productName" />
|
||||
<el-table-column label="产品单位" align="center" prop="unitName" />
|
||||
<el-table-column label="产品分类" align="center" prop="categoryName" />
|
||||
<el-table-column label="库存量" align="center" prop="count" />
|
||||
<el-table-column
|
||||
label="库存量"
|
||||
align="center"
|
||||
prop="count"
|
||||
:formatter="erpCountTableColumnFormatter"
|
||||
/>
|
||||
<el-table-column label="仓库" align="center" prop="warehouseName" />
|
||||
</el-table>
|
||||
<!-- 分页 -->
|
||||
@ -87,6 +92,7 @@ import download from '@/utils/download'
|
||||
import { StockApi, StockVO } from '@/api/erp/stock/stock'
|
||||
import { ProductApi, ProductVO } from '@/api/erp/product/product'
|
||||
import { WarehouseApi, WarehouseVO } from '@/api/erp/stock/warehouse'
|
||||
import { erpCountTableColumnFormatter } from '@/utils'
|
||||
|
||||
/** ERP 产品库存列表 */
|
||||
defineOptions({ name: 'ErpStock' })
|
||||
|
@ -62,8 +62,18 @@
|
||||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
||||
<el-table-column label="仓库名称" align="center" prop="name" />
|
||||
<el-table-column label="仓库地址" align="center" prop="address" />
|
||||
<el-table-column label="仓储费" align="center" prop="warehousePrice" />
|
||||
<el-table-column label="搬运费" align="center" prop="truckagePrice" />
|
||||
<el-table-column
|
||||
label="仓储费"
|
||||
align="center"
|
||||
prop="warehousePrice"
|
||||
:formatter="erpPriceTableColumnFormatter"
|
||||
/>
|
||||
<el-table-column
|
||||
label="搬运费"
|
||||
align="center"
|
||||
prop="truckagePrice"
|
||||
:formatter="erpPriceTableColumnFormatter"
|
||||
/>
|
||||
<el-table-column label="负责人" align="center" prop="principal" />
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
<el-table-column label="排序" align="center" prop="sort" />
|
||||
@ -129,6 +139,7 @@ import { dateFormatter } from '@/utils/formatTime'
|
||||
import download from '@/utils/download'
|
||||
import { WarehouseApi, WarehouseVO } from '@/api/erp/stock/warehouse'
|
||||
import WarehouseForm from './WarehouseForm.vue'
|
||||
import { erpPriceTableColumnFormatter } from '@/utils'
|
||||
|
||||
/** ERP 仓库列表 */
|
||||
defineOptions({ name: 'ErpWarehouse' })
|
||||
|
Loading…
Reference in New Issue
Block a user