yangfeng
2023-10-17 5fea839fe68445007dcb6e8c446f3aaef4bddf37
src/views/sales/salesReturn/AddSalesReturnDialog.vue
@@ -308,7 +308,8 @@
      editSelCommonConfig: {
        editVisible: false,
        title: "",
        infomation: {}
        infomation: {},
        clientId:""
      },
      productId: 1,
      isNoProduct: true,
@@ -459,6 +460,7 @@
    async handleSelectClient(value, item) {
      if (value === "client") {
        this.clientId = item.id
        this.editSelCommonConfig.clientId=item.id
        await getSalesDetailsList({
          clientId: this.clientId
        }).then((res) => {
@@ -478,6 +480,7 @@
      } else if (value === "contract") {
        this.editSelCommonConfig.title = "销售明细单"
        this.editSelCommonConfig.editVisible = true
        this.editSelCommonConfig.client_name = this.editConfig.infomation.client_name
      }
    },
    selClient(row, value) {
@@ -488,6 +491,8 @@
      } else if (value === "contract") {
        this.editConfig.infomation.salesDetailNumber = row.number
        this.SalesDetailsId = row.id
        this.productTableList.tableData = row.products
        this.tableData = row.products
      }
    },
    // 清除已选择用户
@@ -497,6 +502,8 @@
        this.clientId = 0
      } else if (value === "contract") {
        this.editConfig.infomation.salesDetailNumber = ""
        this.productTableList.tableData = []
        this.tableData = []
        this.SalesDetailsId = 0
      }
    },