| | |
| | | multipleSelection: [], |
| | | uploadInfo: { |
| | | // 是否展示上传EXCEL以及对应的url |
| | | isShow: true, |
| | | isShow: false, |
| | | url: 'mes/bom/uploadExcel', |
| | | }, |
| | | prelang: 'completeProductStructure', |
| | |
| | | // 按产品结构生成BOM |
| | | addByStructureHandle() { |
| | | addByStructure().then((res) => { |
| | | let result = Array.from(new Set(res.data.data)) |
| | | this.$message.success(result.join(',')) |
| | | // let result = Array.from(new Set(res.data.data)) |
| | | // this.$message.success(result.join(',')) |
| | | console.log(res.data.data); |
| | | let mes=""; |
| | | res.data.data.forEach(item=>{ |
| | | mes+=item |
| | | }) |
| | | this.$message({ |
| | | message: mes, |
| | | type: 'success', |
| | | dangerouslyUseHTMLString: true |
| | | }) |
| | | this.getData() |
| | | }) |
| | | // this.$message({ |