From fb317a1665da7995011f71f299bb9a284a142489 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期四, 24 八月 2023 10:52:04 +0800
Subject: [PATCH] 主数据-更新集团码数据
---
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 28 ++++++++++++++++++++++++----
Source/UBCS-WEB/src/api/GetItem.js | 10 ++++++++++
2 files changed, 34 insertions(+), 4 deletions(-)
diff --git a/Source/UBCS-WEB/src/api/GetItem.js b/Source/UBCS-WEB/src/api/GetItem.js
index 190225d..2ba7b96 100644
--- a/Source/UBCS-WEB/src/api/GetItem.js
+++ b/Source/UBCS-WEB/src/api/GetItem.js
@@ -100,3 +100,13 @@
}
})
}
+// 鏇存柊闆嗗洟鐮佸�兼暟鎹�
+export function receiveEditApply(params) {
+ return request({
+ url: 'api/ubcs-applyjtcodeservice/DockingPreApplyCode/receiveEditApply',
+ 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 dc32f16..9355248 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,applyGroupCode} 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";
@@ -415,7 +415,7 @@
//鐢宠闆嗗洟鐮佹暟鎹�
if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode()
//鏇存柊闆嗗洟鐮佹暟鎹�
- // if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode()
+ if (uniqueFlag === 'receiveEditApply') return this.receiveEditApply()
// 鐩镐技椤规煡璇�
// if(uniqueFlag === 'CODEEDIT') return this.similarHandler()
});
@@ -429,8 +429,28 @@
// 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);
+ 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()
+ }
});
}
},
--
Gitblit v1.9.3