From 5f03300404c8e4f32c17a7216ea8c99818112eba Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期一, 04 十二月 2023 17:47:45 +0800
Subject: [PATCH] 标准-源标准号非参照回填输入框

---
 Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index fa46eca..ef999e2 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -100,7 +100,7 @@
           <!--          淇-->
           <FormTemplateDialog :codeClassifyOid="this.codeClassifyOid" :codeRuleOid="this.codeRuleOid"
                               :disabledProp="disabledProp" :templateOid="templateOid" :title="'鏁版嵁淇'"
-                              :visible.sync="amendvisible" status="amend"
+                              :visible.sync="amendvisible" status="amend" :selectRow="selectRow"
                               type="add" @submit="amendSumbit"></FormTemplateDialog>
           <!--          鏂板-->
           <FormTemplateDialog :TreeValue="TreeValue" :codeClassifyOid="this.codeClassifyOid"
@@ -485,8 +485,7 @@
       this.LinkObject = row;
       this.LinkVisible = true;
       this.LinkList = Object.keys(row).map(property => property)
-      // console.log(result);
-      // console.log(this.LinkObject)
+
     },
     //鐘舵�佹悳绱�
     cellSelectHandler(row) {
@@ -589,20 +588,35 @@
     //鏍囧噯淇
     codeAMENDHandler() {
       let foundItem = false;
-
       this.tableHeadFindData.forEach(item => {
         if (item.field === "oldcode" && Object.keys(item.referConfig).length >= 1) {
           foundItem = true;
         }
       });
-
       if (foundItem) {
-        this.amendvisible = true;
+        if(this.selectRow.length >= 1){
+          this.$confirm('宸叉湁鍙傜収鏄惁鍙栨秷鍕鹃�夌户缁墽琛岋紵', '鎻愮ず', {
+            confirmButtonText: '纭畾',
+            cancelButtonText: '鍙栨秷',
+            type: 'warning'
+          }).then(() => {
+            this.selectRow = [];
+            //鍙栨秷鍕鹃�夌姸鎬�
+            this.$refs.dataTable.clearSelection();
+            this.amendvisible = true;
+          }).catch(() => {
+            this.$message({
+              type: 'info',
+              message: '宸插彇娑堝綋鍓嶆搷浣�'
+            });
+          });
+        }else {
+          this.amendvisible = true;
+        }
       } else {
         if (this.selectRow.length <= 0) {
           this.$message.warning("璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹�");
         } else {
-          console.log(this.selectRow)
           this.amendvisible = true;
 
         }

--
Gitblit v1.9.3