|
@@ -405,10 +405,10 @@ function changeBatch(flag: boolean = true) {
|
|
|
function editProduct(row: any) {
|
|
|
post(BUSIESS_INFO, { id: row.id }).then(({ data }) => {
|
|
|
const list = (data.businessItemProducts || []).map((item: any) => {
|
|
|
- const { id, productName, productId, productCode, unit, unitName, typeName, type, price, inventory, orderProductDetail, num, discount, sealPrice, totalPrice, quantity } = item
|
|
|
+ const { id, productName, productId, productCode, unit, unitName, typeName, productType, type, price, inventory, orderProductDetail, num, discount, sellingPrice, sealPrice, totalPrice, quantity } = item
|
|
|
return {
|
|
|
- id, productId: productId, productName, productCode, unit, unitName, typeName, type, price, inventory,
|
|
|
- num, discount, sealPrice, totalPrice, quantity
|
|
|
+ id, productId: productId, productName, productCode, unitName: unit, typeName: productType, type, price, inventory,
|
|
|
+ num, discount, sealPrice, totalPrice, quantity, sellingPrice
|
|
|
}
|
|
|
})
|
|
|
productTableListValue.value = list
|