Commit f0c4d154 by Jaxon

feat: 页面结构调整

1 parent eed6b79d
......@@ -84,7 +84,7 @@ export const routerName = {
label: "新增产品",
category: "Button",
type: "primary",
handle: "handleCatalogAdd"
handle: "handleCatalogAdd",
},
{
authId: "9030711",
......@@ -92,7 +92,7 @@ export const routerName = {
label: "批量上架产品",
handle: "handleBatchGrounding",
category: "Button",
type: "primary"
type: "primary",
},
{
authId: "9030712",
......@@ -105,19 +105,19 @@ export const routerName = {
authId: "9030713",
parentId: "90307",
label: "上架产品",
handle: "handleGrounding"
handle: "handleGrounding",
},
{
authId: "9030714",
parentId: "90307",
label: "编辑",
handle: "handleCatalogEdit"
handle: "handleCatalogEdit",
},
{
authId: "9030715",
parentId: "90307",
label: "删除",
handle: "handleCatalogDelete"
handle: "handleCatalogDelete",
},
{
authId: "9030716",
......@@ -125,7 +125,7 @@ export const routerName = {
label: "批量新增SPU/SKU",
category: "Button",
type: "primary",
handle: "handleBatchCreateSPUOrSKU"
handle: "handleBatchCreateSPUOrSKU",
},
{
authId: "9030717",
......@@ -133,7 +133,7 @@ export const routerName = {
label: "批量新增SKU",
category: "Button",
type: "primary",
handle: "handleBatchCreateSKU"
handle: "handleBatchCreateSKU",
},
{
authId: "9030718",
......@@ -141,8 +141,8 @@ export const routerName = {
label: "批量编辑SKU",
category: "Button",
type: "primary",
handle: "handleBatchEditSKU"
}
handle: "handleBatchEditSKU",
},
],
component: _import("goods/productManage/index"),
},
......@@ -282,7 +282,7 @@ export const routerName = {
handle: "handleBatchModifyInventory",
},
],
component: _import("goods/grounding/index"),
component: _import("goods/grounding/views/table/index"),
},
90310: {
path: "/editGrounding",
......@@ -295,7 +295,7 @@ export const routerName = {
sideHidden: true,
activePath: "/grounding",
},
component: _import("goods/grounding/editGrounding"),
component: _import("goods/grounding/views/modify/index"),
},
90311: {
path: "/groundingDetail",
......@@ -316,7 +316,7 @@ export const routerName = {
handle: "handleView",
},
],
component: _import("goods/grounding/groundingDetail"),
component: _import("goods/grounding/views/detail/index"),
},
90306: {
path: "/coupons",
......
export const productList = [{
confId: 1,
confName: "基础产品",
}, {
confId: 2,
confName: "升级产品",
}];
export const productList = [
{
confId: 1,
confName: "基础产品",
},
{
confId: 2,
confName: "升级产品",
},
];
export const baseSupplyModeList = [{
confId: 1,
confName: "嘀加",
}, {
confId: 2,
confName: "门店",
}];
export const baseSupplyModeList = [
{
confId: 1,
confName: "嘀加",
},
{
confId: 2,
confName: "门店",
},
];
// 太阳膜升级产品供货模式
export const upgradeSupplyModeList = [{
confId: 1,
confName: "嘀加",
}, {
confId: 3,
confName: "门店套码+嘀加",
}, {
confId: 4,
confName: "门店回收原厂+嘀加",
}, {
confId: 5,
confName: "服务商自采+嘀加",
}];
export const upgradeSupplyModeList = [
{
confId: 1,
confName: "嘀加",
},
{
confId: 3,
confName: "门店套码+嘀加",
},
{
confId: 4,
confName: "门店回收原厂+嘀加",
},
{
confId: 5,
confName: "服务商自采+嘀加",
},
];
// 1.3场景 升级产品供货模式
export const crowdUpgradeSupplyModeList = [{
confId: 1,
confName: "嘀加",
}, {
confId: 2,
confName: "门店",
}];
export const crowdUpgradeSupplyModeList = [
{
confId: 1,
confName: "嘀加",
},
{
confId: 2,
confName: "门店",
},
];
// 套餐上架产品信息form表单
export const packageGoodsForm = [{
name: "upgradeGoodsId",
label: "上架产品",
isRequired: true,
type: "searchSelect",
optionList: [],
isClear: false,
optionId: "confId",
optionNameLabel: "confNameValue",
optionTypeNameLabel: "confTypeNameValue",
width: "432px",
}, {
type: "incidBox",
key: "goodsType",
detailInfo: [{
label: "产品名称",
value: "upgradeGoodsName",
}, {
label: "规格",
value: "specificationData",
}, {
label: "产品编码",
value: "type",
}, {
label: "供应商编码",
value: "thirdPartyCode",
}, {
label: "参考售价",
value: "upgradePrice",
export const packageGoodsForm = [
{
name: "upgradeGoodsId",
label: "上架产品",
isRequired: true,
type: "searchSelect",
optionList: [],
isClear: false,
optionId: "confId",
optionNameLabel: "confNameValue",
optionTypeNameLabel: "confTypeNameValue",
width: "432px",
},
{
type: "incidBox",
key: "goodsType",
detailInfo: [
{
label: "产品名称",
value: "upgradeGoodsName",
},
{
label: "规格",
value: "specificationData",
},
{
label: "产品编码",
value: "type",
},
{
label: "供应商编码",
value: "thirdPartyCode",
},
{
label: "参考售价",
value: "upgradePrice",
unit: true,
},
{
label: "适用车型",
value: "carTypeConfigName",
},
{
label: "所属系列",
value: "goodsName",
},
{
label: "所属分类",
value: "tempGoodsTypeName",
},
{
label: "产品ID",
value: "upgradeCommodityCode",
},
{
label: "运营成本/元",
value: "operationCost",
type: "price",
isPrice: true,
},
],
},
{
name: "position",
label: "上架部位",
type: "radio-select",
radioGroupList: [],
width: "432px",
},
{
name: "goodsAlias",
label: "商品别名",
type: "input",
maxlength: 50,
width: "432px",
},
{
name: "warrantyType",
label: "质保卡类型",
type: "select",
isClear: false,
optionList: [
{
confId: 0,
confName: "质保卡",
},
{
confId: 1,
confName: "质保权益卡",
},
],
optionId: "confId",
optionLabel: "confName",
width: "432px",
},
{
name: "upgradeSupplyMode",
label: "升级/产品供货模式",
type: "radio",
index: 2,
radioGroupList: [],
},
{
name: "sellPrice",
label: "售价",
type: "input",
width: "432px",
unit: true,
}, {
label: "适用车型",
value: "carTypeConfigName",
}, {
label: "所属系列",
value: "goodsName",
}, {
label: "所属分类",
value: "tempGoodsTypeName",
}, {
label: "产品ID",
value: "upgradeCommodityCode",
}, {
label: "运营成本/元",
value: "operationCost",
type: 'price',
isPrice: true
}],
}, {
name: "position",
label: "上架部位",
type: "radio-select",
radioGroupList: [],
width: "432px"
}, {
name: "goodsAlias",
label: "商品别名",
type: "input",
maxlength: 50,
width: "432px",
}, {
name: "warrantyType",
label: "质保卡类型",
type: "select",
isClear: false,
optionList: [{
confId: 0,
confName: "质保卡",
}, {
confId: 1,
confName: "质保权益卡",
}],
optionId: "confId",
optionLabel: "confName",
width: "432px",
}, {
name: "upgradeSupplyMode",
label: "升级/产品供货模式",
type: "radio",
index: 2,
radioGroupList: [],
}, {
name: "sellPrice",
label: "售价",
type: "input",
width: "432px",
unit: true,
handleInput: true,
}, {
name: "minSellPrice",
label: "最低售价",
type: "input",
width: "432px",
unit: true,
handleInput: true,
}, {
name: "upgradeProductCost",
label: "产品、升级成本",
type: "input",
width: "432px",
unit: true,
handleInput: true,
}, {
name: "recoveryCost",
label: "回收成本",
type: "input",
width: "432px",
unit: true,
handleInput: true,
}, {
name: "virtualAccountCost",
label: "虚拟对账成本",
type: "input",
width: "432px",
unit: true,
handleInput: true,
}, {
name: "djCost",
label: "嘀加成本",
type: "input",
width: "432px",
unit: true,
isDisabled: false,
handleInput: true,
}, {
name: "thirdPartyCost",
label: "第三方成本",
type: "input",
width: "432px",
unit: true,
handleInput: true,
}];
handleInput: true,
},
{
name: "minSellPrice",
label: "最低售价",
type: "input",
width: "432px",
unit: true,
handleInput: true,
},
{
name: "upgradeProductCost",
label: "产品、升级成本",
type: "input",
width: "432px",
unit: true,
handleInput: true,
},
{
name: "recoveryCost",
label: "回收成本",
type: "input",
width: "432px",
unit: true,
handleInput: true,
},
{
name: "virtualAccountCost",
label: "虚拟对账成本",
type: "input",
width: "432px",
unit: true,
handleInput: true,
},
{
name: "djCost",
label: "嘀加成本",
type: "input",
width: "432px",
unit: true,
isDisabled: false,
handleInput: true,
},
{
name: "thirdPartyCost",
label: "第三方成本",
type: "input",
width: "432px",
unit: true,
handleInput: true,
},
];
// 套餐查看详情form
export const packageGoodsDetail = [
......@@ -178,39 +220,50 @@ export const packageGoodsDetail = [
label: "上架产品",
type: "incidBox",
key: "goodsType",
detailInfo: [{
label: "产品名称",
value: "upgradeGoodsName",
}, {
label: "规格",
value: "specificationData",
}, {
label: "产品编码",
value: "type",
}, {
label: "供应商编码",
value: "thirdPartyCode",
}, {
label: "参考售价",
value: "upgradePrice",
unit: true,
}, {
label: "适用车型",
value: "carTypeConfigName",
}, {
label: "所属系列",
value: "goodsName",
}, {
label: "所属分类",
value: "tempGoodsTypeName",
}, {
label: "产品ID",
value: "upgradeCommodityCode",
}, {
label: "运营成本/元",
value: "operationCost",
type: 'price'
}],
detailInfo: [
{
label: "产品名称",
value: "upgradeGoodsName",
},
{
label: "规格",
value: "specificationData",
},
{
label: "产品编码",
value: "type",
},
{
label: "供应商编码",
value: "thirdPartyCode",
},
{
label: "参考售价",
value: "upgradePrice",
unit: true,
},
{
label: "适用车型",
value: "carTypeConfigName",
},
{
label: "所属系列",
value: "goodsName",
},
{
label: "所属分类",
value: "tempGoodsTypeName",
},
{
label: "产品ID",
value: "upgradeCommodityCode",
},
{
label: "运营成本/元",
value: "operationCost",
type: "price",
},
],
},
{
name: "positionStr",
......
export const statusList = [
{
confId: 3,
confValue: "草稿",
},
{
confId: 4,
confValue: "待审核",
},
{
confId: 1,
confValue: "已上架",
},
{
confId: 0,
confValue: "已下架",
},
];
export const financeCheckFlagList = [
{
confId: "Y",
confValue: "开启",
},
{
confId: "N",
confValue: "关闭",
},
];
export const sellPriceTempValidStatusList = [
{
confId: "1",
confValue: "待生效",
},
{
confId: "2",
confValue: "已生效",
},
{
confId: "3",
confValue: "已失效",
},
];
export const inventoryTypeList = [
{
confId: 2,
confValue: "实物",
},
{
confId: 1,
confValue: "虚拟",
},
];
import { isArray } from "lodash-es";
// 处理金额补零
export function priceFilter(num) {
const pow = 10 ** 2;
if (filterEmpty(num)) {
return "-";
}
return (Math.round(num * pow) / pow).toFixed(2);
}
// 校验是否为空 不包含0
function filterEmpty(data) {
return isArray(data) ? data.length <= 0 : (data ?? "") === "";
}
......@@ -23,9 +23,9 @@ import { mapActions } from "vuex";
import { BaseData } from "@/common/constants.js";
import { deepClone, Util } from "@/common/util";
import { baseConfig } from "@/main";
import { convertYuanToWan, filterSpecsStr } from "../filterOption";
import groundingForm from "./components/groundingForm.vue";
import { baseSupplyModeList, productList, upgradeSupplyModeList } from "./constants/data";
import { convertYuanToWan, filterSpecsStr } from "@/views/goods/filterOption";
import groundingForm from "@/views/goods/grounding/components/groundingForm.vue";
import { baseSupplyModeList, productList, upgradeSupplyModeList } from "@/views/goods/grounding/constants/data";
export default {
name: "EditGrounding",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!