From fa39fd8492d2d10d4b5528dd444008d8e01d155e Mon Sep 17 00:00:00 2001
From: qsh <>
Date: Tue, 29 Oct 2024 17:51:08 +0800
Subject: [PATCH] sc
---
src/views/Clue/Set/Comp/DialogSource.vue | 118 ++++++++++++++++++-----
1 file changed, 94 insertions(+), 24 deletions(-)
diff --git a/src/views/Clue/Set/Comp/DialogSource.vue b/src/views/Clue/Set/Comp/DialogSource.vue
index 9c3c337..02c22a1 100644
--- a/src/views/Clue/Set/Comp/DialogSource.vue
+++ b/src/views/Clue/Set/Comp/DialogSource.vue
@@ -7,30 +7,81 @@
:rules="formRules"
label-width="80px"
>
-
-
-
-
-
-
-
-
-
-
-
- 启用
- 禁用
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 总价
+ 单价
+
+
+
+
+
+
+
+ 启用
+ 禁用
+
+
+
+
+
+
+
+
+
+
+ 线索成本
+
+ 添加年份
+
+
+
+
+
+
+
+
+
+
+
+
+
确 定
取 消
@@ -111,8 +162,27 @@ const resetForm = () => {
sourceName: '',
status: 0,
sort: 1,
- remark: ''
+ remark: '',
+ mode: 0,
+ priceVOList: []
}
formRef.value?.resetFields()
}
+
+function handleAddPrice() {
+ const obj = {
+ year: undefined,
+ monthTargetVOList: []
+ }
+ for (let i = 1; i <= 12; i++) {
+ obj.monthTargetVOList.push({
+ month: i,
+ targetPrice: undefined
+ })
+ }
+ if (!formData.value.priceVOList) {
+ formData.value.priceVOList = []
+ }
+ formData.value.priceVOList.push(obj)
+}