yangfeng
2023-10-17 33836e44d74759010d8e79f3cc702186c4bdf4ea
src/views/sales/salesReturn/AddSalesReturnDialog.vue
@@ -309,7 +309,7 @@
        editVisible: false,
        title: "销售明细单",
        infomation: {},
        clientId:""
        clientId: ""
      },
      productId: 1,
      isNoProduct: true,
@@ -428,9 +428,9 @@
          returnDate: data.returnDate || "",
          salesReturnStatusId: data.salesReturnStatusId || 0,
          sourceId: this.SalesDetailsId,
          sourceType: 1
        },
        codeRule: this.codeRule
          sourceType: 1,
          codeRule: this.codeRule
        }
      }
      return params
    },
@@ -460,7 +460,7 @@
    async handleSelectClient(value, item) {
      if (value === "client") {
        this.clientId = item.id
        this.editSelCommonConfig.clientId=item.id
        this.editSelCommonConfig.clientId = item.id
        await getSalesDetailsList({
          clientId: this.clientId
        }).then((res) => {
@@ -487,7 +487,7 @@
      if (value === "client") {
        this.editConfig.infomation.client_name = row.name
        this.clientId = row.id
        this.editSelCommonConfig.clientId=row.id
        this.editSelCommonConfig.clientId = row.id
        await getSalesDetailsList({
          clientId: row.id
        }).then((res) => {
@@ -503,12 +503,11 @@
    // 清除已选择用户
    clearupClient(value) {
      if (value === "client") {
        this.editConfig.infomation={}
        this.editConfig.infomation = {}
        // this.editConfig.infomation.client_name = ""
        // this.clientId = 0
      } else if (value === "contract") {
        this.editConfig.infomation.salesDetailNumber=""
        this.editConfig.infomation.salesDetailNumber = ""
        this.productTableList.tableData = []
        this.tableData = []
        this.SalesDetailsId = 0