| | |
| | | <script> |
| | | import CommonFormTableView from "@/components/makepager/CommonFormTableView" |
| | | import BomDialog from "@/components/makepager/BomDialog" |
| | | import { getProductList } from "@/api/productManage/product" |
| | | import { getProductListTwo } from "@/api/productManage/product" |
| | | import { |
| | | addPurchase, |
| | | updatePurchase, |
| | |
| | | } |
| | | } else { |
| | | // 编辑 |
| | | getProductList({ |
| | | getProductListTwo({ |
| | | supplierId: this.editConfig.infomation.supplierId, |
| | | page: 1, |
| | | pageSize: 100 |
| | |
| | | this.supplierId = item.id |
| | | this.editConfig.infomation.supplierId = item.id |
| | | } |
| | | await getProductList({ |
| | | await getProductListTwo({ |
| | | supplierId: item.id, |
| | | page: 1, |
| | | pageSize: 100 |
| | |
| | | }, |
| | | async selClient(row) { |
| | | this.$refs.tableRef.supplierId=row.id |
| | | await getProductList({ |
| | | await getProductListTwo({ |
| | | supplierId: row.id, |
| | | page: 1, |
| | | pageSize: 100 |
| | |
| | | this.$set(this.editConfig.infomation, "supplierName", "") |
| | | this.supplierId = null |
| | | this.$forceUpdate() |
| | | await getProductList({ |
| | | await getProductListTwo({ |
| | | page: 1, |
| | | pageSize: 100 |
| | | }).then((res) => { |