From b136c0a80500d929897a8e24f920efad47e2e307 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 01 十一月 2023 19:03:01 +0800
Subject: [PATCH] 变更公海 的接口传参修改
---
src/store/modules/getClientName.js | 40 +++++++++++++++++++++++++++++++++++++---
1 files changed, 37 insertions(+), 3 deletions(-)
diff --git a/src/store/modules/getClientName.js b/src/store/modules/getClientName.js
index f24918d..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) {
@@ -84,6 +101,9 @@
}
})
},
+ getContactFilter({ commit }, newData) {
+ commit("contactNameList", newData)
+ },
geChance(context) {
getSaleChanceList().then((res) => {
if (res.code == 200) {
@@ -91,7 +111,12 @@
} else {
Message.error(res.msg)
}
+ },err=>{
+ console.error(err)
})
+ },
+ getChanceFilter({commit},newData){
+ commit("saleChancelist",newData)
},
geLead(context) {
getSalesLeadsList().then((res) => {
@@ -101,6 +126,9 @@
Message.error(res.msg)
}
})
+ },
+ getLeadFilter({commit},newData){
+ commit("saleLeadlist",newData)
},
geMaster(context) {
getMasterOrderList().then((res) => {
@@ -138,6 +166,9 @@
}
})
},
+ getSalesDetailsFliter({commit},newData){
+ commit("salesDetailsList", newData)
+ },
geQuotation(context) {
getQuotationList().then((res) => {
if (res.code == 200) {
@@ -158,9 +189,9 @@
},
geProductList(context) {
getProductList({ productName: "", productNumber: "", page: 1, pageSize: 10 }).then((res) => {
- if (res.data.code == 200) {
- console.log(res.data.data.data)
- context.commit("productList", res.data.data.data)
+ if (res.code == 200) {
+ console.log(res.data.data)
+ context.commit("productList", res.data.data)
} else {
Message.error(res.msg)
}
@@ -175,6 +206,9 @@
Message.error(res.msg)
}
})
+ },
+ getReturnListFliter({commit},newData){
+ commit("salesReturnList",newData)
}
}
}
--
Gitblit v1.8.0