From aadc935fea134441a607c56b3bb5fedefb8aeec9 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 07 九月 2023 15:34:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/src/components/FormTemplate/index.vue |   36 ++++++++++++++++++++++++++----------
 1 files changed, 26 insertions(+), 10 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/FormTemplate/index.vue b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
index d2585c3..cefd61a 100644
--- a/Source/UBCS-WEB/src/components/FormTemplate/index.vue
+++ b/Source/UBCS-WEB/src/components/FormTemplate/index.vue
@@ -123,6 +123,8 @@
   },
   data() {
     return {
+      //鐮佸�肩殑绗簩绉嶅彧璇婚殣钘忔儏鍐�
+      codeValueApplyStatus:'',
       loading: false,
       submitBtnLoading: false,
       hasResemble: false,
@@ -134,12 +136,12 @@
       showCodeApply: false,
       showResembleQuery: false,
       selfColumnType: {
-        codefixedsec: "combox",
-        codeclassifysec: "refer",
-        codevariablesec: "text",
+        codefixedsec: "combox",//鍥哄畾鐮佹
+        codeclassifysec: "refer",//鍒嗙被鐮佹
+        codevariablesec: "text",//鍙彉鐮佹
+        coderefersec: "refer",//寮曠敤鐮佹
         codeattrsec: "text",
         codelevelsec: "text",
-        coderefersec: "refer",
         codedatesec: "date"
       },
       selfColumnConfig: {
@@ -244,7 +246,7 @@
             } else {
               this.showResembleQuery = false;
             }
-            console.log(this.hasResemble, "this.hasResemblethis.hasResemble");
+            // console.log(this.hasResemble, "this.hasResemblethis.hasResemble");
             this.$nextTick(() => {
               this.$refs.FormTemplate.templateRender(
                 res.data.formDefineVO.items
@@ -265,13 +267,21 @@
         if (res.data && res.data.code === 200) {
           this.codeRuleOid = res.data.data.oid;
           const typeList = [
-            "codefixedsec",
-            "codeclassifysec",
-            "codevariablesec",
-            "coderefersec",
+            //灞炴�х爜娈� 鍙
             "codeattrsec",
+            //鍙彉鐮佹
+            "codevariablesec",
+            //鍥哄畾鐮佹
+            "codefixedsec",
+            //鍒嗙被鐮佹
+            "codeclassifysec",
+            //鏃ユ湡鐮佹 鍙
+            "codedatesec",
+            //寮曠敤鐮佹
+            "coderefersec",
+            //灞傜骇鐮佹 鍙
             "codelevelsec",
-            "codedatesec"
+            //娴佹按鐮佹 闅愯棌
           ];
           this.secVOList = (res.data.data.secVOList || []).filter((item) =>
             typeList.includes(item.secType)
@@ -286,6 +296,8 @@
             this.showCodeApply = false;
           }
         }
+        // console.log(' this.secVOList',this.secVOList)
+        // console.log(' res.data.data.secVOList',res.data.data.secVOList)
       });
     },
     getFormData(form) {
@@ -301,6 +313,8 @@
         if (item.parentClassifySecOid === field) {
           this.$refs.CodeApply.form[item.oid] = undefined;
           this.$refs.CodeApply.form[item.name] = undefined;
+          item.readOnly=false;
+          item.referConfig.extraParams.parentClassifyValueOid=data.value;
         }
         return item;
       });
@@ -414,6 +428,7 @@
     getReferConfig(item) {
       let params = {};
       if (item.secType == "codeclassifysec") {
+        //鍒嗙被鐮佹
         params = {
           isMuti: false,
           type: "grid",
@@ -458,6 +473,7 @@
           },
         };
       } else if (item.secType == "coderefersec") {
+        //寮曠敤鐮佹
         params = JSON.parse(item.referValueInfo);
       }
       return params;

--
Gitblit v1.9.3