From 5d5ea5cd8c4cc06da24cec8442dba934e599f702 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期四, 19 十月 2023 17:11:28 +0800 Subject: [PATCH] Merge branch 'dev' of http://192.168.5.5:10010/r/web/WMS into zwf/style --- src/views/productManage/product/AddProductDialog.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/views/productManage/product/AddProductDialog.vue b/src/views/productManage/product/AddProductDialog.vue index 8622c9d..a1d1117 100644 --- a/src/views/productManage/product/AddProductDialog.vue +++ b/src/views/productManage/product/AddProductDialog.vue @@ -165,7 +165,7 @@ :disabled="!showFooter" > <el-option - v-for="item in productCategoryOptions" + v-for="item in productCategoryListWithDefault" :key="item.id" :label="item.name" :value="item.id" @@ -482,6 +482,9 @@ }, components: {}, computed: { + productCategoryListWithDefault(){ + return [{id:0,name:'璇烽�夋嫨'},...(this.productCategoryOptions ?? [])] + }, modalTitle(){ if (this.editConfig.title === '缂栬緫' && this.editConfig.autoEdit){ return '缂栬緫' @@ -505,6 +508,7 @@ memberOptions: [{ name: "绠$悊鍛�", id: 1 }], productCategoryOptions: [], // 浜у搧绫诲埆 productTypeOptions: [ + { name: "璇烽�夋嫨", id: 0 }, { name: "鑳芥秷鑰�", id: 1 }, { name: "鏈嶅姟", id: 2 }, { name: "鍙簱瀛樹骇鍝�", id: 3 } -- Gitblit v1.8.0