| | |
| | | editVisible: false, |
| | | isSelectBox: false, |
| | | title: "", |
| | | infomation: {} |
| | | infomation: {}, |
| | | supplierId:null, |
| | | }, |
| | | productIndex: 0 |
| | | productIndex: 0, |
| | | supplierId:null, |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.getTableInfo() |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | supplierId(n,o) { |
| | | this.editSelCommonConfig.supplierId=n |
| | | console.log(n,o,"看看那") |
| | | } |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | |
| | | async getProductList() { |
| | | let fn = this.sign == "purchase" ? getProductList : getProductListFromGrpc |
| | | await fn({ |
| | | page: 1, |
| | | pageSize: 100 |
| | | }).then((res) => { |
| | | page: 1, |
| | | pageSize: 100, |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | if (res.data.list && res.data.list.length > 0) { |
| | | this.productList = res.data.list |
| | |
| | | }) |
| | | }, |
| | | // 新增 |
| | | selClientClick(scope, prop) { |
| | | console.log(scope, prop) |
| | | selClientClick(scope) { |
| | | this.productIndex = scope.$index |
| | | this.editSelCommonConfig.title = "产品名称" |
| | | this.editSelCommonConfig.isSelectBox = true |