From 867573285fbbdff61f3acbcf57478a40f4af074c Mon Sep 17 00:00:00 2001 From: "2090205686@qq.com" Date: Sun, 8 Jun 2025 00:09:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9D=E7=A6=81=E7=89=A9=E5=93=81=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=B1=95=E7=A4=BA=E5=88=97=E8=A1=A8=E5=BC=80=E5=8F=91?= =?UTF-8?q?=EF=BC=8C=E4=B8=8A=E4=BC=A0=E8=A7=86=E9=A2=91=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=AF=E9=A2=84=E8=A7=88=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/myUploadVideo.vue | 51 ++- src/components/tableComponent.vue | 2 +- src/router/index.js | 12 + src/views/goods/contrabandManage/index.vue | 342 +++++++++++++++++++++ src/views/goods/goodsCategory/index.vue | 2 - src/views/goods/goodsManage/editGoods.vue | 14 + 6 files changed, 416 insertions(+), 7 deletions(-) create mode 100644 src/views/goods/contrabandManage/index.vue diff --git a/src/components/myUploadVideo.vue b/src/components/myUploadVideo.vue index 37e4418..7441f85 100644 --- a/src/components/myUploadVideo.vue +++ b/src/components/myUploadVideo.vue @@ -4,14 +4,36 @@
建议比例1:1,不超过60s,视频{{ fileSize }}MB以内
上传视频
+ + +
+ + + + + - + + diff --git a/src/views/goods/goodsCategory/index.vue b/src/views/goods/goodsCategory/index.vue index 5e4976d..f9cc0c1 100644 --- a/src/views/goods/goodsCategory/index.vue +++ b/src/views/goods/goodsCategory/index.vue @@ -235,7 +235,6 @@ let nowClickRow = ref({}); // 列配置 const columns = ref([]); const columns1 = ref([ - { prop: "sort", label: "排序" }, { prop: "id", label: "ID" }, { prop: "categoryName", label: "类别" }, { prop: "addTime", label: "添加时间" }, @@ -272,7 +271,6 @@ const generateMockData = () => { "list|10": [ { "id|+1": 10000, - "sort|+1": 1, categoryName: '@pick(["种子", "化肥", "农药"])', //分类名称 addTime: "@datetime", //添加时间 categoryStatus: '@pick(["已启用", "未启用"])', //状态 diff --git a/src/views/goods/goodsManage/editGoods.vue b/src/views/goods/goodsManage/editGoods.vue index 2922214..d9c67fd 100644 --- a/src/views/goods/goodsManage/editGoods.vue +++ b/src/views/goods/goodsManage/editGoods.vue @@ -656,6 +656,20 @@ const getGoodsInfo = async (goodId) => { formInline.categoryId2 = formData.value?.categoryId2 ?? ""; formInline.categoryId3 = formData.value?.categoryId3 ?? ""; + formInline.netWeight = formData.value?.netWeight ?? [ + { + goodSpecs: "", + goodPrice: 1, + goodStock: 1, + netContent: 1, + unit: "kg" + } + ]; + formInline.attribute = formData.value?.attribute ?? [{ + name: '', //属性 + value: '', //内容 + }]; + formInline.selectedAddress = formData.value?.areaAddress?.split(",") ?? []; formInline.goodUrl = formData.value?.goodUrl?.split(",").slice(0, 5).join(',') ?? "";