yangfeng
2023-10-10 7d7fbe920279c9d7a42268a284427d2c42d8f0f2
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: {
@@ -160,6 +165,16 @@
          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)
        }
      })
    }
  }
}