新增"供货价格"列和对应的处理逻辑。

This commit is contained in:
mkm 2024-09-23 15:14:37 +08:00
parent 8001a69e72
commit 4bf23a1594
1 changed files with 12 additions and 1 deletions

View File

@ -117,6 +117,16 @@
min-width="80" min-width="80"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column
label="供货价格"
prop="purchase"
min-width="100"
show-overflow-tooltip
>
<template #default="{ row }">
<el-input v-model="row.purchase" />
</template>
</el-table-column>
<el-table-column <el-table-column
label="商品价格" label="商品价格"
prop="price" prop="price"
@ -276,7 +286,8 @@ const handleSubmit = async () => {
id: item.id, id: item.id,
product_id: item.product_id, product_id: item.product_id,
stock: item.new_stock || 0, stock: item.new_stock || 0,
price: item.price || 0 price: item.price || 0,
purchase: item.purchase || 0
} }
}) })
console.log(storeList.value) console.log(storeList.value)