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 +++++++++++++++++++-
Source/UBCS-WEB/src/api/GetItem.js | 10 ++++++++++
Source/UBCS-WEB/vue.config.js | 3 ++-
3 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/Source/UBCS-WEB/src/api/GetItem.js b/Source/UBCS-WEB/src/api/GetItem.js
index 5ebd527..190225d 100644
--- a/Source/UBCS-WEB/src/api/GetItem.js
+++ b/Source/UBCS-WEB/src/api/GetItem.js
@@ -90,3 +90,13 @@
data:data
})
}
+// 鐢宠闆嗗洟鐮佸�兼暟鎹�
+export function applyGroupCode(params) {
+ return request({
+ url: 'api/ubcs-applyjtcodeservice/DockingPreApplyCode/applyGroupCode',
+ method: 'post',
+ params: {
+ ...params
+ }
+ })
+}
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();
},
diff --git a/Source/UBCS-WEB/vue.config.js b/Source/UBCS-WEB/vue.config.js
index e8138f2..cf90d26 100644
--- a/Source/UBCS-WEB/vue.config.js
+++ b/Source/UBCS-WEB/vue.config.js
@@ -29,8 +29,9 @@
// target: 'http://127.0.0.1',
// target: 'http://192.168.1.51:37000',
// target: 'http://dev.vci-tech.com:37000',
- target: 'http://192.168.1.16:37000',
+ // target: 'http://192.168.1.16:37000',
// target: 'http://192.168.0.105:37000',
+ target: 'http://192.168.43.251:37000',
// target: 'http://192.168.0.103:37000',
// target: 'http://192.168.1.63:37000',
// target: 'http://192.168.3.7:37000',
--
Gitblit v1.9.3