Commit 6c9c4c2c by Jaxon

Merge branch 'feature/584/jaxon' into 'SAAS+V5.8.4'

feat(商品上架): 业务开发

See merge request !876
2 parents 332717ba 8baaff16
...@@ -5,7 +5,11 @@ import { BaseData, settlementTypeOpt } from "@/common/constants"; ...@@ -5,7 +5,11 @@ import { BaseData, settlementTypeOpt } from "@/common/constants";
import { isZeroOrNumber } from "@/libs/number"; import { isZeroOrNumber } from "@/libs/number";
import store from "@/store"; import store from "@/store";
import { convertYuanToWan, filterSpecsStr } from "@/views/goods/filterOption"; import { convertYuanToWan, filterSpecsStr } from "@/views/goods/filterOption";
import { inventoryTypeOption, shelfStyleOptions } from "@/views/goods/shelfProduct/constant"; import {
inventoryTypeOption,
productCostStyleOpt,
shelfStyleOptions,
} from "@/views/goods/shelfProduct/constant";
import { isExtendedWarranty, isMembraneType, isOfficialRightsService, isThirdPart } from "@/views/goods/shelfProduct/utils/businessCheck"; import { isExtendedWarranty, isMembraneType, isOfficialRightsService, isThirdPart } from "@/views/goods/shelfProduct/utils/businessCheck";
import { schemaSumBy } from "@/views/goods/shelfProduct/utils/calc"; import { schemaSumBy } from "@/views/goods/shelfProduct/utils/calc";
...@@ -250,6 +254,21 @@ export async function getProductDetailDescriptionSchema(shelfType) { ...@@ -250,6 +254,21 @@ export async function getProductDetailDescriptionSchema(shelfType) {
}, },
}, },
{
name: "detailList.0.upgradeProductCostStyle",
label: "产品、升级成本/件",
col: 12,
render(h, { data, schemaItem }) {
const value = get(data, schemaItem.name);
const item = productCostStyleOpt.find(item => item.value === value);
return h(
"span",
item?.label || "-",
// priceFilter(data.upgradeProductCost),
);
},
},
// { // {
// name: "detailList.0.recoveryCost", // name: "detailList.0.recoveryCost",
// label: "回收成本", // label: "回收成本",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!