| | |
| | | const params = this.saveParams(); |
| | | //新建 |
| | | if (this.editConfig.title === "创建") { |
| | | this.lacks=[] |
| | | this.tableData.forEach((item)=>{ |
| | | if(this.productTableList.tableProductList.map(obj => obj.number).includes(item.number)) { |
| | | console.log(`${item.name} 在数组中存在`); |
| | |
| | | pageSize:100 |
| | | }).then((res)=>{ |
| | | if(res.code===200){ |
| | | this.lacks=[] |
| | | // 编辑前先看看当前供应商对应的产品列表 |
| | | this.productTableList.tableProductList = res.data.list |
| | | //当前产品是否在当前供应商下存在 |
| | |
| | | selClientClick() { |
| | | this.editSelectSupplierConfig.editVisible = true; |
| | | }, |
| | | selClient(row) { |
| | | async selClient(row) { |
| | | await getProductList({ |
| | | supplierId:row.ID, |
| | | page:1, |
| | | pageSize:100 |
| | | }).then((res)=>{ |
| | | if(res.code===200){ |
| | | this.productTableList.tableProductList = res.data.list |
| | | } |
| | | }) |
| | | this.$set(this.editConfig.infomation,'supplierName',row.name) |
| | | this.editConfig.infomation.contact = row.contact; |
| | | this.editConfig.infomation.phone = row.phone; |