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)
+}