From 0ec635d5e432be07c3103ac2e9bd25edb941f775 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 18 十月 2023 17:12:21 +0800
Subject: [PATCH] 跟进记录,销售明细单,退货单客户关联修改

---
 src/views/sales/refundForm/AddRefundFormDialog.vue |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/src/views/sales/refundForm/AddRefundFormDialog.vue b/src/views/sales/refundForm/AddRefundFormDialog.vue
index 38ac025..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,24 +410,35 @@
         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()
     },
     async getPaymentTypeList() {
       await getPaymentTypeList().then((res) => {
-        if (res.data.code === 200) {
-          this.paymentTypeListOptions = res.data.data.data
+        if (res.code === 200) {
+          this.paymentTypeListOptions = res.data.data ?? []
+        }
+      })
+    },
+    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) => {
+        this.validateFormNumber()
         if (valid) {
           console.log(this.editConfig.infomation)
           for (let i = 0; i < this.tableData.length; i++) {

--
Gitblit v1.8.0