From 2e1a4f9e658108c00c38082cec8bf5eed2348f84 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 03 八月 2023 16:09:19 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs

---
 Source/UBCS-WEB/src/api/work/process.js                      |    6 
 Source/UBCS-WEB/src/views/work/process/leave/detail.vue      |    2 
 Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue       |   64 +++++++++++-
 Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue  |  178 +++++++++++++++++++++--------------
 Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue  |   17 ++
 Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue |    1 
 Source/UBCS-WEB/src/router/views/index.js                    |    6 
 7 files changed, 186 insertions(+), 88 deletions(-)

diff --git a/Source/UBCS-WEB/src/api/work/process.js b/Source/UBCS-WEB/src/api/work/process.js
index 5eb0a95..4c0a27b 100644
--- a/Source/UBCS-WEB/src/api/work/process.js
+++ b/Source/UBCS-WEB/src/api/work/process.js
@@ -23,13 +23,13 @@
   })
 }
 
-export const leaveDetail = (businessId) => {
+export const leaveDetail = (businessId,processInstanceId) => {
   return request({
     url: '/api/ubcs-desk/process/leave/detail',
     method: 'get',
     params: {
-      businessId
-
+      businessId,
+      processInstanceId
     }
   })
 }
diff --git a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue
index ce30279..767e02d 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue
@@ -558,6 +558,7 @@
           value: formItem.defaultValue,
           placeholder: formItem.inputTip,
           comboxKey: formItem.comboxKey,
+          tip: formItem.tooltips,
           display: !formItem.hidden,
           maxlength: formItem.maxlength,
           filterable: true,
diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index 430e090..7771e5c 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -15,12 +15,18 @@
                   item.name
                 }}
               </el-button>
+              <span v-if="tableHeadFindData.length > 0">
+              <el-select v-model="keyWordFind" slot="prepend" placeholder="璇烽�夋嫨" size="small">
+                <el-option v-for="item in tableHeadFindData" :label="item.label" :value="item.prop"></el-option>
+              </el-select>
               <el-input v-model="WupinFindValue" placeholder="璇疯緭鍏ュ叧閿瓧鎸夊洖杞︽煡璇�"
                         size="small" style="width: 180px; margin-left: 5px; margin-top: 10px"
-                        @keyup.enter.native="tableFindInp"  v-if="tableData.length != 0"></el-input>
-              <span style="margin-left: 10px" v-if="tableData.length != 0">
+                        @keyup.enter.native="tableFindInp"></el-input>
+              </span>
+              <span v-if="tableHeadFindData.length > 0" style="margin-left: 10px">
                <p style="font-size: 13px;display: inline-block;"> 鐘舵�侊細</p>
-                <el-select v-model="statusSelect" slot="prepend" placeholder="璇烽�夋嫨" size="small" @change="cellSelectHandler">
+                <el-select slot="prepend" v-model="statusSelect" placeholder="璇烽�夋嫨" size="small"
+                           @change="cellSelectHandler">
                 <el-option label="鍏ㄩ儴" value="all"></el-option>
                 <el-option label="宸插彂甯�" value="Released"></el-option>
                 <el-option label="缂栬緫涓�" value="Editing"></el-option>
@@ -28,13 +34,13 @@
                 <el-option label="瀹℃牳涓�" value="Auditing"></el-option>
               </el-select></span>
             </div>
-            <el-table  ref="dataTable" v-loading="isLoading" :data="tableData"
+            <el-table ref="dataTable" v-loading="isLoading" :data="tableData"
                       :height="tableHeight"
                       @select="handleSelection" @cell-click="handleCellClick" @row-click="handleRowClick"
                       @select-all="handleSelectionAll" @selection-change="handleSelectionChange"
                       @sort-change="sortChange">
-              <el-table-column fixed type="selection" width="55" v-if="tableData.length != 0"></el-table-column>
-              <el-table-column fixed label="搴忓彿" type="index" width="55" v-if="tableData.length != 0">
+              <el-table-column v-if="tableData.length != 0" fixed type="selection" width="55"></el-table-column>
+              <el-table-column v-if="tableData.length != 0" fixed label="搴忓彿" type="index" width="55">
               </el-table-column>
               <el-table-column v-for="item in this.tableHeadFindData" :key="item.id" :formatter="item.formatter"
                                :label="item.label"
