From 4619a4623e921b1b7d1d1bcbd105db7bddef4dd7 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 24 八月 2023 10:34:26 +0800 Subject: [PATCH] 主数据-申请集团码数据 --- Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index ed137cd..dc32f16 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -116,7 +116,7 @@ </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"; @@ -412,10 +412,28 @@ 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(); }, -- Gitblit v1.9.3