Commit 7ea45907 by linjinhong Committed by qinjianhui

fix:修改供应商问题

parent c47fd95a
...@@ -236,6 +236,7 @@ const { ...@@ -236,6 +236,7 @@ const {
}) })
const dialogVisible = ref(false) const dialogVisible = ref(false)
const editLoading = ref(false) const editLoading = ref(false)
const goodsTableData = ref([]) const goodsTableData = ref([])
const supplierTableData = ref<IgoodsType[]>([]) const supplierTableData = ref<IgoodsType[]>([])
...@@ -899,11 +900,11 @@ async function addPice(product: IgoodsType) { ...@@ -899,11 +900,11 @@ async function addPice(product: IgoodsType) {
const tempArr = product.supplierPriceItemList || product.customProductItemList const tempArr = product.supplierPriceItemList || product.customProductItemList
pricetableData.value = cloneDeep( pricetableData.value = cloneDeep(
tempArr?.map((el) => { tempArr?.map((el) => {
if (!el.productItemId) el.productItemId = el.id || ''
return { return {
...el, ...el,
productItemImage: el.productItemImage || el.image, productItemImage: el.productItemImage || el.image,
productItemSku: el.productItemSku || el.sku, productItemSku: el.productItemSku || el.sku,
productItemId: el.id || '',
} }
}) || [], }) || [],
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment