From cdae87d86d3516b6275fc9ae2c251f83635c954c Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期五, 13 十月 2023 14:18:12 +0800
Subject: [PATCH] Merge branch 'dev' of ssh://192.168.5.5:29418/web/crm-web into dev
---
src/views/client/followupRecords/AddFollowupRecordsDialog.vue | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
index 5ae30a9..3ee7e0d 100644
--- a/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
+++ b/src/views/client/followupRecords/AddFollowupRecordsDialog.vue
@@ -28,7 +28,7 @@
v-if="codenumer && (explain != '' || isIdDisabled)&&method == 0"
:codenumer="codenumer"
:sum="sum"
- :disabled="editConfig.infomation.id || isIdDisabled"
+ :disabled="this.editConfig.title !== '鏂板缓' || isIdDisabled"
:inputValue="inputValue"
@codeList="codeList"
/>
@@ -340,6 +340,9 @@
import SelectChanceDialog from "@/views/other/commonDialog/SelectChanceDialog"
import SelectLeadDialog from "@/views/other/commonDialog/SelectLeadDialog"
import codeMixin from "./mixin/codeMixin";
+import { getContactList } from "@/api/client/contacts"
+import { mapActions } from 'vuex';
+
export default {
name: "AddFollowupRecordsDialog",
mixins: [codeMixin],
@@ -381,6 +384,8 @@
number: [{ required: true, message: "璇疯緭鍏ヨ窡杩涜褰曠紪鍙�", trigger: "blur" }],
member_id: [{ required: true, message: "璇烽�夋嫨璐熻矗浜�", trigger: "change" }],
record: [{ required: true, message: "璇疯緭鍏ヨ窡杩涜褰�", trigger: "blur" }],
+ client_name:[{ required: true, message: "璇烽�夋嫨瀹㈡埛鍚嶇О", trigger: "change" }],
+ topic:[{ required: true, message: "璇疯緭鍏ヤ富棰�", trigger: "blur" }],
// content: [{ required: true, message: "璇疯緭鍏ュ唴瀹�", trigger: "blur" }],
phoneNumber: [
{ required: false, message: "", trigger: "blur" },
@@ -448,7 +453,9 @@
}
},
methods: {
+ ...mapActions (['getContactFilter']),
formInfo(){
+ this.objCode.type='璺熻繘璁板綍缂栫爜'
this.objCode.codeStandID = ''
if(this.editConfig.infomation.codeStandID){
this.objCode.codeStandID = this.editConfig.infomation.codeStandID;
@@ -518,9 +525,9 @@
let follow_record = {
follow_record: {
client_id: this.clientId || 0,
- client_status_id: data.client_status_id || 0,
+ client_status_id: data.client_status_id || null,
contact_id: this.contactId || 0,
- contact_information_id: data.contact_information_id || 0,
+ contact_information_id: data.contact_information_id || null,
content: data.content || "",
follow_time: data.follow_time || "",
member_id: data.member_id || 0,
@@ -563,10 +570,16 @@
return state.name.toLowerCase().indexOf(queryString.toLowerCase()) === 0
}
},
- handleSelectClient(value, item) {
+ async handleSelectClient(value, item) {
if (value === "client") {
this.clientId = item.id
this.editConfig.infomation.client_name = item.name
+ await getContactList({
+ clientId:this.clientId
+ }).then((res)=>{
+ this.getContactFilter(res.data.list)
+ })
+ // console.log("clientId",this.clientId,this.editConfig.infomation.client_name)
} else if (value === "contact") {
this.contactId = item.id
this.editConfig.infomation.contact_name = item.name
--
Gitblit v1.8.0