yangfeng
2023-10-24 65af4386c9eb413490c5e9817a10467ecb33ef69
src/views/sales/salesReturn/AddSalesReturnDialog.vue
@@ -460,6 +460,7 @@
    },
    async handleSelectClient(value, item) {
      if (value === "client") {
        this.editConfig.infomation.salesDetailNumber = ""
        this.clientId = item.id
        this.editSelCommonConfig.clientId = item.id
        await getSalesDetailsList({
@@ -486,6 +487,7 @@
    async selClient(row, value) {
      console.log(row, value)
      if (value === "client") {
        this.editConfig.infomation.salesDetailNumber = ""
        this.editConfig.infomation.client_name = row.name
        this.clientId = row.id
        this.editSelCommonConfig.clientId = row.id
@@ -504,14 +506,11 @@
    // 清除已选择用户
    clearupClient(value) {
      if (value === "client") {
        // this.editConfig.infomation = {}
        this.editConfig.infomation.salesDetailNumber = ""
        this.editConfig.infomation.client_name = ""
        this.clientId = 0
      } else if (value === "contract") {
        this.editConfig.infomation.salesDetailNumber = ""
        // this.productTableList.tableData = []
        // this.tableData = []
        // this.SalesDetailsId = 0
      }
    },
    // 添加附件