|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
width: 130,
|
|
|
color: "info",
|
|
|
align: "center",
|
|
|
- dataIndex: "unitCost",
|
|
|
+ dataIndex: "cost",
|
|
|
custom: "cost"
|
|
|
},
|
|
|
{
|
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
width: 130,
|
|
|
color: "info",
|
|
|
align: "center",
|
|
|
- dataIndex: "unitAddPrice",
|
|
|
+ dataIndex: "addPrice",
|
|
|
custom: "price"
|
|
|
},
|
|
|
{
|
|
|
@@ -179,9 +179,9 @@ export default {
|
|
|
let params = {
|
|
|
id: item.id,
|
|
|
stockWarning: item.stockWarning,
|
|
|
- unitWeight: item.unitWeight,
|
|
|
- unitCost: item.unitCost,
|
|
|
- unitAddPrice: item.unitAddPrice,
|
|
|
+ weight: item.weight,
|
|
|
+ cost: item.cost,
|
|
|
+ addPrice: item.addPrice,
|
|
|
inTurn: ++item.inTurn
|
|
|
};
|
|
|
let api = updateFlowerApi;
|
|
|
@@ -200,9 +200,9 @@ export default {
|
|
|
let params = {
|
|
|
id: item.id,
|
|
|
stockWarning: item.stockWarning,
|
|
|
- unitWeight: item.unitWeight,
|
|
|
- unitCost: item.unitCost,
|
|
|
- unitAddPrice: item.unitAddPrice,
|
|
|
+ weight: item.weight,
|
|
|
+ cost: item.cost,
|
|
|
+ addPrice: item.addPrice,
|
|
|
inTurn: --item.inTurn
|
|
|
};
|
|
|
let api = updateFlowerApi;
|
|
|
@@ -247,9 +247,9 @@ export default {
|
|
|
let params = {
|
|
|
id: item.id,
|
|
|
stockWarning: item.stockWarning,
|
|
|
- unitWeight: item.unitWeight,
|
|
|
- unitCost: item.unitCost,
|
|
|
- unitAddPrice: item.unitAddPrice
|
|
|
+ weight: item.weight,
|
|
|
+ cost: item.cost,
|
|
|
+ addPrice: item.addPrice
|
|
|
};
|
|
|
params[key] = value;
|
|
|
updateFlowerApi(params)
|