From 6f31eb3ae87f6f1c500ce9d6ad63ffbe861e28ef Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 04 八月 2023 16:34:33 +0800
Subject: [PATCH] 主数据已发布数据更改bug

---
 Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue |   12 ++++++++++--
 Source/UBCS-WEB/src/api/GetItem.js                          |    9 ++++++++-
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/Source/UBCS-WEB/src/api/GetItem.js b/Source/UBCS-WEB/src/api/GetItem.js
index 63ba7d3..5ebd527 100644
--- a/Source/UBCS-WEB/src/api/GetItem.js
+++ b/Source/UBCS-WEB/src/api/GetItem.js
@@ -45,7 +45,14 @@
     data
   })
 }
-
+//宸插彂甯冩暟鎹洿鏀�
+export function upSaveCode(data) {
+  return request({
+    url: 'api/ubcs-code/mdmEngineController/upSaveCode',
+    method: 'POST',
+    data
+  })
+}
 //娴佺▼鎵ц涓〃澶�
 export function FlowTable(data){
   return request({
diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index f2ccf2b..8fb1716 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -67,7 +67,7 @@
                               :disabledProp="disabledProp" :rowOid="rowOid" :templateOid="templateOid"
                               :title="'宸插彂甯冩暟鎹洿鏀�'"
                               type="edit"
-                              :visible.sync="DataVisible"></FormTemplateDialog>
+                              :visible.sync="DataVisible" @submit="updataSumbit"></FormTemplateDialog>
           <!--          鍙戝竷-->
           <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleFlow"
                          @onLoad="onLoad"></set-personnel>
@@ -116,7 +116,7 @@
   </basic-container>
 </template>
 <script>
-import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode} from "@/api/GetItem";
+import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode, upSaveCode} from "@/api/GetItem";
 import {processTS, changeStatus} from "@/api/template/setPersonnel"
 import {listCodeAttributeByClassId} from "@/api/integration/integration.js";
 import integrationTransfer from "@/views/integration/integrationTransfer";
@@ -872,6 +872,14 @@
         })
       })
     },
+    updataSumbit(val){
+      this.DataVisible = false;
+      upSaveCode(val).then(res=>{
+        this.$nextTick(() => {
+          this.onLoad()
+        })
+      })
+    },
     openBatchImport(type) {
       this.batchImportData.visible = true
       this.batchImportData.type = type

--
Gitblit v1.9.3