From 46ed69e3b72658140a40127f4bae16bef9a02d56 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期一, 21 八月 2023 11:23:34 +0800 Subject: [PATCH] bug修复 --- src/store/modules/getClientName.js | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 44 insertions(+), 1 deletions(-) diff --git a/src/store/modules/getClientName.js b/src/store/modules/getClientName.js index b815996..90f5a17 100644 --- a/src/store/modules/getClientName.js +++ b/src/store/modules/getClientName.js @@ -6,6 +6,9 @@ import { getServiceContractList } from "@/api/serviceManage/serviceContract" import { getContractList } from "@/api/sales/contractManage" import { getSalesDetailsList } from "@/api/sales/salesDetails" +import { getQuotationList } from "@/api/sales/quotation" +import { getServiceOrderList } from "@/api/serviceManage/clientServiceOrder" +import { getProductList } from "@/api/common/other" import { Message } from "element-ui" export default { @@ -17,7 +20,10 @@ masterOrderList: [], // 閿�鍞�诲崟 serviceContractList: [], // 鏈嶅姟鍚堝悓 getContractList: [], // 鍚堝悓璁㈠崟 - salesDetailsList: [] // 閿�鍞槑缁嗗崟 + salesDetailsList: [], // 閿�鍞槑缁嗗崟 + quotationList: [], // 鎶ヤ环鍗� + serviceOrderList: [], // 瀹㈡埛鏈嶅姟鍗� + productList: [] // 浜у搧鍒楄〃 }, mutations: { clientNameList(state, payload) { @@ -43,6 +49,15 @@ }, salesDetailsList(state, payload) { state.salesDetailsList = payload + }, + quotationList(state, payload) { + state.quotationList = payload + }, + serviceOrderList(state, payload) { + state.serviceOrderList = payload + }, + productList(state, payload) { + state.productList = payload } }, actions: { @@ -117,6 +132,34 @@ Message.error(res.msg) } }) + }, + geQuotation(context) { + getQuotationList().then((res) => { + if (res.code == 200) { + context.commit("quotationList", res.data.list) + } else { + Message.error(res.msg) + } + }) + }, + geServiceOrder(context) { + getServiceOrderList().then((res) => { + if (res.code == 200) { + context.commit("serviceOrderList", res.data.data) + } else { + Message.error(res.msg) + } + }) + }, + 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) + } else { + Message.error(res.msg) + } + }) } } } -- Gitblit v1.8.0