@@ -63,19 +69,24 @@
                               :type="edit"
                               :visible.sync="DataVisible"></FormTemplateDialog>
           <!--          鍙戝竷-->
-          <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleFlow" @onLoad="onLoad"></set-personnel>
+          <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleFlow"
+                         @onLoad="onLoad"></set-personnel>
           <!--          鍋滅敤-->
-          <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleDeactivate" @onLoad="onLoad"></set-personnel>
+          <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleDeactivate"
+                         @onLoad="onLoad"></set-personnel>
           <!--          鍚敤-->
-          <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleEnable" @onLoad="onLoad"></set-personnel>
+          <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleEnable"
+                         @onLoad="onLoad"></set-personnel>
           <!--          鍥炴敹-->
-          <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleRecovery" @onLoad="onLoad"></set-personnel>
+          <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleRecovery"
+                         @onLoad="onLoad"></set-personnel>
           <!--          楂樼骇鏌ヨ-->
           <advanced-query :options="this.options" :visible.sync="findvisible"
                           @echoContion="echoContion"></advanced-query>
           <!--          瀵煎嚭-->
-          <MasterTransfer :codeClassifyOid="codeClassifyOid" :limit="page.pageSize" :templateOid="templateOid" :selectRow="selectRow"
-                          :tableData="tableData" :tableHeadData="tableHeadFindData"
+          <MasterTransfer :codeClassifyOid="codeClassifyOid" :limit="page.pageSize" :selectRow="selectRow"
+                          :tableData="tableData"
+                          :tableHeadData="tableHeadFindData" :templateOid="templateOid"
                           :visible.sync="dialogPush"></MasterTransfer>
           <!--          鐩镐技椤�-->
           <ResembleQueryDialog :codeClassifyOid="codeClassifyOid" :codeRuleOid="this.codeRuleOid" :rowOid="rowOid"
@@ -90,7 +101,8 @@
         </div>
       </div>
       <div>
-        <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :visible.sync="batchImportData.visible" :resetTable="CrudRend">
+        <BatchImport v-if="batchImportData.visible" v-bind="batchImportData" :resetTable="CrudRend"
+                     :visible.sync="batchImportData.visible">
         </BatchImport>
       </div>
       <div class="bottom">
@@ -104,8 +116,8 @@
   </basic-container>
 </template>
 <script>
-import {MasterTable, TableData, FindData, addSaveCode, editSaveCode,deleteCode} from "@/api/GetItem";
-import {processTS,changeStatus} from "@/api/template/setPersonnel"
+import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode} from "@/api/GetItem";
+import {processTS, changeStatus} from "@/api/template/setPersonnel"
 import {listCodeAttributeByClassId} from "@/api/integration/integration.js";
 import integrationTransfer from "@/views/integration/integrationTransfer";
 import SetPersonnel from "@/components/template/SetPersonnel";
