Commit f0c4d154 by Jaxon

feat: 页面结构调整

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