From ac8749d1f785ee58cec73c27254562c940363205 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期一, 16 十月 2023 16:52:54 +0800
Subject: [PATCH] feat: 销售总单添加必填校验
---
src/store/modules/getClientName.js | 35 +++++++++++++++++++++++++++++++----
1 files changed, 31 insertions(+), 4 deletions(-)
diff --git a/src/store/modules/getClientName.js b/src/store/modules/getClientName.js
index 90f5a17..194f2b0 100644
--- a/src/store/modules/getClientName.js
+++ b/src/store/modules/getClientName.js
@@ -9,6 +9,7 @@
import { getQuotationList } from "@/api/sales/quotation"
import { getServiceOrderList } from "@/api/serviceManage/clientServiceOrder"
import { getProductList } from "@/api/common/other"
+import { getSalesReturnList } from "@/api/sales/salesReturn"
import { Message } from "element-ui"
export default {
@@ -23,7 +24,8 @@
salesDetailsList: [], // 閿�鍞槑缁嗗崟
quotationList: [], // 鎶ヤ环鍗�
serviceOrderList: [], // 瀹㈡埛鏈嶅姟鍗�
- productList: [] // 浜у搧鍒楄〃
+ productList: [], // 浜у搧鍒楄〃
+ salesReturnList: [] // 閿�鍞��璐у崟
},
mutations: {
clientNameList(state, payload) {
@@ -58,6 +60,9 @@
},
productList(state, payload) {
state.productList = payload
+ },
+ salesReturnList(state, payload) {
+ state.salesReturnList = payload
}
},
actions: {
@@ -79,6 +84,9 @@
}
})
},
+ getContactFilter({ commit }, newData) {
+ commit("contactNameList", newData)
+ },
geChance(context) {
getSaleChanceList().then((res) => {
if (res.code == 200) {
@@ -87,6 +95,9 @@
Message.error(res.msg)
}
})
+ },
+ getChanceFilter({commit},newData){
+ commit("saleChancelist",newData)
},
geLead(context) {
getSalesLeadsList().then((res) => {
@@ -133,6 +144,9 @@
}
})
},
+ getSalesDetailsFliter({commit},newData){
+ commit("salesDetailsList", newData)
+ },
geQuotation(context) {
getQuotationList().then((res) => {
if (res.code == 200) {
@@ -153,13 +167,26 @@
},
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)
}
})
+ },
+ geReturnList(context) {
+ getSalesReturnList({ productName: "", productNumber: "", page: 1, pageSize: 10 }).then((res) => {
+ if (res.code == 200) {
+ console.log(res.data.list)
+ context.commit("salesReturnList", res.data.list)
+ } else {
+ Message.error(res.msg)
+ }
+ })
+ },
+ getReturnListFliter({commit},newData){
+ commit("salesReturnList",newData)
}
}
}
--
Gitblit v1.8.0