From a765e98b06ff16eb4018b0ac7aafea7728e341c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E4=BC=9F?= <943146732@qq.com>
Date: Sun, 10 Mar 2024 22:45:14 +0800
Subject: [PATCH] udpate
---
src/common/model/goods/MultiSpec.js | 6 +-
.../Modal/ActiveModal/ActiveModal.vue | 249 ++++++++++++++++++
src/components/Modal/ActiveModal/index.js | 2 +
src/components/Modal/index.js | 2 +
src/components/SelectActive/SelectActive.vue | 184 +++++++++++++
src/components/SelectActive/index.js | 2 +
src/components/index.js | 2 +
src/views/content/banner/modules/AddForm.vue | 12 +-
src/views/content/banner/modules/EditForm.vue | 15 +-
src/views/goods/Copy.vue | 6 +-
src/views/goods/Create.vue | 2 +-
src/views/goods/Index.vue | 4 +-
src/views/goods/Update.vue | 4 +-
src/views/goods/modules/MultiSpec.vue | 10 +-
src/views/server/Index.vue | 6 +-
src/views/server/modules/Add.vue | 4 +-
src/views/server/modules/Edit.vue | 6 +-
17 files changed, 482 insertions(+), 34 deletions(-)
create mode 100644 src/components/Modal/ActiveModal/ActiveModal.vue
create mode 100644 src/components/Modal/ActiveModal/index.js
create mode 100644 src/components/SelectActive/SelectActive.vue
create mode 100644 src/components/SelectActive/index.js
diff --git a/src/common/model/goods/MultiSpec.js b/src/common/model/goods/MultiSpec.js
index 5ef980b..3c5c747 100644
--- a/src/common/model/goods/MultiSpec.js
+++ b/src/common/model/goods/MultiSpec.js
@@ -17,10 +17,10 @@ const defaultColumns = [
scopedSlots: { customRender: 'goods_price' }
},
{
- title: '划线价格',
- dataIndex: 'line_price',
+ title: '成本价',
+ dataIndex: 'cost_price',
width: 120,
- scopedSlots: { customRender: 'line_price' }
+ scopedSlots: { customRender: 'cost_price' }
},
{
title: '库存数量',
diff --git a/src/components/Modal/ActiveModal/ActiveModal.vue b/src/components/Modal/ActiveModal/ActiveModal.vue
new file mode 100644
index 0000000..05c42ce
--- /dev/null
+++ b/src/components/Modal/ActiveModal/ActiveModal.vue
@@ -0,0 +1,249 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ text ? '开启' : '关闭' }}
+
+
+
+
+
+
+
+
diff --git a/src/components/Modal/ActiveModal/index.js b/src/components/Modal/ActiveModal/index.js
new file mode 100644
index 0000000..84db87e
--- /dev/null
+++ b/src/components/Modal/ActiveModal/index.js
@@ -0,0 +1,2 @@
+import ActiveModal from './ActiveModal'
+export default ActiveModal
diff --git a/src/components/Modal/index.js b/src/components/Modal/index.js
index e584e95..d9ee08a 100644
--- a/src/components/Modal/index.js
+++ b/src/components/Modal/index.js
@@ -9,6 +9,7 @@ import ShopModal from './ShopModal'
import CouponModal from './CouponModal'
import UserModal from './UserModal'
import ServerModal from './ServerModal'
+import ActiveModal from './ActiveModal'
export {
GoodsModal,
@@ -22,4 +23,5 @@ export {
CouponModal,
UserModal,
ServerModal,
+ ActiveModal
}
diff --git a/src/components/SelectActive/SelectActive.vue b/src/components/SelectActive/SelectActive.vue
new file mode 100644
index 0000000..3de23fe
--- /dev/null
+++ b/src/components/SelectActive/SelectActive.vue
@@ -0,0 +1,184 @@
+
+
+
选择活动
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ text ? '开启' : '关闭' }}
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/components/SelectActive/index.js b/src/components/SelectActive/index.js
new file mode 100644
index 0000000..a62f812
--- /dev/null
+++ b/src/components/SelectActive/index.js
@@ -0,0 +1,2 @@
+import SelectActive from './SelectActive'
+export default SelectActive
diff --git a/src/components/index.js b/src/components/index.js
index 3a91aa1..9144f9c 100644
--- a/src/components/index.js
+++ b/src/components/index.js
@@ -12,6 +12,7 @@ import SelectSharpGoods from '@/components/SelectSharpGoods'
import SelectRegion from '@/components/SelectRegion'
import SelectCoupon from '@/components/SelectCoupon'
import SelectUser from '@/components/SelectUser'
+import SelectActive from '@/components/SelectActive'
import Getpoint from '@/components/Getpoint'
import Ueditor from '@/components/Ueditor'
@@ -36,4 +37,5 @@ export {
InputNumberGroup,
ContentHeader,
SelectServer,
+ SelectActive
}
diff --git a/src/views/content/banner/modules/AddForm.vue b/src/views/content/banner/modules/AddForm.vue
index cc01561..3a39d80 100644
--- a/src/views/content/banner/modules/AddForm.vue
+++ b/src/views/content/banner/modules/AddForm.vue
@@ -20,7 +20,8 @@
/>
-
+
+
@@ -42,20 +43,21 @@