耗材问题提交,盘点传值问题计算问题

This commit is contained in:
duan
2024-10-30 16:02:19 +08:00
parent 8b0e22e2cd
commit 042c20a52d
10 changed files with 28 additions and 26 deletions

View File

@@ -67,7 +67,7 @@
let showStatus = ref(false)
const props = defineProps({
item: {
type: Object
type: ''
}
})
let datas = reactive({
@@ -86,12 +86,12 @@
// let a = datas.item.balance * -1
// return formatDecimal((a - datas.form.balance) * datas.item.price)
// } else {
return formatDecimal((datas.item.balance - datas.form.balance) * datas.item.price)
return (datas.form.balance - datas.item.balance ) * datas.item.price
// }
})
let profitNumber = computed(() => {
// 盈亏数量
return datas.item.balance - datas.form.balance
return datas.form.balance- datas.item.balance
})
function toggle() {