| | |
| | | <div class="basic-info-title" style="display: flex">产品信息</div> |
| | | <div class="product-view"> |
| | | <CommonFormTableView |
| | | ref="tableRef" |
| | | :detailEnter="editCommonConfig.detailEnter" |
| | | :show-summary="showSummary" |
| | | :recalculateShow="false" |
| | |
| | | }, |
| | | // 选择供应商 |
| | | async handleSelectClient(value, item) { |
| | | this.$refs.tableRef.supplierId=item.id |
| | | this.productTableList.supplierId = item.id |
| | | if (value === "client") { |
| | | this.supplierId = item.id |
| | |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | this.productTableList.tableProductList = res.data.list |
| | | this.$refs.tableRef.productList=res.data.list |
| | | console.log(this.productTableList.tableProductList, "pop") |
| | | } |
| | | }) |
| | |
| | | this.editSelectSupplierConfig.editVisible = true |
| | | }, |
| | | async selClient(row) { |
| | | this.$refs.tableRef.supplierId=row.id |
| | | await getProductList({ |
| | | supplierId: row.id, |
| | | page: 1, |
| | | pageSize: 100 |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | this.$refs.tableRef.productList=res.data.list |
| | | this.productTableList.tableProductList = res.data.list |
| | | } |
| | | }) |
| | |
| | | this.editConfig.infomation.supplierId = row.id |
| | | }, |
| | | // 清除已选择用户 |
| | | clearupClient(value) { |
| | | async clearupClient(value) { |
| | | if (value == "client") { |
| | | this.$refs.tableRef.supplierId=null |
| | | this.$set(this.editConfig.infomation, "supplierName", "") |
| | | this.supplierId = null |
| | | this.$forceUpdate() |
| | | await getProductList({ |
| | | page: 1, |
| | | pageSize: 100 |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | this.productTableList.tableProductList = res.data.list |
| | | this.$refs.tableRef.productList=res.data.list |
| | | console.log(this.productTableList.tableProductList, "pop") |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | setTableForm() { |