@@ -165,7 +177,10 @@
   },
   data() {
     return {
-      statusSelect:"",
+      // 鐘舵�佹悳绱�
+      statusSelect: "all",
+      // 鍏抽敭瀛楁煡璇�
+      keyWordFind:"",
       searchResults: [],
       //棣栭〉鍙充晶鎼滅储
       WupinFindValue: "",
@@ -245,18 +260,18 @@
         hasUpload: true,
         height: 100
       },
-      result:''
+      result: ''
     };
   },
   computed: {},
   created() {
-   const index = this.$route.query.id.indexOf('@');
-   this.result = this.$route.query.id.substring(0, index);
+    const index = this.$route.query.id.indexOf('@name=') + '@name='.length;
+    this.result = this.$route.query.id.substring(index);
   },
   mounted() {
   },
   activated() {
-   this.doLayout()
+    this.doLayout()
   },
   updated() {
     this.doLayout()
@@ -276,7 +291,8 @@
     },
     tableDataArray: {
       handler(newval, oldval) {
-        this.statusSelect=''
+        this.keyWordFind='';
+        this.WupinFindValue=''
         this.tableData = newval;
         this.searchResults = newval
         this.doLayout()
@@ -326,8 +342,24 @@
   },
   methods: {
     //鐘舵�佹悳绱�
-    cellSelectHandler(row){
-      console.log(row)
+    cellSelectHandler(row) {
+      if (row === 'all') {
+        this.cellStatusFind()
+      } else {
+        this.cellStatusFind(row)
+      }
+    },
+    cellStatusFind(lcstatus) {
+      TableData({
+        templateOid: this.templateOid,
+        codeClassifyOid: this.codeClassifyOid,
+        page: this.page.currentPage,
+        limit: this.page.pageSize,
+        'conditionMap[lcstatus]': lcstatus
+      }).then(res => {
+        console.log(res)
+        this.tableData = res.data.data
+      })
     },
     //灞曞紑闄勪欢
     handleCollapse(activeNames) {
@@ -402,11 +434,11 @@
             showMessage = false;
           } else if (showMessage) {
             processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => {
-              if (res.data.data.records && res.data.data.records.length!=0)  {
+              if (res.data.data.records && res.data.data.records.length != 0) {
                 this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + '-鍙戝竷['+this.result+'-' + this.selectRow[0].name + ']';
+                this.parameter.template = this.userName + '-鐢宠[' + this.result + '-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'PUBLIC';
-                this.parameter.code=this.templateOid
+                this.parameter.code = this.templateOid
                 this.title = '娴佺▼瀹℃壒'
                 this.visibleFlow = true;
               } else {
@@ -416,8 +448,8 @@
                   type: 'warning'
                 }).then(() => {
                   const oid = this.selectRow.map(obj => obj.oid).join(",");
-                  changeStatus({ oid: oid, btmname: this.result, lcStatus: 'Released' }).then(res => {
-                    if(res.data.code == 200 ){
+                  changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'Released'}).then(res => {
+                    if (res.data.code == 200) {
                       this.$message.success('鍙戝竷鎴愬姛')
                       this.onLoad()
                     }
@@ -447,16 +479,16 @@
           if (this.selectRow.length === 1 && item.lcstatus === "Disabled" && showMessage) {
             this.$message.warning('閫夋嫨鐨勬暟鎹腑鐘舵�佹棤闇�鍐嶆墽琛屽綋鍓嶆搷浣�');
             showMessage = false;
-          }  else if (this.selectRow.length >=1 && !hasEditing  && showMessage) {
+          } else if (this.selectRow.length > 1 && !hasEditing && showMessage) {
             this.$message.warning('鎮ㄩ�夋嫨鐨勬暟鎹叏閮ㄤ负銆愬彂甯冪姸鎬併�戞墠鍙互鍙戣捣娴佺▼');
             showMessage = false;
-          } else if (this.selectRow.length > 1 && hasEditing && showMessage) {
-            processTS({ templateId: this.templateOid, buttonTypeKey: 'PUBLIC' }).then(res => {
-              if (res.data.records != [] && res.data.data.records.length!=0) {
+          } else if (this.selectRow.length >= 1 && hasEditing && showMessage) {
+            processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => {
+              if (res.data.records != [] && res.data.data.records.length != 0) {
                 this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + '-鍋滅敤['+this.result+'-' + this.selectRow[0].name + ']';
+                this.parameter.template = this.userName + '-鍋滅敤[' + this.result + '-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'DISABLE';
-                this.parameter.code=this.templateOid
+                this.parameter.code = this.templateOid
                 this.title = '鍋滅敤锛堝喕缁擄級缂栫爜鏁版嵁'
                 this.visibleDeactivate = true;
               } else {
@@ -468,12 +500,12 @@
                     type: 'warning'
                   }).then(() => {
                     const oid = this.selectRow.map(obj => obj.oid).join(",");
-                      changeStatus({ oid: oid, btmname: this.result, lcStatus: 'Disabled' }).then(res => {
-                        if(res.data.code == 200 ){
-                          this.$message.success('鍋滅敤鎴愬姛')
-                          this.onLoad()
-                        }
-                      });
+                    changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'Disabled'}).then(res => {
+                      if (res.data.code == 200) {
+                        this.$message.success('鍋滅敤鎴愬姛')
+                        this.onLoad()
+                      }
+                    });
                   }).catch(() => {
                     this.$message({
                       type: 'info',
@@ -483,7 +515,7 @@
                 }
               }
             });
-          }else {
+          } else if(this.selectRow.length == 1 && !hasEditing && showMessage ) {
             this.$message.warning('鎮ㄩ�夋嫨鐨勬暟鎹负銆愬彂甯冪姸鎬併�戞墠鍙互鍙戣捣娴佺▼')
           }
         });
@@ -500,14 +532,14 @@
           if (this.selectRow.length === 1 && item.lcstatus !== "Disabled" && showMessage) {
             this.$message.warning('閫夋嫨鐨勬暟鎹腑鐘舵�佹棤闇�鍐嶆墽琛屽綋鍓嶆搷浣�');
             showMessage = false;
-          } else if (this.selectRow.length >=1 && hasEditing && showMessage) {
-            processTS({ templateId: this.templateOid, buttonTypeKey: 'PUBLIC' }).then(res => {
-              if (res.data.data.records && res.data.data.records.length!=0)  {
-                this.parameter=res.data.data.records[0]
+          } else if (this.selectRow.length >= 1 && hasEditing && showMessage) {
+            processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => {
+              if (res.data.data.records && res.data.data.records.length != 0) {
+                this.parameter = res.data.data.records[0]
                 this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + '-鍚敤['+this.result+'-' + this.selectRow[0].name + ']';
+                this.parameter.template = this.userName + '-鍚敤[' + this.result + '-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'Released';
-                this.parameter.code=this.templateOid
+                this.parameter.code = this.templateOid
                 this.title = '鍚敤缂栫爜鏁版嵁'
                 this.visibleDeactivate = true;
               } else {
@@ -519,8 +551,8 @@
                     type: 'warning'
                   }).then(() => {
                     const oid = this.selectRow.map(obj => obj.oid).join(",");
-                    changeStatus({ oid: oid, btmname: this.result, lcStatus: 'Released' }).then(res => {
-                      if(res.data.code == 200 ){
+                    changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'Released'}).then(res => {
+                      if (res.data.code == 200) {
                         this.$message.success('鍚敤鎴愬姛')
                         this.onLoad()
                       }
@@ -534,7 +566,7 @@
                 }
               }
             });
-          } else if (this.selectRow.length >1 && !hasEditing  && showMessage) {
+          } else if (this.selectRow.length > 1 && !hasEditing && showMessage) {
             this.$message.warning('鎮ㄩ�夋嫨鐨勬暟鎹叏閮ㄤ负銆愬仠鐢ㄧ姸鎬併�戞墠鍙互鍙戣捣娴佺▼');
             showMessage = false;
           }
@@ -557,14 +589,14 @@
           if (this.selectRow.length === 1 && item.lcstatus == "TakeBack" && showMessage) {
             this.$message.warning('閫夋嫨鐨勬暟鎹腑鐘舵�佹棤闇�鍐嶆墽琛屽綋鍓嶆搷浣�');
             showMessage = false;
-          } else if (this.selectRow.length >=1 && (disabledCount === this.selectRow.length || releasedCount === this.selectRow.length) || (disabledCount > 0 && releasedCount > 0) && showMessage) {
+          } else if (this.selectRow.length >= 1 && (disabledCount === this.selectRow.length || releasedCount === this.selectRow.length) || (disabledCount > 0 && releasedCount > 0) && showMessage) {
             //disabledCount 鍜� releasedCount 涓换鎰忎竴涓瓑浜� this.selectRow 鏁扮粍鐨勯暱搴﹀垯琛ㄧず鍏ㄩ儴鏄悓涓�绉嶇姸鎬侊紝杩斿洖 true 濡傛灉disabledCount 鍜� releasedCount 閮藉ぇ浜�0锛屽垯琛ㄧず鏃㈡湁Disabled涔熸湁Released杩斿洖 true
-            processTS({ templateId: this.templateOid, buttonTypeKey: 'PUBLIC' }).then(res => {
-              if (res.data.records != [] && res.data.data.records.length!=0) {
+            processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => {
+              if (res.data.records != [] && res.data.data.records.length != 0) {
                 this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + '-鍥炴敹['+this.result+'-' + this.selectRow[0].name + ']';
+                this.parameter.template = this.userName + '-鍥炴敹[' + this.result + '-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'TakeBack';
-                this.parameter.code=this.templateOid
+                this.parameter.code = this.templateOid
                 this.title = '鍥炴敹缂栫爜鏁版嵁'
                 this.visibleDeactivate = true;
               } else {
@@ -576,8 +608,8 @@
                     type: 'warning'
                   }).then(() => {
                     const oid = this.selectRow.map(obj => obj.oid).join(",");
-                    changeStatus({ oid: oid, btmname: this.result, lcStatus: 'TakeBack' }).then(res => {
-                      if(res.data.code == 200 ){
+                    changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'TakeBack'}).then(res => {
+                      if (res.data.code == 200) {
                         this.$message.success('鍥炴敹鎴愬姛')
                         this.onLoad()
                       }
@@ -591,10 +623,10 @@
                 }
               }
             });
-          } else if (showMessage && this.selectRow.length >1 && !(disabledCount === this.selectRow.length || releasedCount === this.selectRow.length) || (disabledCount > 0 && releasedCount > 0)) {
+          } else if (showMessage && this.selectRow.length > 1 && !(disabledCount === this.selectRow.length || releasedCount === this.selectRow.length) || (disabledCount > 0 && releasedCount > 0)) {
             this.$message.warning('鎮ㄩ�夋嫨鐨勬暟鎹叏閮ㄤ负銆愬仠鐢ㄧ姸鎬佹垨鍙戝竷鐘舵�併�戞墠鍙互鍙戣捣娴佺▼');
             showMessage = false;
-          }else if(showMessage){
+          } else if (showMessage) {
             this.$message.warning('鎮ㄩ�夋嫨鐨勬暟鎹负銆愬仠鐢ㄧ姸鎬佹垨鍙戝竷鐘舵�併�戞墠鍙互鍙戣捣娴佺▼')
           }
         });
@@ -634,11 +666,13 @@
         cancelButtonText: '鍙栨秷',
         type: 'warning'
       }).then(() => {
-        const list=[];
-        this.selectRow.forEach((item)=>{list.push(item.oid)})
-        deleteCode({codeClassifyOid:this.codeClassifyOid,oidList:list}).then(res=>{
+        const list = [];
+        this.selectRow.forEach((item) => {
+          list.push(item.oid)
+        })
+        deleteCode({codeClassifyOid: this.codeClassifyOid, oidList: list}).then(res => {
           console.log(res)
-          if(res.data.code === 200){
+          if (res.data.code === 200) {
             this.$message({
               type: 'success',
               message: '鍒犻櫎鎴愬姛!'
@@ -740,6 +774,7 @@
     //澶氶��
     handleSelectionChange(list) {
       this.selectRow = list;
+      console.log(this.selectRow)
       this.parameter.ids = [];
       list.forEach((item) => {
         this.parameter.ids.push(item.oid);
@@ -834,13 +869,16 @@
         this.$message.warning('杈撳叆鍊间笉鑳戒负绌�')
         return;
       }
-      this.tableData = this.searchResults.filter(item => {
-        if (typeof item.name === 'string') {
-          return item.name.includes(this.WupinFindValue);
-        } else {
-          return false; // item.name涓嶆槸瀛楃涓茬被鍨嬶紝杩斿洖false
-        }
-      });
+      TableData({
+        templateOid: this.templateOid,
+        codeClassifyOid: this.codeClassifyOid,
+        page: this.page.currentPage,
+        limit: this.page.pageSize,
+        [ 'conditionMap[' + this.keyWordFind + ']']: '*' + this.WupinFindValue + '*'
+      }).then(res => {
+        console.log(res)
+        this.tableData = res.data.data
+      })
     }
 
   }
diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
index 5c1747a..66a96d4 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
@@ -332,6 +332,7 @@
 <script>
 import {AttrByBtm, gridCodeClassifyTemplateAttr, batchAddSave, copyto,listByFlag} from '@/api/template/templateAttr'
 import {getList} from "@/api/refer/table";
+import func from "@/util/func";
 
 export default {
   name: "attrCrud .vue",
@@ -1686,14 +1687,63 @@
     },
     //淇濆瓨
     addsHandler(event) {
-      batchAddSave(JSON.parse(JSON.stringify(this.ProData))).then(res => {
-        this.$message.success('淇濆瓨鎴愬姛')
-        this.editOpenFlag=false;
-        // 璋冪敤鐖剁粍浠朵慨鏀规寜閽姸鎬�
-        this.$emit('editCloseChildren')
-      }).catch(()=>{
-        this.$message.warning('淇濆瓨澶辫触锛岃鏌ョ湅鎺у埗鍙拌緭鍑猴紒')
+      this.$refs.referAttrCrud.sort("orderNum");
+      var ischeck = true;
+      console.log(this.ProData)
+      this.ProData.forEach((item,index)=>{
+        if((item.requireFlag && item.requireFlag.toString()=='true') && (item.readOnlyFlag && item.readOnlyFlag.toString()=='true')){
+          this.$message.warning(item.name+"("+item.id+")蹇呰緭鐨勫睘鎬т笉鑳芥槸鍙");
+          console.log(item)
+          ischeck=false;
+          return;
+        }
+        var num=0;
+        if(item.componentRule){
+          //缁勫悎瑙勫垯
+          num++
+        }
+        if(item.enumString || item.enumId){
+          //鏋氫妇
+          num++
+        }
+        if(item.referConfig || item.referBtmId){
+          //鍙傜収
+          num++
+        }
+        if(item.codeDateFormat){
+          //鏃堕棿鏍煎紡
+          num++
+        }
+        if(item.classifyInvokeLevel){
+          //鍒嗙被娉ㄥ叆
+          num++
+        }
+        if(num>1 && ischeck){
+          this.$message({
+            showClose: true,
+            message: item.name+"("+item.id+") 灞炴�у彧鑳芥槸缁勫悎瑙勫垯锛屾灇涓撅紝鍙傜収锛屾椂闂存牸寮忥紝鍒嗙被娉ㄥ叆涓殑涓�绉�",
+            type: 'warning'
+          });
+          ischeck=false;
+          return;
+        }
       })
+      if(!ischeck){
+        return ;
+      }
+      // 鏂板嚱鏁扮敤浜庢墽琛宐atchAddSave鏂规硶
+      const executeBatchAddSave = () => {
+        batchAddSave(JSON.parse(JSON.stringify(this.ProData))).then(res => {
+          this.$message.success('淇濆瓨鎴愬姛')
+          this.editOpenFlag=false;
+          // 璋冪敤鐖剁粍浠朵慨鏀规寜閽姸鎬�
+          this.$emit('editCloseChildren')
+        }).catch(()=>{
+          this.$message.warning('淇濆瓨澶辫触锛岃鏌ョ湅鎺у埗鍙拌緭鍑猴紒')
+        });
+      }
+      // 鎵�鏈塱f鏉′欢鍜岄�昏緫閫氳繃鍚庤皟鐢╡xecuteBatchAddSave鍑芥暟
+      executeBatchAddSave();
     },
     //琛ㄦ牸琛岀紪杈�
     handleCellClicks(row, column) {
diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
index 84d410f..7ca191b 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
@@ -24,7 +24,7 @@
           </div>
         </div>
         <!--        鏍戣妭鐐规坊鍔犲璇濇-->
-        <el-dialog :title="this.TreeFlag ? '娣诲姞鍒嗙被' :'娣诲姞涓婚搴�'" :visible.sync="TreeAddFormVisible"  v-loading="AddLoading" append-to-body
+        <el-dialog :title="this.TreeFlag ? '娣诲姞鍒嗙被' :'娣诲姞涓婚搴�'" :before-close="TreeEscHandler" :visible.sync="TreeAddFormVisible"  v-loading="AddLoading" append-to-body
                    style="width: 1700px;margin: auto">
           <el-form :model="TreeAddform" :rules="rules">
             <el-form-item :label="this.TreeFlag ? '鍒嗙被缂栧彿锛�' :'涓婚搴撶紪鍙凤細'" label-width="150px" style="display: inline-block" prop="id">
@@ -52,7 +52,7 @@
             </el-form-item>
           </el-form>
           <div slot="footer" class="dialog-footer">
-            <el-button @click="TreeAddFormVisible = false">鍙� 娑�</el-button>
+            <el-button @click="TreeEscHandler">鍙� 娑�</el-button>
             <el-button type="primary" @click="TreeAddHandler">纭� 瀹�</el-button>
           </div>
         </el-dialog>
@@ -354,10 +354,10 @@
   inject: ["crudTreeData"],
   data() {
     return {
-      masterRow:0,
+      masterRow:null,
       AddLoading:false,
       // 瀹氫箟涓�涓彉閲忔潵淇濆瓨鏍戣姹傜殑鏁伴噺
-      requestCount:0,
+      requestCount:null,
       //瀵煎叆鐘舵�佹
       ThemeImportVisible:false,
       selectRow:'',
@@ -965,6 +965,7 @@
     },
     //涓氬姟绫诲瀷澶氶��
     btmSelect(row){
+      this.masterRow=row.$index;
       this.btmSelectList=row;
       this.btmName=row.name;
       this.btmOid=row.id;
@@ -1041,6 +1042,11 @@
         loading.close();
       }
     },
+    //鏍戣妭鐐瑰彇娑堜簨浠�
+    TreeEscHandler(){
+      this.TreeAddform={};
+      this.TreeAddFormVisible=false
+    },
     //鏍戣妭鐐规坊鍔犱簨浠�
     TreeAddHandler() {
       const data = this.TreeAddform;
@@ -1057,6 +1063,9 @@
           });
           this.getAttr();
           this.TreeAddFormVisible = false;
+          //娣诲姞瀹屾垚鍚庡彸渚ф竻绌�
+          this.ProData=[];
+          this.Formlist=[];
         })
         .catch((res) => {
           this.$message({
diff --git a/Source/UBCS-WEB/src/router/views/index.js b/Source/UBCS-WEB/src/router/views/index.js
index 383242e..8c6a0e4 100644
--- a/Source/UBCS-WEB/src/router/views/index.js
+++ b/Source/UBCS-WEB/src/router/views/index.js
@@ -80,7 +80,7 @@
   redirect: '/work/process/leave/form',
   children: [{
     path: 'form/:processDefinitionId',
-    name: '璇峰亣娴佺▼',
+    name: '鍙戝竷娴佺▼',
     meta: {
       i18n: 'work'
     },
@@ -88,7 +88,7 @@
       import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
   }, {
     path: 'handle/:taskId/:processInstanceId/:businessId',
-    name: '澶勭悊璇峰亣娴佺▼',
+    name: '澶勭悊鍙戝竷娴佺▼',
     meta: {
       i18n: 'work'
     },
@@ -96,7 +96,7 @@
       import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
   }, {
     path: 'detail/:processInstanceId/:businessId',
-    name: '璇峰亣娴佺▼璇︽儏',
+    name: '鍙戝竷娴佺▼璇︽儏',
     meta: {
       i18n: 'work'
     },
diff --git a/Source/UBCS-WEB/src/views/work/process/leave/detail.vue b/Source/UBCS-WEB/src/views/work/process/leave/detail.vue
index 9dc6b12..ac6c335 100644
--- a/Source/UBCS-WEB/src/views/work/process/leave/detail.vue
+++ b/Source/UBCS-WEB/src/views/work/process/leave/detail.vue
@@ -91,7 +91,7 @@
             this.flowList = data.data;
           }
         })
-        leaveDetail(this.businessId).then(res => {
+        leaveDetail(this.businessId,this.processInstanceId).then(res => {
           const data = res.data;
           if (data.success) {
             this.form = data.data;

--
Gitblit v1.9.3