| | |
| | | :edit-common-config="editSelectClientConfig" |
| | | @selClient="selClient" |
| | | /> |
| | | <!-- 选择合同订单 --> |
| | | <!-- 销售明细单 --> |
| | | <SelectCommonDialog |
| | | v-if="editSelCommonConfig.editVisible" |
| | | :edit-common-config="editSelCommonConfig" |
| | |
| | | }, |
| | | editSelCommonConfig: { |
| | | editVisible: false, |
| | | title: "", |
| | | infomation: {} |
| | | title: "销售明细单", |
| | | infomation: {}, |
| | | clientId: "" |
| | | }, |
| | | productId: 1, |
| | | isNoProduct: true, |
| | |
| | | returnDate: data.returnDate || "", |
| | | salesReturnStatusId: data.salesReturnStatusId || 0, |
| | | sourceId: this.SalesDetailsId, |
| | | sourceType: 1 |
| | | }, |
| | | codeRule: this.codeRule |
| | | sourceType: 1, |
| | | codeRule: this.codeRule |
| | | } |
| | | } |
| | | return params |
| | | }, |
| | |
| | | async handleSelectClient(value, item) { |
| | | if (value === "client") { |
| | | this.clientId = item.id |
| | | this.editSelCommonConfig.clientId = item.id |
| | | await getSalesDetailsList({ |
| | | clientId: this.clientId |
| | | }).then((res) => { |
| | | this.getSalesDetailsFliter(res.data.list) |
| | | }) |
| | | } else if (value === "contract") { |
| | | console.log(item, item.number, "选择框66") |
| | | this.productTableList.tableData = item.products |
| | | this.tableData = item.products |
| | | this.SalesDetailsId = item.id |
| | |
| | | this.editSelCommonConfig.client_name = this.editConfig.infomation.client_name |
| | | } |
| | | }, |
| | | selClient(row, value) { |
| | | async selClient(row, value) { |
| | | console.log(row, value) |
| | | if (value === "client") { |
| | | this.editConfig.infomation.client_name = row.name |
| | | this.clientId = row.id |
| | | this.editSelCommonConfig.clientId = row.id |
| | | await getSalesDetailsList({ |
| | | clientId: row.id |
| | | }).then((res) => { |
| | | this.getSalesDetailsFliter(res.data.list) |
| | | }) |
| | | } else if (value === "contract") { |
| | | this.editConfig.infomation.salesDetailNumber = row.number |
| | | this.SalesDetailsId = row.id |
| | |
| | | // 清除已选择用户 |
| | | clearupClient(value) { |
| | | if (value === "client") { |
| | | this.editConfig.infomation.client_name = "" |
| | | this.clientId = 0 |
| | | this.editConfig.infomation = {} |
| | | // this.editConfig.infomation.client_name = "" |
| | | // this.clientId = 0 |
| | | } else if (value === "contract") { |
| | | this.editConfig.infomation.salesDetailNumber = "" |
| | | this.productTableList.tableData = [] |