From 05d33b5bb924e52b9e6185a1006b31a53370d350 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期二, 25 七月 2023 18:34:30 +0800 Subject: [PATCH] bug(4455)修复 --- src/store/modules/getClientName.js | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/src/store/modules/getClientName.js b/src/store/modules/getClientName.js index 0070ce8..3a2b6e6 100644 --- a/src/store/modules/getClientName.js +++ b/src/store/modules/getClientName.js @@ -1,13 +1,22 @@ import { getClientList } from "@/api/client/client" // 瀵煎叆鎺ュ彛 +import { getContactList } from "@/api/client/contacts" +import { getSaleChanceList } from "@/api/sales/salesOpportunity" import { Message } from "element-ui" export default { state: { - clientList: [] // 瀹㈡埛鍒楄〃 + clientList: [], // 瀹㈡埛鍒楄〃 + contactNamelist: [] // 鑱旂郴浜� }, mutations: { clientNameList(state, payload) { state.clientList = payload + }, + contactNameList(state, payload) { + state.contactNamelist = payload + }, + saleChancelist(state, payload) { + state.saleChancelist = payload } }, actions: { @@ -19,6 +28,24 @@ Message.error(res.msg) } }) + }, + geContact(context) { + getContactList().then((res) => { + if (res.code == 200) { + context.commit("contactNameList", res.data.list) + } else { + Message.error(res.msg) + } + }) + }, + geChance(context) { + getSaleChanceList().then((res) => { + if (res.code == 200) { + context.commit("saleChancelist", res.data.list) + } else { + Message.error(res.msg) + } + }) } } } -- Gitblit v1.8.0