| | |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | | import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode, upSaveCode} from "@/api/GetItem"; |
| | | import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode, upSaveCode,applyGroupCode} from "@/api/GetItem"; |
| | | import {processTS, changeStatus} from "@/api/template/setPersonnel" |
| | | import {listCodeAttributeByClassId} from "@/api/integration/integration.js"; |
| | | import integrationTransfer from "@/views/integration/integrationTransfer"; |
| | |
| | | if (uniqueFlag === 'CODERECYCLE') return this.Recovery() |
| | | //删除 |
| | | if (uniqueFlag === 'CODEDELETE') return this.enumDeleteRow() |
| | | //申请集团码数据 |
| | | if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode() |
| | | //更新集团码数据 |
| | | // if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode() |
| | | // 相似项查询 |
| | | // if(uniqueFlag === 'CODEEDIT') return this.similarHandler() |
| | | }); |
| | | }, |
| | | //申请集团码数据 |
| | | applyGroupCode(){ |
| | | if(this.selectRow.length <= 0){ |
| | | this.$message.warning('请选择一条数据模板!') |
| | | }else { |
| | | // const requestData = this.selectRow.forEach(item => { |
| | | // return { oids: item.oid, btmName: item.btmname }; |
| | | // }); |
| | | const oids = this.selectRow.map(item => item.oid).join(','); |
| | | applyGroupCode({ oids, btmName: this.selectRow[0].btmname }).then(res => { |
| | | console.log(res); |
| | | }); |
| | | } |
| | | }, |
| | | openD() { |
| | | this.getListCodeByClassId(); |
| | | }, |