From 01cea4bc73210e43f748d82a02a432cce615be2d Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 24 十月 2023 17:52:04 +0800 Subject: [PATCH] Merge branch 'dev' of http://192.168.5.5:10010/r/web/crm-web into wn --- src/store/modules/getClientName.js | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/store/modules/getClientName.js b/src/store/modules/getClientName.js index 194f2b0..94d01e9 100644 --- a/src/store/modules/getClientName.js +++ b/src/store/modules/getClientName.js @@ -1,4 +1,5 @@ import { getClientList } from "@/api/client/client" // 瀵煎叆鎺ュ彛 +import { getSubOrderList } from "@/api/sales/subOrder" import { getContactList } from "@/api/client/contacts" import { getSaleChanceList } from "@/api/sales/salesOpportunity" import { getSalesLeadsList } from "@/api/client/salesLead" @@ -15,6 +16,7 @@ export default { state: { clientList: [], // 瀹㈡埛鍒楄〃 + subOrderList:[],//閿�鍞瓙鍗� contactNamelist: [], // 鑱旂郴浜� saleChancelist: [], // 閿�鍞満浼� saleLeadlist: [], // 閿�鍞嚎绱� @@ -30,6 +32,9 @@ mutations: { clientNameList(state, payload) { state.clientList = payload + }, + subOrderList(state,payload){ + state.subOrderList=payload }, contactNameList(state, payload) { state.contactNamelist = payload @@ -75,6 +80,18 @@ } }) }, + getSubunit(context){ + getSubOrderList().then((res)=>{ + if (res.code == 200) { + context.commit("subOrderList", res.data.list) + } else { + Message.error(res.msg) + } + }) + }, + getSubunitFliter({commit},newData){ + commit("subOrderList",newData) + }, geContact(context) { getContactList().then((res) => { if (res.code == 200) { @@ -94,6 +111,8 @@ } else { Message.error(res.msg) } + },err=>{ + console.error(err) }) }, getChanceFilter({commit},newData){ @@ -108,6 +127,9 @@ } }) }, + getLeadFilter({commit},newData){ + commit("saleLeadlist",newData) + }, geMaster(context) { getMasterOrderList().then((res) => { if (res.code == 200) { -- Gitblit v1.8.0