| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //集团码模板下载 |
| | | export const exportGroupCodeExcel = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-code/mdmEngineController/exportGroupCodeExcel', |
| | | method: 'get', |
| | | params, |
| | | responseType: 'blob' |
| | | }) |
| | | } |
| | |
| | | </li> |
| | | </ul> |
| | | <div |
| | | v-show="currentTypeObj[type]['upParams'] === 'classifyAttr' && this.type !== 'bulkEdit'" |
| | | v-show="currentTypeObj[type]['upParams'] === 'classifyAttr' && this.type !== 'bulkEdit'&& this.type !== 'groupCode'" |
| | | class="radio_box" |
| | | > |
| | | <span>分类的路径使用的属性:</span> |
| | |
| | | > |
| | | </el-upload> |
| | | <template #footer> |
| | | <div v-if="type !== 'groupCode'"> |
| | | <el-button |
| | | v-if="type !== 'bulkEdit'" |
| | | :loading="downloadLoading" |
| | |
| | | @click="downloadTemplateFun" |
| | | >下载编辑模板 |
| | | </el-button> |
| | | </div> |
| | | <el-button size="small" @click="dialogVisible = false">关闭</el-button> |
| | | </template> |
| | | <ShowImportData |
| | |
| | | downloadTemplateFun: downloadBatchApplyCodeTemplate, |
| | | upParams: "classifyAttr", |
| | | }, |
| | | groupCode: { |
| | | title: "集团码导入", |
| | | tipList: [ |
| | | "1.标题带五角星的表示关键属性,带星号表示必输项", |
| | | "2.每次仅能最多导入5000条数据(可通过nacos进行配置,推荐5000/次导入),如果出错会返回错误的数据和原因,但是正确数据可以继续保存", |
| | | "3.Excel第一行和第二行依次为企业编码和集团编码(必填)" |
| | | ], |
| | | action: "/api/ubcs-code/mdmEngineController/importGroupCode" |
| | | } |
| | | }, |
| | | secDTOList: [], |
| | | }; |
| | |
| | | upSaveCode, |
| | | applyGroupCode, |
| | | receiveEditApply, |
| | | applySaveCode |
| | | applySaveCode, |
| | | exportGroupCodeExcel |
| | | } from "@/api/GetItem"; |
| | | import {processTS, changeStatus} from "@/api/template/setPersonnel" |
| | | import {listCodeAttributeByClassId} from "@/api/integration/integration.js"; |
| | |
| | | if (uniqueFlag === 'CODEAMEND') return this.codeAMENDHandler() |
| | | //批量编辑 |
| | | if (uniqueFlag === 'bulkEdit') return this.bulkEditHandler("bulkEdit") |
| | | //集团码导出 |
| | | if (uniqueFlag === 'excelGroupCode') return this.excelGroupCode() |
| | | //集团码导入 |
| | | if (uniqueFlag === 'importGroupCode') return this.importGroupCode("groupCode") |
| | | }); |
| | | }, |
| | | importGroupCode(type){ |
| | | this.batchImportData.visible = true |
| | | this.batchImportData.type = type |
| | | this.batchImportData.codeClassifyOid = this.codeClassifyOid |
| | | }, |
| | | //集团码导出 |
| | | excelGroupCode(){ |
| | | debugger |
| | | this.isLoading = true; |
| | | exportGroupCodeExcel({ |
| | | codeClassifyOid: this.codeClassifyOid, |
| | | }).then(res => { |
| | | console.log(res.data) |
| | | if (res) { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('下载成功,请查看!'); |
| | | this.isLoading = false; |
| | | } |
| | | }).catch(error=>{ |
| | | this.$message.error(error); |
| | | this.isLoading = false; |
| | | }) |
| | | }, |
| | | //标准申请 |
| | | codeApplyHandler() { |
| | | this.$nextTick(() => { |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 左侧树--> |
| | | <div style="height: calc(100vh - 230px);overflow: auto"> |
| | | <div style="height: calc(100vh - 230px);overflow: auto;"> |
| | | <avue-tree ref="tree" v-model="CloneTreeAvueform" v-loading="loading" :data="CloneTreedata" |
| | | :defaultExpandAll="false" |
| | | :option="Treeoption" |
| | | class="classifyTree" |
| | | style="height: calc(100vh - 280px)" |
| | | style="height: calc(100vh - 280px);" |
| | | @node-click="nodeClick" |
| | | > |
| | | </avue-tree> |