From af2b318da9d4c51b5b8afb2f4cefe86ff049bc7c Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期二, 17 十月 2023 21:16:45 +0800 Subject: [PATCH] feat: 添加缺失的请求 --- src/store/modules/getClientName.js | 2 ++ src/views/sales/refundForm/AddRefundFormDialog.vue | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/store/modules/getClientName.js b/src/store/modules/getClientName.js index 743d9f3..94d01e9 100644 --- a/src/store/modules/getClientName.js +++ b/src/store/modules/getClientName.js @@ -111,6 +111,8 @@ } else { Message.error(res.msg) } + },err=>{ + console.error(err) }) }, getChanceFilter({commit},newData){ diff --git a/src/views/sales/refundForm/AddRefundFormDialog.vue b/src/views/sales/refundForm/AddRefundFormDialog.vue index 6341678..5736232 100644 --- a/src/views/sales/refundForm/AddRefundFormDialog.vue +++ b/src/views/sales/refundForm/AddRefundFormDialog.vue @@ -312,7 +312,7 @@ import { getAddSalesRefund, getUpdateSalesRefund } from "@/api/sales/refundForm" import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog" import SelectCommonDialog from "@/views/other/commonDialog/SelectCommonDialog" -import { getPaymentTypeList } from "@/api/common/payment" +import {getBankAccountList, getPaymentTypeList} from "@/api/common/payment" import codeMixin from "@/views/client/followupRecords/mixin/codeMixin" import { getSalesReturnList } from "@/api/sales/salesReturn" import { mapActions } from "vuex" @@ -410,11 +410,12 @@ this.objCode.codeStandID = this.editConfig.infomation.codeStandID } this.getRCodeStandardList() + this.getBankAccountList() }, getCommonData() { getAllData().then((res) => { this.memberOptions = res.data.member - this.accountOptions = res.data.accountId + // this.accountOptions = res.data.accountId }) this.getPaymentTypeList() }, @@ -425,6 +426,15 @@ } }) }, + async getBankAccountList() { + await getBankAccountList().then((res) => { + console.log("璐︽埛") + console.log('璐︽埛',res) + if (res.code === 200) { + this.accountOptions = res.data.data + } + }) + }, // 淇濆瓨 saveClick(formName) { this.$refs[formName].validate((valid) => { -- Gitblit v1.8.0