songshankun
2023-10-16 216ef4cf6dc78537e556b1552cca0aac4914e216
src/views/sales/refundForm/AddRefundFormDialog.vue
@@ -314,6 +314,9 @@
import SelectCommonDialog from "@/views/other/commonDialog/SelectCommonDialog"
import { getPaymentTypeList } from "@/api/common/payment"
import codeMixin from "@/views/client/followupRecords/mixin/codeMixin"
import { getSalesReturnList } from "@/api/sales/salesReturn"
import { mapActions } from 'vuex';
export default {
  name: "AddRefundFormDialog",
  mixins: [codeMixin],
@@ -397,7 +400,8 @@
      this.formInfo()
    }
  },
  methods: {
  methods: {
    ...mapActions(["getReturnListFliter"]),
    formInfo() {
      this.objCode.type = "销售退款编码"
      this.objCode.codeStandID = ""
@@ -508,9 +512,16 @@
        }
      }
    },
    handleSelectClient(value, item) {
    async handleSelectClient(value, item) {
      if (value === "client") {
        this.clientId = item.id
        console.log("客户名称",this.clientId,value,item)
        await getSalesReturnList({
          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