From 6291de84d5f68f1f1cd90031c18183a2c1489555 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期五, 11 八月 2023 18:20:04 +0800 Subject: [PATCH] 销售模块 删除和查询 --- src/views/client/followupRecords/AddFollowupRecordsDialog.vue | 34 ++++++++++++---------------------- 1 files changed, 12 insertions(+), 22 deletions(-) diff --git a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue index 457eb0b..8cd65b5 100644 --- a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue +++ b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue @@ -398,29 +398,19 @@ if (valid) { const params = this.saveParams() if (this.editConfig.title === "鏂板缓") { - getAddFollowRecord(params) - .then((res) => { - this.editConfig.visible = false - if (res.code === 200) { - this.$message({ - message: "娣诲姞鎴愬姛", - type: "success" - }) - this.$parent.getData() - } - }) - .catch((err) => { - console.log(err) - }) + getAddFollowRecord(params).then((res) => { + this.editConfig.visible = false + if (res.code === 200) { + this.$message.success("娣诲姞鎴愬姛") + this.$parent.getData() + } + }) } else { getUpdateFollowRecord(params) .then((res) => { this.editConfig.visible = false if (res.code === 200) { - this.$message({ - message: "缂栬緫鎴愬姛", - type: "success" - }) + this.$message.success("缂栬緫鎴愬姛") this.$parent.getData() } }) @@ -438,9 +428,9 @@ let data = this.editConfig.infomation let follow_record = { follow_record: { - client_id: parseInt(this.clientId), + client_id: this.clientId || 0, client_status_id: data.client_status_id || 0, - contact_id: parseInt(this.contactId), + contact_id: this.contactId || 0, contact_information_id: data.contact_information_id || 0, content: data.content || "", follow_time: data.follow_time || "", @@ -449,8 +439,8 @@ number: data.number || "", purpose: data.purpose || "", record: data.record || "", - sale_chance_id: parseInt(this.saleChanceId), //data.sale_chance_id || - sales_leads_id: parseInt(this.saleLeadId), // data.sales_leads_id || + sale_chance_id: this.saleChanceId || 0, + sales_leads_id: this.saleLeadId || 0, topic: data.topic || "" } } -- Gitblit v1.8.0