zuozhengqing
2023-10-18 0ec635d5e432be07c3103ac2e9bd25edb941f775
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++) {