yangfeng
2023-10-17 33836e44d74759010d8e79f3cc702186c4bdf4ea
src/views/sales/refundForm/AddRefundFormDialog.vue
@@ -315,7 +315,7 @@
import { getPaymentTypeList } from "@/api/common/payment"
import codeMixin from "@/views/client/followupRecords/mixin/codeMixin"
import { getSalesReturnList } from "@/api/sales/salesReturn"
import { mapActions } from 'vuex';
import { mapActions } from "vuex"
export default {
  name: "AddRefundFormDialog",
@@ -375,7 +375,7 @@
        editVisible: false,
        title: "",
        infomation: {},
        clientId:""
        clientId: ""
      },
      clientId: this.editCommonConfig.infomation.client_id,
      sourceId: this.editCommonConfig.infomation.sourceId,
@@ -401,8 +401,8 @@
      this.formInfo()
    }
  },
  methods: {
    ...mapActions(["getReturnListFliter"]),
  methods: {
    ...mapActions(["getReturnListFliter"]),
    formInfo() {
      this.objCode.type = "销售退款编码"
      this.objCode.codeStandID = ""
@@ -484,9 +484,9 @@
          reason: data.reason || "",
          refundDate: data.refundDate || "",
          sourceId: this.sourceId || 0,
          sourceType: 1
        },
        codeRule: this.codeRule
          sourceType: 1,
          codeRule: this.codeRule
        }
      }
      return params
    },
@@ -516,14 +516,13 @@
    async handleSelectClient(value, item) {
      if (value === "client") {
        this.clientId = item.id
        this.editSelCommonConfig.clientId=item.id
        console.log("客户名称",this.clientId,value,item)
        this.editSelCommonConfig.clientId = item.id
        console.log("客户名称", this.clientId, value, item)
        await getSalesReturnList({
          clientId:this.clientId
        }).then((res)=>{
          clientId: this.clientId
        }).then((res) => {
          this.getReturnListFliter(res.data.list)
        })
      } else if (value === "salesReturn") {
        console.log(item)
        this.editConfig.infomation.sale_return_nunber = item.number