修复金额计算
This commit is contained in:
1 parent
5e2996c9e5
commit
9ac9c0634c
6 files changed
+13
-11
No files matched your search
@@ -4,7 +4,9 @@ import request from "/@/utils/request"
|
||||
// type:2 获取采购订单编号
|
||||
// type:3 获取采购入库编号
|
||||
// type:4 获取采购退货编号
|
||||
export function getPlanCode(params: { type: 1 | 2 | 3 | 4 }) {
|
||||
// type:5 获取零售出库编号
|
||||
// type:4 获取零售退货编号
|
||||
export function getPlanCode(params: { type: 1 | 2 | 3 | 4 | 5 | 6 }) {
|
||||
return request({
|
||||
url: "/supermarket/sm/common/getSequence",
|
||||
method: "get",
|
||||
|
||||
@@ -427,8 +427,8 @@ const cgPlanSpuItems = computed(() => {
|
||||
id: item.isNew ? undefined : item.id,
|
||||
erpSpuId: item.erpSpuId,
|
||||
quantity: item.quantity,
|
||||
unitPrice: item.unitPrice ? Number(item.unitPrice) : 0,
|
||||
totalAmount: Number(item.unitPrice || 0) * item.quantity,
|
||||
unitPrice: item.purchasePrice ? Number(item.purchasePrice) : 0,
|
||||
totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0,
|
||||
remark: item.remark,
|
||||
unitId: item.unitId,
|
||||
}
|
||||
|
||||
@@ -432,8 +432,8 @@ const cgPlanSpuItems = computed(() => {
|
||||
id: item.isNew ? undefined : item.id,
|
||||
erpSpuId: item.erpSpuId,
|
||||
quantity: item.quantity,
|
||||
unitPrice: item.unitPrice ? Number(item.unitPrice) : 0,
|
||||
totalAmount: Number(item.unitPrice || 0) * item.quantity,
|
||||
unitPrice: item.purchasePrice ? Number(item.purchasePrice) : 0,
|
||||
totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0,
|
||||
remark: item.remark,
|
||||
unitId: item.unitId,
|
||||
}
|
||||
|
||||
@@ -431,8 +431,8 @@ const cgPlanSpuItems = computed(() => {
|
||||
id: item.isNew ? undefined : item.id,
|
||||
erpSpuId: item.erpSpuId,
|
||||
quantity: item.quantity,
|
||||
unitPrice: item.unitPrice ? Number(item.unitPrice) : 0,
|
||||
totalAmount: Number(item.unitPrice || 0) * item.quantity,
|
||||
unitPrice: item.purchasePrice ? Number(item.purchasePrice) : 0,
|
||||
totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0,
|
||||
remark: item.remark,
|
||||
unitId: item.unitId,
|
||||
}
|
||||
|
||||
@@ -469,8 +469,8 @@ const cgPlanSpuItems = computed(() => {
|
||||
id: item.isNew ? undefined : item.id,
|
||||
erpSpuId: item.erpSpuId,
|
||||
quantity: item.quantity,
|
||||
unitPrice: item.unitPrice ? Number(item.unitPrice) : 0,
|
||||
totalAmount: item.unitPrice ? Number(item.unitPrice) * item.quantity : 0,
|
||||
unitPrice: item.purchasePrice ? Number(item.purchasePrice) : 0,
|
||||
totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0,
|
||||
remark: item.remark,
|
||||
unitId: item.unitId,
|
||||
}
|
||||
|
||||
@@ -469,8 +469,8 @@ const cgPlanSpuItems = computed(() => {
|
||||
id: item.isNew ? undefined : item.id,
|
||||
erpSpuId: item.erpSpuId,
|
||||
quantity: item.quantity,
|
||||
unitPrice: item.unitPrice ? Number(item.unitPrice) : 0,
|
||||
totalAmount: item.unitPrice ? Number(item.unitPrice) * item.quantity : 0,
|
||||
unitPrice: item.purchasePrice ? Number(item.purchasePrice) : 0,
|
||||
totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0,
|
||||
remark: item.remark,
|
||||
unitId: item.unitId,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user