| | |
| | | <div class="testbox" style=""> |
| | | <div> |
| | | </div> |
| | | <el-row style="width: 100%;margin-bottom: 20px"> |
| | | <el-row style="width: 100%;margin-bottom: 10px"> |
| | | <div> |
| | | <el-button v-for="(item, index) in masterVrBtnList" |
| | | v-if="!['PREVIEW', 'DELETEFILE', 'revisefile', 'DOWNLOADFILE', 'UPLOADFILE'].includes(item.uniqueFlag)" |
| | |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | | import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode, upSaveCode} from "@/api/GetItem"; |
| | | import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode, upSaveCode,applyGroupCode,receiveEditApply} from "@/api/GetItem"; |
| | | import {processTS, changeStatus} from "@/api/template/setPersonnel" |
| | | import {listCodeAttributeByClassId} from "@/api/integration/integration.js"; |
| | | import integrationTransfer from "@/views/integration/integrationTransfer"; |
| | |
| | | datetime: "datetime", |
| | | }, |
| | | tableData: [], |
| | | tableHeight: 'calc(100vh - 330px)', |
| | | tableHeight: 'calc(100vh - 350px)', |
| | | DataVisible: false, |
| | | tableHeadData: [], |
| | | items: {}, |
| | |
| | | if (uniqueFlag === 'CODERECYCLE') return this.Recovery() |
| | | //删除 |
| | | if (uniqueFlag === 'CODEDELETE') return this.enumDeleteRow() |
| | | //申请集团码数据 |
| | | if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode() |
| | | //更新集团码数据 |
| | | if (uniqueFlag === 'receiveEditApply') return this.receiveEditApply() |
| | | // 相似项查询 |
| | | // 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=>{ |
| | | if(res.data.code==200){ |
| | | this.$message.success('申请成功') |
| | | } |
| | | this.onLoad() |
| | | }) |
| | | } |
| | | }, |
| | | //更新集团码数据 |
| | | receiveEditApply(){ |
| | | 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(','); |
| | | receiveEditApply({ oids, btmName: this.selectRow[0].btmname }).then(res => { |
| | | if(res.data.code==200){ |
| | | this.$message.success('更新成功') |
| | | this.onLoad() |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | openD() { |
| | | this.getListCodeByClassId(); |
| | |
| | | this.addvisible = false; |
| | | addSaveCode(val).then(res => { |
| | | this.$nextTick(() => { |
| | | this.$message.warning("保存成功"); |
| | | this.onLoad() |
| | | }) |
| | | }) |
| | |
| | | this.editvisible = false; |
| | | editSaveCode(val).then(res => { |
| | | this.$nextTick(() => { |
| | | this.$message.warning("保存成功"); |
| | | this.onLoad() |
| | | }) |
| | | }) |
| | |
| | | upSaveCode(val).then(res => { |
| | | console.log(res) |
| | | this.$nextTick(() => { |
| | | this.$message.warning("保存成功"); |
| | | this.onLoad() |
| | | }) |
| | | }) |