From 6339fa6d27bf359ad33af55d93357fdbf4c2e6dd Mon Sep 17 00:00:00 2001
From: qijq <624811160@qq.com>
Date: Fri, 27 Jun 2025 18:40:12 +0800
Subject: [PATCH] =?UTF-8?q?update=20=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8-?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9C=AA=E5=88=86=E9=85=8D=E5=95=86=E5=93=81?=
=?UTF-8?q?=E5=AD=97=E6=AE=B5=EF=BC=8C=E5=92=8C=E5=95=86=E5=AE=B6=E7=AB=AF?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=95=86=E5=93=81=E5=88=86=E7=B1=BBoptions?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/product/base/index.vue | 31 +++++++++++++++++++++-
src/views/product/productList/index.vue | 35 ++++++++++++++++++++++++-
2 files changed, 64 insertions(+), 2 deletions(-)
diff --git a/src/views/product/base/index.vue b/src/views/product/base/index.vue
index 13c2fd8..c27969a 100644
--- a/src/views/product/base/index.vue
+++ b/src/views/product/base/index.vue
@@ -124,6 +124,21 @@
@change="change"
/>
+
+
+
+
+
{{ __('清空') }}
@@ -312,7 +327,7 @@
- {{ ({"1001":"销售中","1002":"仓库中","1000":"违规禁售"})[scope.row.product_state_id] }}
+ {{ ({"1001":"销售中","1002":"仓库中","1000":"违规禁售","1003":"未分配商品"})[scope.row.product_state_id] }}
@@ -496,6 +511,20 @@ import {
value: 1000,
label: this.__('违规禁售'),
},
+ {
+ value:1003,
+ label:"未分配商品"
+ }
+ ],
+ specialOptions:[
+ {
+ value:0,
+ label:"否"
+ },
+ {
+ value:1,
+ label:"是"
+ }
],
data: [], // 产品规格数据
defaultProps: {
diff --git a/src/views/product/productList/index.vue b/src/views/product/productList/index.vue
index 363bd88..c3231e4 100644
--- a/src/views/product/productList/index.vue
+++ b/src/views/product/productList/index.vue
@@ -66,6 +66,21 @@
style="width: 120px;"
/>
+
+
+
{{ __('查询') }}
@@ -273,10 +288,12 @@
import { getToken } from '@/utils/token'
import excelExeImport from './components/ExcelImport'
import {mapGetters} from "vuex";
+ import TreeSelect from '@/components/treeSelect'
+ import { getTree } from '@/api/base/product/category'
export default {
name: 'ProductList',
- components: { Edit, Add, excelExeImport },
+ components: { Edit, Add, excelExeImport,TreeSelect },
beforeRouteEnter(to, form, next) {
next((vm) => vm.queryData())
},
@@ -351,6 +368,13 @@
label: this.__('供应商产品'),
},
],
+ defaultCheckedKeys: [],
+ nodeKey: 'id',
+ defaultProps: {
+ children: 'children',
+ label: 'label',
+ },
+ productDataList: [], // 产品规格数据
}
},
computed: {
@@ -369,6 +393,7 @@
this.params.authorization = getToken()
this.fetchData()
+ this.getTree()
},
methods: {
__,
@@ -390,6 +415,11 @@
await this.fetchData()
})
},
+ async getTree() {
+ const { data } = await getTree()
+ debugger;
+ this.productDataList = data
+ },
handleSuccess(response, file, fileList) {
let status = response.status
let msg = response.msg
@@ -525,6 +555,9 @@
this.total = data.records
this.listLoading = false
},
+ change(id) {
+ this.queryForm.category_id = id
+ },
},
}